DEV Community

Cover image for kVA to kW in Python: Why a 60 kVA Generator Can't Carry 55 kW
Evgenii Konkin
Evgenii Konkin

Posted on

kVA to kW in Python: Why a 60 kVA Generator Can't Carry 55 kW

A generator nameplate usually gives you two numbers, and people tend to read only the bigger one. A 60 kVA three-phase set is typically rated at a 0.8 power factor, so it's also a 48 kW set. Both limits apply at the same time.

The conversion itself is one multiplication:

kW = kVA × PF
Enter fullscreen mode Exit fullscreen mode

That's what the CalcEngineer kVA to kW calculator does with any rating and power factor you give it. The mistake happens one step earlier, when you total up the loads.

Don't add kVA, add kW and kVAR

Loads with different power factors don't add up as plain kVA. Real power (kW) adds directly, reactive power (kVAR) adds directly, and apparent power is the hypotenuse of the two. Here is a small load list and a two-limit check:

from math import acos, tan, sqrt

loads = [  # (name, kW, power factor)
    ("water heater", 20, 1.00),
    ("pump + fan motors", 25, 0.80),
    ("LED + IT", 10, 0.95),
]

kw = sum(p for _, p, _ in loads)
kvar = sum(p * tan(acos(pf)) for _, p, pf in loads)
kva = sqrt(kw**2 + kvar**2)              # vector sum
kva_naive = sum(p / pf for _, p, pf in loads)  # adding kVA directly

print(f"Real power:     {kw:.1f} kW")
print(f"Reactive power: {kvar:.1f} kVAR")
print(f"Apparent power: {kva:.1f} kVA (naive sum {kva_naive:.1f})")
print(f"Combined PF:    {kw / kva:.3f}")

def check_genset(kva_rating, pf_rating=0.8):
    kw_rating = kva_rating * pf_rating
    ok = kw <= kw_rating and kva <= kva_rating
    print(f"{kva_rating} kVA set = {kw_rating:.0f} kW | "
          f"kVA {kva / kva_rating:.0%}, kW {kw / kw_rating:.0%} -> "
          f"{'OK' if ok else 'OVERLOADED'}")

for size in (60, 70, 80):
    check_genset(size)
Enter fullscreen mode Exit fullscreen mode

Output:

Real power:     55.0 kW
Reactive power: 22.0 kVAR
Apparent power: 59.3 kVA (naive sum 61.8)
Combined PF:    0.928
60 kVA set = 48 kW | kVA 99%, kW 115% -> OVERLOADED
70 kVA set = 56 kW | kVA 85%, kW 98% -> OK
80 kVA set = 64 kW | kVA 74%, kW 86% -> OK
Enter fullscreen mode Exit fullscreen mode

What the numbers say

The 60 kVA set looks fine and isn't. The load is 59.3 kVA, so the kVA rating is 99% used. But the load is 55 kW against a 48 kW engine-and-alternator rating, which is 115%. A load with a fairly good power factor (0.93 here) hits the kW limit first.

The naive sum overstates kVA. Adding the three kVA values gives 61.8 kVA, about 2.5 kVA too high, because the water heater's current is in phase with the voltage and the motors' current isn't. The error is small here and grows when you mix very different power factors.

The opposite case exists too. A 40 kW load at PF 0.65 needs 61.5 kVA. It's well under the 48 kW rating but over the 60 kVA one. Low power factor loads run into the kVA limit first.

70 kVA passes, but only just. At 98% of its kW rating there's no room left for motor starting or the next thing someone plugs in. In this example 80 kVA is the size with real headroom.

Quick rule

Total kW and kVAR separately, take kVA = √(kW² + kVAR²), then check the load against both the kW and the kVA rating. Check the datasheet's rated power factor too: three-phase sets are usually rated at 0.8, single-phase ones are often rated at 1.0. Motor starting kVA and nonlinear loads need their own check on top of this.

Your turn: have you seen a generator that was "big enough" in kVA and still tripped? What was on it?

Top comments (0)