The short answer: a logarithm answers “to what power?” The base-b logarithm of x is the exponent y for which by = x, so log₂ 8 = 3 because 2³ = 8. It is defined only for x > 0 and b > 0 with b ≠ 1, and any base converts with logb x = ln x ÷ ln b.

Key takeaways

  • A logarithm is an exponent. log₂ 8 asks which power of 2 produces 8.
  • The base must be positive and not 1, and the argument must be positive.
  • Products become sums. log(xy) = log x + log y, but log(x + y) has no rule.
  • Change of base is a ratio. logb x = ln x ÷ ln b works on any calculator.
  • Log scales show multiplicative steps. Equal distances mean equal factors.
  • Logs take pure numbers. Form a ratio before applying one to a measured quantity.

What a logarithm answers

A logarithm is the inverse of an exponential. Where 2³ asks for a power and returns 8, log₂ 8 asks for the exponent and returns 3. Written generally, logb x = y exactly when by = x. The two statements carry identical information; the log form simply isolates the exponent.

Two anchors make the definition concrete. logb 1 = 0 for every valid base, because b⁰ = 1, and logb b = 1, because b¹ = b. Everything else follows from the exponent laws. The domain is narrow on purpose: b must be positive and not equal to 1, and x must be positive, because no real power of a positive base produces zero or a negative result.

Fractional and negative exponents belong to the domain too. log₉ 3 = 0.5 because 9 raised to the half power is 3, and log₂ 0.5 = −1 because 2⁻¹ = 0.5. A logarithm can therefore be any real number — positive, negative, or zero — even though its argument must stay positive.

Bases you will meet: 10, e, and 2

Base 10, the common logarithm, matches the decimal system: log₁₀ 1,000 = 3, and log₁₀ 0.01 = −2. Base e ≈ 2.71828, the natural logarithm written ln, is the base calculus prefers, because the derivative of ln x is 1/x. Base 2 dominates computing, where log₂ 1,024 = 10 counts ten doublings.

Notation is inconsistent across fields. A bare “log” usually means base 10 in school mathematics and base e in research mathematics, while programming languages often reserve log for the natural log and expose log10 or log2 separately. Confirm the base before comparing two values, especially when reading a chart or a spreadsheet formula.

The product rule and its family

Because exponents add when powers of the same base multiply, logs turn multiplication into addition:

logb(x · y) = logb x + logb y
logb(x ÷ y) = logb x − logb y
logb(xn) = n · logb x

A worked check: log₂(32 × 8) = log₂ 32 + log₂ 8 = 5 + 3 = 8, and 2⁸ = 256 = 32 × 8. For the power rule, log₃(81²) = 2 × log₃ 81 = 2 × 4 = 8. Each identity restates an exponent law, which is why the base must match on both sides.

Change of base and calculator steps

Most calculators offer only ln and log₁₀, so any other base goes through a ratio:

logb x = ln x ÷ ln b = log₁₀ x ÷ log₁₀ b

Example: log₅ 200 = ln 200 ÷ ln 5 = 5.2983 ÷ 1.6094 = 3.2920. A sanity check confirms it, because 5³ = 125 and 5⁴ = 625, so the answer must sit between 3 and 4 and closer to 3. Chaining logs also gives logb x = 1 ÷ logx b, which helps when the base is awkward.

The ratio form also explains why every logarithmic curve has the same shape, differing only by a constant factor: logb x = (1 ÷ ln b) × ln x. Changing the base rescales the vertical axis but leaves the crossing point at x = 1, where every log equals zero.

Solving exponential equations

Logs are the standard tool for pulling an unknown out of an exponent. For 3x = 81, take log₃ of both sides: x = log₃ 81 = 4. For 2x = 50, apply any log and divide: x = ln 50 ÷ ln 2 = 3.9120 ÷ 0.6931 = 5.6439, so x ≈ 5.64.

