📐Logarithm Calculator

Calculate log, ln, and log10 with inverse from base and argument

How to Use the Logarithm Calculator

This calculator supports four modes: custom base log (log_b), natural log (ln), common log (log10), and antilog. Select a mode, enter the base and argument, and the result appears instantly.

Key Formulas

log_b(x) = y means b^y = x (b > 0, b ≠ 1, x > 0)

Natural log: ln(x) = log_e(x), e ≈ 2.71828

Common log: log10(x) = log_10(x)

Change of base: log_b(x) = ln(x) / ln(b)

Common Applications

log₂ is used in computer science for bit counting and binary search analysis. pH = −log₁₀[H⁺] in chemistry. Decibels = 10·log₁₀(P/P₀) in acoustics.

FAQ

Why can't I calculate log of 0 or negative numbers?

The argument of a logarithm must be strictly positive. Zero and negative numbers are undefined in real-number logarithms.

When does the result come out as a decimal?

When the argument is not a perfect power of the base, the result is irrational. For example, log₂(5) ≈ 2.3219. The calculator displays up to 10 decimal places.