---
title: hypot function
description: Learn the syntax of the hypot function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/hypot
---

# `hypot` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns `sqrt(expr1 * expr1 + expr2 * expr2)`.

## Syntax

```
hypot(expr1, expr2)
```

## Arguments

* `expr1`: An expression that evaluates to a numeric.
* `expr2`: An expression that evaluates to a numeric.

## Returns

A `DOUBLE`.

## Examples

```sql
> SELECT hypot(3, 4);
 5.0
```

## Related functions

* [`cbrt` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/cbrt.md)
* [`sqrt` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/sqrt.md)
