---
name: "sqrt"
type: command
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/sqrt
revid: 379394
updated: 2026-10-31T00:00:40Z
---

# sqrt

*Command · Math · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Returns square root of x.

## Syntax

```sqf
sqrt x
```

**Parameters:**

- `x`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
private _squareRoot = sqrt 9;  // returns 3
```

## See also

Math Commands · a %5E b

## Community notes

**Benargee** — 2014-08-24

Alternatively use "x^0.5" or "x^(1/2)".

```sqf
_sq = 9^0.5;    // result is 3
_sq = 9^(1/2);    // result is 3
```

You can use this method to get any root.
Cubed root = x^(1/3) or x^0.333[repeating].
Root 4 = x^(1/4) or x^0.25.

<sub>Source: [BI Community Wiki — sqrt](https://community.bistudio.com/wiki/sqrt) (revision 379394).</sub>
