Logaritmo Base Arbitrária

log_b x = ln x / ln b.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

log_b x
2,000000

Formula

mudança de base

About this calculator

This calculator computes logarithms in any base using the change of base formula: log_b(x) = ln(x) / ln(b). Simply enter the argument (x) and the base (b) to get the result. It is useful for solving mathematical problems involving logarithms with non-standard bases, such as base 10 or natural log.

The calculation is performed automatically by applying the change of base property, which converts any logarithm into a ratio of natural logarithms (or base 10 logarithms, depending on implementation). This ensures accuracy and speed, avoiding manual errors. The calculator accepts positive numbers for x and b, with b different from 1.

Use this calculator in situations like solving exponential equations, analyzing population growth, calculating pH in chemistry, or working with logarithmic scales in engineering and physics. For example, to compute log_2(8), enter x=8 and b=2, obtaining result 3.

Caution: the argument (x) must be greater than zero, and the base (b) must be positive and not equal to 1. Negative or zero values will result in an error. Also, note that the calculator uses the change of base formula, so the result is exact for real numbers, but rounding may occur.

Frequently asked questions

Can I calculate the logarithm of a negative number?

No, the argument must be greater than zero. Logarithms of negative numbers are not defined in the real number system.

What if the base is 1?

The base cannot be 1, because the logarithm of any number base 1 is undefined. The calculator will return an error.

What formula is used?

We use the change of base formula: log_b(x) = ln(x) / ln(b), where ln is the natural logarithm.

Can I use base 10 or base e?

Yes, just enter 10 or Euler's number (approximately 2.71828) as the base.

Is the result exact?

For numbers that are exact powers of the base, the result is exact. Otherwise, rounding may occur due to decimal representation.

Other Sequencias e Numeros calculators