Skip to content

SQRT

Returns the square root of a number. SQRT(144) is 12. A negative number returns #NUM!.

Syntax

=SQRT()

Math and trigonometry

All versions of Excel.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Number
Square root
2
144
12
3

B2 =SQRT(A2) returns 12

How SQRT works

SQRT returns the number that, multiplied by itself, gives the input. =SQRT(144) is 12 and =SQRT(2) is about 1.41421356.

Common uses

  • Side of a square from its area: =SQRT(B2) turns 225 square metres into a side of 15 metres.
  • Distance between two points: with coordinates in E2:H2 as x1, y1, x2, y2, =SQRT((G2-E2)^2+(H2-F2)^2) is the straight-line distance. This is Pythagoras' theorem.
  • Standard deviation from variance: =SQRT(B2) where B2 holds a variance. In practice, STDEV.S and STDEV.P give the result directly.
  • Root mean square error: =SQRT(SUMSQ(errors)/COUNT(errors)), a common measure of forecast accuracy.
  • Scaling rules: some safety-stock and sampling formulas use the square root of demand or sample size.

Negative numbers

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, POWER and the caret

=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.

Related functions

  • SQRTPI returns the square root of a number multiplied by pi, which comes up in circle and statistics formulas.
  • ABS strips the sign so SQRT cannot fail.
  • SUMSQ adds squares, the natural partner of SQRT in distance and error formulas.

Checking your result

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!.

Arguments

number
The number to take the square root of, such as B2. It must be 0 or more, or SQRT returns #NUM!.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Square root of a number

B2 =SQRT(A2)

Result: 12

12 x 12 is 144.

B2
A
B
C
1
Number
Square root
2
144
12
3

B2 =SQRT(A2) returns 12

Example 2

Side of a square from its area

B2 =SQRT(A2)

Result: 15

A square of 225 square metres has sides of 15 metres.

B2
A
B
C
1
Area (m²)
Side (m)
2
225
15
3

B2 =SQRT(A2) returns 15

Example 3

Distance between two points

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
A
B
C
D
E
1
x1
y1
x2
y2
Distance
2
1
2
4
6
5
3

E2 =SQRT((C2-A2)^2+(D2-B2)^2) returns 5

Example 4

Negative numbers give #NUM!

B2 =SQRT(A2)

Result: #NUM!

There is no real square root of -9. Use SQRT(ABS(A2)) if you only need the size.

B2
A
B
C
1
Number
Square root
2
-9
#NUM!
3

B2 =SQRT(A2) returns #NUM!

Example 5

Use ABS to avoid the error

B2 =SQRT(ABS(A2))

Result: 3

ABS removes the sign first, so SQRT works on 9.

B2
A
B
C
1
Number
Root of the size
2
-9
3
3

B2 =SQRT(ABS(A2)) returns 3

Your turn.

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.

C2
A
B
C
D
E
F
G
H
I
1
Plot
Area (m²)
Side (m)
x1
y1
x2
y2
Distance
2
North
144
1
2
4
6
3
Centre
225
4
East
400
5
West
81
6
Yard
2500
7

Common mistakes

  • A negative input returns #NUM!. Check where the negative came from before you hide it with ABS, because ABS can mask a sign error in the data.
  • In the distance formula, the brackets matter: (C2-A2)^2 squares the difference. C2-A2^2 squares only A2.
  • Forgetting SQRT in a distance formula leaves the squared distance. =(C2-A2)^2+(D2-B2)^2 is 25, not 5, in the example.
  • For roots other than the square root, SQRT is no help. Use POWER(x, 1/3) for a cube root.
  • Text such as "225 m²" returns #VALUE!. Keep units out of the number cell.

Questions people ask

How do I calculate a square root in Excel?

Use `=SQRT(B2)`. You can also write `=B2^(1/2)` or `=POWER(B2, 1/2)`; all three return the same result.

Why does SQRT return #NUM!?

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.

How do I calculate a cube root?

Use a fractional power: `=POWER(27, 1/3)` is 3. SQRT only does square roots.

How do I calculate the distance between two points?

Use Pythagoras: `=SQRT((x2-x1)^2+(y2-y1)^2)`. The two squared differences are added before the root is taken.

Can I take the square root of a whole column at once?

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.

Learn SQRT in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.