Exponent Calculator

A three-way solver: give it any two of the base, the exponent and the result, and it finds the one you left out. Whole-number powers come back exact, however long they run.

xⁿ Just enter your values below — results update automatically.
Any two of three

Fill in two boxes and leave the third empty. The empty one is the one that gets answered — result, root or logarithm.

aⁿ =
Answer
—
Leave one box empty and it gets filled in
The working, step by step
Powers of this base

Using the three-box solver

There are three boxes — base, exponent and result — and three questions you might be asking. Fill in the two you know and leave the third empty; the empty one is the one that gets answered.

  • Base and exponent → the result. The ordinary direction: what is 7 to the power of 4?
  • Exponent and result → the base. What number, raised to the 4th power, gives 2,401? This is a root.
  • Base and result → the exponent. 2 raised to what power gives 1,024? This is a logarithm.

The base box also accepts the letter e on its own, for Euler's number, so you can work out e to a power without typing 2.718281828 and losing accuracy. Fractions have to be entered as decimals: write 0.5 rather than 1/2, and 0.333333 rather than one third.

The working is shown underneath for every answer, because the step that makes an exponent click is almost always seeing it written out as repeated multiplication rather than as a rule to memorise.

What an exponent actually means

An exponent is shorthand for multiplying a number by itself. In an, the base a is the number being multiplied and the exponent n counts how many copies go into the multiplication. So 74 is 7 × 7 × 7 × 7, which is 2,401.

That definition is clean while n is a positive whole number, and the rest of the subject is the work of extending it sensibly. What should a zero exponent mean? A negative one? A fraction? There is no multiplying to do in any of those cases, so each is defined by insisting that the rules below keep working. That turns out to pin every one of them down to a single possible answer, which is why the extensions feel inevitable rather than arbitrary once you have seen the argument.

The vocabulary varies and all of it is current: 74 is "seven to the fourth", "seven to the power of four", or "seven raised to four". A squared number is a second power, a cubed number a third, and those two have their own names because they measure area and volume.

The seven exponent rules

Almost everything you need to do with powers comes from this list. Each one is worth checking with small numbers in the calculator above rather than taking on faith.

RuleIn symbolsExample
Same base, multipliedam × an = am+n3² × 3³ = 3⁵ = 243
Same base, dividedam ÷ an = am−n3⁵ ÷ 3² = 3³ = 27
A power of a power(am)n = am×n(3²)³ = 3⁶ = 729
A product raised to a power(a × b)n = an × bn(2 × 5)³ = 8 × 125 = 1,000
A quotient raised to a power(a ÷ b)n = an ÷ bn(6 ÷ 2)³ = 216 ÷ 8 = 27
A zero exponenta0 = 13⁰ = 1
A negative exponenta−n = 1 ÷ an3−2 = 1 ÷ 9

The zero rule is the one students most often learn as a bare fact, and it follows from the division rule in one line. Since an ÷ an is obviously 1, and the division rule says it is also an−n = a0, the only consistent value for a0 is 1. The same argument run one step further gives the negative rule: a0 ÷ an is 1 ÷ an, and by the rule it is a−n.

The one genuine gap is 00. The repeated-multiplication reading says it should be 1, the "zero to anything is zero" reading says 0, and the honest answer is that it is left undefined in analysis and defined as 1 nearly everywhere else because that is what makes series and combinatorics come out right. This page returns 1, which is the convention programming languages and spreadsheets also follow.

Negative exponents and negative bases

These are two different things and mixing them up is the most common source of wrong answers.

A negative exponent flips the base into a fraction. 2−3 is not negative; it is 1 ÷ 2³, which is 0.125. The sign tells you which side of the fraction bar the power belongs on, nothing more. Powers of ten with negative exponents are the standard way to write small numbers: 10−6 is one millionth.

A negative base affects the sign of the answer, and the rule depends on whether the exponent is odd or even. An even number of negative factors cancel in pairs, so (−2)4 = 16, while an odd one leaves a negative behind, so (−2)³ = −8. Brackets matter when you write this down: −24 conventionally means −(24) = −16, which is a different number. Type the base into its own box above and that ambiguity disappears.

Combine the two and you leave the real numbers. A negative base with a fractional exponent asks for a root of a negative number — the square root of −4, say — which has no real answer, only an imaginary one. The calculator says so rather than returning a confusing code.

Fractional exponents are roots

A fractional exponent is a root in disguise. The denominator says which root to take and the numerator says what power to raise it to:

a^(1/n) = the nth root of a a^(m/n) = the nth root of a, raised to the power m EX: 81^(1/4) = 3 because 3 × 3 × 3 × 3 = 81 EX: 8^(2/3) = 2² = 4 because the cube root of 8 is 2

