Last updated: July 26, 2026
a+bi Form Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
r = √(a²+b²), θ = atan2(b,a), a = r cosθ, b = r sinθ
Where:
- a=Real part
- b=Imaginary coefficient
- r=Magnitude
- θ=Phase angle (degrees)(°)
Worked Examples
Convert 3 + 4i to polar
Classic 3-4-5 complex number.
- 1Magnitude r = √(3² + 4²) = 5
- 2Angle θ = atan2(4,3) ≈ 53.130102°
- 3Polar form = 5∠53.130102°
Convert 5∠30° to rectangular
Common engineering phasor.
- 1a = 5 × cos(30°) = 5 × 0.866025 ≈ 4.330127
- 2b = 5 × sin(30°) = 5 × 0.5 = 2.5
- 3Rectangular form = 4.330127 + 2.5i
Quadrant II: -3 + 4i
Test atan2 quadrant handling.
- 1r = √(9+16) = 5
- 2θ = atan2(4,-3) ≈ 126.869898° (Quadrant II)
Introduction
Complex numbers are numbers of the form a + bi, where a is the real part, b is the imaginary coefficient, and i is the imaginary unit (i² = -1). The same complex number can be represented in rectangular (Cartesian) form a+bi or polar form r∠θ, where r is magnitude and θ is the angle from the positive real axis. This calculator converts seamlessly between both forms, making it essential for electrical engineering (phasors, AC circuits), signal processing, control systems, and advanced mathematics.
Rectangular vs. Polar Forms
Complex numbers can be expressed in two equivalent forms — rectangular (a+bi) for addition/subtraction and polar (r∠θ) for multiplication/division. Both represent the same point in the complex plane using different coordinates.
- **Rectangular (a+bi)**:
Real part a (horizontal) + imaginary part bi (vertical)
- Example:
3 + 4i means 3 units right, 4 units up on the complex plane
- Best for:
Addition and subtraction (just add real parts and imaginary parts separately)
- **Polar (r∠θ)**:
Magnitude r (distance from origin) and angle θ (direction from positive real axis)
- Example:
5∠53.13° means distance 5 at angle 53.13° from positive real axis
- Best for:
Multiplication (multiply magnitudes, add angles) and division (divide magnitudes, subtract angles)
- Same point, different coordinates:
3+4i = 5∠53.13°
Converting Rectangular to Polar
Given a+bi, compute magnitude and angle using distance and direction formulas. The atan2 function is critical for handling all four quadrants correctly.
- **Magnitude**:
r = √(a² + b²) — distance from origin using Pythagorean theorem
- **Angle**:
θ = atan2(b, a) — direction in degrees (or radians)
- **Why atan2?** Handles all quadrants:
plain arctan(b/a) fails for quadrants II and III
- Example:
-3 + 4i → r = √(9+16) = 5, θ = atan2(4,-3) ≈ 126.87° (quadrant II)
- If using plain arctan:
arctan(4/-3) ≈ -53.13° (wrong quadrant!)
- Result:
r∠θ in polar form
Converting Polar to Rectangular
Given r∠θ, use trigonometric projection to find real and imaginary components. This is standard in AC circuit analysis when converting phasors to time domain.
- **Real part**:
a = r × cos(θ) — horizontal projection
- **Imaginary part**:
b = r × sin(θ) — vertical projection
- Example:
5∠53.13° → a = 5×cos(53.13°) ≈ 3, b = 5×sin(53.13°) ≈ 4
- Result:
a + bi in rectangular form
This uses basic trigonometry from right triangles in the complex plane
Euler's Formula Connection
Polar form connects deeply to Euler's formula e^(iθ) = cos(θ) + i sin(θ), which bridges exponential functions and trigonometry.
Polar form r∠θ can also be written as r e^(iθ) (exponential notation)
Example: 5∠53.13° = 5 e^(i·53.13°) = 5 e^(i·0.9273 rad)
Euler's formula is fundamental in: Calculus, differential equations, Fourier analysis, quantum mechanics
It explains why multiplication in polar form adds angles: e^(iα) × e^(iβ) = e^(i(α+β))
Used extensively in signal processing and control systems
Why Polar Simplifies Multiplication/Division
Operations that are messy in rectangular form become trivial in polar form — this is why engineers prefer polar for AC circuits.
- **Multiplication**:
(r₁∠θ₁) × (r₂∠θ₂) = (r₁×r₂)∠(θ₁+θ₂) — multiply magnitudes, add angles
- **Division**:
(r₁∠θ₁) / (r₂∠θ₂) = (r₁/r₂)∠(θ₁−θ₂) — divide magnitudes, subtract angles
- Example:
(5∠30°) × (2∠45°) = 10∠75° instantly
- In rectangular form:
(a+bi) × (c+di) = (ac-bd) + (ad+bc)i requires FOIL expansion
This is why AC impedance, phasor analysis, and power factor all use polar form
Real-World Applications
Complex numbers in a+bi ↔ r∠θ conversion appear across electrical engineering, signal processing, control systems, and quantum mechanics.
- **Electrical Engineering**:
AC voltages/currents are phasors (complex numbers). Impedance = R + jX (rectangular) = Z∠φ (polar)
- **Signal Processing**:
Fourier transforms represent signals as sums of complex exponentials (polar form)
- **Control Systems**:
Transfer functions use complex poles and zeros for stability analysis
- **Quantum Mechanics**:
Wave functions are complex-valued; probability amplitudes have magnitude and phase
- **Robotics**:
2D rotations represented as complex multiplication
- **Navigation**:
Bearing (angle) and distance (magnitude) naturally form polar coordinates
- **RF Engineering**:
Antenna radiation patterns, S-parameters, Smith charts all use polar form
Quadrant Handling with atan2
The atan2(b, a) function returns the correct angle in all four quadrants by considering the signs of both a and b. This is why it's essential for rectangular→polar conversion.
| Quadrant | Signs (a, b) | Angle Range | Example |
|---|---|---|---|
| I | (+, +) | 0° to 90° | 3+4i → 53.13° |
| II | (−, +) | 90° to 180° | -3+4i → 126.87° |
| III | (−, −) | −180° to −90° | -3-4i → −126.87° |
| IV | (+, −) | −90° to 0° | 3-4i → −53.13° |
Plain arctan(b/a) cannot distinguish between opposite quadrants — it would give the same value for quadrants I and III, or for II and IV.
Common Mistakes
Avoid these frequent errors when converting between rectangular and polar forms:
- **Mistake**:
Using arctan(b/a) instead of atan2(b,a). Fix: Always use atan2 for correct quadrant
- **Mistake**:
Forgetting to convert degrees↔radians. Fix: Check if your tool uses degrees or radians
- **Mistake**:
Thinking magnitude can be negative. Fix: r ≥ 0 always (it's a distance)
- **Mistake**:
Confusing angle sign conventions. Fix: Counterclockwise from +real axis is standard
- **Mistake**:
Not rationalizing denominators. Fix: Prefer √2/2 over 1/√2 in formal math
- **Mistake**:
Losing precision in chained conversions. Fix: Use 6+ decimals or keep exact forms
FAQs
What if angle is negative?
Negative angles are valid and represent clockwise rotation from the positive real axis. For example, -45° is the same as 315°.
Why use atan2 instead of arctan(b/a)?
atan2 handles all quadrants correctly and avoids divide-by-zero errors when a=0. Plain arctan cannot distinguish between opposite quadrants.
Can magnitude be negative?
No. Magnitude (r) is always non-negative. It represents distance from the origin, which is inherently positive or zero.
How do I add two complex numbers?
Use rectangular form: (a₁+b₁i) + (a₂+b₂i) = (a₁+a₂) + (b₁+b₂)i. Add real parts and imaginary parts separately.
How do I multiply two complex numbers?
In polar form: (r₁∠θ₁) × (r₂∠θ₂) = (r₁r₂)∠(θ₁+θ₂). Multiply magnitudes and add angles. This is much simpler than FOIL in rectangular form.
What is Euler's formula?
e^(iθ) = cos(θ) + i sin(θ). This connects polar form to exponential notation: r∠θ = r e^(iθ). It's fundamental in calculus and engineering.
Does this calculator work with radians?
Currently it uses degrees. To convert: radians = degrees × π/180. Many engineering contexts use degrees (e.g., phasors), while pure math often uses radians.
What does the angle represent geometrically?
The angle θ is measured counterclockwise from the positive real axis (x-axis) in the complex plane. It shows the direction of the complex number.
Can I convert multiple times without losing precision?
Yes, conversions are mathematically exact (within floating-point limits). The calculator uses 6-decimal precision to minimize rounding errors.
What's the complex conjugate?
The conjugate of a+bi is a−bi (flip the sign of the imaginary part). In polar form, r∠θ becomes r∠(−θ). Useful for division and finding magnitude squared.