331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Log Calculator

A logarithm answers a simple question: to what power must the base be raised to get this number? log₁₀(1000) = 3 because 10³ = 1000, and log₂(1024) = 10 because 2¹⁰ = 1024. Logarithms turn multiplication into addition, which is why they appear in everything from pH and decibels to compound interest and computer science.

Find log base 10, the natural log (ln, base e), log base 2, or a logarithm with any base you choose — or solve log_b(x) = y for x. Every answer comes with a check, so you can see the base raised to the answer giving your number back.

Pick the logarithm you need, or solve an equation of the form log_b(x) = y for x.

The number inside the logarithm. Must be greater than 0.

Result

Save to Pinterest
Note: results are rounded to 10 significant digits, so log5(125) shows exactly as 3 — not 3.0000000000000004, which is what raw floating-point arithmetic produces. Logarithms are only defined for positive numbers, and the base must be positive and not equal to 1.

How It Works

The logarithm logb(x) is the exponent y such that by = x. The three common bases have their own names: log₁₀ (base 10, the common logarithm), ln (base e ≈ 2.718281828, the natural logarithm) and log₂ (base 2, the binary logarithm used in computing). Logarithms also solve half-life problems: the time for a quantity to halve is found by taking logs.

For any other base, the calculator uses the change-of-base formula: logb(x) = ln(x) / ln(b). That is how log5(125) is found — ln(125) ÷ ln(5) = 3, because 53 = 125. Floating-point arithmetic actually gives 3.0000000000000004 for that division, so the result is rounded to 10 significant digits and shown as the exact 3.

Solving for x is the reverse: logb(x) = y means x = by. So log2(x) = 5 gives x = 25 = 32. The check row on every answer confirms it — the base raised to the answer returns the number you started with. Roots answer the opposite question — which number, raised to a power, gives this value.

Worked Example

log₁₀(1000) = 3, because 103 = 1000. ln(e) = 1, because e1 = e. log₂(1024) = 10, because 210 = 1024. log₅(125) = 3, because 53 = 125 — shown as exactly 3, not 3.0000000000000004.

Solving for x: log2(x) = 5 means x = 25 = 32. And log10(x) = 2 means x = 102 = 100.

Assumptions

Sources: No external data is used on this page — every figure is calculated from the values you enter, using the standard logarithm definitions and the change-of-base formula. Last reviewed: 15 November 2026.

Built and tested by SumKitTool — see how we check our numbers.

How to Use This Calculator

Pick the mode you need. For a logarithm, enter the value x (and the base, in any-base mode) — the answer appears immediately, with the equation and a check in the table below. For solving, enter the base b and the result y, and the calculator finds x = by.

Try the worked examples: log₁₀(1000) should give 3, ln(e) should give 1, log₂(1024) should give 10, and log₅(125) should give exactly 3. In solve mode, base 2 with y = 5 gives x = 32.

Tips and Practical Advice

Use the check row to build intuition: the answer is always the power the base needs. If log₂(1024) = 10 feels surprising, the check shows 210 = 1024 — ten doublings from 1.

Remember the three rules that make logarithms useful: log(a × b) = log(a) + log(b), log(a ÷ b) = log(a) − log(b), and log(an) = n × log(a). They are why logarithms turn hard multiplication into easy addition — and why log scales (pH, decibels, Richter) compress huge ranges into small numbers.

Watch out for the base. A bare “log” usually means base 10 in school and base e in higher maths and programming — if an answer looks wrong, the base is the first thing to check. This calculator labels the base on every answer so there is no ambiguity.

Frequently Asked Questions

What is a logarithm, in simple terms?

A logarithm is an exponent in disguise. log₁₀(1000) = 3 asks '10 to what power gives 1000?' — and the answer is 3, because 10³ = 1000. In general, log_b(x) = y means exactly the same thing as b^y = x.

What is the difference between log, ln and log₂?

Only the base changes. log (usually log₁₀) uses base 10, ln uses base e (≈ 2.718281828, Euler's number), and log₂ uses base 2. So log₁₀(1000) = 3, ln(e) = 1, and log₂(1024) = 10. This calculator labels the base on every answer so there is no confusion.

Why does log₅(125) show 3 and not 3.0000000000000004?

Because raw floating-point arithmetic computes ln(125) ÷ ln(5) as 3.0000000000000004 — a tiny rounding error in the last digits. This calculator rounds every result to 10 significant digits, which removes that noise and shows the exact answer, 3.

How do I solve log_b(x) = y for x?

Use the definition of a logarithm: log_b(x) = y means x = b^y. So log₂(x) = 5 gives x = 2⁵ = 32, and log₁₀(x) = 2 gives x = 10² = 100. Pick 'Solve for x' mode, enter the base and y, and the calculator does the power for you.

Last updated: