Guide
Powers, roots and logarithms to any base, with exact digits for whole-number powers
Powers, roots and logarithms are three views of one relationship. If a to the power b equals c, a power finds c, a root finds a and a logarithm finds b. This calculator does all three, shows the answer in plain and scientific notation where useful, and checks it by working the relationship backward.
Powers
Enter a base and an exponent. When both are whole numbers, and the exponent is not negative, the result is computed with big integers, so a number such as 7 to the power 40 shows every one of its 34 digits. The page reports how many digits the exact value has, the value in scientific notation, and its reciprocal. Exact digits are given while the result has fewer than 400 digits, and results longer than 40 digits are also placed in a text box that you can copy or download. With a negative or fractional exponent the answer is a decimal, shown to about twelve significant digits, and 2 to the power minus 3 is 0.125, with a reciprocal of 8.
Roots
Enter a number and a whole-number root n from 2 to 1,000. The tool finds the nth root and then raises it to the nth power to check. If that gives back the number exactly, the line says that the root is exact, as for the cube root of 27, which is exactly 3 because 3 cubed is 27. If not, the answer is a decimal and the check line shows how close the return trip comes. An even root of a negative number is not real, and the page rejects it with that message, while an odd root of a negative number works.
Logarithms
A logarithm answers the question to what power the base must be raised to get x. Enter x and a base b. The page shows the logarithm and a check, b to the power of the result. It also shows three standard logarithms of x: the natural logarithm ln x, the common logarithm in base 10 and the binary logarithm in base 2. These are the three that appear on calculators and in computing, and for any other base the answer follows from the change-of-base rule.
Edge cases
x must be greater than 0, and the base must be greater than 0 and not 1, since a base of 1 would need an exponent of infinity. Zero cannot be raised to a negative power, and a negative base with a fractional exponent is not a real number, so the page rejects both. Zero to the power zero is shown as 1. Results close to a whole number may differ from it in the last digits because the answer is a rounded decimal, so rely on the check line for exactness.
A worked example
2 to the power 10 is 1,024, a number with 4 digits and a reciprocal of 0.0009765625. The cube root of 27 is 3, and the check shows the root cubed is 27. For the logarithm of 1,024 in base 2, the answer is 10, the natural logarithm is 6.9314718056, the common logarithm is 3.01029995664 and the binary logarithm is 10, with the check showing 2 to the power 10 is 1,024. For 7 to the power 40, the exact value is 6,366,805,760,909,027,985,741,435,139,224,001, which is 6.3668057609 × 10^33.
Limits
The page works with real numbers only. It does not produce complex roots or logarithms of negative numbers. Non-integer results are floating-point decimals, so they can differ from the true value in the last shown digit. A result too large for a floating-point number, such as 10 to the power 400, is reported as too large rather than as a value.
Related tools
- Scientific Calculator handles longer expressions that combine powers, roots and logs.
- Scientific Notation Converter rewrites a large power in the form used in science.
- Factorial Calculator shows another exact big-integer calculation that grows even faster than powers.
- Doubling Time Calculator uses logarithms to find how long growth takes to double.
Checked against the current version of the Exponent & Logarithm Calculator on .

