Electrical Trade & Electronics Solar, Battery & Backup Power NEC Art. 445/702, NEMA code letters

Generator Sizing Calculator (kW and kVA)

Enter your total running load, the horsepower of the largest motor that starts across the line, the supply voltage and phase, and a reserve margin, and this calculator returns the generator rating you need in both kW and kVA, the peak starting demand in kVA, and the current the set will deliver. It sizes on two independent constraints — the engine has to carry the running kilowatts, and the alternator has to survive the inrush when the largest motor starts — and reports whichever is larger. Motor starting kVA follows the NEMA code letter on the motor nameplate, listed in NEC Table 430.7(B).

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Total running loadSum of everything running at the same time, including the largest motor's running draw. Use real running watts, not nameplate maximums.8 kW
Load power factorRatio of real power to apparent power for the whole load. Around 0.95-1.0 for resistive heating and lighting, 0.8-0.9 where motors dominate.0.9
Largest motor started across the lineHorsepower of the single biggest motor that starts while everything else is already running. Enter 0 if there is no motor load.5 hp
Motor starting methodAcross-the-line starting draws the full locked-rotor kVA. Soft starters and drives limit inrush, so the generator can be smaller.Across the line (full voltage)
Supply voltageLine-to-line voltage at the generator terminals. Used only to convert the required kVA into output current.240 V
PhaseSingle-phase sets are rated at unity power factor; three-phase sets are conventionally rated at 0.8 power factor.Single phase
Reserve marginSpare capacity above the running load for future additions and for engine derating at altitude and temperature.25 %
Motor efficiencyNameplate efficiency of the largest motor, used to convert its horsepower into the input kW it draws while running.87 %
Locked-rotor kVA per hpFrom the nameplate code letter, read against NEC Table 430.7(B). Take the top of the band for a conservative size.6.3 kVA/hp
Generator starting kVA capabilityHow many times its rated kVA the alternator can supply momentarily within an acceptable voltage dip — read it from the set's motor-starting data.2 × rated kVA

It returns

  • Minimum generator rating — The larger of the engine requirement and the alternator requirement, at the standard rating power factor for this phase.
  • Minimum alternator rating
  • Peak starting demand
  • Running load apparent power
  • Generator output current

The formula

Sreq=max(Srun(1+r),Speakk)
I=S10003V
Pin=hp0.746η

In plain text: kVA_req = max( kVA_run × (1 + reserve), kVA_peak / surge ), kVA_peak = (kVA_run − kVA_motor,run) + hp × kVA/hp × m

  • S_reqMinimum alternator rating (kVA)
  • S_runRunning load apparent power = kW ÷ power factor (kVA)
  • S_peakApparent power at the instant the largest motor starts (kVA)
  • rReserve margin (decimal)
  • kGenerator surge capability as a multiple of rated kVA (×)
  • mStarting-method multiplier: 1 across the line, less with a soft starter or drive (dimensionless)

Generator sets are rated at 0.8 power factor for three-phase machines and unity for single-phase, so the kW rating is the alternator kVA multiplied by that figure — subject to the engine still carrying the running kilowatts.

Updated Category Solar, Battery & Backup Power Verified against published test cases Reading time 13 min

Two constraints, not one

A generator set is two machines bolted together, and each one limits the size independently. The engine converts fuel into shaft power and is rated in kilowatts. The alternator turns shaft power into current and is rated in kilovolt-amperes. A load that is heavy in kilowatts stresses the engine; a load that is heavy in current at low power factor stresses the alternator windings. Size for whichever runs out first.

For steady loads the two track each other and the distinction rarely bites. The moment it matters is motor starting. A squirrel-cage induction motor started at full voltage behaves for a second or two like a short circuit with a small impedance: it draws five to eight times its full-load current at a power factor near 0.3. That inrush is almost entirely reactive, so it barely touches the engine — the crankshaft hardly notices — while it collapses the alternator's terminal voltage. Undersize the alternator and lights dim, contactors drop out and the motor may never come up to speed.

So this calculator computes both requirements. The running requirement is your load in kVA plus a reserve margin. The starting requirement is the worst instant of the day — everything else already running, plus the largest motor at locked rotor — divided by the surge capability the set can deliver without an unacceptable voltage dip. The answer is the larger of the two, and the calculator tells you which one is binding.

The starting figure comes from the motor nameplate rather than a rule of thumb. NEMA assigns every motor a code letter defining its locked-rotor kilovolt-amperes per horsepower, and NEC Table 430.7(B) lists the bands.

Working through the terms

Running kVA. Divide the running kilowatts by the power factor. Ten kilowatts at 0.9 power factor is 11.1 kVA, so the alternator must handle 11% more apparent power than the kilowatt figure implies. Resistive loads — heaters, incandescent lamps, ranges — sit at unity power factor, so for them kW and kVA are the same number.

The motor's running contribution. Your running load already contains the largest motor, so you must remove it before adding the inrush, or you will count it twice. Horsepower converts to output kilowatts at 0.746 kW/hp, and the motor's electrical input is that divided by its efficiency: a 5 hp motor at 87% efficiency draws 5 × 0.746 ÷ 0.87 = 4.29 kW of input power.

Locked-rotor demand. Multiply the horsepower by the code-letter kVA per horsepower. A 5 hp motor with code letter H draws between 6.3 and 7.09 kVA/hp — 31.5 to 35.5 kVA at the instant of start, against 4.76 kVA while running, a ratio of 31.5 ÷ 4.76 = 6.6 at the bottom of the band. A soft starter typically halves that; a variable frequency drive ramps the motor up from zero frequency and the inrush essentially disappears, which is why the multiplier for a drive is so small.

Peak demand. Add the inrush to whatever else is already connected. This is a deliberately pessimistic assumption: it says the compressor kicks in while the well pump, the fridge and the furnace are all running. That is the condition a standby set has to survive.

Converting kVA to a kW rating. Three-phase generator sets are conventionally rated at 0.8 power factor, so a 100 kVA alternator carries an 80 kW nameplate. Single-phase sets are rated at unity. The calculator applies that convention and then takes the larger of the resulting kW figure and the engine's own requirement, because a high-power-factor load can exhaust the engine while leaving alternator capacity unused.

Worked example: a house with a 5 hp compressor

A 240 V single-phase standby set has to carry 8 kW of running load at 0.9 power factor. The largest motor is a 5 hp air-conditioning compressor with code letter H at 87% efficiency, started across the line. Code H spans 6.3 to 7.09 kVA/hp; this example takes the bottom of the band, 6.3, and the note under the table below shows what the top of the band costs. The owner wants 25% reserve, and the set's data sheet allows a momentary demand of twice its rated kVA. Step by step:

  1. Running kVA. 8 ÷ 0.90 = 8.89 kVA.
  2. Motor input while running. 5 × 0.746 ÷ 0.87 = 4.29 kW, which at 0.90 power factor is 4.76 kVA.
  3. Everything except that motor. 8.89 − 4.76 = 4.13 kVA.
  4. Locked-rotor demand. 5 hp × 6.3 kVA/hp × 1.0 = 31.5 kVA.
  5. Peak demand. 4.13 + 31.5 = 35.63 kVA.
  6. Alternator for the running load. 8.89 × 1.25 = 11.11 kVA.
  7. Alternator for starting. 35.63 ÷ 2.0 = 17.81 kVA.
  8. Take the larger. 17.81 kVA. On a single-phase set rated at unity power factor that is a 17.81 kW minimum, so you buy the next standard size above it from the manufacturer's range.
  9. Output current. 17,810 ÷ 240 = 74.2 A.

The instructive part is step 6 against step 7. The running load alone would be satisfied by an 11 kVA machine; the compressor start forces 17.81 kVA. Fitting a soft starter to that compressor halves the inrush to 15.75 kVA, dropping the peak to 19.88 kVA and the starting requirement to 9.94 kVA — below the 11.11 kVA the running load needs. At that point the running load becomes the binding constraint and an 11.11 kVA set would serve — the soft starter has taken 6.7 kVA off the requirement, which is very often cheaper than the generator size it saves.

How to read the result

Buy the next standard size up, never down. Generator ratings come in discrete steps a few kilowatts apart, and the calculated figure is a minimum, not a target. Rounding down means running at or above 100% of rating, where the set has no margin for a hot day or a future load.

Check which constraint is binding. If motor starting sets the size, the cheapest fix is usually not a bigger generator but a soft starter on the offending motor, typically an air-conditioning compressor or a submersible well pump. If the running load sets the size, the fix is load management: an automatic load-shed relay that drops the water heater or the second air-conditioner while the compressor starts lets a smaller set serve the same house.

Derate for altitude and temperature. Naturally aspirated engines lose power as air thins. Manufacturers publish derating tables, commonly a few percent per 300 m of altitude above a reference elevation and a further allowance above a reference intake temperature. Use the manufacturer's table for your model rather than a generic figure, and apply the derate to the calculated rating.

Do not run a diesel set lightly loaded for long periods. Diesel engines below roughly 30% of rating suffer wet stacking — unburned fuel glazing the cylinder walls and fouling the exhaust. Oversizing a diesel standby set is a real cost, not just a wasted one. Gaseous and gasoline sets are more tolerant.

