# SQRT formula generator

> Describe what you need and get a SQRT formula for Excel and Google Sheets, run on real data before you copy it. Plus 5 tested SQRT examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/sqrt · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

SQRT returns the square root of a number: the value that, multiplied by itself, gives the number.

Describe the task at [SQRT formula generator](https://spreadsheetpractice.com/tools/formula-generator/sqrt) and get a SQRT formula for Excel and Google Sheets, tested on real data.

## Tested SQRT examples

### Calculate the distance between two points

`=SQRT((D2-B2)^2+(E2-C2)^2)`

Excel. Result on the sample sheet: 5 rows (F2:F6). [See it and try it](https://spreadsheetpractice.com/formulas/distance-between-two-points)

### Calculate a square root

`=SQRT(B2)`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/square-root)

### Calculate RMSE

`=SQRT(SUMPRODUCT((B2:B7-C2:C7)^2)/COUNT(B2:B7))`

Excel. Result on the sample sheet: 7.23. [See it and try it](https://spreadsheetpractice.com/formulas/calculate-rmse)

### Find the nearest location by coordinates

`=LET(dist,SQRT((B2:B7-G1)^2+(C2:C7-I1)^2),XLOOKUP(MIN(dist),dist,A2:A7))`

Excel. Result on the sample sheet: Riverside. [See it and try it](https://spreadsheetpractice.com/formulas/nearest-location-by-coordinates)

## Questions

### What does the SQRT formula generator do?

You describe the task in plain English, and it writes the formula, using SQRT where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does SQRT do?

SQRT returns the square root of a number: the value that, multiplied by itself, gives the number.

### Can I learn to write SQRT formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the SQRT function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
