---
title: "SQRT"
description: "The SQRT SQL function returns the square root of the provided number."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/sqrt
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/sqrt
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> SQRT[SQRT]:::quoted
    SQRT --> End((END))
```

## Purpose
The `SQRT` SQL function returns the square root of the provided number.

See also [[POWER]].

Parameters:
- Input (`decimal`): the number to get the square root of.

Returns: A number which represents the square root of the provided number.

## Examples
The following example retrieves the square root of 256:
```sql
select sqrt(256)

-------------------
16
```
The following example retrieves the square root of 2:
```sql
select sqrt(2)

-------------------
1.4142135623731
```