Explore all tools
FREE ONLINE TOOLNo visitor account required

Log Calculator

Logarithms in any base, plus ln, log₁₀ and log₂ side by side — with a check line and a chart showing how the base changes the answer.

—

log of the value in your base

Natural log (ln)—
log₁₀—
log₂—
Check—

Note: Only positive values have real logarithms, and the base must be positive and different from 1.

Report a problem with this tool

Logarithms: The Exponent, Recovered

logb(x) asks "b to what power gives x?" — so log10(1000) = 3 because 103 = 1000. This calculator takes any value and any base, and also reports the three bases science actually uses: base 10 (orders of magnitude, pH, decibels), base e — the natural log, ln (growth and decay), and base 2 (computer science, where each unit is one doubling or one bit). The bar chart puts the three side by side so the base-dependence is obvious: the same number has a small log in a big base and a big log in a small base.

Worked Example

For 1000: log10 = 3 exactly, ln(1000) ≈ 6.9078, and log2(1000) ≈ 9.9658 — just under 10, because 210 = 1024. The three are locked together by the change-of-base rule, logb(x) = ln(x) / ln(b), which is also how the calculator evaluates an unusual base like 7: divide the natural logs.

The Rules That Do the Heavy Lifting

Three identities solve most log problems: logs turn multiplication into addition, log(xy) = log x + log y; powers into multiplication, log(xn) = n log x; and division into subtraction. Two boundaries matter: log(1) = 0 in every base, and there is no real log of zero or a negative number — the calculator will say so rather than guess. Bases must be positive and not equal to 1.

Frequently Asked Questions

What is a logarithm in plain words?

The power you must raise the base to in order to get the value. Log base 10 of 1000 is 3 because 10 cubed is 1000.

What is the difference between log and ln?

ln is the logarithm with base e (about 2.718), used throughout science and growth maths. Plain log usually means base 10 on calculators and base e in higher mathematics — this page shows both so there is no guessing.

How do I compute a log in an unusual base?

Change of base: log base b of x equals ln(x) / ln(b). Enter any base in this calculator and it applies that rule.

Why is there no log of zero or a negative number?

No power of a positive base ever reaches zero or goes negative, so the question has no real answer. The calculator says so instead of guessing.