Formula for e in Excel: EXP, LN & More

Formulas & functions · Updated November 23, 2026

The direct formula for Euler’s number e (approximately 2.71828182845904) in Excel is =EXP(1). This returns the value of e raised to the power of 1, which is e itself. You can also use =EXP(1) in any cell, and Excel will display the full precision it stores internally.

What Is Euler’s Number and Why Use It in Excel?

Euler’s number e is a mathematical constant that is the base of natural logarithms. It appears in exponential growth and decay models, compound interest calculations, probability distributions, and many engineering formulas. In Excel, you rarely need the constant alone—you usually use it as part of a larger calculation, such as =EXP(rate*time) for continuous growth or =LN(x) to find the natural logarithm of a number. The EXP function is the key to working with e in Excel.

How the EXP Function Works

The EXP function returns e raised to a given power. Its syntax is =EXP(number), where number is the exponent. For example:

  • =EXP(1) returns 2.71828182845904 (the value of e).
  • =EXP(2) returns 7.38905609893065 (e²).
  • =EXP(0) returns 1 (any number to the power of 0 is 1).
  • =EXP(-1) returns 0.367879441171442 (the reciprocal of e).

In Excel for Microsoft 365 on Windows, you can simply type =EXP(1) in any cell. On Mac, the function works identically—there is no difference in syntax. In Excel for the web, the same formula works as well.

Using EXP for Exponential Growth and Decay

A common real-world use is modeling population growth, radioactive decay, or continuously compounded interest. The general formula is:

Future value = Present value * EXP(growth_rate * time)

For example, if you have $1,000 in an account earning 5% annual interest compounded continuously for 3 years, the calculation in Excel would be:

  • Put 1000 in cell A1.
  • Put 0.05 in cell A2.
  • Put 3 in cell A3.
  • In cell A4, enter =A1*EXP(A2*A3).

The result is 1,161.83 (rounded to two decimals). This matches the continuous compounding formula A = P * e^(rt).

Natural Logarithms: The Inverse of EXP

The natural logarithm function LN is the inverse of EXP. If you want to find the exponent needed to reach a certain value, use =LN(number). For instance, =LN(2.71828182845904) returns approximately 1. This is useful when you have a growth factor and want to find the rate or time.

Example: If a population doubles in 5 years, the continuous growth rate is =LN(2)/5, which equals approximately 0.1386, or 13.86% per year. In Excel, you would enter =LN(2)/5 in a cell and format it as a percentage.

Common Errors and How to Avoid Them

One frequent mistake is using ^ incorrectly. For example, =2.718^1 gives a close approximation, but it is not as precise as =EXP(1). Another error is typing =e^1—Excel does not recognize e as a constant; you must use EXP. Also, remember that EXP expects a number, so if you reference a cell with text, you will get a #VALUE! error. If you get #NUM!, it means the exponent is too large for Excel to handle (the maximum is about 709.782712893).

Alternatives and Related Functions

Besides EXP and LN, Excel has other functions that involve e indirectly:

  • LOG(number, base) – for logarithms with any base, but natural log is LN.
  • POWER(number, power) – equivalent to number^power, but not directly for e.
  • GROWTH – fits an exponential curve to data, using e internally.
  • EXPON.DIST – the exponential distribution, which uses e in its formula.

If you need to display e as a constant in a formula without using EXP, you could type =2.71828182845904, but that is less accurate and not recommended.

Frequently Asked Questions

How do I type e in Excel without a formula?

There is no built-in constant for e like there is for Pi (which you can get with =PI()). To get the numeric value, you must use =EXP(1). If you want a text representation, you can type “e” in a cell, but it will not be treated as a number.

What is the difference between EXP and e^?

=EXP(x) is the correct way to compute e raised to a power. Using =2.71828^x is an approximation and can lead to rounding errors. Always use EXP for accuracy.

Can I use e in Excel for Mac or Excel online?

Yes, EXP and LN work identically in Excel for Mac and Excel for the web. There is no difference in syntax or behavior.

Why does my EXP formula return #NUM!?

This error occurs when the exponent is too large (greater than about 709.782712893) or too small (less than about -708.396418532). Excel cannot represent numbers beyond its floating-point limits. Check your input values and reduce the exponent if possible.

How do I calculate natural log in Excel?

Use the LN function. For example, =LN(10) returns 2.30258509299405. It is the inverse of EXP.

Is there a way to use e in a chart or trendline?

Yes, when you add an exponential trendline to a chart, Excel uses e in the equation. The displayed equation might show y = a * e^(bx), and you can use the coefficients in formulas with EXP.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.