Logarithm Calculator

log of any value in any base, with the change-of-base working shown.

Calculate

Type your numbers and press Calculate — the answer appears with the full step-by-step working.

Answer
log_10(1000) = 3
The power that turns 10 into 1000

Step-by-step working

  1. Ask: “10 to what power gives 1000? ” That power is the logarithm.
  2. Exact answer: 10^3 = 1000, so the log is exactly 3.
  3. Change of base: log = ln(1000) ÷ ln(10) = 6.907755 ÷ 2.302585 = 3
  4. Check: 10^3 ≈ 1000
  5. For reference: log₁₀(1000) = 3, ln(1000) = 6.90775528.

Try a worked example — it loads straight into the calculator:

Formula

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

Worked examples

log₁₀(1000)

  1. Ask: “10 to what power gives 1000? ” That power is the logarithm.
  2. Exact answer: 10^3 = 1000, so the log is exactly 3.
  3. Change of base: log = ln(1000) ÷ ln(10) = 6.907755 ÷ 2.302585 = 3
  4. Check: 10^3 ≈ 1000
  5. For reference: log₁₀(1000) = 3, ln(1000) = 6.90775528.

Answer: log_10(1000) = 3 — The power that turns 10 into 1000

log₂(32)

  1. Ask: “2 to what power gives 32? ” That power is the logarithm.
  2. Exact answer: 2^5 = 32, so the log is exactly 5.
  3. Change of base: log = ln(32) ÷ ln(2) = 3.465736 ÷ 0.693147 = 5
  4. Check: 2^5 ≈ 32
  5. For reference: log₁₀(32) = 1.50514998, ln(32) = 3.4657359.

Answer: log_2(32) = 5 — The power that turns 2 into 32

log₅(80)

  1. Ask: “5 to what power gives 80? ” That power is the logarithm.
  2. Change of base: log = ln(80) ÷ ln(5) = 4.382027 ÷ 1.609438 = 2.72270623
  3. Check: 5^2.722706 ≈ 80
  4. For reference: log₁₀(80) = 1.90308999, ln(80) = 4.38202663.

Answer: log_5(80) = 2.72270623 — The power that turns 5 into 80

ln: log_e(20)

  1. Ask: “2.718281828 to what power gives 20? ” That power is the logarithm.
  2. Change of base: log = ln(20) ÷ ln(2.718281828) = 2.995732 ÷ 1 = 2.99573227
  3. Check: 2.718281828^2.995732 ≈ 20
  4. For reference: log₁₀(20) = 1.30103, ln(20) = 2.99573227.

Answer: log_2.718281828(20) = 2.99573227 — The power that turns 2.718281828 into 20

About this calculator

A logarithm is a question: “the base, raised to what power, gives this value?” log₁₀(1000) = 3 because 10³ = 1000. Logarithms turn multiplication into addition and squeeze enormous ranges onto small scales — earthquakes (Richter), sound (decibels), acidity (pH) and compound interest all run on them.

Most calculators only have ln and log₁₀ buttons; the change-of-base formula in the steps converts those into any base you need, which is exactly the method this tool uses.

How to use it

  1. Enter the value and the base.
  2. Calculate — exact answers are spotted and flagged in the steps.

Frequently asked questions

Why is there no log of 0 or a negative number?

Because no power of a positive base ever reaches 0 or goes negative — 10 to any power is always positive. The logarithm is undefined there in real numbers.

What is ln?

The natural logarithm: log base e (≈ 2.71828). It appears throughout growth, decay and calculus because e is the base that makes those formulas simplest.