Example 1
Square root of a number
B2 =SQRT(A2)
Result: 12
12 x 12 is 144.
B2 =SQRT(A2) returns 12
Returns the square root of a number. SQRT(144) is 12. A negative number returns #NUM!.
Syntax
=SQRT()
All versions of Excel.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =SQRT(A2) returns 12
SQRT returns the number that, multiplied by itself, gives the input. =SQRT(144) is 12 and =SQRT(2) is about 1.41421356.
=SQRT(B2) turns 225 square metres into a side of 15 metres.=SQRT((G2-E2)^2+(H2-F2)^2) is the straight-line distance. This is Pythagoras' theorem.=SQRT(B2) where B2 holds a variance. In practice, STDEV.S and STDEV.P give the result directly.=SQRT(SUMSQ(errors)/COUNT(errors)), a common measure of forecast accuracy.SQRT of a negative number returns #NUM!, because there is no real answer. If the input can be negative because of rounding or sign convention, you have two options. =SQRT(ABS(B2)) ignores the sign, which suits sizes and distances. =IF(B2<0, "", SQRT(B2)) shows a blank, which suits data that should never be negative and needs to be noticed.
=SQRT(B2), =POWER(B2, 1/2) and =B2^(1/2) give the same result for non-negative numbers. SQRT is the clearest way to write a square root. For cube roots and other roots, use POWER with a fractional exponent.
Squaring the answer returns the original number, so =SQRT(B2)^2 should equal B2. A quick way to spot a mistake is to confirm that the root is smaller than the input when the input is above 1, and larger when the input is between 0 and 1. For example, SQRT(0.25) is 0.5. SQRT needs numbers. Text returns #VALUE!.
B2. It must be 0 or more, or SQRT returns #NUM!.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =SQRT(A2)
Result: 12
12 x 12 is 144.
B2 =SQRT(A2) returns 12
Example 2
B2 =SQRT(A2)
Result: 15
A square of 225 square metres has sides of 15 metres.
B2 =SQRT(A2) returns 15
Example 3
E2 =SQRT((C2-A2)^2+(D2-B2)^2)
Result: 5
The gaps are 3 across and 4 up, the sides of a 3-4-5 triangle.
E2 =SQRT((C2-A2)^2+(D2-B2)^2) returns 5
Example 4
B2 =SQRT(A2)
Result: #NUM!
There is no real square root of -9. Use SQRT(ABS(A2)) if you only need the size.
B2 =SQRT(A2) returns #NUM!
Example 5
B2 =SQRT(ABS(A2))
Result: 3
ABS removes the sign first, so SQRT works on 9.
B2 =SQRT(ABS(A2)) returns 3
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In C2, return the side of a square plot with the area in B2. Fill it down to C6.
Answer in C2, then it fills down to C6.
#NUM!. Check where the negative came from before you hide it with ABS, because ABS can mask a sign error in the data.(C2-A2)^2 squares the difference. C2-A2^2 squares only A2.=(C2-A2)^2+(D2-B2)^2 is 25, not 5, in the example.POWER(x, 1/3) for a cube root.#VALUE!. Keep units out of the number cell.Use `=SQRT(B2)`. You can also write `=B2^(1/2)` or `=POWER(B2, 1/2)`; all three return the same result.
The input is negative. Excel returns real numbers only, so SQRT(-9) fails. Use ABS if you want the size, or fix the source of the negative.
Use a fractional power: `=POWER(27, 1/3)` is 3. SQRT only does square roots.
Use Pythagoras: `=SQRT((x2-x1)^2+(y2-y1)^2)`. The two squared differences are added before the root is taken.
In Microsoft 365, `=SQRT(B2:B9)` returns a root for each cell and spills down. In older versions, write `=SQRT(B2)` in the first row and fill it down.
Tracks take you from the basics to modelling, one graded exercise at a time.