Log Calculator

Solve logb(x) = y for whichever of base, argument, or result you don't already know.

What a logarithm answers

logb(x) = y asks: "what power do I need to raise b to, to get x?" It's the inverse of exponentiation — where an exponent tells you what a repeated multiplication produces, a logarithm tells you how many multiplications it took to get there.

The three common bases

Base 10 (written just "log") is common in science and engineering. Base e (written "ln", the natural logarithm) shows up throughout calculus and physics. Base 2 (the binary logarithm) is standard in computer science. This calculator accepts any positive base, including "e" typed directly.

Logarithms are only defined for positive arguments, and the base must be positive and not equal to 1 — logb(0) is undefined, and the log of a negative number requires complex numbers.

Worked example: check the result

log₁₀(1000) = 3 because 10³ = 1000. Logarithms reverse exponentiation when the base is positive and not equal to 1.

Related math calculators

For direct powers, see the Exponent Calculator. For scientific notation, use the Scientific Notation Calculator.

A worked example

The natural logarithm of 100, written ln(100) or logₑ(100), is 4.60517019, because e raised to 4.60517019 gives 100. With a base of 10, log₁₀(1000) = 3, and with a base of 2, log₂(8) = 3. Enter any two of the base, the argument and the result, and the calculator finds the third.

Tips for logarithms

A logarithm is only defined for a positive argument and a positive base that is not 1. The log of 1 is always 0, and the log of the base itself is always 1. To switch between bases, use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b). Logarithms turn multiplication into addition, which is why they appear in decibels, pH, earthquake magnitude and compound growth.

You might also need: Root Calculator, Quadratic Formula Calculator, Exponent Calculator, Scientific Calculator.

What next? Logarithms and scientific notation are close relatives: the exponent in 3.2 × 105 is roughly the base-10 log. The Scientific Notation Calculator converts between them, and the Rounding Calculator trims long answers.

Common questions

Why is logb(b) always 1?

Because raising b to the power 1 gives you b back — by definition, that's exactly what the logarithm is asking.

How do I convert between log bases?

Use the change-of-base rule: logb(x) = logk(x) / logk(b) for any base k. This is exactly how this calculator computes logs in any base internally, using natural log (ln) as the common base k.

More Math Calculators

Pick another tool to jump straight to it.