01What is Exponent Calculator?
Powers, roots and logarithms are three views of the same relationship, so this tool puts them on one form. Pick Power (xⁿ), Root (ⁿ√x) or Log (logₙx) at the top, fill in two numbers, and the result appears with a short Steps list underneath. The field labels follow the mode: Base and Exponent, Radicand and Index, or Value and Base. Power is a direct call to JavaScript's Math.pow, which follows the IEEE 754 double-precision rules described in the ECMAScript spec. Root is computed as x raised to 1/n, so an index of 4, 0.5 or 7 all work. A cube root goes through Math.cbrt instead, which keeps results like the cube root of 64 at exactly 4. Negative numbers get careful handling. Math.pow(-8, 1/3) returns NaN in JavaScript, because the spec treats a negative base with a non-integer exponent as having no real answer. The Root mode works around that for odd whole-number indexes. It takes the root of the absolute value and puts the minus sign back, so the cube root of -27 is -3 and the fifth root of -32 is -2. The Steps list says so plainly with the note "odd root of a negative number". Logs use the change-of-base formula, ln(x) divided by ln(n). For base 2 and base 10 the tool calls Math.log2 and Math.log10 instead, so log base 10 of 1000 comes out as exactly 3. Other bases can pick up float noise. A quick worked case: Value 81 with Base 3. The Steps show 4.394449 / 1.098612, and the raw quotient is 4.000000000000001. The headline rounds this to 4.0000000000 because non-integers are shown to ten decimal places. When there is no real answer you get a sentence instead of NaN. That covers an even or fractional root of a negative number, an index of 0, a log of zero or a negative value, a log base that is 0, negative or exactly 1, and a power that overflows a 64-bit float, such as 10^309. Limits to keep in mind: integers above 2^53 are not exact, so 2^64 prints as 18446744073709552000 rather than the true value. Copy puts the unrounded number in the line, like 2^10 = 1024, so pasted decimals can be longer than the headline. Every figure is worked out by your browser's own Math functions, and the numbers you enter stay in that tab.
Developers sizing ID spaces or estimating log-scale algorithm costs, plus students checking powers, roots and logs in unusual bases. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Exponent Calculator
- Choose Power (xⁿ), Root (ⁿ√x) or Log (logₙx) with the buttons at the top
- Type the first number into the Base, Radicand or Value field
- Type the second number into the Exponent, Index or Base field
- Read the headline result and the Steps list below it
- Click Copy to copy a one-line formula such as 2^10 = 1024
- Use the reset icon to clear both fields
03Worked examples
- Input:
Power: Base 2, Exponent -3 - Result:
2^-3 = 0.1250000000 - A negative exponent gives the reciprocal, 1 / 2^3. Copy gives 2^-3 = 0.125.
- Input:
Power: Base -8, Exponent 0.3333333333333333 - Result:
A negative base with a fractional exponent has no real result. - This is Math.pow returning NaN, turned into a readable message.
- Input:
Root: Radicand -27, Index 3 - Result:
3√-27 = -3 (Steps: = -(27^(1/3)) (odd root of a negative number)) - Root mode handles odd roots of negatives that the Power route rejects.
- Input:
Root: Radicand -16, Index 2 - Result:
An even or fractional root of a negative number has no real result. - Input:
Log: Value 81, Base 3 - Result:
log_3(81) = 4.0000000000 (Steps: = 4.394449 / 1.098612, = 4.000000000000001) - Change-of-base adds float noise. The headline hides it with ten decimals.
- Input:
Power: Base 10, Exponent 309 - Result:
The result is too large (or divides by zero) for 64-bit floating point. - The largest double is about 1.8 x 10^308.
04Common use cases
- Counting how many IDs a 2^32 or 2^48 key space holds before choosing a column type
- Checking that log2(1,000,000) is about 19.93, so a binary search needs at most 20 comparisons
- Computing a growth factor such as 1.07^30 for a savings or traffic projection
- Taking the cube root of a negative volume or the fifth root of a value without getting NaN
- Finding how many doublings a cache size needs with a log base 2
- Checking a log base 3 or base 1.5 value that a normal calculator has no button for
05Tips
- The headline shows ten decimals, but Copy and the last Steps line keep the full float. Expect 4.000000000000001 in a pasted log base 3 of 81.
- In your own JavaScript, Math.pow(-8, 1/3) is NaN. Use Math.cbrt, or take the root of the absolute value and restore the sign for odd roots, as this tool does.
- Past 2^53 the result is a rounded float. 2^64 shows 18446744073709552000, so use BigInt when you need the exact digits.
- An index of 0.5 in Root mode squares the number, since the root is x^(1/0.5). It is valid, just easy to enter by mistake.
- For log base 2 or 10, enter exactly 2 or 10 to get the exact built-in functions instead of the change-of-base division.
06Related concepts
exponentiation, nth root, logarithm, change of base formula, floating point precision.
Frequently Asked Questions
What is Exponent Calculator?
Exponent Calculator is a free, browser-based developer tool on AIDToolStack. Calculate powers, roots, logarithms It requires no installation or sign-up and works entirely in your browser.
Is Exponent Calculator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Exponent Calculator store my data?
No. It runs in your browser; nothing is uploaded.