Math · Everyday

Logarithm Calculator

Calculate a logarithm in any base, plus the natural and common logarithms.

Live resultFormula shownStep-by-stepNo sign-up
Inputs

Logarithm Calculator

Live
Updates as you type. Nothing leaves your browser.
ResultLive
Logarithm—
Explain my calculation

Each substitution is shown so you can check the arithmetic.

Enter values to see the step-by-step working.

Logarithm formula

Formula
logᵦ(x) = ln(x) ÷ ln(b)

The live calculator applies this equation with full precision and rounds only for display.

What the variables mean

x = the number; b = the base, with x > 0 and b > 0, b ≠ 1.

Worked example

Example

log₁₀(1000) = 3 because 10³ = 1000. The natural log is 6.9078.

How to interpret the result

A logarithm answers the question “what exponent produces this number?”. Base 10 is common in science and engineering, base e in calculus, and base 2 in computing.

Common mistakes

  • Rounding too early is the most common math error. Keep full precision during intermediate steps and round only the final answer. Also check the order of operations and that all quantities use the same unit.

Frequently asked questions

Why is the logarithm of zero undefined?
No finite exponent makes a positive base equal zero. The logarithm approaches negative infinity as the number approaches zero from above.
What formula does this calculator use?
The calculator uses logᵦ(x) = ln(x) ÷ ln(b). The variables and units are listed on this page, and the live result shows the substituted working.
Are the results rounded?
Yes. Intermediate calculations use full precision, and the displayed result is rounded for readability. Small differences in the last digit can appear depending on the inputs.
Is this calculator free to use?
Yes. FormulasWorld calculators are free, require no account, and run in your browser. The formula and method are shown so you can verify the result independently.
Sources and standards

The formula, classification ranges and assumptions on this page follow the definitions and guidance of the bodies below.

How these are used: sources and standards.

Reviewed November 2026 · This tool is for education and estimation. See the disclaimer and methodology.

FormulasWorld

Need the theory behind logarithm?

Read the formula entry for the derivation, units and related equations.