Saved

Press the star next to a tool's name to save it.

All my tools

Logarithm Calculator

Use this logarithm calculator to find the log, ln or log 2 of a number, the antilog, a change of base, and to expand or condense logarithms with the log rules.

Restored your last values ·

Choose a job. For a logarithm, enter the number and, if you like, a base; an empty base means 10. For an antilog, enter the logarithm and the base. For a change of base, enter the number and the new base. To expand, enter x, y and z with their powers. To condense, enter up to three terms, each as a coefficient and a number.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want, fill in the boxes, then press Calculate.

See full result

A logarithm calculator finds the logarithm of a number in any base, including the common logarithm (base 10), the natural logarithm (base e) and the binary logarithm (base 2). It also finds the antilog, changes the base, and expands or condenses logarithms with the product, quotient and power rules. Choose the job, fill in the boxes and press the button. The rules follow the Wikipedia pages on the logarithm, the natural logarithm, the binary logarithm and the common logarithm, and the work is done in your browser. It is a log, ln, log 2, antilog and change of base calculator in one.

How to use the logarithm calculator

  1. Choose what you want: a logarithm, ln, log 2, an antilog, a change of base, or an expansion or condensing.
  2. Enter the number x. For another base, enter it in the base box.
  3. For an antilog, enter the logarithm. For an expansion or a condensed sum, fill in the terms.
  4. Press Calculate.

What a logarithm is

The Wikipedia page on the logarithm defines the logarithm of x to the base b as the exponent y for which b raised to the power y equals x. For example, the logarithm of 1,000 to base 10 is 3, because 10 to the power 3 is 1,000, and the logarithm of 8 to base 2 is 3, because 2 cubed is 8. The base must be positive and not 1, and x must be positive. The common logarithm uses base 10, the natural logarithm uses the number e, about 2.71828, and the binary logarithm uses base 2. The calculator shows all three for your number, so you can compare them.

The antilog

The antilogarithm undoes a logarithm. If y is the logarithm of x to base b, then x is b raised to the power y. For base 10, the antilog of 2.5 is 10 to the power 2.5, which is about 316.228. Enter the logarithm in the antilog option, and the base if it is not 10. The calculator shows the result as a power, so you can see what was raised to what.

Changing the base

Most calculators have only the common and natural logarithms, but you can find a logarithm to any base with the change of base rule. The logarithm of x to base b is the logarithm of x divided by the logarithm of b, taken in any one base, such as 10 or e. The page on the binary logarithm gives the example of base 2: log₂ n is ln n divided by ln 2, and it is about 3.321928 times the common logarithm of n. For log₂ 8 you get 0.90309 divided by 0.30103, which is 3. The change of base option shows both routes, with ln and with log₁₀, and they agree.

The product, quotient and power rules

The page states three rules that make logarithms useful. The logarithm of a product is the sum of the logarithms, the logarithm of a quotient is the difference, and the logarithm of a power is the exponent times the logarithm. In symbols: log(xy) = log x + log y, log(x/y) = log x − log y, and log(xᵖ) = p log x. These rules turn multiplication into addition, which is why logarithms were used for hand calculation before computers.

Expanding and condensing logarithms

To expand a logarithm, use the rules from the outside in. The logarithm of x squared times y divided by z becomes 2 log x + log y − log z. Enter x = 2 with power 2, y = 5 and z = 10 to see this: the expansion is 2 log 2 + log 5 − log 10, and its value is 0.30103, which equals the logarithm of the value inside, 4 times 5 divided by 10, which is 2. To condense, go the other way: a sum with coefficients becomes one logarithm. The terms 2 log 3 and −1 log 6 condense to log(3² ÷ 6), which is the logarithm of 1.5. The calculator gives the condensed form, the value inside and the total.

Useful values

The page gives many examples: log₂ 16 is 4, log₃ 243 is 5, the logarithm of 150 to base 10 is about 2.176, and ln 10 is about 2.30258509. The logarithm of 1 is 0 for every base, and the logarithm of the base itself is 1. The number of digits of a whole number is the whole part of its common logarithm plus 1, so 5,986 has log 3.78 and four digits.

Where logarithms are used

Logarithms measure things that span huge ranges. The decibel scale for sound, the pH scale for acidity and the Richter scale for earthquakes are all logarithmic, so each step up stands for a multiplication, not an addition. In computing, the binary logarithm tells you how many bits a number needs, which is the whole part of log₂ n plus 1, and how many times a list can be halved. In music, the interval between two notes in cents is 1,200 times the binary logarithm of their frequency ratio. An octave, a doubling of frequency, is exactly 1,200 cents.

Common mistakes

  • Taking the logarithm of zero or a negative number. It is not defined.
  • Using a base of 1. The power of 1 is always 1.
  • Confusing log and ln. Log is usually base 10, and ln is base e.
  • Splitting a sum. The logarithm of x + y is not log x + log y.
  • Forgetting the coefficient when condensing. A coefficient becomes a power.

What next

Use this often? Add Logarithm to your Home screen.

Frequently asked questions

What is a logarithm calculator?

A tool that finds the exponent to which a base must be raised to give a number, in base 10, e, 2 or any other base, and applies the log rules.

What is the antilog?

The inverse of a logarithm: if log_b x = y then x = b^y. The antilog of 2.5 in base 10 is about 316.228.

How does the change of base rule work?

log_b x = ln x ÷ ln b, or equally log₁₀ x ÷ log₁₀ b. For example log₂ 8 = 0.90309 ÷ 0.30103 = 3.

How do you expand a logarithm?

Use log(xy) = log x + log y, log(x/y) = log x − log y and log(xᵖ) = p log x. For instance log(x²y/z) = 2 log x + log y − log z.

How do you condense logarithms?

Turn coefficients into powers, then add logs as products and subtract them as quotients. 2 log 3 − log 6 = log(9 ÷ 6) = log 1.5.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools