IMREAL Function

Returns the real part of a complex number.

Category

Engineering

Available in

All versions, Microsoft 365

Returns

A number

Want to practice IMREAL 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

IMREAL returns the real coefficient of a complex number — the 3 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

=IMREAL(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=IMREAL(A2)
AB
1ComplexReal part
23+4i3
3-2.5+i-2.5
46i0
577
=IMREAL(A2) Explain

Example 2 — Round a complex result

Pull out the real part so you can round or format it.

=ROUND(IMREAL(IMSQRT("1+i")),4) Explain

Returns 1.0987.

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.