Worked example
How many values can a 64-bit number hold? 2⁶⁴ = 18446744073709551616, about 1.8 × 10¹⁹. Going the other way, log₁₀(500) = ln 500 ÷ ln 10 = 2.6990, which says 500 is 10 raised to about 2.7: between 10² = 100 and 10³ = 1,000, as expected.
Exponent rules
| Rule | Formula | Example |
|---|---|---|
| Product | aᵐ × aⁿ = aᵐ⁺ⁿ | 2³ × 2⁴ = 2⁷ = 128 |
| Quotient | aᵐ ÷ aⁿ = aᵐ⁻ⁿ | 5⁶ ÷ 5⁴ = 5² = 25 |
| Power of a power | (aᵐ)ⁿ = aᵐⁿ | (3²)³ = 3⁶ = 729 |
| Zero exponent | a⁰ = 1 | 7⁰ = 1 |
| Negative exponent | a⁻ⁿ = 1 ÷ aⁿ | 2⁻³ = 1/8 = 0.125 |
| Fractional exponent | a^(1/n) = ⁿ√a | 27^(1/3) = 3 |
Logarithm rules
| Rule | Example |
|---|---|
| log(xy) = log x + log y | log 200 = log 2 + log 100 ≈ 0.301 + 2 |
| log(x/y) = log x − log y | log 5 = log 10 − log 2 ≈ 1 − 0.301 |
| log(xⁿ) = n log x | log 1000 = 3 log 10 = 3 |
| log_b(x) = ln x ÷ ln b | log₂ 10 = ln 10 ÷ ln 2 ≈ 3.3219 |
Where you meet them
Compound interest grows as (1 + r)ⁿ, so the number of years to double money at 7% is log 2 ÷ log 1.07 ≈ 10.2, the basis of the “rule of 72”. Earthquake magnitudes, decibels and pH are logarithmic scales: each step of 1 on the Richter-style magnitude scale means about 32 times more energy, and 10 decibels more means 10 times the sound power. Computer scientists use log₂ to count bits and the steps a binary search needs: about 20 for a million items.
Zero to the power zero is treated as 1 here, as in most algebra and programming languages; zero to a negative power has no answer because it would mean dividing by zero.
Related tools
- Quadratic equation solver
- LCM and GCF calculator
- Prime number checker
- Scientific notation converter
- Long division calculator
- Pythagorean theorem calculator
- Matrix calculator
- Fraction calculator
- Scientific calculator
Sources
Checked on November 26, 2026:
Frequently asked questions
How do I calculate an exponent?
What is a logarithm?
What is the difference between log and ln?
How do I find a log in a base my calculator doesn’t have?
Can it give exact huge powers?
What is the nth root?
Last updated: 2026-11-26