Excel has a built-in function for Euler's number: type =EXP(1) in any cell and press Enter to get the value of e (approximately 2.718281828). If you only need the constant itself, you can also type =EXP(1) wherever you need it, or enter the number manually as 2.718281828. There is no dedicated E() function in Excel — EXP is how you reach it. Below is how to use it properly, raise e to any power, and avoid the errors that trip people up.
What You'll Need
- Microsoft Excel on Windows, macOS, the web, or mobile (the EXP function works the same in all of them)
- A spreadsheet where you want to calculate e or e raised to a power
- Basic familiarity with entering formulas (starting with an equals sign)
Step-by-Step
- Select an empty cell. Click the cell where you want the result, for example A1. Every formula in Excel must start with an equals sign, so begin your entry with
=. - Type the EXP formula for e itself. Enter
=EXP(1)and press Enter. Excel returns 2.718281828 (the display may round it). EXP(1) means "e raised to the power of 1," which is simply e. This is the standard way to get Euler's number in a cell. - Raise e to another power. To calculate e squared, use
=EXP(2), which returns about 7.389056. For e to the power of x stored in another cell (say B1), type=EXP(B1). This is cleaner and more readable than typing=2.718281828^B1. - Use e as a constant inside a larger formula. For example, continuous compound interest uses A = P × e^(r×t). If principal is in B2, rate in B3, and years in B4, type
=B2*EXP(B3*B4). Note that you multiply the rate by the time inside EXP, then multiply the result by the principal. - Calculate the natural logarithm when you need the inverse. The natural log of a number is the power to which e must be raised to get that number. Use
=LN(number), for example=LN(EXP(2)), which returns 2. LN and EXP are inverse functions. - Copy the formula down or across. Drag the fill handle (the small square at the bottom-right of the selected cell) to apply the formula to more rows. Relative references adjust automatically; use $ signs to lock a reference, as in
=EXP($B$1*A2). - Format the result. Select the cell, then use the Home tab's number format controls to choose how many decimal places to show. The underlying value keeps full precision; formatting only changes the display.
- Check the value against a known result. EXP(0) should return exactly 1 (anything to the power of zero is one). If EXP(0) does not give 1, your formula is malformed — look for a stray character or a missing parenthesis.
Common Mistakes
- Typing
eorEin a formula as if it were a function. Excel will not recognise it. There is no E function; use EXP. Typing just e in a cell is also treated as cell text, not a number. - Confusing scientific notation with Euler's number. Excel displays large or small numbers like 1.5E+06, where E means "times ten to the power of." That E is not Euler's number, and it only appears in displayed results.
- Entering 2.718 as the constant and expecting precision. Manually typing 2.718 loses accuracy. Use
=EXP(1)when precision matters, such as finance or statistics. - Missing the equals sign. Typing EXP(1) without
=stores it as plain text. Excel does not calculate it, and no error appears — the cell just looks wrong. - Wrong order in compound interest formulas.
=B2*EXP(B3)*B4multiplies principal by e-to-the-rate and then by time, which is not the same as=B2*EXP(B3*B4). Keep the rate and time multiplied together inside EXP. - Forgetting that EXP expects a number. If the argument is text, Excel returns a #VALUE! error rather than converting it for you.
Tips
- If you need e visible as a label next to a calculation, put "e" in one cell as text and the value in another. Excel will treat a standalone e as text, so do not use it in formulas.
- Use
=EXP(1)rather than a typed decimal whenever the result feeds another calculation, so rounding does not compound. - Combine EXP with ABS or ROUND when you want a cleaner output, e.g.
=ROUND(EXP(1),4)for 2.7183. - For growth and decay modelling, remember e appears naturally in continuous compounding; discrete compounding uses a different formula, so choose according to your model.
- On Excel for the web and mobile versions, EXP is supported, so formulas you build on desktop work there too.
Troubleshooting
The cell shows the formula as text. Most often the cell is formatted as Text, or the formula lacks the leading =. Select the cell, check the format in the number format dropdown, set it to General, then re-enter the formula. If you still see text, make sure you typed it directly rather than pasting from a document that inserted hidden characters.
You get a #NAME? error. Excel does not recognise what you typed. Confirm you wrote EXP, not E or another function name, and check for a typo or a missing parenthesis. Also confirm you did not use a comma as a decimal separator in a locale where Excel expects a period.
You get a #VALUE! error. The argument inside EXP is text or an empty reference. Point EXP at a cell that contains a number, or wrap the source in a conversion (such as =EXP(VALUE(B1))) if the text really is numeric.
The result looks wrong by a large factor. Check your parentheses and the order of operations. In =B2*EXP(B3*B4) the multiplication inside EXP happens first, which is what you want for compound growth. If you accidentally moved a bracket, the exponent changes and the result shifts dramatically.
The number shows oddly, like 1.5E+06. That is scientific notation from the display format, not an error and not Euler's number. Widen the column or change the number format to show the full figure.
If that did not work, try the simplest diagnostic: type =EXP(0) in a brand-new blank cell. If it returns 1, EXP is working and the problem is in your formula. If it does not, close and reopen the workbook, and if needed start a fresh blank workbook to rule out a file-specific issue.
Frequently Asked Questions
Is there an e function in Excel?
No. Excel does not have a dedicated E function. You get Euler's number with =EXP(1), or raise e to a power with =EXP(x).
How do I type Euler's number as a constant?
Use =EXP(1). Typing 2.718281828 works for rough work but loses precision; the formula keeps the full value.
Does EXP work in Excel for Mac and online?
Yes. EXP and LN are available across Excel on Windows, macOS, the web, and mobile apps.
What is the difference between EXP and LN?
EXP raises e to a power. LN does the reverse: it returns the power e must be raised to in order to produce a number. So =LN(EXP(3)) returns 3.
Why does Excel show 1E+06 in my cell?
That is scientific notation meaning one million. It is not Euler's number. Change the number format or widen the column to see the full value.
Can I use e for compound interest?
Yes. For continuous compounding, use =Principal*EXP(rate*years). For periodic compounding, use the standard compound interest formula instead, since the two models differ.