---
schema_version: "1"
id: e8448ca86d3c347f5424aa50e17c9f076651ef4cbfe90bdf6d2badec5f455213
title: SQRT
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_sqrt.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_sqrt.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 35b44adf55b9ccf2c4cd1d9168dc8ed8958085db45bfc72def0e554ba5b5df61
description: Returns the positive square root of a given number.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# SQRT

Returns the positive square root of a given number.

## Use

`SQRT(number)` and replace number with the field or expression you want computed into a square root.

## Tips

- Calculating the square root of a negative number results in an error on the detail page.
- Avoid division by zero errors by including an IF function such as: `IF(Amplitude__c >= 0, SQRT(Amplitude__c), null)`.

![Square Root Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Square Root Example

`SQRT(25)` returns the square root of 25, which is 5.

![Amplitude Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Amplitude Example

`SQRT(Amplitude__c)` returns the square root of a custom number field representing the amplitude of an earthquake.