EXP Function in Excel

If you want to raise the mathematical constant e to a certain power in Excel, the EXP function is what you’re looking for.

It takes a single number and gives you e raised to that power, which shows up all the time in growth, decay, and interest calculations.

In Excel 365, you can also feed EXP a whole range and the results spill into the cells below. In this article, I’ll walk you through how to use the EXP function with a few practical examples.

EXP Function Syntax in Excel

The EXP function has a simple, one-argument syntax.

=EXP(number)
  • number – the exponent you want to raise e to. This is the only argument, and it’s required.

The constant e is roughly 2.71828, so =EXP(1) returns about 2.71828 and =EXP(2) returns about 7.38906.

When to Use EXP Function

The EXP function comes in handy whenever you’re working with the constant e. A few common cases:

  • Calculating continuous compound interest, where money grows by e raised to the rate times time.
  • Modeling exponential decay, like a drug clearing the body or a value depreciating.
  • Reversing a natural log, since EXP and LN undo each other.
  • Building statistical and machine-learning formulas, such as the sigmoid (logistic) curve.

Example 1: Calculate e Raised to a Power

Let’s start with the basics and see what EXP actually returns.

Below is a dataset with a single column of exponents in column A. The values include whole numbers, negatives, and a decimal so you can see how EXP handles each one.

Exp Function Dataset Example 1 showing an Excel table with column A listing exponents and column B for e^x results

I want to get e raised to each of these exponents in column B.

Here is the formula:

=EXP(A2:A8)
Excel formula bar showing =EXP(A2:A8) applied to a column of exponents in cells A2 through A8

Because this is Excel 365, the single formula in B2 spills down the whole column, giving you one result for each exponent.

Notice the result for an exponent of 1 is about 2.71828, which is the constant e itself. An exponent of 0 returns 1, and the negative exponents return values between 0 and 1.

Pro Tip: EXP only works with numbers. If you point it at text or a blank that Excel reads as text, it returns a #VALUE! error.

Example 2: Continuous Compound Interest

Here’s a classic real-world use for EXP: continuous compound interest.

Below is a dataset with six accounts. Column B has the starting principal, column C the annual rate as a decimal (so 0.05 means 5%), and column D the number of years.

Exp Function Dataset Example 2 showing Excel table with account holder, principal, annual rate, and years columns

I want to find the final amount for each account using the continuous-growth formula, which is principal times e raised to the rate times the years.

Here is the formula:

=B2:B7*EXP(C2:C7*D2:D7)
Excel formula bar showing EXP function applied to calculate final amount from principal, annual rate, and years

How this formula works:

  • C2:C7*D2:D7 multiplies each rate by its years to get the exponent for that row.
  • EXP(...) raises e to that exponent, giving the growth factor.
  • Multiplying by the principal in B2:B7 returns the final balance.

Since each part of the formula works on a range, the result spills down all six rows from a single formula in E2.

Example 3: Model Exponential Decay

EXP is just as useful for things that shrink over time. The trick is a negative exponent.

Below is a dataset tracking how many hours have passed since a patient took a 500 mg dose of medication. Column A has the elapsed hours.

Exp Function Dataset Example 3: Excel table with Hours Elapsed from 0 to 12 and an empty Concentration column

I want to calculate how much of the drug is left in the body at each point, assuming it decays at a rate of 0.12 per hour.

Here is the formula:

=500*EXP(-0.12*A2:A9)
Excel formula bar showing =500*EXP(-0.12*A2:A9) applied to calculate concentration decay over time in column B

The minus sign in front of the rate is what makes this a decay instead of growth. As the hours go up, the exponent gets more negative, so EXP returns a smaller and smaller factor.

The starting dose of 500 mg drops steadily, and you can read off roughly how much is left at any hour in the table.

Example 4: EXP and LN Are Inverse Functions

EXP has a close partner in the LN function, which returns the natural logarithm of a number. The two undo each other.

Below is a dataset with a single column of values in column A.

Exp Function Dataset Example 4 showing an Excel table with column A values and column B header EXP(LN(Value))

I want to take the natural log of each value and then raise e to that result, which should hand back the original number.

Here is the formula:

=EXP(LN(A2:A7))
Excel formula bar showing =EXP(LN(A2:A7)) with a table demonstrating that EXP and LN are inverse functions

Look at column B and you’ll see it matches column A exactly. That’s the whole point: LN turns a number into its exponent, and EXP raises e back to that exponent, landing you right where you started.

Raising e to a log value like this is also how you calculate an antilog in Excel. If you ever have an LN on one side of an equation, wrapping both sides in EXP cancels it out.

Example 5: Build a Sigmoid (Logistic) Curve

For a final example, let’s use EXP inside a bigger formula. The sigmoid, or logistic, function squashes any number into a value between 0 and 1, which makes it popular in statistics and machine learning.

Below is a dataset with a column of input values, often called z, ranging from negative to positive.

Exp Function Dataset Example 5: Excel table with Input (z) values from -4 to 4 and an empty Sigmoid Output column

I want to run each input through the sigmoid formula, which is 1 divided by 1 plus e raised to the negative input.

Here is the formula:

=1/(1+EXP(-A2:A8))
Excel formula bar showing a sigmoid function using EXP with a range of inputs in column A and results in column B

How this formula works:

  • -A2:A8 flips the sign of each input.
  • EXP(...) raises e to that value.
  • 1/(1+...) does the final math that pins every result between 0 and 1.

Large negative inputs land near 0, large positive inputs land near 1, and an input of 0 returns exactly 0.5. That smooth S-shape is the signature of the sigmoid curve.

Tips & Common Mistakes

  • EXP only takes a number. Feed it text and you’ll get a #VALUE! error, so make sure your input cells hold numeric values.
  • EXP always uses e as its base. To raise a different base to a power, use the POWER function or the ^ operator instead (for example, =POWER(2, 3) or =2^3).
  • Don’t confuse EXP with the ^ operator. =EXP(2) means e squared, while =2^2 means 2 squared. They’re completely different results.
  • In Excel 365 you no longer need to drag EXP down a column. Point it at a range and the results spill automatically.

EXP is a small function that quietly powers a lot of bigger formulas. Once you know it just means “e raised to this power,” those longer formulas with an e buried inside them get a lot easier to read.

Across these examples you’ve seen EXP on its own, paired with LN, and nested inside a larger formula, which covers just about every way you’ll use it in practice.

List of All Excel Functions

Related Excel Functions / Articles:

I am a huge fan of Microsoft Excel and love sharing my knowledge through articles and tutorials. I work as a business analyst and use Microsoft Excel extensively in my daily tasks. My aim is to help you unleash the full potential of Excel and become a data-slaying wizard yourself.