Article
Natural Log (ln): Formula, Rules and Worked Examples
The natural logarithm ln x is the logarithm with base e ≈ 2.71828. It answers the question of what power e must be raised to in order to give x. This article covers the definition, the key values, the product and power rules, converting from the common logarithm, the derivative and an application to doubling time. You can check your own numbers in the natural log calculator. For x = 20 the result is 2.995732.
Last updated:
Find the natural log in the natural log calculator. Find a logarithm with any base in the logarithm calculator for any base.
What the natural logarithm is
The natural logarithm is the logarithm with base e, the irrational number e ≈ 2.718281828. It is the inverse of the exponential function e^x.
ln x = y ⇔ e^y = x
ln 1 = 0, ln e = 1
example: ln 20 ≈ 2.995732, because e^2.995732 ≈ 20
| x | ln x | Note |
|---|---|---|
| 0.5 | −0.693147 | −ln 2 |
| 1 | 0 | ln 1 = 0 |
| 2 | 0.693147 | |
| e ≈ 2.71828 | 1 | ln e = 1 |
| 5 | 1.609438 | |
| 10 | 2.302585 | |
| 20 | 2.995732 | |
| 100 | 4.60517 | 2 · ln 10 |
The natural log is defined only for x > 0. For zero and negative numbers it does not exist among the real numbers.
Try it with an example
Example: x = 20. The value is already stored in the link to the calculator.
- Number x
- 20
- Result
- ln x = 2.9957322736, log₁₀ x = 1.3010299957
Open the calculator with these numbers
The calculator reads the values from the page address and shows the result right away. You can change them freely.
How the calculator works
The calculator finds ln x to ten decimal places and shows a check, e raised to the result, which returns x. It also gives the common logarithm, the value of ln 10, the number e, a series approximation for x close to 1 and a graph of the curve with the point marked. The number x must be greater than zero, because among the real numbers the logarithm of zero and of negative numbers does not exist. For a value below 1 the result is negative.
Rules of the natural logarithm
The log of a product is the sum of the logs: ln(a · b) = ln a + ln b. The log of a quotient is the difference: ln(a ÷ b) = ln a − ln b. The log of a power is the exponent times the log: ln(a^k) = k · ln a. For x = 20 we have ln 20 = ln 4 + ln 5 = 1.386294 + 1.609438 = 2.995732.
For a fraction, ln 0.5 = −ln 2 = −0.693147, so numbers below 1 have a negative natural log. A logarithm with any base can be found in the logarithm calculator for any base, and the general rules are described in Logarithm: Formula and Change of Base.
Converting a common logarithm to a natural one
The two logarithms are linked by the constant ln 10 ≈ 2.302585. The formula is ln x = log₁₀ x · ln 10. For x = 20 the common logarithm is 1.30103, so ln 20 = 1.30103 · 2.302585 = 2.995732. In reverse, log₁₀ x = ln x ÷ ln 10.
On calculators "log" usually means the common logarithm and "ln" the natural one, but in most programming languages, for example JavaScript and Python, the log() function computes the natural logarithm. The common logarithm is in the common logarithm calculator, and the logarithm calculator lets you choose the base. The exponential function e^x can be found in the exponent calculator.
The derivative of ln x and applications
The derivative of the natural log is (ln x)′ = 1 ÷ x, and the integral of 1 ÷ x is ln x. That is why ln x appears in descriptions of exponential growth, radioactive decay and continuous compounding of interest. The equation e^x = 50 is solved by x = ln 50 = 3.912023.
The doubling time of an amount follows from ln 2 ÷ ln(1 + r) with annual compounding at a rate r. For r = 7% it is 10.2448 years, and with continuous compounding ln 2 ÷ 0.07 = 9.9021 years. Compound interest is in the compound interest calculator, and a root of any degree, which also relies on logarithms, in the nth root calculator. Averaging growth rates is covered in Geometric Mean.
Four worked examples
You can repeat the first and the third example in the natural log calculator.
1. The natural log of 20
Splitting into factors.
- Split the number: 20 = 4 · 5.
- Write the sum: ln 4 + ln 5 = 1.386294 + 1.609438.
- The result is 2.995732.
- The calculator shows 2.9957322736.
2. The natural log of 0.5
A number below 1.
- Write 0.5 as 1 ÷ 2.
- Use ln(1 ÷ 2) = ln 1 − ln 2 = −ln 2.
- The value of ln 2 is 0.693147.
- The result is −0.693147.
3. Solving the equation e^x = 50
An application of the logarithm.
- Take ln of both sides.
- The exponent comes out in front: x · ln e = ln 50.
- Since ln e = 1, you get x = ln 50.
- The result is 3.912023.
4. The doubling time of an amount at 7% a year
Compound interest.
- Write the condition (1.07)^t = 2.
- Take logs: t · ln 1.07 = ln 2.
- Divide: 0.693147 ÷ 0.067659.
- The doubling time is 10.24 years.
Common mistakes when finding the natural log
- Taking the log of zero or a negative number — ln x exists only for x > 0.
- Confusing ln with log10 — ln has base e ≈ 2.718 and log10 has base 10, so ln 10 ≈ 2.303, not 1.
- Writing ln(a + b) as ln a + ln b — a sum of logs is the log of a product, not of a sum.
- Forgetting that ln e = 1 — ln e = 1, and ln 1 = 0.
- Turning ln(a^k) into (ln a)^k — the exponent comes out in front as a factor: k · ln a.
- Rounding too early — ln 20 ≈ 2.9957, so rounding to 3 causes a visible error in e raised to the result.
- Leaving out the brackets in ln(a + b) — writing ln a + b means (ln a) + b, not the logarithm of a sum.
Frequently asked questions
What is the natural log?
The natural log ln x is the logarithm with base e ≈ 2.71828. It is the exponent to which e must be raised to give x.
What is ln e and ln 1?
ln e = 1, because e to the power 1 is e. ln 1 = 0, because e to the power 0 is 1.
How do you calculate the natural log?
Use a calculator or split into factors. For 20 it is ln 4 + ln 5 = 2.9957.
How do you find the natural log of a product and a power?
Use ln(a · b) = ln a + ln b and ln(a^k) = k · ln a. For example ln 100 = 2 · ln 10 = 4.6052.
How do you convert log10 to ln?
Multiply the common logarithm by ln 10 ≈ 2.3026. For x = 20 it is 1.301 · 2.3026 ≈ 2.9957.
What is the derivative of ln x?
The derivative of ln x is 1 ÷ x for x > 0. The integral of 1 ÷ x is ln x.
Can you take the natural log of a negative number or zero?
No. Among the real numbers ln x is defined only for x > 0, and the calculator reports an error for zero and negative numbers.
How do you find a doubling time with ln?
Use t = ln 2 ÷ ln(1 + r). For r = 7% it is 10.24 years, and with continuous compounding ln 2 ÷ 0.07 = 9.9 years.
Find the natural log of your own number
Enter a positive number in the natural log calculator and read ln x, the common logarithm and the power check.
The common logarithm is in the common logarithm calculator, and a logarithm with any base in the logarithm calculator for any base.