What's going on
A motor's current lags behind the voltage, because part of it is spent building the magnetic field in the motor's windings and iron. That part, the reactive power, measured in var, flows back and forth every cycle and does no useful work. The useful part is the real power, in watts. Together they make the apparent power, in VA, which sets the current the cable has to carry. For sine waves:
power factor = real power ÷ apparent power = cos φ current = apparent power ÷ voltage
where φ is the angle between the voltage and the current. The power triangle in the simulator shows the three powers. A low power factor means more current for the same useful power.
How a capacitor helps
A capacitor's current leads the voltage by a quarter cycle, the opposite of the motor's lagging reactive current. Connected in parallel with the motor, it supplies the reactive current locally, so it no longer flows through the supply. The motor itself still draws exactly the same current. To correct from cos φ₁ to cos φ₂:
C = P × (tan φ₁ − tan φ₂) ÷ (2π × f × V²)
Too much capacitance over-corrects: the supply current leads the voltage and starts to rise again.
Why it matters
Every cable, switch, fuse and transformer between the supply and the motor has to carry the full current, not just the useful part, and cable losses go with the current squared. Correcting the power factor frees up capacity and cuts losses. Distribution charges for many larger UK business supplies also include a charge for excess reactive power. Power factor correction capacitors keep their charge after they're switched off, so they're fitted with discharge resistors. Isolate them, wait for them to discharge and prove them dead before working on them.
How this simulation works
The supply is a perfect 230 V, 50 Hz sine wave. The motor is modelled as a fixed real power and power factor, and the capacitor is ideal, so the maths is exact for that model. A real motor's power factor changes with its load and is usually worst at light load. Large installations are usually three-phase, with automatic banks that switch capacitor steps in and out. Harmonics from variable speed drives and other electronics can also make capacitor banks resonate, which is why detuned banks with series reactors are used. Get those designed by a specialist. The current flow animation runs in slow motion, one cycle every three seconds.