How to Compute Square Root in Excel: Easy Steps
In this article
To compute a square root in Excel, use the SQRT function: type =SQRT(number) in a cell, replacing number with the value or cell reference you want to evaluate. For example, =SQRT(25) returns 5, and =SQRT(A2) returns the square root of whatever is in cell A2. You can also use the exponent operator: =A2^(1/2) or =A2^0.5 gives the same result. The SQRT function is the most direct and readable method, and it works in every modern version of Excel on Windows, Mac, and the web. The only prerequisite is a valid non-negative number; SQRT returns an error for negative values, and you will see #NUM! if the input is negative. For negative numbers, use the ABS function first or the IMPOWER function if you need complex results. This guide walks through each method with exact steps, common pitfalls, and troubleshooting so you can compute square roots confidently.
What You'll Need
- Microsoft Excel installed on your computer or access to Excel for the web. The steps below apply to Excel 2016 and later, including Microsoft 365; menu labels may differ slightly by version, device, or region.
- A worksheet with at least one cell containing a non-negative number, or you can type a number directly into the formula.
- Basic familiarity with entering formulas (starting with an equals sign).
Step-by-Step
- Open your Excel workbook and click the cell where you want the result to appear. This cell will hold the square root value.
- Type the SQRT formula. Start with an equals sign, then type
SQRT(. For example, if your number is in cell A2, type=SQRT(A2). If you want to use a literal number, type=SQRT(144). Close the parenthesis and press Enter. - Alternatively, use the exponent operator. In the result cell, type
=A2^(1/2)or=A2^0.5and press Enter. This method is useful if you prefer not to use a function or if you are working with a formula that already uses exponents. - Copy the formula down if you have a column of numbers. Click the cell with the formula, grab the fill handle (the small square at the bottom-right corner of the cell), and drag it down to fill the adjacent cells. Excel adjusts the cell references automatically.
- Check the result. For example,
=SQRT(81)should display 9. If you see a decimal like 9.0, that is normal; Excel may format it as a number with decimals depending on column width and formatting. - Format the result if needed. Select the result cells, right-click, choose Format Cells, and pick Number with your desired decimal places. This does not change the underlying value, only how it is displayed.
- Handle negative numbers. If your input can be negative, SQRT returns
#NUM!. To avoid errors, wrap the input in ABS:=SQRT(ABS(A2))gives the square root of the absolute value. If you need the complex square root, use=IMPOWER(A2,0.5)or=IMSQRT(A2)(available in Excel 2013 and later with the Analysis ToolPak loaded, though IMSQRT is a built-in function in modern Excel).
Common Mistakes
- Forgetting the equals sign. Excel treats
SQRT(25)without an equals sign as text, not a formula. Always start with=. - Using a negative number directly.
=SQRT(-25)returns#NUM!because the square root of a negative number is not a real number. Use ABS or IMPOWER if negatives are expected. - Mismatched parentheses. Typing
=SQRT(A2without the closing parenthesis causes Excel to show an error dialog. Make sure every opening parenthesis has a closing one. - Referencing an empty cell.
=SQRT(B2)where B2 is blank returns 0, which may be misleading. Check that the referenced cell contains a number. - Confusing SQRT with SQRTPI. SQRTPI multiplies the number by pi before taking the square root; use SQRT for a plain square root.
- Expecting exact results for non-perfect squares.
=SQRT(2)returns 1.414213562... which is an approximation. Excel stores 15 significant digits, so very small differences may appear when comparing results.
Tips
- Use cell references instead of hard-coded numbers so your formula updates automatically when the source data changes.
- To compute the square root of a range of numbers quickly, enter the formula in the first cell and double-click the fill handle to copy it down to the last adjacent row.
- If you need the nth root (cube root, fourth root, etc.), use the exponent operator:
=A2^(1/3)for cube root,=A2^(1/4)for fourth root, and so on. - Combine SQRT with ROUND to limit decimal places in the result:
=ROUND(SQRT(A2),2)gives two decimal places. - For very large datasets, the exponent method
=A2^0.5may calculate slightly faster than the SQRT function, though the difference is negligible for typical worksheets. - Remember that Excel's square root is the principal (non-negative) root. If you need both positive and negative roots, you must calculate them separately.
Troubleshooting
If your formula does not work as expected, check these common issues in order:
- #NUM! error: The input is negative. Use
=SQRT(ABS(A2))or=IMPOWER(A2,0.5)if complex results are acceptable. - #VALUE! error: The referenced cell contains text or a non-numeric value. Ensure the cell holds a number; you can use
=ISNUMBER(A2)to test. - Formula shows as text: The cell may be formatted as Text. Select the cell, go to the Home tab, set the number format to General, then re-enter the formula. Alternatively, use Text to Columns or multiply by 1 to convert.
- Result is 0 unexpectedly: The referenced cell is empty or contains 0. Check the source cell.
- Unexpectedly large or small result: Verify the input number; for example,
=SQRT(100)is 10, not 100. Also check that you did not accidentally use SQRTPI. - Formula not calculating: Calculation may be set to Manual. Go to Formulas > Calculation Options and select Automatic. (Menu labels may vary slightly by version.)
- Circular reference warning: The formula refers to its own cell. Move the formula to a different cell or adjust the reference.
Frequently Asked Questions
Can I compute a square root without using the SQRT function?
Yes. Use the exponent operator: =A2^(1/2) or =A2^0.5. Both return the same result as SQRT for non-negative numbers.
How do I compute the square root of a negative number in Excel?
SQRT returns #NUM! for negatives. Use =SQRT(ABS(A2)) for the root of the absolute value, or =IMPOWER(A2,0.5) or =IMSQRT(A2) for a complex result.
Why does my square root formula return a decimal instead of a whole number?
Excel returns the exact value, which may be a decimal for non-perfect squares. For perfect squares like 25, it returns 5. If you see 5.0, the cell formatting is set to show decimals; change the format to General or Number with 0 decimal places.
Can I use SQRT on a range of cells at once?
SQRT accepts a single number or cell reference, not a range. To apply it to multiple cells, enter the formula in the first cell and copy it down, or use an array formula like =SQRT(A2:A10) in Excel 365 with dynamic arrays (press Enter and it spills).
What is the difference between SQRT and SQRTPI?
SQRT returns the square root of a number. SQRTPI returns the square root of (number × pi). For example, =SQRTPI(1) returns about 1.772, while =SQRT(1) returns 1.
Does Excel have a cube root function?
No dedicated cube root function exists. Use the exponent operator: =A2^(1/3) for cube root, or =A2^(1/n) for the nth root.