IMARGUMENT function
Returns the argument (angle θ) of a complex number in radians, between -π and π. Use DEGREES to get the phase angle in degrees.
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
IMARGUMENT(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 angle in radians, from -π to π.
How IMARGUMENT works
IMARGUMENT returns the direction of a complex number: the angle between the positive real axis and the arrow from 0 to the point (x, y), measured anticlockwise in radians. Electrical engineers call this the phase angle; with IMABS it gives you the polar form r∠θ.
The result is a number between -π and π (it behaves like ATAN2(x, y), so numbers below the real axis get negative angles). Wrap it in DEGREES for degrees. The angle of 0 is undefined, so IMARGUMENT("0") returns #DIV/0!.
Examples
1Angle of 3+4i
| A | B | |
|---|---|---|
| 1 | Complex | |
| 2 | 3+4i | 0.927295 |
Result: 0.927295
The point (3, 4) lies at atan(4/3) ≈ 0.927295 radians from the real axis (formatted to 6 decimal places).
2Phase angle in degrees
| A | B | |
|---|---|---|
| 1 | Impedance (Ω) | |
| 2 | 50-50j | -45 |
Result: -45
A capacitive load with equal resistance and reactance has a phase angle of -45°: the current leads the voltage by 45 degrees.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | The complex number is 0, which has no direction. | Test first with =IF(IMABS(A2)=0, 0, IMARGUMENT(A2)). |
#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
- Negative real numbers return π (
IMARGUMENT("-1")= 3.14159…), not -π. - The power factor of a load is
=COS(IMARGUMENT(impedance)).
Google Sheets
IMARGUMENT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IMARGUMENT 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 | IMAGARGUMENT |
| Dutch | C.ARGUMENT |
| Finnish | KOMPLEKSI.ARG |
| French | COMPLEXE.ARGUMENT |
| Hungarian | KÉPZ.ARGUMENT |
| Italian | COMP.ARGOMENTO |
| Polish | ARG.LICZBY.ZESP |
| Portuguese (Brazil) | IMARG |
| Portuguese (Portugal) | IMARG |
| Russian | МНИМ.АРГУМЕНТ |
| Spanish | IM.ANGULO |
| Turkish | SANBAĞ_DEĞİŞKEN |