Logarithm Calculator

ALGEBRA
log₁₀(x)
Natural log, ln(x)
Common log, log₁₀(x)
Binary log, log₂(x)
Check: base ^ result

The logarithm: the exponent in reverse

A logarithm answers the question what power do I raise the base to in order to get this number. This calculator finds the log of any positive number in any base, and also reports the three you meet most: natural (base e), common (base 10), and binary (base 2).

How it is computed

For any base, log base b of x = ln(x) / ln(b) — the change-of-base rule. That is how a calculator finds a base-7 or base-3 log from natural logs it already knows. The result is the exponent that turns the base back into x, which the check row confirms.

The three common bases

NotationBaseUsed for
lne (2.718…)growth, calculus
log10scientific notation, pH, decibels
lg or log₂2computing, information

Related math tools

To go the other way — raise a base to a power — use the exponent calculator.

Worked example

log base 10 of 1000 asks 10 to what power is 1000. Since 10 cubed is 1000, the answer is 3.

FAQ

Why must the number be positive?

No real power of a positive base ever produces zero or a negative number, so the logarithm of zero or a negative is undefined in the real numbers.

What bases are allowed?

Any positive base except 1. Base 1 fails because 1 to any power is always 1, so it can never reach another value.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.