Logarithms and the Change of Base Formula

Calculates the logarithm to the given base as log_b x = ln x ÷ ln b, the power to which b must be raised to give x. The common logarithm (base 10) and the natural logarithm (base e) are also shown.

A logarithm answers one question: to what power must the base be raised to give this number? Writing logbx=y\log_b x = y says exactly the same thing as by=xb^y = x. The logarithm undoes the power.

logbx=y    by=x\log_b x = y \iff b^y = x

A logarithm to any base can be rebuilt from natural logarithms through the change of base formula, which is what this calculator does internally.

logbx=lnxlnb\log_b x = \dfrac{\ln x}{\ln b}

Example

Take x=8x = 8 with base b=2b = 2. Since 2 cubed is 8,

log28=3\log_2 8 = 3

The change of base formula agrees: ln8ln2=2.07940.6931=3\dfrac{\ln 8}{\ln 2} = \dfrac{2.0794}{0.6931} = 3. The calculator also shows log1080.9031\log_{10} 8 \approx 0.9031 and ln82.0794\ln 8 \approx 2.0794.

Notes