How to use the Logarithm Calculator
- 1
Enter the number
Type any positive number x — decimals and scientific values work.
- 2
Choose a base
Use 10, e or 2, or enter any other positive base except 1.
- 3
Read every log at once
log₁₀ x, ln x and log₂ x are shown together with the log in your chosen base.
- 4
Use the antilog
The antilog raises the base to the power of your number — the reverse of a logarithm.
Features
Common log
log₁₀, used in pH, decibels and the Richter scale.
Natural log
ln, base e ≈ 2.71828, used in growth and decay.
Binary log
log₂, used in computing and information theory.
Any base
log_b x = ln x ÷ ln b, for any base you choose.
Antilog
Turns a logarithm back into the original number.
High precision
Results to many decimal places.
Who uses it — and for what
Students
Check homework for logs, exponents and equations.
Chemistry
pH and pOH from ion concentrations.
Sound and electronics
Decibel gains and signal ratios.
Finance
How long money takes to double or grow.
What a logarithm means
The logarithm answers “what power do I raise the base to, to get this number?”. log₁₀ 1000 = 3 because 10³ = 1000, and log₂ 8 = 3 because 2³ = 8. The natural log ln uses base e ≈ 2.71828 and appears throughout calculus, finance and science. The antilog reverses it: the antilog of 3 in base 10 is 10³ = 1000. Logarithms are only defined for positive numbers and positive bases other than 1.
Change of base and log rules
Any base can be calculated from natural logs: log_b(x) = ln x ÷ ln b — that’s how the custom base works. Useful rules: log(ab) = log a + log b, log(a/b) = log a − log b and log(aⁿ) = n·log a. Logs turn multiplication into addition, which is why they are used in the pH scale, decibels, the Richter scale, star brightness, algorithm complexity (log₂ n) and compound-interest time calculations.
Every result is calculated in your browser the moment you type, so you can change a number and see the effect instantly — ideal for checking homework, worksheets and exam practice. Results are shown to a sensible number of decimal places; very large or tiny values switch to scientific notation.
Solving exponential equations with logs
Logs undo powers, so they solve equations where the unknown is in the exponent. To solve 5ˣ = 200, take logs of both sides: x · log 5 = log 200, so x = log 200 ÷ log 5 = 2.3010 ÷ 0.6990 = 3.29. In this calculator, enter 200 as the number and 5 as the base to get the same answer directly.
The same method answers practical questions: how many years until a population of 1 million grows to 2 million at 3% a year (ln 2 ÷ ln 1.03 ≈ 23.4 years), or how many halvings bring a 1 GB file to under 1 MB (log₂ 1024 = 10).
Logarithmic scales in everyday life
| Scale | Formula | What one step means |
|---|---|---|
| pH | −log₁₀[H⁺] | pH 3 is 10× more acidic than pH 4 |
| Decibels | 10 · log₁₀(P/P₀) | +10 dB = 10× the power; +3 dB ≈ double |
| Richter / moment magnitude | log₁₀ of amplitude | +1 = 10× the shaking, ~32× the energy |
| Star magnitude | −2.5 · log₁₀(brightness) | 5 magnitudes = 100× brightness |
A 1,000-times power increase is 10 · log₁₀ 1000 = 30 dB. Logarithmic scales compress huge ranges into small, readable numbers.
Common mistakes
- log(a + b) is not log a + log b. The product rule only applies to multiplication: log(ab) = log a + log b.
- log 0 does not exist. As x approaches 0 the log goes to minus infinity.
- Numbers between 0 and 1 have negative logs. log₁₀ 0.005 = −2.30.
- “log” means different bases in different places. Calculators and school maths usually mean base 10; many programming languages and higher maths use log for the natural log.
Worked examples
log₁₀ 2
0.30103. So 2¹⁰ = 1024 has about 10 × 0.301 = 3.01 digits after the first — it is just over 10³.
ln 10
2.302585. Divide any natural log by this to get the common log: log₁₀ x = ln x ÷ 2.302585.
log₃ 81
Set the base to 3: the answer is 4, because 3⁴ = 81.
pH of a solution
[H⁺] = 3.2 × 10⁻⁴ mol/L. pH = −log₁₀(0.00032) = 3.49 — acidic, about the level of orange juice.
How long until money doubles at 8%?
Years = ln 2 ÷ ln 1.08 = 0.6931 ÷ 0.07696 = 9.0 years. The “rule of 72” (72 ÷ 8 = 9) is a shortcut for this logarithm.
Pro tips
- If a log comes out negative, your number is between 0 and 1.
- log₂ of a file size in bytes tells you how many bits are needed to address it.
- To find the number of digits of a whole number n, take ⌊log₁₀ n⌋ + 1.
Glossary
- Base
- The number being raised to a power; log₁₀ has base 10.
- Natural logarithm
- Log with base e ≈ 2.71828, written ln.
- Antilogarithm
- The inverse of a log: base raised to the power of the value.
- Change of base
- log_b x = log_k x ÷ log_k b for any base k.
Frequently asked questions
What is log 100?
2, because 10² = 100.
What is ln 1?
0, because e⁰ = 1.
Can you take the log of a negative number?
Not with real numbers — the logarithm is only defined for positive values.
How do I calculate log base 2 on a normal calculator?
Divide log x by log 2 — for example log 64 ÷ log 2 = 6.
What is the antilog of 2.5?
In base 10 it is 10^2.5 ≈ 316.23.
Why is ln used in finance and science?
Continuous growth and decay follow powers of e, so the natural log gives the simplest formulas.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Math & Science (42 tools)