Log Calculator

log_b(x) is the power you raise b to in order to get x. Since 10³ = 1,000, log₁₀(1,000) = 3, and since 2³ = 8, log₂(8) = 3. For any base, log_b(x) = ln(x) ÷ ln(b).

Inputs

Use 10 for the common log, 2.71828 for the natural log, 2 for the binary log.
Result
–

Results are calculated in your browser for convenience. Double-check important figures before relying on them.

What a logarithm is

A logarithm answers the question “what exponent do I need?” If bʸ = x, then log_b(x) = y. Logarithms turn multiplication into addition: log(a × b) = log a + log b, and powers into multiplication: log(aⁿ) = n × log a. That is why they were used for slide rules and why they appear wherever quantities span huge ranges.

log_b(x) = ln(x) ÷ ln(b)

Common logarithms

NameBaseUsed for
Common log (log)10Decibels, pH, earthquake magnitudes
Natural log (ln)e ≈ 2.71828Growth and decay, calculus, continuous compounding
Binary log (lg)2Computing, information, halving times

For example ln(1.08) = 0.07696, which is the continuous growth rate behind an 8% yearly return.

Rules and uses

  • log_b(1) = 0 and log_b(b) = 1 for every valid base.
  • log_b(x ÷ y) = log_b x − log_b y.
  • Logarithms of zero or negative numbers do not exist as real numbers.
  • To undo a logarithm take the antilog: b raised to the result.

Use it with the exponent calculator and see doubling time questions in the compound interest calculator.

Complete guide to the Log Calculator

How to use the Log Calculator, step by step

  1. Enter the number.
  2. Enter the base.
  3. Read the logarithm and the antilog.
  4. Check with base to the power result.

Common mistakes to avoid

  • Taking the log of zero or a negative.
  • Using base 1.
  • Confusing log and ln.

Key terms explained

Logarithm
The exponent needed to reach a number.
Natural log
The logarithm with base e.
Antilog
The inverse of a logarithm.
Base
The number being raised to a power.

Frequently asked questions

What is the difference between log and ln?

Log usually means base 10 and ln means base e, the natural logarithm. Some computing texts use log for base 2, so check the context.

Why can’t I take the log of a negative number?

No real power of a positive base gives a negative or zero result, so the logarithm is undefined for real numbers. Complex logarithms exist but are beyond this tool.

How do I calculate log base 2 on a calculator?

Divide ln(x) by ln(2), or log(x) by log(2). The change-of-base rule works for any base.

What is an antilogarithm?

It is the inverse of the logarithm. If log_b(x) = y, the antilog of y is b^y = x.

What is the value of e?

e is about 2.718281828, the base of natural logarithms. It is the limit of (1 + 1/n)ⁿ as n grows without bound.

Where are logarithms used in everyday life?

Decibel sound levels, the pH scale, earthquake magnitudes, compound growth and half-life problems all use logarithms.

How do logarithms help solve exponential equations?

Take the logarithm of both sides. To solve 1.05ⁿ = 2, write n = ln 2 ÷ ln 1.05, which is about 14.2, the number of years to double at 5%.

What is the logarithm of 1?

It is 0 for every base, because any valid base raised to the power 0 equals 1. The log of the base itself is always 1.

Related calculators

Guides worth reading