IMABS function
Returns the absolute value (modulus) of a complex number: its distance from zero, √(x²+y²). Used for impedance magnitude.
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
IMABS(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 number: the modulus |z|.
How IMABS works
IMABS gives the size of a complex number, ignoring its direction. For x+yi that is √(x²+y²), the length of the arrow from 0 to the point (x, y). In AC circuit work this is the magnitude of an impedance or a phasor: an impedance of 3+4j ohms behaves like a 5-ohm load as far as the size of the current is concerned.
Unlike most IM functions, IMABS returns a real number rather than text, so you can format it, chart it and use it in ordinary arithmetic. Its companion IMARGUMENT returns the angle; together they convert a complex number to polar form.
Examples
1Modulus of 3+4i
| A | B | |
|---|---|---|
| 1 | Complex | |
| 2 | 3+4i | 5 |
Result: 5
√(3² + 4²) = √25 = 5 — the classic 3-4-5 triangle.
2Current from voltage and impedance
| A | B | C | |
|---|---|---|---|
| 1 | Voltage (V) | Impedance (Ω) | |
| 2 | 230 | 40+30j | 4.6 |
Result: 4.6
The impedance magnitude is √(40² + 30²) = 50 Ω, so the current magnitude is 230 / 50 = 4.6 A.
3Works with plain numbers too
| A | B | |
|---|---|---|
| 1 | Value | |
| 2 | -7.5 | 7.5 |
Result: 7.5
A real number is a complex number with imaginary part 0, so IMABS behaves like ABS here.
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
- Convert to polar form with
=IMABS(A2)for the magnitude and=DEGREES(IMARGUMENT(A2))for the angle in degrees. - IMABS returns a number, so
=IMABS(A2)>10works directly in IF tests and conditional formatting.
Google Sheets
IMABS also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IMABS 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 | IMAGABS |
| Dutch | C.ABS |
| Finnish | KOMPLEKSI.ABS |
| French | COMPLEXE.MODULE |
| Hungarian | KÉPZ.ABSZ |
| Italian | COMP.MODULO |
| Polish | MODUŁ.LICZBY.ZESP |
| Russian | МНИМ.ABS |
| Spanish | IM.ABS |
| Turkish | SANMUTLAK |