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.
- A logarithm asks: to what power must 10 be raised to give 1000?
- Change of base: log₍10₎(1000) = ln(1000) ÷ ln(10) = 6.9077553 ÷ 2.3025851
- = 3
- Check: 10^3 = 1000
How to use it
- 1Type the number you want the logarithm of. It must be positive.
- 2Type the base: 10 for the common log, 2 for binary, e for the natural log, or any other positive number except 1.
- 3Read 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.
| Name | Written | Base | Used in |
|---|---|---|---|
| Common log | log x | 10 | pH, decibels, the Richter scale |
| Natural log | ln x | e ≈ 2.718 | Calculus, growth and decay |
| Binary log | log₂ x | 2 | Computer science, information |
The change of base formula
Most handheld calculators only have log and ln, but any base can be built from them:
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?
What is the difference between log and ln?
Why can’t you take the log of a negative number?
What is log of 1?
What is log of 0?
Related tools and guides
Product, quotient, power and change of base, with examples.
Base 10: through (1, 0) and (10, 1); every log graph has this shape.
Defined for x > 0, through (1, 0) and (e, 1).
Trig, logs, powers, roots and memory, with a history of your work.
It opens instantly, with no account and nothing to install.