Complex Number Argument Calculator
Calculate the principal argument Arg(z) ∈ (−π, π], phase angle in radians and degrees, modulus |z| = √(a² + b²), polar form, and Euler representation with real-time Argand plane visualization.
1 Step-by-Step Analytical Derivation
Mathematical ProofReal part a = 1 (> 0) and imaginary part b = 1 (> 0). Both coordinates are positive, placing z in Quadrant I.
Compute acute reference angle α = arctan(|b| / |a|) = arctan(1/1) = 45.00° (0.7854 rad).
For Quadrant I, θ = α = 45.00° (0.7854 rad, or π/4).
How to Calculate the Argument of a Complex Number
The argument of a complex number z = a + bi is the angle θ formed with the positive real axis on the complex Argand plane. While the basic ratio is given by b/a, the true geometric angle depends on the signs of a and b: in Quadrant I and IV, θ = arctan(b/a); in Quadrant II, θ = arctan(b/a) + π; in Quadrant III, θ = arctan(b/a) − π. The principal value Arg(z) is conventionally constrained to the interval (−π, π] radians or (−180°, 180°].
What Is the Argument of a Complex Number?
In mathematics, any non-zero complex number can be expressed in two complementary ways: Cartesian rectangular coordinates z = a + bi, or polar coordinates defined by a distance and an orientation angle. The orientation angle between the positive real axis (the horizontal axis) and the vector connecting the origin to the point (a, b) on the complex Argand plane is defined as the argument of z, symbolized as arg(z) or θ.
While the Cartesian form highlights arithmetic operations such as addition and subtraction, the argument and modulus characterize rotational and wave dynamics. In alternating current (AC) electrical circuits, quantum wavefunctions, and Fourier analysis, the argument represents the fundamental phase of an oscillation.
Modulus r = |z|
The Euclidean length or magnitude of the vector: r = √(a² + b²). It is always a non-negative real number, representing geometric distance.
Argument θ = arg(z)
The counterclockwise angle made with the positive real axis. Measured in radians (rad) or degrees (°), defining spatial direction and rotational orientation.
Principal Value Arg(z) vs. General Argument arg(z)
Because rotating a vector by a full circle (2π radians or 360°) returns it to its original position, any complex number has infinitely many valid arguments. For example, the number z = 1 + i has valid direction angles of π/4, 9π/4, 17π/4, and −7π/4.
To eliminate ambiguity in calculus, complex functions, and computational systems, mathematicians define a unique single-valued branch known as the Principal Argument, capitalized as Arg(z).
Quadrant Formulas & Sign Criteria
The single most common mistake in complex analysis is assuming that θ = arctan(b/a) works for all numbers. Because the real quotient b/a cannot distinguish between (+b)/(+a) (Quadrant I) and (-b)/(-a) (Quadrant III), the raw arctangent function is strictly insufficient.
To calculate Arg(z) accurately by hand, determine the acute reference angle α = arctan(|b| / |a|), then apply the quadrant adjustment rules:
Both components are positive. The vector points into the upper right. No adjustment is needed:
Negative real and positive imaginary. The angle is obtuse counterclockwise:
Both components are negative. In the principal branch (−π, π], the angle is negative clockwise:
Positive real and negative imaginary. Points into the lower right complex plane:
Quadrant-by-Quadrant Comparison Table
Use this reference matrix to verify sign conditions, principal angle bounds, reference angle mappings, and sample test points across all sectors of the Argand plane:
| Sector | Signs (a, b) | Principal Formula | Range [rad] | Example z | Arg(z) |
|---|---|---|---|---|---|
| Quadrant I | a > 0, b > 0 | arctan(b/a) | (0, π/2) | 1 + √3i | π/3 (60°) |
| Quadrant II | a < 0, b > 0 | arctan(b/a) + π | (π/2, π) | −√3 + i | 5π/6 (150°) |
| Quadrant III | a < 0, b < 0 | arctan(b/a) − π | (−π, −π/2) | −1 − i | −3π/4 (−135°) |
| Quadrant IV | a > 0, b < 0 | arctan(b/a) | (−π/2, 0) | 2 − 2i | −π/4 (−45°) |
| +Re Axis | a > 0, b = 0 | 0 | [0] | 7 + 0i | 0 (0°) |
| −Re Axis | a < 0, b = 0 | π | [π] | −4 + 0i | π (180°) |
| +Im Axis | a = 0, b > 0 | +π/2 | [+π/2] | 0 + 5i | +π/2 (+90°) |
| −Im Axis | a = 0, b < 0 | −π/2 | [−π/2] | 0 − 3i | −π/2 (−90°) |
| Origin | a = 0, b = 0 | Undefined | ∅ | 0 + 0i | Undefined |
Step-by-Step Worked Examples
Review these three standard textbook derivations covering multiple quadrants, boundary cases, and modulus-argument polar transformations:
- Identify components: Real part a = -3, Imaginary part b = 3.
- Locate quadrant: Since a < 0 and b > 0, z lies in Quadrant II.
- Compute reference angle: α = arctan(|3| / |-3|) = arctan(1) = π/4 (45°).
- Apply Q2 formula: Arg(z) = π − α = π − π/4 = 3π/4 radians (135°).
- Calculate modulus: r = √((-3)² + 3²) = √18 = 3√2 ≈ 4.2426.
- Express in polar form: z = 3√2 (cos(3π/4) + i sin(3π/4)) = 3√2 ei(3π/4).
- Identify components: Real part a = -1, Imaginary part b = -√3.
- Locate quadrant: Since both a < 0 and b < 0, z lies in Quadrant III.
- Compute reference angle: α = arctan(|-√3| / |-1|) = arctan(√3) = π/3 (60°).
- Apply Q3 formula: Arg(z) = -(π − α) = -(π − π/3) = -2π/3 radians (−120°).
- Calculate modulus: r = √((-1)² + (-√3)²) = √(1 + 3) = 2.
- Result: z = 2 e−i(2π/3) (or 2 ∠ 240° in positive interval).
- Identify components: Real part a = 0, Imaginary part b = -5.
- Locate position: Because the real component is zero and imaginary is negative, the point sits on the Negative Imaginary Axis.
- Determine angle directly: Points straight downward from origin at Arg(z) = -π/2 radians (−90°).
- Modulus: r = |b| = 5. Polar form: 5 ∠ −90° = 5 e−iπ/2.
Modulus-Argument (Polar) & Euler Form
The argument θ and modulus r form the backbone of polar representation. By applying Euler's formula eiθ = cos θ + i sin θ, every non-zero complex number can be written seamlessly in three equivalent representations:
Optimal for linear operations like vector addition and component subtraction.
Displays trigonometry explicitly, also written as r cis θ or r ∠ θ.
The most compact notation. Makes multiplication, exponentiation, and calculus trivial.
Algebraic Properties of Arguments
Because complex multiplication corresponds to multiplying magnitudes and adding rotation angles, the argument behaves identically to a logarithmic function:
Multiplying two numbers adds their angle directions.
Dividing two numbers subtracts the divisor's angle direction.
Raising to the nth power scales the angle by n.
Reflecting across the real axis flips the direction sign.
Common Pitfalls & Mathematical Traps
Evaluating z = -2 - 2i gives arctan(-2 / -2) = arctan(1) = 45°. But -2 - 2i is in Quadrant III, where both coordinates are negative! The true principal argument is 45° - 180° = -135° (−3π/4). In code, always use atan2(b, a).
For points along the negative real axis (e.g. z = -5), the principal argument convention uses the half-open interval (−π, π]. This means Arg(-5) = +π (+180°), not −π. The value −π is excluded from the principal domain.
The argument of zero is undefined. At the origin, r = 0, meaning the vector has zero length and no defined directional orientation. Any equation stating arg(0) = 0 is mathematically invalid.
Applications in AC Circuits & Signal Processing
The concept of complex argument is not merely an abstract algebraic tool—it is essential across modern electrical engineering, telecommunications, and quantum physics:
AC Electrical Circuits
Electrical impedance is modeled as Z = R + jX. The phase argument θ = arg(Z) describes the time delay between voltage and current waveforms, directly determining the power factor cos θ.
Digital Signal Processing
The Discrete Fourier Transform (DFT) decomposes audio and telecommunications signals into complex frequency components. The argument of each frequency bin indicates the phase delay of each individual harmonic frequency.
Quantum Mechanics
Quantum states are represented by complex probability amplitudes ψ(x) = |ψ| eiθ. While probability density depends on |ψ|², quantum interference and phase shifts depend entirely on the argument θ.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.