Complex Number to Rectangular Form Calculator
Convert complex numbers from polar, exponential, or trigonometric form to rectangular (a + bi) form. Supports degrees and radians with full precision control.
About
Errors in complex number conversion cascade through every downstream calculation in circuit analysis, signal processing, and quantum mechanics. A sign error on the imaginary component of an impedance value, for instance, flips a capacitive load to inductive and invalidates an entire filter design. This calculator converts complex numbers expressed in polar form (r∠θ), exponential form (reiθ), or trigonometric form (r[cosθ + isinθ]) into standard rectangular form a + bi. It handles both degree and radian inputs and applies IEEE 754 floating-point arithmetic with configurable decimal precision up to 15 digits.
Limitation: results near special angles (e.g., cos(90°) producing 6.12e-17 instead of 0) are automatically snapped to zero when the magnitude falls below 1e-12. This threshold covers all standard engineering and physics use cases but may not suit arbitrary-precision number theory work. Negative modulus values are supported: the calculator adds π to the argument and uses |r| per standard convention.
Formulas
The conversion from polar to rectangular form relies on Euler's formula and standard trigonometric decomposition.
Equivalently, from exponential notation:
The real part a and imaginary part b are extracted as:
Degree-to-radian conversion when the angle is supplied in degrees:
Where: r = modulus (magnitude) of the complex number. θ = argument (angle) of the complex number. a = real component. b = imaginary component. i = imaginary unit where i2 = −1.
For negative modulus r < 0, the calculator normalizes via:
Reference Data
| Angle (θ) | Degrees | Radians | cos(θ) | sin(θ) | Rectangular (r = 1) |
|---|---|---|---|---|---|
| 0 | 0° | 0 | 1 | 0 | 1 + 0i |
| π/6 | 30° | 0.5236 | 0.8660 | 0.5 | 0.8660 + 0.5i |
| π/4 | 45° | 0.7854 | 0.7071 | 0.7071 | 0.7071 + 0.7071i |
| π/3 | 60° | 1.0472 | 0.5 | 0.8660 | 0.5 + 0.8660i |
| π/2 | 90° | 1.5708 | 0 | 1 | 0 + 1i |
| 2π/3 | 120° | 2.0944 | −0.5 | 0.8660 | −0.5 + 0.8660i |
| 3π/4 | 135° | 2.3562 | −0.7071 | 0.7071 | −0.7071 + 0.7071i |
| 5π/6 | 150° | 2.6180 | −0.8660 | 0.5 | −0.8660 + 0.5i |
| π | 180° | 3.1416 | −1 | 0 | −1 + 0i |
| 7π/6 | 210° | 3.6652 | −0.8660 | −0.5 | −0.8660 − 0.5i |
| 5π/4 | 225° | 3.9270 | −0.7071 | −0.7071 | −0.7071 − 0.7071i |
| 4π/3 | 240° | 4.1888 | −0.5 | −0.8660 | −0.5 − 0.8660i |
| 3π/2 | 270° | 4.7124 | 0 | −1 | 0 − 1i |
| 5π/3 | 300° | 5.2360 | 0.5 | −0.8660 | 0.5 − 0.8660i |
| 7π/4 | 315° | 5.4978 | 0.7071 | −0.7071 | 0.7071 − 0.7071i |
| 11π/6 | 330° | 5.7596 | 0.8660 | −0.5 | 0.8660 − 0.5i |
| 2π | 360° | 6.2832 | 1 | 0 | 1 + 0i |