How to use the log calculator
- Choose the base: 10 for the common log, e for the natural log (ln), 2 for the binary log, or any other base.
- Type the number. The answer appears as you type, with the change-of-base working.
- To go the other way, open Antilog and enter the exponent to get by.
Logarithm rules
| Rule | Formula | Example |
|---|---|---|
| Product | log(xy) = log x + log y | log 20 = log 2 + log 10 = 1.301 |
| Quotient | log(x/y) = log x − log y | log 5 = log 10 − log 2 = 0.699 |
| Power | log(xⁿ) = n log x | log 8 = 3 log 2 = 0.903 |
| Change of base | log_b x = ln x ÷ ln b | log₂ 10 = 2.3026 ÷ 0.6931 = 3.3219 |
| Base itself | log_b b = 1 | ln e = 1 |
| One | log_b 1 = 0 | log 1 = 0 |
Common logs to know
log 20.30103
log 30.477121
log 50.69897
log 70.845098
log 101
log 201.30103
log 501.69897
log 1002
ln 20.693147
ln 31.098612
ln 51.609438
ln 102.302585
Need powers, roots and trig in one place? Use the scientific calculator, or the exponent calculator for bn.
Frequently asked questions
A logarithm answers “what power do I raise the base to, to get this number?” log₁₀(1000) = 3 because 10³ = 1000, and log₂(32) = 5 because 2⁵ = 32. Logs turn multiplication into addition, which is why they're used for scales such as decibels, pH and earthquake magnitude.
On calculators, “log” usually means the common logarithm with base 10, and “ln” is the natural logarithm with base e ≈ 2.71828. In many programming languages and higher maths, log(x) means ln(x), so check the convention. ln(x) = log₁₀(x) × 2.302585.
Use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b). For log₃(81) that's ln 81 ÷ ln 3 = 4.3945 ÷ 1.0986 = 4. Pick “Other” and type any base.
The antilog undoes a log: antilog_b(y) = b^y. The antilog of 2 in base 10 is 10² = 100, and the antilog of 1 in base e is e ≈ 2.71828. Switch to the Antilog tab to calculate it.
No real power of a positive base gives zero or a negative number, so log(0) and log(−5) are undefined in real numbers. As x approaches 0, log(x) heads towards minus infinity. The base must also be positive and not equal to 1.