The same move handles continuous growth. If a quantity grows at a continuous rate r, its doubling time is t = ln 2 ÷ r. At r = 0.07 per year, t = 0.6931 ÷ 0.07 = 9.9 years. The base you choose never changes the answer; it only changes the intermediate numbers.

Why log scales compress

A log scale plots the exponent rather than the value, so equal distances represent equal multiplicative factors. On a base-10 axis, the step from 1 to 10 is the same visual distance as 10 to 100 and 100 to 1,000. That is how one page can show six orders of magnitude without flattening the small values into nothing.

pH, decibels, and the Richter scale all work this way. pH = −log₁₀[H⁺], so a drop of one pH unit means a tenfold rise in hydrogen-ion concentration, and a 20 dB increase is a hundredfold rise in sound intensity. Reading a log chart as if it were linear overstates small changes and understates large ones.

Worked examples

The table collects values that are easy to check by hand, which is the fastest way to build intuition before trusting a calculator.

Expression Reasoning Value
log₂ 64 2⁶ = 64 6
log₁₀ 0.001 10⁻³ = 0.001 −3
ln 1 e⁰ = 1 0
log₇ 7 7¹ = 7 1
log₄ 2 41/2 = 2 0.5
log₅ 200 between 5³ and 5⁴ ≈ 3.292

Only the last row needs change of base. The rest are exact by definition, which makes calculator slips easy to catch: if log₂ 64 returns anything but 6, the base and the argument were entered in the wrong slots.

Common mistakes

  • Inventing a rule for sums. log(x + y) is not log x + log y; no product-style rule exists for addition.
  • Taking the log of zero or a negative number. The real logarithm is undefined there, so the calculator returns an error rather than a number.
  • Using base 1. Every power of 1 is 1, so log₁ x cannot distinguish arguments.
  • Mixing bases inside one identity. The product rule needs the same base throughout.
  • Confusing ln with log₁₀. The two differ by a factor of ln 10 ≈ 2.3026.
  • Rounding intermediate logs. Keep full precision and round only the final answer.

Practical caveats

Logarithms grow slowly, so small differences near 1 are magnified in relative terms: ln 1.01 ≈ 0.00995 while ln 1.10 ≈ 0.0953, a tenfold change for a ten-point move. Near x = 1, a fixed number of decimals in x can produce a large relative error in the log, which matters in finance and physics.

Units deserve care. A logarithm is meaningful only for a pure number, so form a ratio first, as decibels do with a reference intensity. Floating-point software also loses precision when computing ln(1 + x) for tiny x; the dedicated log1p function exists for that case, and spreadsheet LOG functions differ in whether they default to base 10 or demand a second argument.

Frequently asked questions

What does a logarithm actually represent?

It is the exponent you must put on the base to reach the argument. log₂ 32 = 5 because 2⁵ = 32.

Why can’t the base be 1?

Every power of 1 equals 1, so no exponent could separate one argument from another and the function would not be invertible.

Is ln the same as log?

Only when “log” is being used for the natural logarithm. In many textbooks log means base 10 and ln means base e, a difference of about 2.3026.

Can a logarithm be negative?

Yes, whenever the argument lies between 0 and 1. log₁₀ 0.1 = −1, and ln 0.5 ≈ −0.693.

How do I compute a log with an unusual base?

Use change of base: divide the log of the argument by the log of the base, using any base your calculator supports for both.

Why do scientists use log scales?

Because many quantities span several orders of magnitude, and equal multiplicative steps are easier to compare than equal additive ones.

Further reading

Keep exploring

Read next Order of Operations: PEMDAS and Ambiguous Expressions PEMDAS is a shared convention, not a law of mathematics. Learn the real precedence rules, the exponent and… Read next Significant Figures: Counting, Rounding, and Precision Significant figures record how precisely a value was measured. Learn the counting rules, the addition and multiplication rules,… Read next Percentage Difference: Comparing Two Values Fairly Percentage difference divides the gap by the average of two values. Learn when to use it instead of…