Exponent & Logarithm Calculator

Calculate a power (a to the power b) or a logarithm (the log of b to base a). The result is labeled as an exact value or a rounded value.

What do you want to calculate?
a to the power b —

Powers and logarithms

What can be calculated (real numbers only)

Calculation Condition Result
Power b is a whole number Works for any a (except a = 0 with a negative b, which would divide by 0)
Power b is not a whole number (decimal or fraction) Only when a is greater than 0. With a negative a the result is not defined in the real numbers (this calculator does not compute odd roots such as (−8)^(1/3) = −2 either). If a = 0, the result is 0 for a positive b and not available for a negative b
0⁰ a = 0 and b = 0 This calculator defines 0⁰ as 1. In calculus it is an indeterminate form, and some references leave it undefined
Logarithm a is greater than 0 and not 1; b is greater than 0 Works
Logarithm a = 1 Not available (1 to any power is 1, so x is not determined)
Logarithm a or b is 0 or negative Not defined in the real numbers

Exact values and rounded values

Examples

Input Result
2 to the power 10 1,024 (exact value)
−2 to the power 3 −8 (exact value)
10 to the power −3 0.001 (exact value)
2 to the power 0.5 about 1.414214 (rounded value)
e to the power 1 about 2.718282 (rounded value)
log₂ 8 3 (exact value)
log₁₀ 1000 3 (exact value)
log₁₀ 5 about 0.69897 (rounded value)
ln 10 (base e, argument 10) about 2.302585 (rounded value)

Notes

Frequently asked questions

Why is 0 to the power 0 equal to 1 here?

In combinatorics and algebra it is common to define 0⁰ = 1. In calculus it is often treated as an indeterminate form. This calculator defines it as 1 and says so on the page.

What is a negative number to the power 0.5?

It is not defined in the real numbers (the answer would be a complex number), so the calculator does not compute it.

Why is my logarithm a "rounded value"?

Most logarithms are irrational numbers, which have no finite or repeating decimal form. Only when the argument is a whole-number power of the base is the answer exact.