ScienForge

Logarithm calculator

Compute a logarithm in any base, with natural log, base 10 and base 2 shown alongside, plus the antilog.

log base 10 of 1000
3
Natural log (ln)6.9077553
Log base 103
Log base 29.9657843
Antilog (base^x)—
e^x—

A logarithm answers a single question: what power do I need to raise this base to, in order to get this number? log₁₀(1000) = 3 because 10³ = 1000. A logarithm is the precise inverse operation of exponentiation, in the same sense that subtraction is the inverse of addition and division is the inverse of multiplication — every exponential statement has a corresponding logarithmic one, and moving between the two forms is what most logarithm problems actually require.

log_b(x) = y  ⟺  b^y = x log_b(x) = ln(x) / ln(b)

The three bases that actually show up in practice

Base 10 appears wherever quantities span many orders of magnitude and a compressed scale is useful — pH, the decibel scale, the Richter scale for earthquake magnitude, and star brightness (apparent magnitude) all use base-10 logarithms specifically because they let enormous ranges of underlying physical quantity be expressed in small, comparable numbers.

Base e (Euler’s number, approximately 2.71828) is the natural choice throughout calculus and continuous growth models, because e is defined precisely so that the derivative of eˣ is itself — no other base gives this clean self-referential property. Compound interest, radioactive decay, population growth models and the normal distribution all involve base e somewhere underneath, even when the visible formula does not show it explicitly.

Base 2 belongs to computer science, where it counts bits — the number of times you can halve a search space, the depth of a balanced binary tree, or the number of possible values representable in a given number of binary digits. log₂(1024) = 10 is why 1024 bytes forms a kilobyte in binary-based measurement, and why doubling a computer’s memory or storage adds exactly one to its log₂ value.

The algebraic properties that make logarithms genuinely useful

log(ab) = log a + log b log(a/b) = log a − log b log(aⁿ) = n · log a

These three identities are the entire reason logarithms were invented and used for centuries before electronic calculators existed: they convert multiplication into addition, division into subtraction, and exponentiation into multiplication — each one operation simpler than the one it replaces. Slide rules, mechanical devices used for calculation from the 17th century until pocket calculators arrived in the 1970s, worked by physically adding lengths that represented logarithms, turning otherwise laborious multiplication into a simple physical measurement. The same identities are why logarithmic graph axes make exponential data readable at a glance: a quantity that doubles at a constant rate traces a perfectly straight line on a log-scaled axis, whereas on an ordinary linear axis it curves upward so steeply that early, smaller values become impossible to read against later, much larger ones.

Changing base is just a division away

Most calculators and programming languages provide only natural log and base-10 log as built-in functions, but any base can be reached by dividing one logarithm by another: log₇(50) is calculated as ln(50)/ln(7), or equally validly as log₁₀(50)/log₁₀(7) — the two give an identical answer. It does not matter which of the two common bases you pick for this calculation, as long as you use the same one in both the numerator and the denominator; mixing ln in one and log₁₀ in the other produces a meaningless result.

What the antilog undoes

The antilog is simply the reverse operation: given a logarithm value and a base, it reconstructs the original number by raising the base to that power. If log₁₀(x) = 3, the antilog recovers x = 10³ = 1000. This is genuinely useful when working backward from a measurement already expressed on a logarithmic scale — for instance, converting a pH reading back into an actual hydrogen ion concentration, or converting a decibel figure back into a raw power or amplitude ratio.

Related calculators