Links

ln

Learn how to use the ln function in Notion formulas.
The ln() function returns the natural logarithm of a number.
1
ln(number)
The natural logarithm is
loge\log_e
, where
ee
is Euler’s Constant (approximately 2.718281828459045).
For reference, here are the named components of a logarithm:
logbaseargument=exponent\log_{base} argument = exponent
A logarithm is the exponent of the base that returns the argument.
Learn more about the natural logarithm:
In plain English,
logelog_e
helps us find out how many periods (i.e. how long) of continuous growth are needed for a starting value to reach a target end value.
ee
denotes a continuous rate of growth.
Recall from the article on Euler’s Constant (e), that we can find a starting population’s end number with the following formula:
nexn * e^x
…where
nn
is our starting population, and
xx
is the number of periods.
Let’s say we start out with a population of 1,000, which grows continuously for three years (you can check this answer on WolframAlpha):
1000e3=20,0851000 * e^3 = 20,085
At the end of three years, our final population is 20,085.
If you want to fully understand why this works, I highly recommend this guide on exponential functions.
Now let’s look at
logelog_e
.
Where
exe^x
tells us how much growth we’ll experience given a number of periods,
logexlog_ex
tells us how many periods it’ll take to get a specific end result
xx
.
Here’s the natural logarithm of our earlier result. We’ll take the full result, 20,085, and divide it by the starting population of 1,000 (Check this on WolframAlpha):
loge(20,085/1000)=loge(20.085)=3log_e(20,085/1000) = log_e(20.085) = 3
We can now see that
logexlog_ex
is the inverse of
exe^x
. Therefore, these two are roughly equivalent (20,085 is rounded from the actual result of the first equation):
loge(20.085)=e3log_e(20.085) = e^3
This also means:
logee3=3log_ee^3 = 3
Hopefully this aside has helped to demystify
logelog_e
a bit for you!

Example Formulas

1
ln(20) // Output: 2.995732273554
2
3
ln(e) // Output: 1

Example Database

This example database calculates the calculates the number of years needed for a starting population to reach a target end number given a specific growth rate.

View and Duplicate Database

“Years Needed” Property Formula

1
// Compressed
2
round(ln(prop("Target Num") / prop("Starting Num")) / prop("Growth Rate") * 100) / 100
3
4
// Expanded
5
round(
6
ln(
7
prop("Target Num") /
8
prop("Starting Num")
9
) /
10
prop("Growth Rate")
11
* 100
12
) / 100
The first part of this formula replicates the mathematical example in the toggle block above.
First, we find the natural logarithm of the quotient of the Target Num and the Starting Num:
loge(TargetNum/StartingNum)log_e(Target Num/Starting Num)
This is done with the following code: ln(prop("Target Num") / prop("Starting Num"))
Next, we divide this result by the Growth Rate.
Finally, the result is passed through the round function, and we use the following trick to round it to two decimal places: round(result * 100)/100

Other formula components used in this example:

About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.
Last modified 4mo ago