Skip to main content

Square Root in Excel: A Quick Lesson

Master the basics of the Excel SQRT() function. Learn how to use SQRT() for quick square root calculations and address common errors.
Jul 1, 2025  · 5 min read

Excel gives you a simple way to calculate square roots using the SQRT() function. It’s a quick, built-in method that works well for positive numbers and integrates easily into other formulas.

In this article, I’ll walk you through how to use the SQRT() function in Excel and show you what to watch out for, including errors and alternative methods like POWER().

Understanding Excel SQRT()

The SQRT() function in Excel is a straightforward tool that returns the positive square root of a number. If you need to find the value that, when multiplied by itself, gives you the original number, SQRT() handles it for you. For example, the square root of 16 is 4, because 4 × 4 = 16.

You’re sure to find SQRT() useful in all sorts of scenarios. Before we look at examples, let's cover how SQRT() works.

How does SQRT() work?

Here's the syntax for the function:

=SQRT(number)

Replace number with the value or cell reference you want the square root of.

When should you use SQRT()?

So, when is SQRT() the right tool for the job? Anytime you need to find the positive square root of a positive number, this function works. It's common in geometry (like finding the length of the side of a square given its area), statistics, and even finance. As we’ll see in upcoming examples, these use cases appear more often than you might think.

Some SQRT() Examples

Let's now explore a few basic examples that show how SQRT() works in a variety of situations.

Finding the square root of a number

To start, let’s look at the most direct use: calculating the square root of a specific number. If you want the square root of 25, type this in any cell:

=SQRT(25)

Square Root in Excel

Excel will return 5. This simple calculation lays the groundwork for more dynamic applications.

Using a cell reference

Building on our previous example, you probably won't always hard-code numbers. If cell A1 contains a number, like 81, use:

=SQRT(A1)

This will give you 9, since 9 × 9 = 81.

Referencing cells makes your formulas flexible and dynamic, especially useful when working with changing data.

SQRT() with formulas

Taking things a step further, you can use calculations inside SQRT(). For example, to get the square root of the sum of values in A1 and B1:

=SQRT(A1 + B1)

This comes in handy when working with dynamic data that combines multiple inputs.

SQRT() and Negative Numbers

SQRT() is simple and effective, but you can still make mistakes. The first and most important limitation is that SQRT() can't handle negative numbers. If you try:

=SQRT(-9)

Excel will return a #NUM! error. This happens because the square root of a negative number isn't a real number — it's imaginary.

Now you might be wondering how to design your formulas so it doesn't fail if it encounters a negative input. The solution is to wrap SQRT() in an IF() statement to catch the problem:

=IF(A1 < 0, "Invalid", SQRT(A1))

This formula will display "Invalid" if A1 is negative; otherwise, it will return the square root.

Using SQRT() in Real-World Scenarios

Let’s see how SQRT() applies in real-world contexts.

Geometry: Calculating the diagonal of a square

Suppose you know the length of a square's side in cell A1 and want to find the diagonal. The formula for the diagonal d of a square is: d = side × SQRT(2)

In Excel, use:

=A1 * SQRT(2)

This gives you the diagonal length based on the side in A1.

Statistics: Standard deviation calculation

Let's try something from statistics. If you've already calculated the variance in cell B1,

=SQRT(B1)

gives you the standard deviation.

While Excel’s built-in STDEV.P() or STDEV.S() functions are often more convenient, understanding how SQRT() fits into statistical calculations can help clarify what’s happening.

You may find yourself needing related functions that handle similar or more complex calculations. Let me introduce a few such tools.

  • POWER() lets you raise a number to any exponent (including 0.5 for square roots).

  • ABS() gets the absolute value of a number.

  • STDEV.P() and STDEV.S() handle standard deviation without manual SQRT() steps.

For example, to get the square root with POWER():

=POWER(A1, 0.5) 

Square Root in Excel using POWER()

This does the same thing as SQRT(A1), so there's no advantage in this method if you are just interested in square roots. But POWER() can handle any exponent, so if you’re also working with cube roots or fractional exponents, POWER() is worth knowing also.

Troubleshooting SQRT()

Let’s wrap up with a few troubleshooting tips and quirks to help you avoid common mistakes.

  • If you input a negative number, you'll always get a #NUM! error.

  • SQRT() ignores text and empty cells; if you reference a cell with text or blanks, it returns #VALUE!.

  • If your number is zero, SQRT(0) just returns zero.

If you need to deal with negative numbers (for example, if you want the complex square root), Excel doesn't handle that natively without using the IMAGINARY() and COMPLEX() functions. This is a good reminder that while SQRT() covers most use cases, specialized scenarios may require a different approach.

Conclusion

If you're eager to strengthen your Excel (and math) skills, exploring related functions like POWER(), IMAGINARY(), COMPLEX(), and ABS().

And of course, there's no substitute for structured learning, so enroll in our Excel Fundamentals skill track and our Advanced Excel Functions course.

Advance Your Career with Excel

Gain the skills to maximize Excel—no experience required.

Start Today for Free

Josef Waples's photo
Author
Josef Waples

I'm a data science writer and editor with contributions to research articles in scientific journals. I'm especially interested in linear algebra, statistics, R, and the like. I also play a fair amount of chess! 

Topics

Learn Excel with DataCamp

Course

Data Preparation in Excel

3 hr
55.3K
Understand how to prepare Excel data through logical functions, nested formulas, lookup functions, and PivotTables.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related
Excel Cheat Sheet.png

cheat-sheet

Excel Formulas Cheat Sheet

Learn the basics of Excel with our quick and easy cheat sheet. Have the basics of formulas, operators, math functions and more at your fingertips.
Richie Cotton's photo

Richie Cotton

18 min

Tutorial

How to Calculate Cube Roots in Excel: A Step-by-Step Guide

There are three easy ways to calculate cube roots in Excel: the caret ^ operator, the POWER() function, and custom VBA functions.
Laiba Siddiqui's photo

Laiba Siddiqui

6 min

Tutorial

Excel ROUND(): The Complete Guide to Rounding in Excel

Learn how to use the ROUND() function and its alternatives in Excel. Learn how to round decimals, integers, and time values.
Allan Ouko's photo

Allan Ouko

7 min

Tutorial

How to Divide in Excel: A Beginner-Friendly Breakdown

Learn how to divide numbers, cells, and columns in Excel using simple formulas and tools. Discover how to handle errors, use functions like QUOTIENT and MOD, and ensure results sum to whole numbers when needed.
Laiba Siddiqui's photo

Laiba Siddiqui

7 min

Tutorial

How to Multiply in Excel: Multiply Cells, Columns, Rows, and More

Learn how to multiply in Excel, including how to multiply columns and rows. Learn to use simple formulas as well as functions like PRODUCT() and SUMPRODUCT().
Laiba Siddiqui's photo

Laiba Siddiqui

6 min

Tutorial

Average() in Excel: An Essential Function Explained

Learn to work with Excel’s AVERAGE() function, including conditional and logical variations.
Josef Waples's photo

Josef Waples

3 min

See MoreSee More