Skip to content

Log Calculator

Enter any two of base, number and logarithm to find the third.

MathUpdated Free · No sign-up

How to use the Log Calculator

  1. Choose Solve for.
  2. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  3. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

What a logarithm is

A logarithm answers the question “what power do I need?” The statement logb(x) = y means exactly the same as by = x. So log₂(1024) = 10 because 2¹⁰ = 1,024, and log₁₀(1000) = 3 because 10³ = 1,000.

The base must be positive and not 1, and the number x must be greater than 0. No power of a positive base can give zero or a negative number, which is why logs of those values are not defined.

Common bases

Name Base Used for
Common log, log or log₁₀ 10 orders of magnitude, decibels, pH, the Richter scale
Natural log, ln e ≈ 2.71828 continuous growth and decay, calculus, finance
Binary log, log₂ 2 computing, bits, doubling times

Change of base

Most calculators only have ln and log keys. Any other base is found by dividing:

logb(x) = ln(x) ÷ ln(b)

Example: log₃(81) = ln 81 ÷ ln 3 = 4.3945 ÷ 1.0986 = 4. You can divide common logs instead of natural logs and get the same answer.

Solving for each unknown

  • The logarithm y: y = ln x ÷ ln b.
  • The number x: rewrite as a power, x = by. If log₁₀(x) = 3, then x = 1,000.
  • The base b: take the yth root, b = x1/y. If logb(81) = 4, then b = 811/4 = 3.

Log rules

  • log(xy) = log x + log y
  • log(x ÷ y) = log x − log y
  • log(xn) = n × log x
  • logb(b) = 1 and logb(1) = 0

These rules are why logarithms turn multiplication into addition. Before electronic calculators, people multiplied large numbers by adding their logs from printed tables or by sliding two log scales on a slide rule. They are also why a log scale turns steady percentage growth into a straight line on a chart.

Frequently asked questions

What is the difference between log and ln?

log usually means base 10 and ln means base e (about 2.71828). ln is the natural log used in calculus and continuous growth.

Why can't you take the log of a negative number?

A positive base raised to any real power is always positive, so no real exponent gives a negative number or zero. The log of those values is not a real number.

How do I calculate log base 2 on a regular calculator?

Divide the natural log of the number by ln 2. For example log₂(100) = ln 100 ÷ ln 2 ≈ 6.6439.

What is log of 1?

Zero, in every base, because any allowed base raised to the power 0 equals 1.