home / Math / log calculator

Log Calculator

The Log Calculator is a free online tool for logarithms in any base. A logarithm answers the question: what power do I raise this base to in order to get that number? It handles natural log, log base 10 and arbitrary bases through the change of base formula.

Modify the values and click the Calculate button to use.

Related: Exponent Calculator | Root Calculator | Half-Life Calculator

What a Logarithm Asks

A logarithm answers a single question: what power do I raise the base to in order to get this number? log₁₀(1000) = 3 because 10³ = 1000. Logarithms are the inverse of exponentiation, and every property they have follows from that.

The Three Common Bases

  • Base 10 (common log, written log) — used for decibels, pH and the Richter scale, because each unit is a tenfold change.
  • Base e (natural log, written ln) — used throughout calculus, physics and finance, because e is the base at which the rate of growth equals the value itself.
  • Base 2 (binary log) — used in computing and information theory, where each unit is a doubling.

Logarithm Rules Chart

RuleFormWhy it matters
Productlog(xy) = log(x) + log(y)Turns multiplication into addition
Quotientlog(x/y) = log(x) − log(y)Turns division into subtraction
Powerlog(xn) = n log(x)Turns exponentiation into multiplication
Base itselflogb(b) = 1Follows from b¹ = b
Onelogb(1) = 0Follows from b⁰ = 1
Change of baselogb(x) = ln(x) / ln(b)Computes any base from the two built into calculators

The first three rules are why logarithms were invented. Before electronic calculation, converting multiplication into addition through log tables and slide rules was the fastest way to compute, and it stayed that way for three centuries.

Common Values

xlog₁₀(x)ln(x)log₂(x)
1000
20.30100.69311
50.69901.60942.3219
1012.30263.3219
10024.60526.6439
1,00036.90789.9658
1,000,000613.815519.9316

Logarithmic Scales

Several familiar measurements are logarithmic, which is why the numbers behave counterintuitively:

  • Richter magnitude — each whole number is 10× the amplitude and roughly 32× the energy. A magnitude 7 releases about a thousand times the energy of a magnitude 5.
  • Decibels — every 10 dB is a tenfold increase in intensity. 90 dB is not twice 45 dB; it is more than 30,000 times the intensity.
  • pH — each unit is a tenfold change in hydrogen ion concentration. pH 4 is a hundred times more acidic than pH 6.

Frequently Asked Questions

Why is the log of a negative number undefined?

Because no real exponent applied to a positive base produces a negative result. Complex logarithms exist and are multivalued.

What is e?

About 2.71828, the base of natural growth. It arises as the limit of (1 + 1/n)n as n grows — the value continuously compounded interest converges to.

How do I compute a log in an unusual base?

Change of base: divide the natural log of the number by the natural log of the base. log₅(125) = ln(125)/ln(5) = 3.