letx=

Algebra

Change of base formula

Works out a logarithm in any base using the ln or log₁₀ button on a calculator.

logb⁡x=ln⁡xln⁡b=log⁡xlog⁡b

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

See it move

0246810121416−4−224(1, 0)(b, 1)
  • Every log curve passes through (1, 0) and (b, 1). Dashed: y = bˣ, its mirror image in y = x.
  • b > 1: the curve rises.

What the symbols mean

y
the logarithm you want, logb⁡x
b
the base you want (positive, not 1)
x
the number (positive)
ln⁡
natural log (base e)
log⁡
common log (base 10)

When to use it

Use it whenever you need a log in a base your calculator does not have, such as log3⁡50 or log2⁡1000 (how many bits to count to 1000). Either ln or log₁₀ gives the same answer, as long as you use the same one on top and bottom.

Worked example

Find log₃ 50 (b = 3, x = 50).

  1. Start from the formula.

    y=ln⁡(x)ln⁡(b)
  2. Substitute b = 3, x = 50 and work it out.

    y=ln⁡(50)ln⁡(3)
    ≈3.912021.09861
    ≈3.56088
  3. Using common logs instead gives the same answer: log⁡50log⁡3≈3.56088.

Answer log₃ 50 ≈ 3.5609

Why it works

Let y=logb⁡x, so by=x. Take ln of both sides: yln⁡b=ln⁡x, then divide by ln⁡b.

Common mistakes

  • Putting the base on top: it is ln⁡x/ln⁡b, the number over the base.
  • Cancelling the logs: ln⁡50/ln⁡3 is not 50/3 or ln⁡(50/3).