Mathematics
Powers and exponents calculator
Calculate exact integer powers, rational or negative exponents, a real nth root, or find an exponent from a base and result.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows; long integers keep every digit you entered. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.
Result
Formula / calculation:
Exact power mode requires an integer base and nonnegative integer exponent up to 1000. Exact outputs are bounded to 500 characters, with a conservative precheck at 498 decimal digits; large results beyond this bound are refused. Other modes use floating-point approximations. Rational p/q is reduced before checking a negative base: its denominator must be odd. A rounded decimal exponent is not treated as an exact fraction. Zero raised to zero or to a negative exponent is refused. The minus in the base is part of that base: (-2)^2 is 4.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Exact bounded integer powers or explicitly approximate floating-point roots/logarithms; formula and interpretations appear with the result. Exact power mode requires an integer base and nonnegative integer exponent up to 1000. Exact outputs are bounded to 500 characters, with a conservative precheck at 498 decimal digits; large results beyond this bound are refused. Other modes use floating-point approximations. Rational p/q is reduced before checking a negative base: its denominator must be odd. A rounded decimal exponent is not treated as an exact fraction. Zero raised to zero or to a negative exponent is refused. The minus in the base is part of that base: (-2)^2 is 4.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Operation
- Power a^b
- Base a or radicand
- 2
- Exponent b (decimal or p/q)
- 64
Result
- Result
- 18446744073709551616
- Exact integer result
- Yes
- Integer digit count
- 20
- Order of magnitude
- 19
- Scientific notation (leading digits for exact integers)
- 1.844674407370e19
Frequently asked questions
How do I calculate a large power such as 2 to the power of 64?
Choose the power operation, enter base 2 and exponent 64. The powers and exponents calculator returns the exact integer 18446744073709551616, which has 20 digits, together with its order of magnitude and scientific notation.
What are the limits for exact integer powers?
Exact power mode needs an integer base and a nonnegative integer exponent up to 1000. Exact outputs are limited to 500 characters, and larger results are refused.
How do I find the exponent when I know the base and the result?
Use the find-exponent operation with base a and result x. The powers and exponents calculator works out b = ln(x)/ln(a) as an explicitly approximate floating-point value.
Can I raise a negative number to a fractional exponent?
Only when the reduced fraction p/q has an odd denominator. The calculator reduces the fraction before checking the negative base, and a rounded decimal exponent is not treated as an exact fraction.
Is (-2)^2 equal to 4 or -4?
In the powers and exponents calculator the minus sign belongs to the base, so (-2)^2 is 4.
What happens with zero to the power of zero?
Zero raised to zero, and zero raised to a negative exponent, are refused by the powers and exponents calculator.
How many decimal places does the result show?
Numeric results can be displayed with 0 to 12 decimal places. Exact integer results stay exact as text, while nth roots and logarithms are floating-point approximations.