Skip to content
YouNeed Tools
Free VPN

Exponent and Logarithm Calculator

Pick power, logarithm or root and enter two numbers. Big whole-number powers come out exactly, and logs show the change-of-base working.

Work out

2^10

= 1,024

Worked out on your device.

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

RuleFormulaExample
Productaᵐ × aⁿ = aᵐ⁺ⁿ2³ × 2⁴ = 2⁷ = 128
Quotientaᵐ ÷ aⁿ = aᵐ⁻ⁿ5⁶ ÷ 5⁴ = 5² = 25
Power of a power(aᵐ)ⁿ = aᵐⁿ(3²)³ = 3⁶ = 729
Zero exponenta⁰ = 17⁰ = 1
Negative exponenta⁻ⁿ = 1 ÷ aⁿ2⁻³ = 1/8 = 0.125
Fractional exponenta^(1/n) = ⁿ√a27^(1/3) = 3

Logarithm rules

RuleExample
log(xy) = log x + log ylog 200 = log 2 + log 100 ≈ 0.301 + 2
log(x/y) = log x − log ylog 5 = log 10 − log 2 ≈ 1 − 0.301
log(xⁿ) = n log xlog 1000 = 3 log 10 = 3
log_b(x) = ln x ÷ ln blog₂ 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

Sources

Checked on November 26, 2026:

Frequently asked questions

How do I calculate an exponent?
Multiply the base by itself as many times as the exponent says: 3⁴ = 3 × 3 × 3 × 3 = 81. A negative exponent means 1 over the positive power, and a fractional one means a root.
What is a logarithm?
The inverse of a power. log_b(x) asks “to what power must b be raised to give x?” log₁₀(1000) = 3 because 10³ = 1000.
What is the difference between log and ln?
log usually means base 10 (common logarithm), ln means base e ≈ 2.71828 (natural logarithm), and log₂ is base 2, common in computing. Some programming languages use log for ln, so check.
How do I find a log in a base my calculator doesn’t have?
Use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b), or log(x) ÷ log(b). The calculator shows this working.
Can it give exact huge powers?
Yes. Whole-number powers of whole numbers are worked out to every digit (up to 2,000 digits), so 2⁶⁴ shows all 20 digits, not a rounded decimal.
What is the nth root?
The number that, raised to the nth power, gives the original: the cube root of 125 is 5 because 5³ = 125. Odd roots of negative numbers are allowed (the cube root of −8 is −2); even roots of negatives have no real answer.

Last updated: 2026-11-26