Log Calculator

Find the logarithm of a number in base 10, base e or any base you choose. This log calculator also works as a natural log (ln) calculator and an antilog calculator, and it writes out the change of base steps. Everything runs in the browser.

  • Log base 10
  • Natural log (ln)
  • Any custom base
  • Antilog
  • Stays on your device

Step by step

  1. Base 10 is the common log: log₁₀(1000) = log(1000).
  2. log(1000) = 3.
  3. Check: 10^3 = 1000.

Numbers stay on this device. Nothing is uploaded, and there is no account.

Logarithm, natural log and ln calculator in one

A logarithm is an exponent. log_b(x) = y means b^y = x. Base 10 gives the common log, written log, and base e gives the natural log, written ln. Use the base buttons for those, or type any positive base other than 1 to get a log base 2, log base 5 or anything else.

Change of base formula

Most calculators only have log and ln keys. To get another base, use log_b(x) = ln(x) / ln(b). Example: log₅(100) = ln(100) / ln(5) = 4.60517 / 1.60944 = 2.86135. The calculator shows this work for you.

Antilog

The antilog reverses a log. If log(x) = 2.5, then x = 10^2.5 = 316.2278. For a natural log, x = e^y. Choose the Antilog tab to enter a log value and a base.

Logs and exponents are inverses, so you can check any answer with the exponent calculator. Very large or very small results read better in scientific notation, which you can convert with the scientific notation calculator, or browse more tools in the Math hub.

How to use the log calculator

  1. Pick Logarithm or Antilog.
  2. Choose Base 10 (log), Base e (ln) or Base 2, or type any other base.
  3. Enter the number (it must be positive for a log) or the log value for an antilog.
  4. Read the answer, and follow the change of base steps underneath.

Frequently asked questions

What is a logarithm?

A logarithm answers the question: what power do I raise the base to in order to get this number? If 10³ = 1,000, then log₁₀(1,000) = 3. In general, log_b(x) = y means b^y = x. The number x must be positive, and the base b must be positive and not equal to 1.

What is the difference between log and ln?

log usually means the common logarithm, base 10, so log(100) = 2. ln is the natural logarithm, base e (about 2.71828), so ln(e) = 1. This log calculator handles both: pick Base 10 for log, Base e for ln, or type any other base.

How do I calculate a log with a different base?

Use the change of base formula: log_b(x) = ln(x) / ln(b), or equivalently log(x) / log(b). For log₂(8), ln(8) = 2.0794 and ln(2) = 0.6931, so 2.0794 / 0.6931 = 3. The calculator writes out each of these steps for any base.

How do I find the natural log of a number?

Choose Base e (or type e as the base) and enter the number. For example, ln(10) = 2.302585. A natural log calculator gives the power you would raise e to in order to get your number, so e^2.302585 ≈ 10.

What is an antilog and how do I calculate it?

The antilog (inverse log) undoes a logarithm: if log_b(x) = y, then x = b^y. The antilog of 3 in base 10 is 10³ = 1,000, and the antilog of 1 in base e is e¹ ≈ 2.71828. Switch to the Antilog tab, enter the log value and the base, and the calculator gives b^y.

Why can't I take the log of zero or a negative number?

No power of a positive base can ever equal 0 or a negative number, so the real logarithm is undefined for x ≤ 0. As x gets closer to 0, log(x) heads toward negative infinity. The calculator tells you when the number must be positive.

What are the basic log rules?

Product rule: log(xy) = log(x) + log(y). Quotient rule: log(x/y) = log(x) − log(y). Power rule: log(x^n) = n × log(x). Also log_b(1) = 0 and log_b(b) = 1. These rules work in every base, which is why change of base works with either log or ln.

Is my information saved or uploaded?

No. The log calculator runs entirely in your browser. Numbers are not sent to a server or stored, and there is no account.