Logarithm Calculator

Find a logarithm in any base, exactly where possible.

The number whose logarithm you want; it must be positive.

The base; the letter e means the natural base.

Try

Result

You enteredlog⁡218\log_{2} \frac{1}{8}

−3\displaystyle -3

Exponential form

2−3=18\displaystyle 2^{-3} = \frac{1}{8}

Change of base

ln⁡18ln⁡2\displaystyle \frac{\ln \frac{1}{8}}{\ln 2}

Decimal

−3\displaystyle -3
Show the work
  1. Common base

    Write the base and the number as powers of the same rational number cc. Here 2=212 = 2^{1} and 18=2−3\frac{1}{8} = 2^{-3}.

    2=2118=2−3\begin{gathered} 2 = 2^{1} \\ \frac{1}{8} = 2^{-3} \end{gathered}
  2. Compare the exponents

    A logarithm asks which exponent gives the number, so the answer is m/km/k. Here m=−3m = -3 and k=1k = 1.

    Using log⁡ck(cm)=mk\log_{c^k}\left(c^m\right) = \frac{m}{k}

    log⁡218=−31=−3\begin{aligned} \log_{2} \frac{1}{8} &= \frac{-3}{1} \\ &= -3 \end{aligned}
  3. Result

    So log⁡218=−3\log_{2} \frac{1}{8} = -3.

Worked examples