---
schema_version: "1"
id: aff8e2e9e1aff7d718d32566df493774cc2ee675c2dae97b5bc495b21d9ec736
title: LN
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_ln.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_ln.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ed79e8e3e24e0a3f5e693a5b1c6ac34ce221d96af2f36a4d8e5a13d755771b97
description: Returns the natural logarithm of a specified number. Natural logarithms are based on the constant e value of 2.71828182845904.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# LN

Returns the natural logarithm of a specified number. Natural logarithms are based on the constant e value of 2.71828182845904.

## Use

`LN(number)` and replace number with the field or expression for which you want the natural logarithm. Note: the LN function is the inverse of the [EXP](https://help.salesforce.com/s/articleView?id=platform.customize_functions_exp.htm&release=264.0.0&type=5 "Returns a value for e raised to the power of a number you specify.") function.

![Formula 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)

Formula Example

`LN(10)` returns the natural logarithm of 10, which is 2.30.

`LN(Value__c)` returns the natural logarithm of a custom number field called Value.