IMAGINARY Function

Returns the imaginary part of a complex number.

Category

Engineering

Available in

All versions, Microsoft 365

Returns

A number

Want to practice IMAGINARY in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox

Overview

IMAGINARY returns the imaginary coefficient of a complex number — the 4 in 3+4i — as an ordinary number.

Excel stores complex numbers as text such as "3+4i" (or "3+4j"). Use COMPLEX to build one from two numbers, and IMREAL / IMAGINARY to read the parts back as numbers.

Syntax

=IMAGINARY(inumber) Explain

Arguments

ArgumentRequired?What it does
inumberYesA complex number as text, like "3+4i" — or a plain number.

Examples

Example 1 — Worked examples

Each row applies the function to the value in column A.

B2fx=IMAGINARY(A2)
AB
1ComplexImaginary part
23+4i4
3-2.5+i1
46i6
570
=IMAGINARY(A2) Explain

Example 2 — Reactance from an impedance

The imaginary part of an impedance is its reactance in ohms.

=IMAGINARY("40+30j") Explain

Returns 30.

Common mistakes

  • #NUM! The text isn't a valid complex number — for example a space ("3 + 4i"), a capital I, or a letter other than i or j.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.