Cross-check the load figure itself. If you are sizing a whole-house set, the load should come from a proper calculation rather than a guess: run it through the dwelling load calculation calculator. For individual motors, the motor full-load amps calculator gives the running current the NEC tables assign, and the three-phase power calculator converts between amps, kW and kVA on a three-phase supply.

NEMA code letters and locked-rotor kVA per horsepower

Locked-rotor kilovolt-amperes per horsepower by nameplate code letter, as listed in NEC Table 430.7(B). Multiply the top of the band by the motor horsepower for a conservative starting demand.
Code letterkVA per hpStarting kVA, 5 hp motor
A0 – 3.1415.7 kVA
B3.15 – 3.5417.7 kVA
C3.55 – 3.9920.0 kVA
D4.0 – 4.4922.5 kVA
E4.5 – 4.9925.0 kVA
F5.0 – 5.5928.0 kVA
G5.6 – 6.2931.5 kVA
H6.3 – 7.0935.5 kVA
J7.1 – 7.9940.0 kVA
K8.0 – 8.9945.0 kVA
L9.0 – 9.9950.0 kVA
M10.0 – 11.1956.0 kVA
N11.2 – 12.4962.5 kVA

The third column is 5 hp multiplied by the top of each band, rounded to three significant figures. Run the worked example at the top of the H band instead of the bottom and the peak becomes 4.13 + 35.45 = 39.58 kVA and the requirement 19.8 kVA rather than 17.81 kVA — a whole generator size. Hermetic refrigerant compressors are marked with a rated-load current and a locked-rotor current instead of a code letter; multiply the locked-rotor amps by the supply voltage, and by √3 as well on a three-phase supply, then divide by 1,000 to get the starting kVA directly.

Mistakes that produce the wrong size

  • Adding every nameplate together. Nameplates are maximums and loads are not all on at once. Use a realistic simultaneous running load, or a demand-factored calculation for a dwelling. Summing nameplates routinely doubles the answer.
  • Counting the largest motor twice. If the running load already includes the compressor, you must subtract its running draw before adding its inrush. This calculator does that for you, but hand calculations frequently do not.
  • Ignoring power factor on a three-phase set. A 100 kVA three-phase alternator is stamped 80 kW. Sizing on kilowatts alone and buying a matching nameplate leaves the alternator short whenever the load power factor is below 0.8.
  • Using a starting multiple instead of the code letter. "Three times running" is a folk rule that happens to fit some motors. The code letter is on the nameplate and is specific to that machine, and the spread from code A to code N is a factor of four.
  • Forgetting non-linear loads. Variable frequency drives, LED drivers, UPS rectifiers and switching supplies draw harmonic current that heats the alternator without doing work. Sets serving substantial non-linear load often need a larger alternator or a permanent-magnet exciter, which the manufacturer will specify.
  • Sizing the transfer switch to the load instead of the set. The automatic transfer switch and its conductors are sized on the generator's rated output current, which is the last figure this calculator reports.

Which code articles apply

NEC Article 445 covers generators themselves: nameplate requirements, conductor ampacity, overcurrent protection and disconnecting means. Article 700 governs emergency systems, Article 701 legally required standby, and Article 702 optional standby systems — which is where nearly all residential and small-commercial backup sets land. Article 702 permits a system that serves only part of the premises, provided the load is managed so the generator cannot be overloaded, which is the code basis for automatic load-shed relays.

Article 250 and the transfer-switch listing decide whether the generator neutral is bonded, and getting that wrong defeats ground-fault protection. NFPA 110 covers emergency and standby power systems as a whole, including testing intervals and fuel supply. Confirm which NEC edition your jurisdiction has adopted; three-year cycles mean the adopted edition is often two behind the published one.

Where a generator fits against batteries and solar

The size you calculate here is a power figure. It says nothing about how long the set can run, which is a fuel question — a 20 kW set at half load burns a very different amount from the same set at full load, and the generator fuel consumption calculator converts a rating and a load factor into gallons or cubic feet per hour.

That distinction is what separates generators from batteries. A generator is cheap in energy and expensive in power: adding runtime costs only fuel, while adding kilowatts means a bigger machine. A battery bank is the reverse — inverters deliver large surges readily, while extra kilowatt-hours are the expensive part. Systems that combine the two exploit this: the inverter and battery bank handle surges and short outages, and a modest generator recharges the bank at a steady, efficient load rather than following the house demand up and down.

