Change of Base Calculator

Rewrite a logarithm in a new base and find its value.

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

The base; the letter e means the natural base.

Optional: the base to change to; leave it empty for natural logs.

Try

Result

You enteredlog⁡84\log_{8} 4

23\displaystyle \frac{2}{3}

Using natural logs

ln⁡4ln⁡8\displaystyle \frac{\ln 4}{\ln 8}

Using common logs

log⁡4log⁡8\displaystyle \frac{\log 4}{\log 8}

Decimal

0.666667\displaystyle 0.666667
Show the work
  1. Change of base formula

    Any new base cc gives the same value. Here cc is ee (natural logarithms), x=4x = 4 and b=8b = 8.

    Using log⁡bx=log⁡cxlog⁡cb\log_b x = \frac{\log_c x}{\log_c b}

    log⁡84=ln⁡4ln⁡8\log_{8} 4 = \frac{\ln 4}{\ln 8}
  2. Evaluate the logarithms

    Work out the two natural logarithms and divide the top by the bottom.

    =1.3862942.079442≈0.666667= \frac{1.386294}{2.079442} \approx 0.666667
  3. Common base

    The base and the number are powers of the same number cc, so the logarithm is exactly m/km/k. Here b=23b = 2^{3} and x=22x = 2^{2}.

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

    log⁡84=23\log_{8} 4 = \frac{2}{3}
  4. Result

    So log⁡84=23\log_{8} 4 = \frac{2}{3}.

Worked examples