IMEXP function
Returns e raised to a complex power, e^(x+yi) = e^x(cos y + i sin y). Used for phasors and rotating signals.
Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac
Excel 2007 and laterWorks in Google Sheets
Syntax
IMEXP(inumber)| Argument | What it means | |
|---|---|---|
inumber | Required | A complex number as text such as "3+4i" or "5-2j", a cell containing one, or a plain number. Build it with COMPLEX to avoid typing errors. |
Returns: A complex number as text.
How IMEXP works
IMEXP is the complex exponential. Thanks to Euler's formula, e^(x+yi) = e^x·(cos y + i·sin y): the real part of the input controls the size and the imaginary part controls the angle. This is how engineers describe rotating phasors and oscillating signals — e^(iωt) is a point going round the unit circle.
A famous check is Euler's identity, e^(iπ) = -1. In Excel the result shows a tiny imaginary residue because π itself is rounded to 15 digits. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.
Examples
1e to the power 1+i
| A | B | |
|---|---|---|
| 1 | Complex | |
| 2 | 1+i | 1.46869393991589+2.28735528717884i |
Result: 1.46869393991589+2.28735528717884i
e¹ × (cos 1 + i sin 1) = 2.71828 × (0.5403 + 0.8415i) ≈ 1.4687 + 2.2874i, shown with 15 significant digits.
2Euler's identity
| A | |
|---|---|
| 1 | -1+1.22464679914735E-16i |
Result: -1+1.22464679914735E-16i
e^(iπ) should be exactly -1. The real part is -1, and the imaginary part is sin(π) computed in floating point, about 1.2E-16 — effectively 0.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | The text is not a valid complex number — for example it contains spaces (3 + 4i), a capital I, or a misplaced sign. | Create the value with COMPLEX or remove spaces with SUBSTITUTE. |
Tips
- Functions that work through angles (polar form) can leave rounding residue such as
1.22464679914735E-16where the exact answer is 0. Wrap the result in IMREAL/IMAGINARY and ROUND if you need clean numbers. - IMEXP and IMLN are inverses:
=IMLN(IMEXP(z))returns z (for imaginary parts between -π and π).
Google Sheets
IMEXP also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IMEXP in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | IMAGEKSP |
| Dutch | C.EXP |
| Finnish | KOMPLEKSI.EKSP |
| French | COMPLEXE.EXP |
| Hungarian | KÉPZ.EXP |
| Italian | COMP.EXP |
| Norwegian (Bokmål) | IMEKSP |
| Polish | EXP.LICZBY.ZESP |
| Russian | МНИМ.EXP |
| Spanish | IM.EXP |
| Swedish | IMEUPPHÖJT |
| Turkish | SANÜS |