Logarithm Calculator - ln, log₁₀, log₂, Custom Base

  • Natural Log — ln(x), base e
  • Common Log — log₁₀(x)
  • Binary Log — log₂(x)
  • Custom Base — log_b(x)
Results
—
—

Calculate logarithms with any base instantly: natural log (ln), common log (log₁₀), binary log (log₂), or a custom base of your choice. The calculator verifies the result by exponentiating it back and shows the value in other common bases. Useful for algebra, science, finance, and computer science.

Formula
log_b(x) = ln(x) ÷ ln(b); ln is the natural logarithm with base e ≈ 2.71828

FAQ

What is a logarithm?
A logarithm answers the question: to what power must the base be raised to produce the given number? For example, log₂(8) = 3 because 2³ = 8. Logarithms are the inverse of exponentiation.
When is the result undefined?
Logarithms are only defined for positive numbers. The input x must be greater than 0, and a custom base must be positive and not equal to 1. There is no log of zero or a negative number among real numbers.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. About MateCalc.

Related Calculators