Complex Number & Phasor Calculator Back
Phasor Calculator

Complex Number & Phasor Calculator

Real-time calculation of arithmetic, exponentiation, and square roots in rectangular and polar forms. Draw vectors on the Argand diagram and animate AC circuit impedance (ZR/ZL/ZC) with phasor rotation.

Input
Input mode
Z₁
Z₂
Operation
AC circuit mode
Results
Rectangular a+jb
Polar r∠θ°
Magnitude |Z|
Phase angle arg(Z) °
Visualization
Calculating results...
CAE Applications Forced response of structural vibration:$H(\omega) = 1/(k - \omega^2 m + j\omega c)$(complex frequency response function). The argument of impedance represents phase lag/lead; at resonance,$|H(\omega)|$is maximum (real part of denominator = 0). In electromagnetic field analysis, skin depthδ=√(2/(ωμσ))is also derived from complex permeability.
Theory & Key Formulas

Relationship between rectangular and polar forms:

$$z = a + jb = r e^{j\theta}= r(\cos\theta + j\sin\theta)$$

$r = \sqrt{a^2+b^2}$, $\theta = \arctan(b/a)$, $j^2 = -1$

Multiplication: $z_1 z_2 = r_1 r_2 \, e^{j(\theta_1+\theta_2)}$, division: $\dfrac{z_1}{z_2}= \dfrac{r_1}{r_2}e^{j(\theta_1-\theta_2)}$

Impedance:$Z_R = R$, $Z_L = j\omega L$, $Z_C = \dfrac{1}{j\omega C}$

What are Complex Numbers & Phasors?

🙋
What exactly is a "complex number"? It sounds... complicated.
🎓
Basically, it's a number with two parts: a regular real number and an "imaginary" part, written with a $j$ (where $j^2 = -1$). Think of it as a 2D point: the real part is the x-coordinate, and the imaginary part is the y-coordinate. In this simulator, you can switch the "Input mode" to "Rectangular" and type in numbers like 3 + j4 to see this.
🙋
Wait, really? So what's the polar form I see in the other "Input mode"?
🎓
Great question! That's the same 2D point, but described by its length and angle. For instance, 3 + j4 has a length (magnitude) of 5 and an angle of about 53 degrees. Switch the "Input mode" to "Polar" and enter 5 ∠ 53°—you'll see it's the same point on the Argand diagram. This is incredibly useful for rotation and oscillation.
🙋
Okay, that makes sense as a point. But why is there an "AC circuit mode"? What's the connection?
🎓
In practice, that's where phasors come in! A sinusoidally oscillating voltage or current, like $V(t) = A\cos(\omega t + \phi)$, can be represented as a rotating complex number—a phasor. Its magnitude is $A$ and its angle is $\phi$. The "AC circuit mode" treats your inputs as these phasors, so when you use the "Operation" dropdown to multiply, you're modeling how circuits combine AC signals, which is fundamental to electrical engineering.

Physical Model & Key Equations

The core relationship defines how to move between the rectangular (Cartesian) and polar (magnitude/angle) representations of a complex number $z$.

$$z = a + jb = r e^{j\theta}= r(\cos\theta + j\sin\theta)$$

$a, b$: Real and imaginary parts (rectangular coordinates).
$r, \theta$: Magnitude (or modulus) and argument (angle) in polar form.
The conversions are: $r = \sqrt{a^2+b^2}$ and $\theta = \arctan(b/a)$.

For analyzing oscillations and AC circuits, we use the complex frequency response. A key application is modeling a damped, forced harmonic oscillator (like a car suspension or building vibration).

$$H(\omega) = \frac{1}{k - \omega^2 m + j\omega c}$$

$H(\omega)$: Complex frequency response function (output/input).
$k, m, c$: Stiffness, mass, and damping coefficients.
$\omega$: Driving frequency.
The denominator is a complex impedance. Its magnitude $|H(\omega)|$ peaks at resonance, and its argument gives the phase lag between the force and the system's response.

Frequently Asked Questions

Use the input mode control to choose rectangular form (a+jb) or polar form (r∠θ). Entering either representation automatically updates the other. Angles are displayed in degrees (°).
In AC circuit mode, enter resistance R, inductance L, capacitance C, and frequency f to calculate the series impedance. The inductor is treated as ZL=jωL and the capacitor as ZC=1/(jωC).
It visualizes an AC signal as a rotating vector (phasor) on the complex plane. Playback rotates the current operation result so you can see phase relationships and the combined vector directly.
Check if the input values involve division by zero (e.g., angle calculation with r=0 in polar form) or extremely large numbers. Be especially careful with square roots and divisions to ensure the denominator is not zero. Reset the values and re-enter them, or reload the browser to restore normal operation.

