IMLOG2 Function
Returns the base-2 logarithm of a complex number.
Category
Engineering
Available in
All versions, Microsoft 365
Returns
Complex number text
Want to practice IMLOG2 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
IMLOG2 is IMLN divided by ln(2). For positive real numbers it gives the power of 2: IMLOG2(8) is 3.
The result is text, shown to 15 significant digits. Wrap it in IMREAL or IMAGINARY to get a number you can format or round.
Syntax
=IMLOG2(inumber) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| inumber | Yes | A 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=IMLOG2(A2)
| A | B | |
|---|---|---|
| 1 | Complex | log₂(z) |
| 2 | 3+4i | 2.32192809488736+1.33780421245098i |
| 3 | 8 | 3 |
| 4 | -1 | 4.53236014182719i |
| 5 | 0.5 | -1 |
=IMLOG2(A2) Explain
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.
- #NUM! for zero. The logarithm of 0 is undefined.
Notes

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.