Contact

IMARGUMENT in Google Sheets: Measure Complex Angles in Radians

Engineering Intermediate Google Sheets

Calculate complex angles in Google Sheets, reconstruct coordinates and compare phase changes with explicit zero and branch limitations.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: IMARGUMENT(number) returns a complex number’s angle in radians. Google documents an error for zero or an invalid complex number; the angle at zero is not a valid direction measurement.

Availability and version history

  • Introduced: first introduction date is not established by the reviewed official history; no desktop release number is inferred.
  • Availability: documented in the rolling Google Sheets service; these examples use the web worksheet workflow.
  • Checked: October 14, 2026; official IMARGUMENT reference. Documentation and independent models, with no native Sheets execution or wider client certification.

Syntax and accepted input forms

=IMARGUMENT(number)

The reference accepts a COMPLEX result, a real number interpreted with imaginary coefficient zero, or complex text. There is one required argument and no degree-mode switch.

Google’s polar definition connects x+yi with magnitude r and angle theta: the real coordinate is r times the cosine of theta, and the imaginary coordinate is r times its sine. IMABS supplies the magnitude separately.

One source sample omits a closing parenthesis, and another uses uppercase I. These examples use balanced formulas and lowercase i or COMPLEX, without treating that isolated sample as a complete suffix-case specification.

Example 1: a first-quadrant angle table

Enter only the first column as Plain text in A2:A5. Put =IMARGUMENT(A2) in B2 and fill down. Put =DEGREES(B2) in C2 and fill down.

A, complex text B, radians, rounded C, degrees, rounded
2+5i 1.190289950 68.198590514
5+2i 0.380506377 21.801409486
1+i 0.785398163 45
3+0i 0 0

These expected values use the ordinary first-quadrant mathematical angle, consistent with Google’s documented 1+i example. The first two angles add to 90 degrees because their positive coordinates are exchanged.

The real value three is a separate supported input: =IMARGUMENT(3) gives the same expected zero angle. Google’s explicit pure-imaginary control, =IMARGUMENT(COMPLEX(0,1)), returns approximately 1.570796327 radians, or 90 degrees.

Format the angle cells as numbers. A degree display does not change the value returned by IMARGUMENT; C is a conversion using DEGREES.

Example 2: reconstruct both coordinates

For A2 containing 2+5i, enter =IMABS(A2) in D2. The magnitude is the square root of 29, approximately 5.385164807.

Use these formulas in E2 and F2:

=D2*COS(B2)
=D2*SIN(B2)

Their independent expected outputs are two and five, respectively, subject to floating-point rounding. Keep the underlying values rather than replacing B2 with the rounded angle printed in the table.

For a numeric check, =ABS(E2-2)<0.000000001 and =ABS(F2-5)<0.000000001 should both be TRUE in this small modeled example. The tolerance is an explicit checking choice, not a universal accuracy guarantee for every magnitude.

SIN and COS expect radians here. Passing the 68.198590514 degree value directly to them changes the calculation.

Advanced example: compare two known directions

The table’s first two directions differ by about 46.397181027 degrees. =C2-C3 computes the signed change from the second direction to the first. Reversing the subtraction changes its sign.

Angles differing by a full turn describe the same geometric direction. For an explicitly chosen reporting interval from −180 inclusive to 180 exclusive, use =MOD(change+180,360)-180 with a numeric degree change.

For example, independently supplied angles 170 and −170 have raw difference −340 degrees, which this reporting formula maps to 20. A raw positive 180 maps to −180. These are rules of the chosen normalization formula; they do not establish which endpoints IMARGUMENT itself returns on a branch boundary.

Advanced example: multiply two first-quadrant values

Multiplying 2+5i by 1+i gives −3+7i. The mathematical sum of their first-quadrant angles is approximately 113.198590514 degrees. This predicts the direction modulo a full turn.

Google’s reviewed body does not specify the full output interval or its boundary convention. Therefore this guide does not certify the native negative-real-axis or other-quadrant representative from that mathematical identity. The first-quadrant outputs above are the bounded worked controls; broader branch-sensitive workflows need a separate verified rule.

Errors and practical limits

Google explicitly says zero and invalid complex input produce an error, without identifying the exact displayed code in this reference. Do not replace a zero-origin failure with angle zero: that would make an undefined direction look like a valid positive-real direction.

Keep magnitude and angle as separate fields. A small magnitude may also make a direction unstable relative to measurement noise, even when the function returns a number. Error handling, data validity and mathematical direction are different checks. No native Sheets execution was performed.

References and verification

Examples use fictional data, English function names and comma separators. Expected outputs are independent mathematical calculations or explicitly documented rules, not native Sheets captures. Check the spreadsheet locale when reproducing punctuation-sensitive formulas.