MathorynMathematical Formula Database

Logarithms & Exponents

Change of Base Formula

The change of base formula computes a logarithm in any base using natural or common logarithms, which is what calculators provide. Use it to evaluate logarithms in bases your calculator does not provide, such as base 2 or base 5.

log⁡bx=ln⁡xln⁡b=log⁡10xlog⁡10b\log_b x=\frac{\ln x}{\ln b}=\frac{\log_{10} x}{\log_{10} b}
LaTeX\log_b x=\frac{\ln x}{\ln b}=\frac{\log_{10} x}{\log_{10} b}

Variables

bb
desired base
xx
positive argument
ln⁡\ln
natural logarithm (base e)

Example

Compute log⁡530\log_5 30.

  1. ln⁡30ln⁡5=3.40121.6094\frac{\ln30}{\ln5}=\frac{3.4012}{1.6094}.

Answer: ≈2.1133\approx2.1133.

Related formulas