Find a square root, reported exactly for a perfect square and to a stated precision otherwise.
Exponent Calculator
Raise a number to a power, keeping integer and simple fractional exponents exact - 8^(2/3) is reported as exactly 4.
- Free
- No sign-up
- Runs in your browser
Input
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 2/3.
How many digits to show when the answer is irrational. An exact answer ignores this.
Banker’s rounding; the IEEE default
Try an example
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the base and the exponent.
- 2
An integer exponent is always exact. A fractional one is routed through roots first, so it stays exact when it can.
Questions about Exponent Calculator
Why does this give exactly 4 for 8^(2/3)?
Because the fractional exponent is evaluated as a root of a power rather than through exp(ln 8 x 2/3). Going via logarithms gives 3.9999999999999996, which is what every floating-point calculator shows. Here 8^2 is 64 and the cube root of 64 is exactly 4, so the result is reported as exact.
What is 0^0?
Undefined, and the tool refuses it. Approaching from one direction suggests 1 and from another suggests 0, so there is no consistent value. Many programming languages and calculators return 1 by convention, which is convenient but not a mathematical fact.
Can the base be negative?
With an integer exponent, yes. With a fractional one it depends on the denominator: (-8)^(1/3) is -2 and is fine, but (-8)^(1/2) is imaginary and is refused. The rule is that the reduced denominator must be odd.
Why do I get a different answer from a spreadsheet?
Almost always because the spreadsheet is using 64-bit floating-point arithmetic and this is not. Those numbers cannot represent 0.1 exactly, so errors accumulate: summing 0.1 ten times gives 0.9999999999999999. The difference is usually in the last digit or two, and this tool is the one without the error.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Related tools
Other tools you might reach for next.
Find a cube root, including of negative numbers, reported exactly for a perfect cube.
Find any integer root of a number, reported exactly when the number is a perfect power of that index.
Compute a logarithm in any base, reporting an exact whole number when there is one - log10(1000) is exactly 3.
Compute a natural logarithm to a stated precision, with ln(1) reported as exactly 0.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.