Written as decimals, which is what the box above wants, that means 0.5 is a square root, 0.25 is a fourth root, and 1.5 is "square root, then cube". Half-powers turn up constantly in physics and finance for exactly this reason: compound interest over half a year is the principal times the annual factor to the power 0.5.

Entering a third as 0.333333 gets you close but not exact, which is why a cube root entered that way comes back as 1.99999 rather than 2. For roots specifically, the root calculator takes the root order directly and avoids the rounding entirely.

Solving backwards for the base or the exponent

Leaving the base empty asks a root question. If the exponent is even and the result positive there are two real answers, one positive and one negative, because squaring destroys the sign: both 3 and −3 raised to the 4th power give 81. The calculator reports both. With an odd exponent there is exactly one answer and it keeps the sign of the result, so a result of −27 with exponent 3 gives a base of −3.

Leaving the exponent empty asks a logarithm question: how many times does the base multiply up to reach the result? That is log(result) ÷ log(base), and it only has a real answer when both the base and the result are positive and the base is not 1. Ask what power of 5 gives 0 and there is no answer at all, because a positive base can get arbitrarily close to zero but never reach it. The log calculator handles that direction directly if that is the question you actually have.

One quiet detail: when the answer is a whole number, this page returns the whole number. Asking what power of 10 gives 1,000 and working it through floating-point logarithms returns 2.9999999999999996 on most machines, and printing that instead of 3 is a common and unhelpful bug. The result is checked against an exact whole-number power before being shown.

Why the answers here are exact

Most calculators do all their arithmetic in 64-bit floating point, which carries about 15 or 16 significant digits and nothing beyond. That is ample for 74, awkward by 21000, and useless by 210000, which simply overflows and comes back as infinity.

When the base and exponent are both whole numbers, this page computes the power in arbitrary-precision integers instead, using repeated squaring so that even a very large exponent takes only a few dozen multiplications. 21000 prints as all 302 of its digits rather than as 1.0715086071863 × 10301, and 210000 prints all 3,011 of them. The same machinery sits behind the big number calculator.

Fractional and irrational powers cannot be exact — the square root of 2 has no finite decimal — so those are computed in floating point and shown to 14 significant digits, which is the last digit that can be trusted. Each answer says which kind it is, so you always know whether you are looking at an exact figure or a rounded one.

The special base e

Type e into the base box and you get Euler's number, roughly 2.718281828. It looks like an odd thing to raise to powers until you meet the property that defines it: ex is the one exponential curve whose steepness at every point equals its own height. Growth that is proportional to the amount already present — compound interest, population, radioactive decay, a cooling cup of coffee — is described by ex without any awkward constants attached.

That is why continuously compounded interest uses ert rather than a power of some annual factor, and why the natural logarithm, which asks what power of e gives a number, is the logarithm that calculus prefers. Leaving the exponent box empty with e as the base computes exactly that natural logarithm.

The constant is irrational, so e2 is shown to 14 digits like any other non-whole power. Typing 2.718 by hand instead loses accuracy by the third decimal place of the answer, which is the reason the shortcut button exists.

Frequently asked questions

Which box should I leave empty?

Whichever value you want. Fill in any two of base, exponent and result and the third is calculated. Leaving the result empty is the usual direction; leaving the base empty takes a root, and leaving the exponent empty takes a logarithm.

Why is 2 to the power of -3 positive?

Because a negative exponent flips the base into a fraction rather than making the answer negative. 2 to the power of -3 means 1 divided by 2 cubed, which is 0.125. Only a negative base with an odd exponent produces a negative answer.

How do I enter a fractional exponent like two thirds?

As a decimal: 0.666667. The box does not accept fractions written with a slash. Be aware that a rounded decimal gives a slightly rounded answer, so a cube root entered as 0.333333 comes back as 1.99999 rather than 2. For roots, the root calculator takes the root order directly.

What does the calculator do with a negative base and a fractional exponent?

It reports that there is no real answer. Taking a root of a negative number gives an imaginary result, and this calculator works only in real numbers. A negative base with a whole-number exponent is fine: even exponents give a positive answer, odd ones a negative.

Is 0 to the power of 0 equal to 1?

This calculator returns 1, which is the convention used by programming languages, spreadsheets, combinatorics and power series. Some branches of analysis leave it undefined because the limit depends on how you approach it. For practical arithmetic, 1 is the useful answer.

Why do large powers show every digit instead of scientific notation?

Because when the base and exponent are both whole numbers the answer is computed in arbitrary-precision integers rather than floating point, so every digit is known. 2 to the power of 10,000 has 3,011 digits and all of them are correct. Fractional powers cannot be exact and are shown to 14 significant digits instead.

Calculations run in your browser and nothing is sent anywhere or recorded. Results for fractional and irrational powers are rounded to 14 significant digits; whole-number powers are exact. Check any figure that matters for coursework or engineering against a second source.

Related calculators