How to Use the SQRT Formula in Excel
In this article
The SQRT function in Excel calculates the positive square root of a given number. To use it, simply type =SQRT(number) into any cell, replacing "number" with either a specific value or a reference to a cell containing the data you want to process. This built-in function is the most direct way to perform this mathematical operation without needing complex formulas or manual calculations.
What You'll Need
- Microsoft Excel installed on your computer (desktop or web version).
- A dataset or single number for which you need to find the square root.
- Basic familiarity with entering formulas in cells.
Step-by-Step
- Select the destination cell: Click on the empty cell where you want the result of the square root calculation to appear. For example, if your data is in column A, you might click cell B1.
- Start the formula: Type an equals sign (
=) followed by the function name and an opening parenthesis. It should look like this:=SQRT(. - Enter the argument: Inside the parentheses, specify the number or cell reference you want to calculate. If you are calculating the square root of the number 16, type
16. If you are calculating the square root of the value in cell A1, typeA1. - Close the formula: Add a closing parenthesis
)to complete the syntax. Your full formula should now read either=SQRT(16)or=SQRT(A1). - Execute the calculation: Press the
Enterkey on your keyboard. The cell will immediately display the positive square root of the specified number. - Apply to multiple cells (optional): If you have a list of numbers in column A, click the cell with the first successful formula. Hover over the bottom-right corner of that cell until the cursor changes to a small black cross (the fill handle). Click and drag this handle down over the adjacent cells in column B to apply the same logic to the rest of your data.
Common Mistakes
One frequent error is attempting to calculate the square root of a negative number. In real-number mathematics, the square root of a negative number is undefined, so Excel will return a #NUM! error. If you need to handle negative values, you must decide whether to take the absolute value first using =SQRT(ABS(A1)) or to leave those cells blank using an IF statement.
Another common issue involves incorrect cell references. Users sometimes forget to remove the dollar signs when copying formulas across rows and columns, causing the formula to reference the wrong data source. Ensure you understand relative versus absolute referencing (A1 vs $A$1) before dragging formulas across large datasets.
Finally, typing errors in the function name are surprisingly common. Remember that the function is strictly SQRT, not SQUARE, SQR, or SQRT() with extra spaces inside the parentheses. Always double-check spelling if you receive a #NAME? error.
Tips
You can nest the SQRT function within other formulas for more complex calculations. For instance, if you need to add two numbers and then take the square root of the sum, you would write =SQRT(A1+B1). This allows for dynamic calculations based on changing inputs.
If you prefer not to use the dedicated function, you can achieve the same result using the exponentiation operator. Raising a number to the power of 0.5 is mathematically equivalent to taking its square root. Therefore, =A1^0.5 produces the exact same output as =SQRT(A1). Some users find the caret symbol faster to type than navigating the function menu.
For older versions of Excel or when working with arrays, remember that SQRT operates element-wise. If you pass a range of cells directly into the function in modern Excel versions that support dynamic arrays, it may spill results across multiple cells automatically. However, for traditional compatibility, applying the formula to individual cells remains the standard practice.
Troubleshooting
If your formula returns a #VALUE! error, check the content of the referenced cell. This error typically occurs if the cell contains text, such as "N/A" or a string description, rather than a numeric value. Ensure the source data is formatted as a number.
If you see a #REF! error, it means the cell reference used in the formula has been deleted or moved. Verify that the cell you are pointing to still exists and contains valid data. You may need to re-enter the correct cell address.
When the result appears as a decimal but you expect a whole number, the input value likely isn't a perfect square. You can control the display precision by selecting the cell, going to the Home tab, and clicking the Decrease Decimal button in the Number group. Note that this only changes how the number looks; the underlying value remains precise unless you use the ROUND function.
If the formula does not update after you change the source data, ensure that automatic calculation is enabled. Go to Formulas > Calculation Options and select Automatic. Sometimes, switching between workbooks or heavy processing loads can force Excel into manual calculation mode.
Frequently Asked Questions
Can I calculate the square root of a negative number in Excel?
No, the standard SQRT function cannot handle negative numbers and will return a #NUM! error. To get a result, you must either take the absolute value using =SQRT(ABS(number)) or use complex number functions if applicable, though these are rarely needed for basic home automation or spreadsheet tasks.
Is there a difference between SQRT and POWER?
Yes, but they can do the same thing. SQRT(x) is specifically designed for square roots. POWER(x, 0.5) raises x to the power of 0.5, which is mathematically identical. POWER is more flexible because you can use it for cube roots (POWER(x, 1/3)) or other exponents, whereas SQRT is limited to second roots.
How do I round the result of a SQRT formula?
Wrap the SQRT function inside the ROUND function. For example, =ROUND(SQRT(A1), 2) will calculate the square root of the value in A1 and round the result to two decimal places. This is useful for cleaning up long decimals in reports.
Does SQRT work in Google Sheets?
Yes, the syntax is identical. You can use =SQRT(number) in Google Sheets just as you would in Microsoft Excel. The behavior regarding errors and negative numbers is also the same across both platforms.
Can I use SQRT with cell ranges?
In classic Excel usage, SQRT takes a single number or cell reference. If you enter a range like =SQRT(A1:A10) in older versions, it may return an error or only process the first cell depending on context. In newer versions supporting dynamic arrays, it may spill results for each cell in the range. For consistent results across all versions, apply the formula to individual cells and copy it down.