# sqrt() Function & Examples

Use the sqrt() arithmetic function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## sqrt

#### sqrt(x)

Try it yourself:

```calculio
sqrt(25)
5 * 5
sqrt(-1)
```

[square](https://calcul.io/function/square/index.md)

[sqrtm](https://calcul.io/function/sqrtm/index.md)

[multiply](https://calcul.io/function/multiply/index.md)

[pow](https://calcul.io/function/pow/index.md)

---

## sqrt(): Square Root

**sqrt()** returns the principal square root. For nonnegative real x, sqrt(x) is the nonnegative value whose square is x. It is used in distance, standard deviation, and geometry.

## Domain and checks

Negative real inputs have no real square root; use complex arithmetic only when appropriate. Verify a result with [square()](https://calcul.io/function/square/index.md). Use [hypot()](https://calcul.io/function/hypot/index.md) for stable two-dimensional lengths and [pow()](https://calcul.io/function/pow/index.md) for a general exponent.

Square roots preserve units only when those units have a meaningful square-root form. Near zero, avoid subtracting nearly equal squared quantities before calling sqrt.

[All functions](https://calcul.io/functions/index.md)
