Calculator

Logarithms Without Fear: What They Mean and Where They Appear

The one-sentence idea

A logarithm answers the question: how many times do I multiply this base by itself to get that number?

In other words, a logarithm is the exponent. The statements 10^3 = 1,000 and log10(1,000) = 3 say exactly the same thing in two directions. Powers ask "what do I get?"; logarithms ask "what power did I need?".

Beyond whole numbers

Logarithms also work for numbers that are not neat powers. Since 100 = 10^2 and 1,000 = 10^3, the base-10 logarithm of 500 must lie between 2 and 3. A calculator gives log(500) ≈ 2.699, which means 10^2.699 ≈ 500.

A handy use: the number of digits in a positive whole number is the whole-number part of its base-10 log, plus one. 2^10 = 1,024 has log ≈ 3.01, so it has 4 digits. 2^64 has log ≈ 64 × 0.30103 ≈ 19.27, so it has 20 digits; indeed 2^64 = 18,446,744,073,709,551,616.

log versus ln

Calculators usually offer two logarithm keys.

KeyBaseCommon inExample
log10Scales such as decibels and pH, counting digitslog(1,000) = 3
lne ≈ 2.718281828Growth and decay, calculus, physicsln(e) = 1

The number e appears naturally whenever something grows in proportion to its current size, which is why ln is called the natural logarithm. Some books also use log2, the binary logarithm, which counts doublings: log2(256) = 8, so 8 bits can store 256 different values.

A few values worth remembering: log(2) ≈ 0.30103, log(3) ≈ 0.47712, log(5) ≈ 0.69897, and ln(2) ≈ 0.693147. Notice that log(2) + log(5) = 1, because 2 × 5 = 10.

The three log rules

Because logarithms are exponents, they follow the rules of exponents, turning multiplication into addition.

  1. Product rule: log(a × b) = log(a) + log(b). Example: log(2) + log(5) = log(10) = 1.
  2. Quotient rule: log(a ÷ b) = log(a) − log(b). Example: log(1,000 ÷ 10) = 3 − 1 = 2.
  3. Power rule: log(a^n) = n × log(a). Example: log(10^5) = 5, and log(√10) = 0.5 × log(10) = 0.5.

Before electronic calculators, these rules let people multiply large numbers by adding their logarithms, using printed log tables or a slide rule. Logarithms were published by John Napier in 1614 for exactly this purpose.

Watch out for rules that look right but are not. log(a + b) is not log(a) + log(b): log(1 + 1) = 0.301, but log(1) + log(1) = 0. And log(a) ÷ log(b) is not log(a ÷ b).

Change of base: any log on any calculator

Most calculators only have log and ln. To get a logarithm in another base, divide:

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

On the scientific calculator, type log(100)÷log(2). The brackets around each argument matter.

Solving for an unknown exponent

Logs are the tool for questions such as "2 to what power is 50?". Take the log of both sides of 2^x = 50 and use the power rule: x × log(2) = log(50), so x = log(50) ÷ log(2) ≈ 5.644. Check: 2^5 = 32 and 2^6 = 64, so an answer between 5 and 6 makes sense.

Doubling time for steady growth

When a quantity grows by r% each period, it is multiplied by (1 + r/100) each time. To find how many periods it takes to double, solve (1 + r/100)^n = 2:

n = ln(2) ÷ ln(1 + r/100)

Growth per periodExact doubling time"Rule of 72" estimate (72 ÷ r)
3%23.45 periods24
5%14.21 periods14.4
7%10.24 periods10.29

The rule of 72 is a mental shortcut that is close for small growth rates. This is pure arithmetic about steady growth, such as a colony of cells or a website's visitors growing at a fixed rate; real-world quantities rarely grow at a perfectly steady rate. The percent change guide shows how repeated growth builds up.

Decay works the same way in reverse. A radioactive sample with a half-life of 5 years falls to 1/16 of its amount after 20 years (four halvings). To find when it reaches 10%, solve (1/2)^(t/5) = 0.1: t = 5 × log(10) ÷ log(2) ≈ 16.6 years.

Logarithmic scales in the real world

When a quantity ranges over many powers of ten, scientists often measure it on a log scale, where each step means "multiply by a fixed amount" rather than "add a fixed amount".

Common mistakes

FAQ

What is the difference between log and ln?
Only the base. log uses 10 and ln uses e. Any result in one can be converted to the other: ln(x) = log(x) ÷ log(e) ≈ 2.302585 × log(x).

Why is log(1) zero?
Because any positive base raised to the power 0 equals 1, so you multiply the base zero times.

Do I need logarithms in everyday life?
You use them indirectly whenever you read a decibel level, a pH value or an earthquake magnitude, or estimate how long steady growth takes to double. For a quick refresher on powers and E notation, see the scientific calculator guide.

Open the calculator: Scientific Calculator →

Related guide