What a logarithm is
A logarithm answers the question “what exponent do I need?” If bʸ = x, then log_b(x) = y. Logarithms turn multiplication into addition: log(a × b) = log a + log b, and powers into multiplication: log(aⁿ) = n × log a. That is why they were used for slide rules and why they appear wherever quantities span huge ranges.
log_b(x) = ln(x) ÷ ln(b)Common logarithms
| Name | Base | Used for |
|---|---|---|
| Common log (log) | 10 | Decibels, pH, earthquake magnitudes |
| Natural log (ln) | e ≈ 2.71828 | Growth and decay, calculus, continuous compounding |
| Binary log (lg) | 2 | Computing, information, halving times |
For example ln(1.08) = 0.07696, which is the continuous growth rate behind an 8% yearly return.
Rules and uses
- log_b(1) = 0 and log_b(b) = 1 for every valid base.
- log_b(x ÷ y) = log_b x − log_b y.
- Logarithms of zero or negative numbers do not exist as real numbers.
- To undo a logarithm take the antilog: b raised to the result.
Use it with the exponent calculator and see doubling time questions in the compound interest calculator.
Complete guide to the Log Calculator
How to use the Log Calculator, step by step
- Enter the number.
- Enter the base.
- Read the logarithm and the antilog.
- Check with base to the power result.
Common mistakes to avoid
- Taking the log of zero or a negative.
- Using base 1.
- Confusing log and ln.
Key terms explained
- Logarithm
- The exponent needed to reach a number.
- Natural log
- The logarithm with base e.
- Antilog
- The inverse of a logarithm.
- Base
- The number being raised to a power.
Want the full walkthrough? Read our guide: How Exponents, Logarithms and Roots Work (Rules and Examples).
Frequently asked questions
What is the difference between log and ln?
Log usually means base 10 and ln means base e, the natural logarithm. Some computing texts use log for base 2, so check the context.
Why can’t I take the log of a negative number?
No real power of a positive base gives a negative or zero result, so the logarithm is undefined for real numbers. Complex logarithms exist but are beyond this tool.
How do I calculate log base 2 on a calculator?
Divide ln(x) by ln(2), or log(x) by log(2). The change-of-base rule works for any base.
What is an antilogarithm?
It is the inverse of the logarithm. If log_b(x) = y, the antilog of y is b^y = x.
What is the value of e?
e is about 2.718281828, the base of natural logarithms. It is the limit of (1 + 1/n)ⁿ as n grows without bound.
Where are logarithms used in everyday life?
Decibel sound levels, the pH scale, earthquake magnitudes, compound growth and half-life problems all use logarithms.
How do logarithms help solve exponential equations?
Take the logarithm of both sides. To solve 1.05ⁿ = 2, write n = ln 2 ÷ ln 1.05, which is about 14.2, the number of years to double at 5%.
What is the logarithm of 1?
It is 0 for every base, because any valid base raised to the power 0 equals 1. The log of the base itself is always 1.