Example 1
- x = 27
- n = 3
3
What is ³√27? 3. Three cubed is 27.
Type x and the degree n. 27 and 3 give 3, because 3³ = 27. 16 and 2 give 4. 81 and 4 give 3. When n = 0 the result is 0.
The calculator takes the nth root of x. When n = 0 the formula returns 0, not a blank and not Infinity. A negative x with a fractional 1/n often leaves a blank, because power returns a blank value.
Enter data and click Calculate.
The nth root looks for a y such that yⁿ = x. With 27 and n = 3 school writes 3, because 3³ = 27. The calculator takes the nth root of x and on these three pairs shows a clean 3, 4 and 3.
16 and 2 are an ordinary square root: 4, because 4² = 16. 81 and 4 give 3, because 3⁴ = 81. Degree n is the second field, not a trick hidden in x.
When n = 0, 1/n does not exist. This implementation does not leave a blank and does not print Infinity: when n is 0 the result is 0, so n = 0 returns 0. That is not ⁿ√x from a notebook, only this code.
A negative x with a non-integer 1/n usually yields a blank value from power. The calculator then clears the result. −27 and 3 will not come back as school −3. A square root of a negative also fails here.
The square-root card next door computes only n = 2 and has its own engine. Here n is a typed field. Floor does not extract a root.
27 and 3 give 3. 16 and 2 give 4. 81 and 4 give 3. n = 0 gives 0.
n !== 0 ? Math.pow(x, 1/n) : 0
ⁿ√x = power(x, 1/n). 27 and 3 give 3. 16 and 2 give 4. 81 and 4 give 3. n = 0 returns 0.
3
What is ³√27? 3. Three cubed is 27.
4
What is √16? 4. Same square as on the square-root card.
3
What is ⁴√81? 3. Three to the fourth is 81.
3. 3³ = 27. The result is 3.
A y such that yⁿ = x. 16 and 2 give 4. 81 and 4 give 3.
4 and 3. The second field is the degree n.
When the degree is 0, the result is 0. That is a safeguard in the formula, not the school definition of a root.
Rarely. the cube root of −27 is a blank value, so the result stays blank. School −3 does not come back.
There n is always 2 and the engine is different. Here you type n. 16 and 2 still give 4.
Yes, when n ≠ 0. 1ⁿ = 1, so ⁿ√1 = 1. n = 0 again returns 0.
Yes. 27 and 27.0 at n = 3 give 3.
0 when n > 0. Zero to a positive reciprocal power stays zero.
Yes. 8 and 2 give about 2.828427, not an integer, because √8 is not 3.
The calculator computes the same formula as the definition below.
Page updated in 2026.