You hit log₂8 in a problem and your hand stops — your calculator has no log₂ button, and the rules from class blur together. Logarithms stall people because the definition rarely gets used as a calculation tool.
It should be. Every logarithm answers one question: what power of the base gives the argument? This article builds the calculation on that question, covers the three log rules, the change-of-base formula and the digit-counting trick of the common logarithm — with worked examples and a free tool to verify them.
A logarithm is an exponent restated
These two expressions say the same thing:
bʸ = x ⇔ log_b(x) = y (b > 0, b ≠ 1, x > 0)
“2 to the power 3 is 8” becomes “log₂8 = 3”. When a calculation stalls, rewrite the log as an exponent and ask which power of the base produces the argument — that is the entire core technique.
| Exponential form | Logarithmic form | Reasoning |
|---|---|---|
| 2³ = 8 | log₂8 = 3 | Which power of 2 gives 8? The third |
| 3⁴ = 81 | log₃81 = 4 | 3⁴ = 81 |
| 5⁻³ = 1/125 | log₅(1/125) = −3 | Fractions are negative exponents |
| 9^(1/2) = 3 | log₉3 = 1/2 | Roots are fractional exponents |
Fractions and roots follow the same route: log₅(1/125) asks which power of 5 gives 1/125 — since 5³ = 125, the answer is −3; log₉3 asks which power of 9 gives 3 — √9 = 3, so the answer is 1/2.
When the power is hard to see, factor the argument into powers of the base. For log₆(1/36), recognizing 36 = 6² leads straight to −2. Knowing a few powers of 2, 3 and 5 speeds this up considerably.
The three rules: product, quotient, power
Multiplication and division turn into addition and subtraction:
| Rule | Formula | Example (base 2) |
|---|---|---|
| Product | log_b(xy) = log_b x + log_b y | log₂(8 × 4) = log₂8 + log₂4 = 3 + 2 = 5 |
| Quotient | log_b(x/y) = log_b x − log_b y | log₂(32/4) = 5 − 2 = 3 (= log₂8) |
| Power | log_b(xⁿ) = n log_b x | log₂(2⁵) = 5 log₂2 = 5 × 1 = 5 |
Verify the first one directly: log₂(8 × 4) = log₂32 asks which power of 2 gives 32 — 32 = 2⁵, so 5; and the right side gives 3 + 2 = 5. This conversion is why logarithms were invented as a calculation aid: big multiplications become small additions. The power rule also pulls exponents out, so log₃81 needs no deep thought — 81 = 3⁴ gives 4 log₃3 = 4 × 1 = 4.
Change of base: computing what the calculator lacks
The log key covers base 10 (the common logarithm) and the ln key covers base e ≈ 2.71828 (the natural logarithm). For any other base, use the change-of-base formula:
log_b(x) = ln x ÷ ln b
For log₂10: ln 10 ≈ 2.302585 and ln 2 ≈ 0.693147, so log₂10 = 2.302585 ÷ 0.693147 ≈ 3.3219. As a sanity check, 2¹⁰ = 1024 ≈ 1000, so the answer should sit between 3 and 4 — and it does.
A handy variant: log_b(x) = 1 ÷ log_x(b). Since log₁₀2 ≈ 0.3010, log₂10 = 1 ÷ 0.3010 ≈ 3.3219.
The common logarithm has a practical trick of its own: digits = ⌊log₁₀x⌋ + 1. Since log₁₀2000 ≈ 3.301, the number 2000 has 4 digits; a value between 3 and 4 means “from 10³ up to, but not including, 10⁴”.
Three common mistakes: treating log(a + b) as log a + log b — only products convert (counterexample: log₂(8 + 8) = log₂16 = 4, while the bogus sum gives 3 + 3 = 6); feeding 0 or a negative number as the argument (the definition requires x > 0); and using base 1 (1 to any power stays 1, so no unique logarithm exists). Returning to the conditions b > 0, b ≠ 1, x > 0 prevents all three.
Compute logs with the tool
To check any logarithm, Tools Hub’s Logarithm Calculator takes a base and an argument and returns the value — as an exact integer when the result is whole — together with the substituted change-of-base working and a check that bʸ returns the argument.
How to use it (3 steps)
Enter the base
Type the base, or use the one-tap buttons for 2, 10 and e. Base e displays as ln.
Enter the argument
Type the argument — 8, 1000, 0.5 or e all work. Zero and negatives are rejected by definition.
Read the value, conversion and check
The result card shows the logarithm, one panel substitutes your numbers into ln x ÷ ln b, and another confirms bʸ = x. Copying takes one click.
The tool featured in this article
Logarithm Calculator
Any-base logarithms with exact integer results, the change-of-base working and a bʸ = x check. One-tap bases for 2, 10 and e, free and browser-based.
To reproduce the article’s example, enter 2 as the base and 8 as the argument: the tool shows log₂(8) = 3 with the 2³ = 8 check. Change the argument to 10 and you get 3.321928 (= log₂10) with the ln 10 ÷ ln 2 substitution shown. Whole-number results appear exactly, so checking homework is free of rounding doubt.
For tidying the fractions that appear inside logs, see the guide to working with fractions; for putting numbers into context, see mean, median and standard deviation.
Summary
- A logarithm restates an exponent; when stuck, ask which power of the base gives the argument
- Know log_b b = 1, log_b 1 = 0, and the product, quotient and power rules
- Bases the calculator lacks go through ln x ÷ ln b (log₂10 ≈ 3.3219)
- log(a + b) is not log a + log b; the argument must be positive and the base neither 0, 1, nor negative
FAQ
What is the difference between log and ln?
ln is the natural logarithm — base e ≈ 2.71828. The log key on a calculator means the common logarithm, base 10. Only the base differs; the rules hold for every base.
Why can’t the argument be 0 or negative?
Because bʸ is always positive, no exponent y can produce 0 or a negative number. The definition therefore restricts arguments to x > 0.
How do I compute something like log₂10?
Use the change-of-base formula: log_b(x) = ln x ÷ ln b. With ln 10 ≈ 2.302585 and ln 2 ≈ 0.693147, the quotient is about 3.3219 — consistent with 2¹⁰ = 1024 ≈ 1000.
Where are logarithms actually used?
Anywhere values span huge ranges: sound levels in decibels, pH, information in bits (log₂), earthquake magnitudes. In each case the logarithm compresses the range to a manageable scale.
References
- OpenStax, Algebra and Trigonometry 2e, Section 6.3 “Logarithmic Functions” (definition, common and natural logarithms): openstax.org
- OpenStax, Algebra and Trigonometry 2e, Section 6.5 “Logarithmic Properties” (product, quotient and power rules, change of base): openstax.org