IMLOG10 in Google Sheets: Complex Log Base 10

How-to basics · Updated November 23, 2026

The IMLOG10 function in Google Sheets returns the base-10 logarithm of a complex number. Its syntax is IMLOG10(value), where value is a complex number provided as text like “3+4i” or as a reference to a cell containing that text.

What Is a Complex Number and Why Use IMLOG10?

A complex number has a real part and an imaginary part, written as a+bi, where i is the square root of -1. Standard spreadsheet functions like LOG10 only work with real numbers. When you need to find the logarithm of a value that involves i—for example in electrical engineering, signal processing, or physics—you use IMLOG10. It follows the same mathematical definition as the real logarithm but extends it to the complex plane.

How IMLOG10 Works in Google Sheets

The function takes one argument: a complex number. The result is also a complex number, displayed as text in the format a+bi or a-bi. Google Sheets uses the standard principal branch of the complex logarithm, meaning the imaginary part of the result lies between -π and π (approximately -3.14159 and 3.14159).

For example:

  • =IMLOG10("10") returns 1 because log₁₀(10) = 1.
  • =IMLOG10("100+0i") returns 2.
  • =IMLOG10("1+i") returns approximately 0.150514997831991+0.34109408846046i.

If you have a cell A1 containing the text 3+4i, then =IMLOG10(A1) returns the complex logarithm of that number.

How to Enter Complex Numbers in Google Sheets

Google Sheets represents complex numbers as text strings. You can type them directly into a formula or reference a cell. The accepted formats include:

  • a+bi (e.g., 2+3i)
  • a-bi (e.g., 2-3i)
  • a (real number, treated as a+0i)
  • bi (pure imaginary, e.g., 4i)

Do not use spaces or a multiplication sign. The letter i is the imaginary unit; Google Sheets does not accept j (common in engineering) as an alias.

Practical Examples of IMLOG10

Suppose you are analyzing an AC circuit’s impedance. With impedance Z = 50+30i ohms in cell A1, you can compute the base-10 logarithm of that impedance:

  1. Enter 50+30i in cell A1.
  2. In cell B1, enter =IMLOG10(A1).
  3. The result will be approximately 1.766+0.540i.

You can also use it with other complex functions. For instance, to get the natural logarithm, use IMLN; for base-2, use IMLOG2. These three functions are part of Google Sheets’ Engineering category.

Common Errors and How to Fix Them

If you see an error, check the following:

  • #NUM! – The argument is not a valid complex number. Make sure it is text in the correct format, e.g., 1+i not 1+ i.
  • #VALUE! – The argument is a number, not text. Wrap it in quotes or reference a cell containing text.
  • #NAME? – You may have typed the function name incorrectly. It is IMLOG10, all caps.

Also note that IMLOG10(0) returns an error because the logarithm of zero is undefined.

IMLOG10 vs. LOG10 and Other Spreadsheet Tools

The regular LOG10 function only accepts real numbers. If you give it a complex number as text, it returns #VALUE!. IMLOG10 is the only way to get a base-10 logarithm for complex inputs. In Excel, the same function exists, but Excel uses IMLOG10 as well. The syntax and behavior are identical, so you can move between Google Sheets and Excel without changing formulas.

If you need the magnitude or angle of a complex number, use IMABS and IMARGUMENT respectively. These are separate functions that return real numbers.

Frequently Asked Questions

Can I use IMLOG10 with a cell containing a real number?

Yes. If the cell contains a plain number like 100, Google Sheets will treat it as 100+0i and return 2. However, if the cell is formatted as a number (not text), you must reference it directly; the function will still accept it.

What is the difference between IMLOG10 and IMLN?

IMLOG10 returns the base-10 logarithm, while IMLN returns the natural logarithm (base e). For a complex number z, IMLN(z) = IMLOG10(z) * ln(10) approximately.

Why does IMLOG10 return a complex number, not a real one?

Because the logarithm of a complex number is generally complex. Even for a positive real number, the complex logarithm has an imaginary part of 0, but for numbers with an imaginary component, the result has both real and imaginary parts.

Does IMLOG10 work with negative real numbers?

Yes. For example, =IMLOG10("-100") returns approximately 2+1.364i, because the logarithm of a negative number is complex.

Can I use IMLOG10 in array formulas?

Yes, it works with array formulas. For instance, if you have complex numbers in A1:A5, you can use =ARRAYFORMULA(IMLOG10(A1:A5)) to get results for each cell.

Alternatives and Related Functions

If you only need the logarithm of a real number, use LOG10. For natural logs of complex numbers, use IMLN; for base-2, use IMLOG2. To convert between forms, use COMPLEX to create a complex number from real and imaginary parts, and IMREAL and IMAGINARY to extract parts from a result.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.