calculator.onl
Categories50

Exact integer power calculator

Raise an integer, terminating decimal or fraction to an integer power and inspect the exact result.

A worked example

Change the exponent from 3 to −3 and watch the eight counters move to the denominator.

Exact power1024Decimal representation1024Numerator digits4Denominator digits1
Enter an integer, terminating decimal or p/q fraction with a nonzero denominator. Scientific notation and repeating decimals are not accepted.

Integer exponent; a negative value takes the reciprocal of a nonzero base.

Updates as you type

Use a rational base with at most 80 input digits and an integer exponent from −1000 to 1000; exact output is capped at 4096 digits. Zero requires a positive exponent.

YOUR RESULT

Exact power

1024

Calculated from your inputs

Decimal representation1024
Numerator digits4
Denominator digits1
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Raise an integer, terminating decimal or fraction to an integer power and inspect the exact result. Enter your values and inspect the calculation details. For a related calculation, try Radical simplifier: square roots and nth roots.

What to enter

InputWhat it meansExample value
Integer, decimal or fraction baseEnter an integer, terminating decimal or p/q fraction with a nonzero denominator. Scientific notation and repeating decimals are not accepted.2/3
Integer exponentInteger exponent; a negative value takes the reciprocal of a nonzero base.-2

How the calculation works

  1. Reduce the input base to a signed fraction p/q.
  2. For positive n calculate p^n/q^n; for negative n invert the nonzero base first.
  3. Reduce the exact result and produce a decimal preview; digit counts exclude signs.
The formula(p/q)^n = p^n/q^n; (p/q)^(−n) = q^n/p^n

A worked example

Worked example: (2/3)^−2 = 9/4 = 2.25; numerator and denominator each contain one digit.

Example you can load

What to enter
Result for this example · Exact power9/4

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

The exponent must be an integer from −1000 to 1000. The base uses at most 80 digits; a conservative size check caps exact numerator and denominator at 4096 digits. Zero to zero and zero to a negative power are rejected. The decimal preview stops after 100 digits.

Frequently asked questions

Are fractional exponents supported?

No. This tool preserves exact rational results for integer exponents.

What does a negative exponent do?

It takes the reciprocal: (2/3)^−2 = 9/4.

Is the decimal preview always complete?

No. Repeating digits are enclosed in parentheses when found; an ellipsis indicates the 100-digit preview limit.