Engineering function

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)
ArgumentWhat it means
inumberRequiredA 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

B2fx=IMABS(A2)
AB
1Complex
23+4i5

Result: 5

√(3² + 4²) = √25 = 5 — the classic 3-4-5 triangle.

2Current from voltage and impedance

C2fx=A2/IMABS(B2)
ABC
1Voltage (V)Impedance (Ω)
223040+30j4.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

B2fx=IMABS(A2)
AB
1Value
2-7.57.5

Result: 7.5

A real number is a complex number with imaginary part 0, so IMABS behaves like ABS here.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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)>10 works 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.

LanguageFunction name
DanishIMAGABS
DutchC.ABS
FinnishKOMPLEKSI.ABS
FrenchCOMPLEXE.MODULE
HungarianKÉPZ.ABSZ
ItalianCOMP.MODULO
PolishMODUŁ.LICZBY.ZESP
RussianМНИМ.ABS
SpanishIM.ABS
TurkishSANMUTLAK