Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Evaluate a Logarithm

log⁡bx\log_b x asks one question: to what power must bb be raised to give xx? Write xx as a power of bb and the exponent is the answer. When xx is not a nice power, change the base and use a calculator.

Recognize the task

"Evaluate log⁡28\log_2 8", "find log⁡319\log_3\frac{1}{9}", "ln⁡e\ln\sqrt{e}", "log⁡520\log_5 20 to three decimals". Test: a logarithm with numbers only, no unknown.
The question-form is the definition of a logarithm; the key values log⁡b1=0\log_b 1 = 0 and log⁡bb=1\log_b b = 1 are worth memorizing.

Two ways to do it

Write the argument as a power of the baseusual choice
log⁡bx=n  ⟺  bn=x\log_b x = n \iff b^n = x
Exact answers. Fractions give negative exponents, roots give fractional ones (rational exponents).
Change the basecalculator answers
log⁡bx=ln⁡xln⁡b\log_b x = \frac{\ln x}{\ln b}
Change of base formula for arguments that are not powers of the base.

Steps

StepOn log⁡319\log_3\frac{1}{9}
1Turn the log into an exponent question. log⁡bx=?\log_b x = ? means b?=xb^{?} = x.3?=193^{?} = \frac{1}{9}
2Write the argument as a power of the base. Use negative exponents for fractions and fractional exponents for roots.Negative exponent rule ↗19=3−2\frac{1}{9} = 3^{-2}
3Read off the exponent. That exponent is the value of the logarithm.log⁡319=−2\log_3\frac{1}{9} = -2
4If no exact power exists, change the base and compute. Change of base with ln⁡\ln or log⁡10\log_{10}.Change of base formula ↗not needed here

Worked examples

Example 1 · a whole-number power

basic
log⁡28\log_2 8: 2?=8=232^{?} = 8 = 2^3
=3= 3

Example 2 · a root of the base

fractional exponent
ln⁡e=ln⁡e1/2\ln\sqrt{e} = \ln e^{1/2}
e=e1/2\sqrt{e} = e^{1/2}
=12= \tfrac{1}{2}

Example 3 · not a power of the base

change of base
log⁡520=ln⁡20ln⁡5\log_5 20 = \frac{\ln 20}{\ln 5}
change of base
≈2.9961.609≈1.861\approx \frac{2.996}{1.609} \approx 1.861
between 11 (log⁡55\log_5 5) and 22 (log⁡525\log_5 25)

See it happen

A logarithm counts doublings, triplings, tenfoldings. log⁡28=3\log_2 8 = 3 because 88 is three doublings of 11; log⁡319=−2\log_3\frac{1}{9} = -2 because 19\frac{1}{9} is two "un-triplings". Negative logs are not negative numbers gone wrong, they are steps taken backwards.

Common mistakes

Dividing instead of asking for the exponent

✗ log⁡28=4\log_2 8 = 4
✓ 23=82^3 = 8, so log⁡28=3\log_2 8 = 3

A log of a fraction between 0 and 1 is negative

✗ log⁡319=2\log_3\frac{1}{9} = 2
✓ −2-2; the argument is below 11

Logs of 0 or negatives

✗ log⁡20=0\log_2 0 = 0
✓ log⁡bx\log_b x is undefined for x≤0x \le 0 (restrictions)