Practice free

IMABS function

IMABS returns the absolute value (modulus) of a complex number as a plain number. It gives the distance of the complex number from zero, such as the magnitude of a signal.

Example

Read it as a sentence: find the size of the complex number 3+4i, which gives 5.

Practice this in the app

Syntax

IMABS(inumber)

inumber (required)
A complex number as text, like "3+4i".

Returns: The absolute value (modulus) as a number.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=IMABS("3+4i") 5 "3+4i"
=IMABS("3+4j") 5 Suffix j
=IMABS(5) 5 Pure real number 5
=IMABS("5") 5 Pure real text "5"
=IMABS("i") 1 Pure imaginary "i"
=IMABS("-2i") 2 "-2i"
=IMABS("3+4I") #NUM! Uppercase I
=IMABS("abc") #NUM! Invalid text

Watch out for

  • Input must be text or a number in x+yi form, or you get #NUM!.

Where it works

Excel
IMABS is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .