Audited 25 May 2026·Last updated 27 Jul 2026·5 citations·Tier 1·0 uses

Complex Number Calculator

Compute modulus, argument, and conjugate for a + bi. Convert between rectangular and polar form instantly.

Complex Number Calculator

Coefficient of the real unit
Coefficient of the imaginary unit i
Modulus
5
Magnitude r = |a + bi|
Argument (radians)
0.9273
Argument (degrees)
53.13
Conjugate Real Part
3
Conjugate Imaginary Part
-4

Background.

A complex number is an ordered pair of real numbers (a, b) written in the form a + bi, where i is the imaginary unit satisfying i² = −1. The complex number calculator accepts the real part a and the imaginary part b as inputs and returns the modulus, argument, and complex conjugate. These three quantities are the foundation of all complex arithmetic, appearing in electrical engineering, quantum mechanics, control theory, signal processing, and fluid dynamics. The modulus measures the distance from the origin in the complex plane, the argument measures the angle with the positive real axis, and the conjugate reflects the number across the real axis. These quantities are mutually dependent and together specify a unique complex number.

Engineering students and professionals are the primary audience for this calculator. In electrical engineering, AC circuit analysis represents impedance as a complex number Z = R + jX, where the modulus |Z| is the total impedance magnitude and the argument is the phase angle between voltage and current. In control theory, the poles of a transfer function are complex numbers whose modulus determines oscillation frequency and whose argument determines damping ratio. Signal processing represents sinusoids as complex exponentials via Euler's formula, and the Fourier transform maps time-domain signals into complex frequency-domain coefficients. In every case, the modulus and argument are the physical quantities of interest.

The geometric interpretation of complex numbers was developed by Caspar Wessel in 1799 and independently by Jean-Robert Argand in 1806, though it is now called the Argand diagram or complex plane. The horizontal axis represents the real part and the vertical axis represents the imaginary part. This representation transforms algebraic operations into geometric ones: addition becomes vector addition, multiplication becomes scaling and rotation, and conjugation becomes reflection. The modulus is the Euclidean norm in this plane, and the argument is the polar angle. These geometric insights explain why complex numbers are indispensable in any field that combines magnitude and phase information.

Complex numbers also unify many results in real analysis. The Fundamental Theorem of Algebra, first proved by Carl Friedrich Gauss in 1799, states that every non-constant polynomial with complex coefficients has at least one complex root. This means the complex numbers are algebraically closed, a property the real numbers lack. Without complex numbers, the characteristic equations of linear differential equations would sometimes have no solutions, and the Fourier transform would be restricted to even functions. The calculator provides the basic geometric parameters that make this algebraic closure computationally accessible and helps students bridge the gap between abstract algebra and geometric intuition.

In applied mathematics, the polar form z = r(cos θ + i sin θ) simplifies multiplication and division. To multiply two complex numbers, multiply their moduli and add their arguments. To divide, divide their moduli and subtract their arguments. This is the foundation of phasor arithmetic in electrical engineering and of the convolution theorem in signal processing. The calculator converts rectangular coordinates (a, b) into polar coordinates (r, θ), enabling users to perform these operations without manual trigonometric lookup or coordinate transformation tables.

What is complex number calculator?

A complex number is a number of the form z = a + bi, where a and b are real numbers and i is the imaginary unit defined by i² = −1. The real part is a, and the imaginary part is b. The set of all complex numbers is denoted by ℂ and forms a two-dimensional vector space over the real numbers. Every complex number can be represented as a point (a, b) in the complex plane, also called the Argand diagram. The horizontal coordinate is the real part, and the vertical coordinate is the imaginary part. The modulus or absolute value of z = a + bi is |z| = √(a² + b²), which is the Euclidean distance from the origin to the point (a, b). The argument or phase of z is the angle θ that the vector from the origin to (a, b) makes with the positive real axis, measured in radians and restricted to the principal range (−π, π]. The complex conjugate of z is z̄ = a − bi, obtained by reflecting z across the real axis. These three operations—modulus, argument, and conjugation—are the most frequently computed quantities in elementary complex analysis and form the basis for all advanced complex arithmetic.

How to use this calculator.

  1. Enter the real part a of the complex number.
  2. Enter the imaginary part b.
  3. The calculator computes the modulus r = √(a² + b²).
  4. The calculator computes the argument θ = atan2(b, a) in radians and degrees.
  5. The calculator computes the complex conjugate a − bi.
  6. Review the modulus to determine the distance from the origin.
  7. Review the argument to determine the polar angle for phasor or rotation applications.

The formula.

|z| = √(a² + b²)

The modulus of a complex number z = a + bi is derived from the Pythagorean theorem. In the complex plane, the point (a, b) forms a right triangle with legs of length |a| and |b| and hypotenuse of length |z|. Therefore |z|² = a² + b², and taking the non-negative square root yields |z| = √(a² + b²). This definition generalizes the absolute value on the real numbers: when b = 0, the formula reduces to |a|, which is the standard real absolute value. The modulus satisfies the same fundamental properties as the real absolute value: non-negativity, multiplicativity (|zw| = |z||w|), and the triangle inequality (|z + w| ≤ |z| + |w|). The argument is defined as the unique angle θ in the interval (−π, π] such that a = r cos θ and b = r sin θ, where r = |z|. This definition requires the two-argument arctangent function, atan2(b, a), which correctly determines the quadrant of the angle. When a > 0, θ = arctan(b/a). When a < 0 and b ≥ 0, θ = arctan(b/a) + π. When a < 0 and b < 0, θ = arctan(b/a) − π. When a = 0 and b > 0, θ = π/2. When a = 0 and b < 0, θ = −π/2. When a = b = 0, the argument is undefined, but the calculator returns 0 by convention to avoid exceptional cases. The complex conjugate z̄ = a − bi is the reflection of z across the real axis. It satisfies z·z̄ = a² + b² = |z|², which is a real number. This identity is the basis for rationalizing denominators: to divide by z, multiply numerator and denominator by z̄ to obtain a real denominator |z|². The conjugate also appears in the polar form: if z = re^(iθ), then z̄ = re^(−iθ). The real and imaginary parts can be recovered from z and z̄ via a = (z + z̄)/2 and b = (z − z̄)/(2i). Dimensional analysis confirms that the modulus carries the same units as the real and imaginary parts. If a and b are measured in ohms, then |z| is in ohms, and the argument is dimensionless, measured in radians. This consistency is essential in electrical engineering, where impedance, admittance, and transfer functions are all complex quantities with physical units. The calculator preserves this dimensional structure by computing only dimensionless ratios and magnitudes from the inputs.

A worked example.

Example

Consider the complex number z = −5 + 12i. The calculator computes the modulus as |z| = √((−5)² + 12²) = √(25 + 144) = √169 = 13. The argument is θ = atan2(12, −5). Because the real part is negative and the imaginary part is positive, z lies in the second quadrant. The reference angle is arctan(12/5) ≈ 1.1760 radians, so the principal argument is θ = π − 1.1760 ≈ 1.9656 radians, or approximately 112.62 degrees. The complex conjugate is z̄ = −5 − 12i. In an electrical engineering context, if this number represents an impedance Z = −5 + j12 ohms in a feedback network, the modulus 13 ohms is the magnitude of the impedance, and the phase angle 112.62 degrees indicates that the voltage leads the current by more than 90 degrees, suggesting an active or capacitive-inductive mix. The calculator delivers all three quantities in a single computation, eliminating manual trigonometric lookup.

imaginary Part12
real Part-5

Frequently asked questions.

