Everything Student

Logarithm Calculator

Find the logarithm of any number in any base, including natural log and log base 2, or work backward with the antilog.

  • Math
  • Instant Results
  • Works Offline
Find

A logarithm answers one question: what power do I raise this base to, to get this number? This calculator finds it in any base, shows the common, natural and base-2 logs alongside, and works backward with the antilog.

How to Use It

  1. Choose Logarithm or Antilog (Power).
  2. Enter the Base: 10, 2, or e for the natural log.
  3. For a logarithm, enter the Number. For an antilog, enter the Exponent.
  4. Press Calculate. A logarithm also shows the same number’s log in bases 10, e and 2.

How It Works

A logarithm undoes a power:

log⁡bx=y  ⟺  b y=x\log_{\vA{b}} \vB{x} = \vC{y} \iff \vA{b}^{\,\vC{y}} = \vB{x}

Calculators only have buttons for base 10 and base e, so any other base uses the change-of-base rule:

log⁡bx=ln⁡xln⁡b\log_{\vA{b}} \vB{x} = \frac{\ln \vB{x}}{\ln \vA{b}}

The antilog goes the other way: it raises the base to the power, byb^y.

Worked Example

Find log⁡28\log_2 8. Since 23=82^3 = 8, the answer is exactly 3. By change of base:

log⁡28=ln⁡8ln⁡2=2.07940.6931=3\log_2 8 = \frac{\ln 8}{\ln 2} = \frac{2.0794}{0.6931} = 3

The antilog reverses it: 23=82^3 = 8.

Tips and Common Mistakes

  • Only positive numbers have real logs. log⁡0\log 0 and the log of a negative number don’t exist.
  • Check which log your class means. “log” is usually base 10, but some courses and programming languages use it for base e.
  • Logs turn multiplying into adding. log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b, which is why logs simplify big calculations.
  • The base can’t be 1. Every power of 1 is 1, so it can’t reach any other number.
  • Numbers below 1 have negative logs. log⁡100.01=−2\log_{10} 0.01 = -2 because 10−2=0.0110^{-2} = 0.01.

Frequently Asked Questions

What is a logarithm?

The power you raise the base to in order to get the number. log₂ 8 = 3 because 2³ = 8.

What's the difference between log and ln?

log usually means base 10 and ln means base e (about 2.71828), the natural log. The calculator shows both, plus base 2, for every number.

How do I find a log in a base my calculator doesn't have?

Use change of base: log_b(x) = ln(x) ÷ ln(b). log₅ 125 = ln 125 ÷ ln 5 = 3.

Why can't I take the log of 0 or a negative number?

No power of a positive base gives 0 or a negative number, so those logs don't exist among the real numbers.

What is an antilog?

The reverse of a log: the base raised to a power. The antilog of 3 in base 10 is 10³ = 1000.

Why does the answer say "exactly"?

When the base raised to the answer gives your number exactly, as with log₂ 8 = 3, the calculator says so. Otherwise the answer is rounded to 10 significant figures.

Sources

Home