Real-World Applications

AC Circuit Analysis: Every time you plug in a device, the power grid delivers alternating current (AC). Engineers use phasor calculations, like those in the simulator's "AC circuit mode", to design transformers, motors, and filters, ensuring efficient and safe power delivery to your home.

Structural Vibration Control: When designing skyscrapers or bridges, engineers must model how they shake in the wind or during an earthquake. The complex frequency response $H(\omega)$ helps predict resonance frequencies so dampers can be installed to prevent catastrophic vibrations.

Signal Processing & Communications: Your smartphone's ability to send and receive clear audio relies on representing signals as complex numbers. Operations like filtering and modulation are essentially complex multiplications and rotations, allowing your call to be separated from millions of others.

Control Systems & Robotics: To make a robotic arm move smoothly to a precise location, its control system constantly calculates complex transfer functions. These calculations determine how much power to send to each motor and correct for errors in real-time, ensuring stable and accurate movement.

Common Misconceptions and Points to Note

First, the point of "treating j as just a symbol during calculation." While j is an operator that mathematically satisfies $j^2=-1$, in electrical engineering it carries the physical meaning of "an operator that advances the phase by 90 degrees." For example, the j in $Z_L = j\omega L$ signifies that "the voltage phase leads the current phase by 90 degrees." Without grasping this meaning, you might be able to perform calculations, but you won't connect them to an understanding of the phenomenon.

Next, confusing degrees and radians can still cause mistakes. This tool displays phase angle in degrees (°). For instance, $\arctan(1)$ is shown as 45°. If you compare the result with code or formulas that use radians, convert the angle before interpreting phase.

Also, be wary of the oversimplified interpretation that "a larger magnitude means a larger impedance." The magnitude $|Z| = \sqrt{R^2+X^2}$ of a complex impedance $Z = R + jX$ indeed represents the combined magnitude, but only the real part (the resistance R) is involved in power consumption. For example, comparing $Z_1 = 1 + j100$ and $Z_2 = 100 + j1$, their magnitudes are both roughly 100Ω, but $Z_1$ consumes almost no real power (it's predominantly reactive), while $Z_2$ consumes significant power. On an Argand diagram, you can immediately see that the vector directions (arguments) are vastly different.

What is Complex Number & Phasor Calculator?

Complex Number & Phasor Calculator is a fundamental topic in engineering and applied physics. This interactive simulator lets you explore the key behaviors and relationships by directly manipulating parameters and observing real-time results.

By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.

How to Use

  1. Enter complex numbers in rectangular form (real + imaginary components in z1a, z1b fields) or polar form (magnitude in z1r, angle in z1theta degrees)
  2. Input second complex number using z2a, z2b for rectangular or z2r, z2theta for polar representation
  3. Select operation (addition, subtraction, multiplication, division) to compute result displayed in both rectangular (a+jb) and polar (r∠θ°) formats with magnitude and phase angle

Worked Example

For AC circuit with two impedances: Z1 = 50 + j30 Ω (rectangular) and Z2 = 40∠25° Ω (polar). Converting Z2 to rectangular: 40cos(25°) + j40sin(25°) = 36.25 + j16.9 Ω. Series connection adds impedances: Z_total = 86.25 + j46.9 Ω = 98.1∠28.3° Ω. For parallel combination: Z_parallel = (Z1 × Z2)/(Z1 + Z2) = 24.8∠9.7° Ω with magnitude 24.8 Ω and phase 9.7°.

Practical Notes

  1. Three-phase motor analysis: use phase impedances Z_phase = V_phase∠(angle) to determine line currents and power factor; typical 400V motor shows Z = 8.5 + j6.2 Ω per phase
  2. Filter design verification: compare impedance values at crossover frequency; bandpass filter centered 1 kHz with Q=5 requires complex impedance calculations across 800-1200 Hz range
  3. Always verify phase angle sign—inductive circuits show positive angles (leading impedance), capacitive show negative (lagging), affecting reactive power direction
  4. Use polar form for multiplication/division (magnitudes multiply/divide, angles add/subtract); rectangular form simplifies series circuit additions

🎬 Watch it in motion

Newton Fractal | which root you reach paints a kaleidoscope #Shorts
Newton Fractal | which root you reach paints a kaleidoscope #Shorts
Mandelbrot Set | one tiny formula spins out infinite detail #Shorts
Mandelbrot Set | one tiny formula spins out infinite detail #Shorts