What is the imaginary unit i?
The imaginary unit i is defined by the property i² = −1. It is not a real number; it belongs to the complex number system, which is a two-dimensional extension of the real numbers. The introduction of i allows every polynomial equation to have a solution, a property called algebraic closure. In electrical engineering, the symbol j is often used instead of i to avoid confusion with the symbol for electric current. The imaginary unit behaves algebraically like any other constant: it can be added, subtracted, multiplied, and divided according to the usual rules, with the additional simplification that i² is always replaced by −1.
Why is the argument undefined at zero?
The argument of a complex number is the angle between the positive real axis and the vector from the origin to the point representing the number. When the number is zero, this vector has zero length and no defined direction. Therefore, the angle is mathematically undefined. Different textbooks and software packages adopt different conventions: some return 0, some return NaN, and some throw an error. The calculator adopts the engineering convention of returning 0 when both the real and imaginary parts are zero, because this avoids breaking downstream computations in control systems and signal processing chains where zero is a valid operating point.
What is the difference between modulus and absolute value?
For real numbers, the terms are synonymous: |x| is both the modulus and the absolute value. For complex numbers, "modulus" is the preferred term for |z| = √(a² + b²), while "absolute value" is also acceptable but less common in advanced contexts. The modulus generalizes the concept of distance from the origin to two dimensions. It is always a non-negative real number, even when the complex number itself has a negative real part or a non-zero imaginary part. Some authors use "magnitude" interchangeably with modulus, particularly in physics and engineering.
How do I convert from polar form back to rectangular form?
Given polar coordinates (r, θ), the rectangular form is z = r cos θ + i r sin θ, or equivalently z = a + bi where a = r cos θ and b = r sin θ. This follows directly from the definitions of cosine and sine in the complex plane. Euler's formula states that e^(iθ) = cos θ + i sin θ, so the polar form can also be written as z = re^(iθ). To convert back, simply evaluate the trigonometric functions and multiply by r. The calculator performs the forward conversion from rectangular to polar; to go backward, a user would need a separate polar-to-rectangular tool or would compute the cos and sin manually.
What is the geometric meaning of the complex conjugate?
The complex conjugate z̄ = a − bi is the reflection of z = a + bi across the real axis in the complex plane. If z is in the upper half-plane (b > 0), its conjugate is in the lower half-plane at the same horizontal position. The product z·z̄ = a² + b² = |z|² is always a non-negative real number equal to the squared distance from the origin. This geometric property makes the conjugate essential for computing quotients: dividing by z is equivalent to multiplying by z̄ and dividing by |z|², which converts the denominator to a real number. The conjugate also preserves the real part while negating the imaginary part.
Why does atan2 matter more than regular arctan?
The single-argument arctan function, arctan(b/a), returns values only in the range (−π/2, π/2) and cannot distinguish between opposite quadrants. For example, arctan(1/1) = π/4, but arctan(−1/−1) also equals π/4, even though (−1, −1) is in the third quadrant and should have argument −3π/4. The two-argument atan2(b, a) uses the signs of both a and b to place the angle in the correct quadrant, returning values in the full range (−π, π]. Without atan2, the calculator would misclassify complex numbers in the second and third quadrants, producing incorrect phase angles for impedances, transfer functions, and wave amplitudes.
Can the modulus ever be negative?
No. The modulus is defined as the principal (non-negative) square root of a² + b². Because a² + b² ≥ 0 for all real a and b, its square root is always defined and always non-negative. The modulus is zero if and only if both a and b are zero. This non-negativity is essential for the modulus to serve as a norm on the complex numbers, satisfying the three norm axioms: definiteness (|z| = 0 iff z = 0), homogeneity (|cz| = |c||z|), and the triangle inequality. A negative modulus would violate these axioms and would be geometrically meaningless, as distance cannot be negative.
What are the units of the argument?
The argument is dimensionless because it is the ratio of two lengths (opposite over adjacent in the right triangle formed by a, b, and |z|). It is measured in radians or degrees, which are dimensionless units. One radian is defined as the angle subtended by an arc whose length equals the radius, so it is a ratio of two lengths. In engineering, phase angles are commonly expressed in degrees for intuitive interpretation, but radians are required for calculus operations such as differentiation and integration of complex exponentials. The calculator outputs both units so that users can select the appropriate one for their application.
How are complex numbers used in quantum mechanics?
In quantum mechanics, the state of a physical system is described by a wave function ψ, which is a complex-valued function of position and time. The modulus squared |ψ|² gives the probability density of finding a particle at a given location. The argument of ψ determines the phase of the wave function, which is responsible for interference effects such as those observed in the double-slit experiment. Operators in quantum mechanics are represented by Hermitian matrices, whose eigenvalues are real but whose eigenvectors are complex. The complex conjugate appears in the bra-ket notation ⟨φ|ψ⟩, which is the inner product of two quantum states. These applications rely fundamentally on the modulus and argument that the calculator computes.

References& sources.

  1. [1]NIST Digital Library of Mathematical Functions (2024). "Elementary Algebra." §1.9. https://dlmf.nist.gov/1.9
  2. [2]Ahlfors, L.V. (1979). Complex Analysis, 3rd ed. McGraw-Hill. ISBN 978-0070006577.
  3. [3]Needham, T. (1997). Visual Complex Analysis. Oxford University Press. ISBN 978-0198534464.
  4. [4]Oppenheim, A.V. and Schafer, R.W. (2009). Discrete-Time Signal Processing, 3rd ed. Pearson. ISBN 978-0131988422.
  5. [5]Hayt, W.H., Buck, J.A., and Durbin, S.M. (2011). Engineering Electromagnetics, 8th ed. McGraw-Hill. ISBN 978-0073380664.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon