Skip to content
CalculatPage

Logarithm Calculator

Find the power to which a base must be raised to get your number.

Updated November 2026 · How we build calculators

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Logarithm Calculator works

The change-of-base rule gives log_b(x) = ln(x) ÷ ln(b), which works for any base.

Formula used

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

log_b(x) = y ⇔ bʸ = x

Step-by-step example

Using the default values in the calculator above:

  1. Number (x): 1,000
  2. Base: 10 (common log)

The calculator then applies the formula above and returns:

  • log base 10 of 1,000: 3
  • ln(x): 6.9077553
  • log₁₀(x): 3
  • log₂(x): 9.9657843

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Number (x)”
Number (x)log base 10 of 1,000
5002.69897000434
7502.87506126339
1,000 (default)3
1,5003.17609125906
2,0003.30102999566

Tips and background

log(a × b) = log a + log b and log(aᵇ) = b × log a. These rules turn multiplication into addition.

What a logarithm actually is

log₁₀(1000) = 3 because 10³ = 1000: a logarithm answers 'what power gives this number?' Natural logs (ln) use base e ≈ 2.718 and appear in growth and decay; log₂ is common in computing. The curve above climbs quickly at first and then flattens.

The change-of-base formula

To compute a log in any base, use log_b(x) = ln(x) ÷ ln(b). That is how this calculator handles base 7 or any custom base. Logs convert multiplication into addition, which is why they appear in decibels, pH and earthquake magnitude. Reverse a log with the exponent calculator.

How can you read a logarithm?

Ask what power of the base gives your number.

ExpressionAnswerBecause
log base 2 of 832^3 = 8
log base 5 of 12535^3 = 125
log base 10 of 1010^0 = 1
log base 10 of 0.01-210^-2 = 0.01

How do you find a doubling time?

Natural logs solve for an unknown exponent. The natural log of 2 is about 0.6931. If something grows by 7% each period, divide it by the natural log of 1.07, about 0.0677, to get roughly 10.2 periods to double. Make sure the top and bottom use the same type of logarithm. A number between 0 and 1 has a negative log when the base is greater than 1.

Common mistakes to avoid with the Logarithm Calculator

  • Taking the log of zero or a negative number.
  • Mixing up log (base 10) and ln (base e).
  • Using base 1, which is undefined.

Frequently asked questions

What is the natural logarithm?

A logarithm with base e ≈ 2.71828, written ln.

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

No real power of a positive base produces zero or a negative number.

Where are logarithms used?

Decibels, pH, earthquake magnitude and compound growth.

What is log base 10 of 1000?

3.

What is ln(e)?

1.