For a hybrid design, size the generator on its charging duty plus the largest simultaneous motor start rather than on the whole house. That is frequently half the standalone figure, because the inverter absorbs the peaks. In an off-grid installation with a well-sized solar array, the generator runs a handful of hours a month in midwinter, so purchase price matters more than fuel efficiency and a smaller set wins on both.

If you are converting between nameplate figures while building the load list, the watts to amps calculator handles single- and three-phase conversions consistently, which stops mixed units creeping into the total.

Frequently asked questions

What size generator do I need for a whole house?

It depends on your motors, not your square footage, so calculate it rather than guessing from floor area. Work out the simultaneous running load, identify the largest motor that starts across the line — usually the air-conditioning compressor or a well pump — and size for the worse of the running requirement and the starting requirement. The worked example on this page — 8 kW of running load with one 5 hp compressor — lands at 17.81 kVA on a single-phase set. Electric heat, a second compressor or a deep well pump push that figure up; gas heat plus an automatic load-shed relay that drops the water heater during a start pulls it down, often by a whole generator size.

What is the difference between kW and kVA on a generator?

kVA is apparent power, the product of volts and amps, and it is what heats the alternator windings. kW is real power, what the engine has to produce. They are related by the power factor: kW = kVA × PF. Three-phase sets are conventionally rated at 0.8 power factor, so a 100 kVA machine carries an 80 kW nameplate; single-phase sets are rated at unity, where the two numbers are equal.

How much bigger does a motor make the generator?

It depends entirely on the starting method. Started across the line, a 5 hp code-H motor demands 31.5 kVA momentarily at the bottom of its band, against 4.76 kVA while running — a ratio of 6.6. Fit a soft starter and that halves; fit a variable frequency drive and the inrush largely disappears because the drive ramps the motor from zero frequency. On a set sized by motor starting, a soft starter is usually cheaper than the next generator size.

Where do I find the code letter on my motor?

It is a single letter on the nameplate, usually adjacent to the service factor and the NEMA design letter, printed as "CODE H" or just "H". Read it against NEC Table 430.7(B) to get kVA per horsepower. Hermetic refrigerant compressors in air conditioners often carry a rated-load current and a locked-rotor current instead; if so, multiply the locked-rotor amps by the supply voltage — and by √3 on a three-phase supply — then divide by 1,000 to get the starting kVA, and enter that figure divided by the horsepower in the kVA-per-hp field.

Should I include the reserve margin as well as the starting allowance?

Yes, but they apply to different things. The reserve margin covers future load growth and engine derating and is applied to the running load. The starting allowance covers a momentary event and is applied to the peak. Because the calculator takes the larger of the two results rather than adding them, a generous reserve does not compound with a conservative starting assumption.

Does altitude really change the size I need?

Yes, for naturally aspirated engines. Thinner air means less oxygen per intake stroke and less power, and manufacturers publish derating tables against elevation and intake air temperature for every model. Take the derate percentage from the table for your set and increase the calculated rating by it. Turbocharged engines are less affected up to their compressor's limit.

Can I run a generator continuously at its rated output?

Only if it carries a prime or continuous rating. Standby ratings assume intermittent service — a limited number of hours per year at a varying load — and running one at nameplate output for days will shorten its life. Prime ratings permit unlimited hours at a varying load, and continuous ratings permit unlimited hours at constant full load. Check which rating your quoted kW figure refers to.

Why do my lights dim when the air conditioner starts on generator power?

Because the locked-rotor current briefly exceeds what the alternator can supply without its terminal voltage sagging. Manufacturers publish the dip their set produces against starting kVA, and they specify the maximum they consider acceptable; a brief dip within that published limit is normal, while one that drops out contactors or stalls the motor means the alternator is undersized for that start. Fixing it means a larger alternator, a soft starter on the motor, or shedding other load during the start.

Is it bad to buy a generator that is much too big?

For a diesel set, yes. Diesels run below about 30% of rating suffer wet stacking, where unburned fuel glazes the cylinder walls and fouls the exhaust, and clearing it requires a deliberate load-bank exercise. Gaseous and gasoline sets tolerate light loading far better. In every case the oversized set costs more to buy and consumes more fuel at idle.

References

  • NFPA 70, National Electrical Code — Article 445 (Generators), Article 702 (Optional Standby Systems) and Table 430.7(B) (Locked-Rotor Indicating Code Letters) — National Fire Protection Association
  • NFPA 110, Standard for Emergency and Standby Power Systems — National Fire Protection Association
  • NEMA MG 1, Motors and Generators — National Electrical Manufacturers Association
  • IEEE Std 3007.1, Recommended Practice for the Operation and Management of Industrial and Commercial Power Systems — Institute of Electrical and Electronics Engineers