Skip to content
ihateDesmos

Log calculator

Type a number and a base to get the logarithm. It also gives the natural log, common log and log base 2, plus the antilog, with the change-of-base working shown.

log(1000)
3
Natural log, ln
6.907755279
Common log, log₁₀
3
Binary log, log₂
9.965784285
Antilog: 10^x
∞
Steps
  1. A logarithm asks: to what power must 10 be raised to give 1000?
  2. Change of base: log₍10₎(1000) = ln(1000) ÷ ln(10) = 6.9077553 ÷ 2.3025851
  3. = 3
  4. Check: 10^3 = 1000
20040060080010001200−11234
The curve y = log(x), with the point (1000, 3) marked.

How to use it

  1. 1
    Type the number you want the logarithm of. It must be positive.
  2. 2
    Type the base: 10 for the common log, 2 for binary, e for the natural log, or any other positive number except 1.
  3. 3
    Read the result, and check it using the line under the steps.

What a logarithm is

A logarithm answers the question: what power do I raise the base to, to get this number? log₁₀(1000) = 3, because 10³ = 1000. log₂(8) = 3, because 2³ = 8. So logarithms undo exponents.

NameWrittenBaseUsed in
Common loglog x10pH, decibels, the Richter scale
Natural logln xe ≈ 2.718Calculus, growth and decay
Binary loglog₂ x2Computer science, information

The change of base formula

Most handheld calculators only have log and ln, but any base can be built from them:

logb(x)=ln(x)ln(b)

So log₂(10) = ln(10) ÷ ln(2) ≈ 2.302585 ÷ 0.693147 ≈ 3.3219.

Antilogs

The antilog reverses a logarithm by raising the base to that power. The antilog base 10 of 3 is 10³ = 1000. On a calculator, that is the 10ˣ key, or eˣ for natural logs. If log(x) = 2.5, then x = 10^2.5 ≈ 316.2.

Log rules

Logs turn multiplication into addition: log(ab) = log a + log b, log(a/b) = log a − log b, and log(aⁿ) = n log a. The log rules guide covers these with examples, and the graph of log x shows the shape of the function.

Frequently asked questions

How do you calculate log base 2?
Type 2 as the base above. On a calculator with only log and ln, divide: log₂(x) = ln(x) ÷ ln(2).
What is the difference between log and ln?
log usually means base 10, and ln means base e. They differ by a constant factor: ln x ≈ 2.3026 × log x.
Why can’t you take the log of a negative number?
No real power of a positive base gives a negative number. Logs of negative numbers exist only as complex numbers.
What is log of 1?
0, in every base, because any base to the power 0 is 1.
What is log of 0?
It is undefined. As x gets close to 0 from the right, log x falls toward negative infinity.

Related tools and guides

Try the log calculator

It opens instantly, with no account and nothing to install.

Open the calculator