Log Calculator — log, ln, log₂ & Antilog
Logs turn multiplication into addition — that is their whole job
Before electronic calculators, logarithms were how engineers multiplied: since log(a × b) = log(a) + log(b), a hard multiplication becomes an easy addition of two looked-up values, and slide rules — log scales printed on wood — ran the world's calculations for three centuries. The laws all mirror the exponent laws: the log of a product is the sum of the logs; of a quotient, the difference; of a power, the exponent times the log (log(xⁿ) = n · log x), which is the law that pulls exponents down to earth and makes exponential equations solvable. And because every log is every other log at a different scale — log_b(x) = ln(x) ÷ ln(b) — the choice of base is a choice of units, not of substance: base 10 for human scales, base e for growth and calculus, base 2 for computing (log₂(1024) = 10 bits of information).
The deeper reason logs survive the calculator age is compression. Quantities that range over many orders of magnitude — sound intensity, earthquake energy, acidity, star brightness — are unmanageable raw and readable as logs. The scales are worth memorising with their steps: pH is −log₁₀ of hydrogen-ion concentration, so one pH unit is a tenfold change in acidity; Richter magnitude is a log of shaking amplitude (×10 per unit) and of energy (×~31.6 per unit), which is why a magnitude 7 is not "a bit more" than a 6; decibels are 10 × log₁₀ of an intensity ratio, so +10 dB is ten times the intensity and +3 dB is about double. Whenever a scale's steps feel suspiciously equal while the world jumps wildly, a logarithm is underneath.
Two honest boundaries. Logs are defined only for positive numbers — no power of 10 reaches 0 or crosses into negatives — and this calculator says so rather than printing an error code. And the notation is a genuine trap: in school and engineering "log" means base 10, in mathematics and programming it usually means base e, and in computing base 2. This page labels every result with its base explicitly; adopt the same habit and the ambiguity can never bite.
Solving for the exponent — the everyday use
The most practical log calculation asks how long growth takes. Money at 7% a year doubles when 1.07t = 2; taking logs of both sides pulls the unknown down: t = ln(2) ÷ ln(1.07) = 0.6931 ÷ 0.0677 ≈ 10.24 years — the exact figure behind the rule of 72's estimate of 10.3. The same shape answers "how many doublings to a million?" (log₂(1,000,000) ≈ 19.9, so twenty), "when does the loan balance halve?" and "how long until the bacteria fill the dish?" Any question of the form "how many steps of multiplying until we reach X" is a logarithm wearing a disguise.
Worked examples
log₁₀(1000) = 3. Three factors of ten. The check: 10³ = 1000 ✓. Each additional zero adds exactly 1 — log₁₀(1,000,000) = 6.
ln(100) ≈ 4.6052. The natural log: e4.6052 ≈ 100 ✓. A quantity growing continuously at 100% for 4.6 time units multiplies by 100 — the reason ln runs all growth maths.
log₂(32) = 5. Five doublings from 1 reach 32 — equivalently, 32 values fit in 5 bits. Change of base by hand: ln(32) ÷ ln(2) = 3.4657 ÷ 0.6931 = 5.
The log laws at a glance
| Law | Statement | Example (base 10) |
|---|---|---|
| Product | log(a × b) = log a + log b | log(100 × 1000) = 2 + 3 = 5 |
| Quotient | log(a ÷ b) = log a − log b | log(1000 ÷ 100) = 3 − 2 = 1 |
| Power | log(xⁿ) = n × log x | log(100²) = 2 × 2 = 4 |
| Identity | log_b(b) = 1, log_b(1) = 0 | log₁₀(10) = 1, log₁₀(1) = 0 |
| Change of base | log_b(x) = ln(x) ÷ ln(b) | log₂(32) = 5 via ln |
Frequently asked questions
What is log base 10 of 1000?
3 — because 10³ = 1000. A logarithm is simply the exponent you must raise the base to in order to get the number. log₁₀ of 100 is 2, of 1 is 0, and of 0.1 is −1: every factor of ten moves the log by exactly one.
What is the difference between log and ln?
The base. "log" without a subscript usually means base 10 (the common logarithm) in everyday and engineering use; "ln" always means base e ≈ 2.71828 (the natural logarithm), the one that appears in growth, decay and calculus. On many calculators and in programming, "log" means ln — check which convention your context uses before trusting a value.
How do I calculate a log in a base my calculator does not have?
Change of base: log_b(x) = ln(x) ÷ ln(b) — any base you do have will do. For log₂(32): ln(32) ÷ ln(2) = 3.4657 ÷ 0.6931 = 5, correctly, since 2⁵ = 32. This calculator takes a custom base directly, but the identity is worth knowing because it proves all logarithms are the same function at different scales.
What is an antilog?
The reverse operation: the antilog of y in base b is by. If log₁₀(x) = 3 then the antilog of 3 is 10³ = 1000. Antilog undoes log exactly as raising to a power undoes taking a root — indeed antilog in base b is simply the exponent calculator with base b.
Why is there no logarithm of 0 or of a negative number?
Because no power of a positive base can reach them: 10y is positive for every real y, shrinking towards 0 as y → −∞ but never arriving. So log(0) is undefined (it "would be" −∞) and logs of negatives live only in complex numbers. A calculator error here usually means the input, not the maths, went wrong.
Related tools
Laws and examples last verified: 23 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.