Using a UPS With a Generator: How to Plan a Setup That Works

A UPS and a generator work well together when the generator is sized well above the UPS rating (commonly advised at 1.5 to 2 times or more), produces a stable frequency and voltage, and feeds the house through a proper transfer switch. The UPS bridges the gap while the generator starts; the generator carries the long outage.

On this page
  1. How the two machines divide the work
  2. Sizing the generator for a UPS load
  3. Frequency and voltage: the window the UPS enforces
  4. UPS settings to change before you need them
  5. Getting generator power to the UPS legally and safely
  6. Planning checklist
  7. Notes for 230 V regions
  8. Frequently asked questions

This page is for planning: choosing a generator, configuring the UPS and wiring the two together. If you already have a setup where the UPS refuses generator power, clicks back and forth or beeps constantly, go to UPS not working with a generator for the diagnostic flow.

How the two machines divide the work

A generator and a UPS solve different halves of an outage. The generator supplies hours or days of energy but needs time to start and is not perfectly smooth. The UPS supplies only minutes but switches in milliseconds. Put together, the sequence looks like this:

  1. Utility power fails. The UPS switches to battery within a few milliseconds (or with no break at all on an online unit).
  2. The generator starts: manually for a portable unit, or automatically in roughly 10 to 30 seconds for a typical standby system.
  3. Power reaches the UPS input through a transfer switch, interlock or cord. The UPS measures voltage and frequency and decides whether to accept it.
  4. If it qualifies, the UPS returns to line mode, powers the load from the generator and begins recharging its battery.
  5. When utility power returns, the transfer equipment switches back, creating one more short gap the UPS covers.

Step 3 is where nearly every problem lives. A UPS that rejects generator power keeps draining its battery while a perfectly good generator idles outside. The rest of this page is about making step 3 succeed. For how much battery you need to bridge step 2, see how much runtime do you need.

Sizing the generator for a UPS load

The generator has to supply three things at once: the load the UPS is protecting, the UPS's own losses, and the charger that refills the battery after the outage it just rode through. Everything else on the generator (refrigerator, furnace, lights) comes on top.

Why the UPS needs more than its load

Right after an outage, the battery is partly or fully discharged and the charger runs at its maximum rate. On small consumer units that recharge draw is modest, often in the range of tens of watts to perhaps 100 to 200 W. On larger units, and especially on units with extended runtime battery packs, the charger can be considerably bigger. The UPS spec sheet or manual usually lists maximum input current; that figure, not the output watts, is what the generator actually sees at worst.

There is also the waveform issue. Many generators, especially smaller conventional ones, sag in voltage and dip in frequency when a load steps on. A generator running near its limit drifts more, and a drifting supply is exactly what pushes a UPS back onto battery.

The common guideline

UPS and generator manufacturers commonly advise a generator rated well above the UPS, with 1.5 to 2 times the UPS rating as a frequently quoted minimum and some recommending more for online UPS units or conventional generators. Treat that as a starting point, not a law, and check what your UPS maker specifies.

Generator continuous W ≥ (UPS load W + charger W + UPS losses) x headroom factor (1.5 to 2+)

Worked example: home office and network

Estimating generator capacity for a 1500 VA / 900 W UPS
ItemWattsNotes
Measured load on the UPS (PC, monitor, router, ONT)420Measured, not nameplate
Battery recharge draw (assumed)120Check the manual's max input current
UPS losses (assumed, about 5 to 10% of load)40Higher on online units
UPS draw from generator580
Headroom at 2x1,160Generator capacity reserved for the UPS
Refrigerator running (start surge handled separately)150Starting surge can be several times this
Planning figureabout 1,300+Plus refrigerator starting surge

In this example, a generator around 2,000 W running is comfortable, and a 1,000 W unit would be marginal even though it technically exceeds the UPS draw. To measure your own load rather than guess, see how to measure power draw and the device power draw database.

Our rule of thumb: size for the worst ten minutes

The hardest moment for a generator is not steady state. It is the first few minutes after it picks up the house: the UPS charger is at full rate, the refrigerator compressor and furnace blower may start at the same time, and the engine is still warming. Plan for that combination and steady running takes care of itself. A practical tactic on smaller generators is to let the UPS load settle for a few minutes before switching on big motor loads, so their starting surges do not arrive together.

Frequency and voltage: the window the UPS enforces

Every UPS has an acceptance window for input voltage and frequency. Outside it, the UPS assumes the power is bad and serves the load from battery. Utility power stays almost exactly at 60 Hz, so this window rarely matters until a generator is involved.

Why generators drift

A conventional generator's frequency is set by engine speed: a typical two-pole alternator must spin at 3,600 rpm for 60 Hz. When load jumps, the engine slows momentarily until the governor responds, and frequency dips. Simple mechanical governors can let frequency wander a few hertz between light and heavy load. Voltage regulation on budget units can also be loose, and the waveform may carry visible distortion.

An inverter generator works differently: the engine drives an alternator whose output is rectified to DC, then an electronic inverter synthesizes 60 Hz AC. Frequency is held by the electronics, not engine speed, so it stays very close to 60 Hz across the load range, and waveform distortion is usually low.

Generator types and how they typically behave with a UPS
Generator typeFrequency stabilityWaveformTypical UPS experience
Portable inverter generatorTight, set electronicallyUsually cleanUsually works at default sensitivity
Conventional open-frame portableDrifts with load, governor dependentCan be noticeably distortedOften needs reduced sensitivity; larger units fare better
Home standby (natural gas or propane)Usually good once warmed upVaries by modelGenerally works; may need tuning on line-interactive units
Large commercial standby with electronic governorGoodGoodDesigned to feed UPS loads; sized by an engineer

For background on the disturbances involved, see power problems explained and harmonics and THD.

UPS settings to change before you need them

Input sensitivity

Many line-interactive UPS units have a sensitivity setting, commonly named High, Medium (or Normal) and Low. On many APC Back-UPS models it is set by a button sequence or through PowerChute; on many CyberPower models it is in PowerPanel or on the LCD menu. Lower sensitivity tells the UPS to tolerate more voltage and frequency variation and more waveform distortion before going to battery. The exact behavior differs by model, so check the manual.

Reducing sensitivity is the standard first step for generator use. The tradeoff: the connected equipment sees slightly rougher power while on the generator. Modern computer power supplies with active PFC tolerate a wide input range, so for most home and office gear that tradeoff is small.

Transfer voltages and frequency tolerance

Business-class units (for example many Smart-UPS, Eaton 5P/5PX-class and Tripp Lite SmartPro-class models) often allow the high and low transfer voltages and the frequency tolerance to be set individually, through the display, software or a network management card. Some offer a generator-oriented frequency range option. Widen these deliberately, within the limits your equipment can handle, rather than leaving the UPS on a tight window designed for utility power.

Online UPS units

An online double-conversion UPS rebuilds its output from DC, so the load never sees generator drift. These are often the most tolerant of generators, but they draw input continuously through a rectifier, so manufacturers' generator sizing recommendations for them can be higher. Many also have a bypass that requires input frequency to stay in sync; on a drifting generator, the bypass may be unavailable, which matters if you overload the UPS. See UPS types explained and line-interactive vs online UPS.

A bench test you can do before an outage

On a calm day, run the generator outdoors, connect the UPS to it with a cord (not through house wiring), and put the real load on the UPS. Watch whether the UPS stays in line mode, then switch on a larger appliance on the generator and see whether the step change kicks the UPS to battery. If it does, lower sensitivity one step and repeat. Thirty minutes of testing now beats discovering the problem in a storm.

Getting generator power to the UPS legally and safely

Option 1: Cords from a portable generator

The simplest arrangement is a heavy-gauge outdoor extension cord from the generator to the UPS (or to a few critical devices). No house wiring is involved, so no transfer switch is needed. Keep the cord rated for the current, avoid daisy-chaining, and plug the UPS directly into the cord end rather than into a surge strip; see plugging a UPS into a power strip for why.

Option 2: Transfer switch or interlock

Feeding house circuits from a generator requires transfer equipment that disconnects the house from the utility before generator power is applied. In the US this falls under NEC Article 702 (Optional Standby Systems) for typical home generators, which requires transfer equipment that prevents inadvertent interconnection of the normal and standby sources. Common choices are a manual transfer switch serving selected circuits, a listed breaker interlock kit on the main panel with a generator inlet, or an automatic transfer switch with a standby generator. Local codes and permit requirements vary, and installation is a job for a licensed electrician.

Never backfeed through an outlet

A double-male "suicide cord" plugged into a wall outlet energizes the house wiring with no protection against feeding the utility lines. It can electrocute utility workers, can expose anyone touching the cord's other prong to full voltage, and destroys the generator when utility power returns. It is illegal in most places. Use a listed transfer switch or interlock.

Bonded vs floating neutral

This is the least understood part of generator wiring, and it directly affects UPS behavior.

  • Bonded neutral: the generator connects neutral to its frame ground internally. Many contractor and construction generators ship this way because OSHA job-site rules expect it for cord-connected tools.
  • Floating neutral: neutral is not tied to ground inside the generator. Many generators intended for home transfer-switch use ship this way.

Which one is correct depends on the transfer equipment. With a transfer switch or interlock that does not switch the neutral (the most common residential arrangement), the house's neutral-ground bond at the main panel serves the generator, so the generator should have a floating neutral; a second bond in the generator would create parallel neutral current on ground conductors. With a transfer switch that does switch the neutral, the generator becomes a separately derived system and needs its own bond under NEC Article 250 rules. Some generators let you change the bond with a removable strap; manufacturers describe how, and an electrician should confirm.

The UPS connection: when you run a cord straight from a floating-neutral generator to a UPS, neutral and ground have no defined relationship. Many UPS units with wiring-fault detection will light a site wiring fault indicator or refuse the power. A bonding plug (a plug that ties neutral to ground in an unused receptacle) is a widely used workaround for cord-only use, but only where the generator is not connected to house wiring. For grounding fundamentals, see site wiring faults and grounding.

Planning checklist

  • Measure the real UPS load and find the UPS maximum input current in the manual.
  • Choose a generator with comfortable headroom: 1.5 to 2 times the UPS rating or more, plus everything else it will run.
  • Prefer an inverter generator for portable setups that mainly feed electronics.
  • Decide the connection method: cord only, or transfer switch/interlock installed by an electrician under NEC Article 702.
  • Confirm whether the generator neutral must be bonded or floating for that connection method.
  • Set UPS sensitivity or transfer limits for generator use, and record the original settings.
  • Size UPS runtime to cover generator start time with margin, including a failed first start.
  • Run a real test with the actual load before you need it, and repeat after any change.
  • Place the generator outdoors, far from doors, windows and vents, and install battery-backed carbon monoxide alarms indoors.

Carbon monoxide is the bigger hazard

Portable generators produce lethal carbon monoxide. Never run one in a garage, basement or crawl space, even with the door open. Public health agencies such as the CDC advise keeping generators at least 20 feet (about 6 m) from the house, with the exhaust pointed away from openings.

Notes for 230 V regions

The same principles apply at 230 V and 50 Hz. A conventional generator spinning at 3,000 rpm produces 50 Hz, and UPS frequency windows are centered there instead. Neutral bonding conventions and transfer equipment rules are set by national wiring regulations (for example BS 7671 in the UK) and differ from the NEC, so the bonded vs floating decision should be made with a local electrician.

Bottom line

Buy more generator than the UPS label suggests, prefer an inverter generator for electronics, lower the UPS sensitivity before the outage, and connect to house wiring only through proper transfer equipment with the neutral configured to match. Then test it with your real load. If it still misbehaves, the generator troubleshooting guide walks through the checks in order. For the broader decision of which backup source fits your home, see UPS vs generator.

Frequently asked questions

What size generator do I need to run a 1500 VA UPS?

Start from the load, not the UPS label. If the UPS carries 600 W and could draw another 100 to 200 W recharging its battery, the steady draw is around 800 W. A common recommendation is a generator rated 1.5 to 2 times the UPS capacity or more, so a 2,000 W or larger unit is a reasonable floor once anything else shares the generator.

Is an inverter generator required for a UPS?

Not strictly, but it is the easiest path. Inverter generators synthesize their AC output electronically, so frequency stays very close to 60 Hz regardless of load and the waveform is usually clean. Many conventional generators work too, particularly larger ones with good governors, but they are more likely to need relaxed UPS sensitivity settings.

Can I plug a UPS directly into a portable generator with an extension cord?

Yes, that is a common and legal arrangement for a few critical devices, because the generator is not connected to house wiring. Use a properly rated outdoor cord, keep the generator outside and well away from doors and windows, and expect that a floating-neutral generator may trigger a site wiring fault indicator on some UPS models.

Should I turn off my UPS before starting the generator?

No. Leave the UPS running on battery while the generator starts and stabilizes, then let the transfer switch or your cord connection supply it. The UPS will judge the incoming power and stay on battery until it is acceptable. Starting the generator first and letting it run unloaded for a minute or so helps it settle before the UPS sees it.

Does a whole-house standby generator remove the need for a UPS?

No. Even automatic standby systems take several seconds to detect an outage, start the engine and transfer, commonly around 10 to 30 seconds. Computers, network gear and NAS units drop in a fraction of a second. The UPS covers that gap and the brief interruption when utility power returns and the switch transfers back.

Sources and further reading

  1. NFPA 70, National Electrical Code, Article 702 (Optional Standby Systems), Article 445 (Generators) and Article 250 (Grounding and Bonding)
  2. OSHA: Portable generator safety guidance
  3. CDC: Carbon monoxide poisoning prevention
  4. APC Smart-UPS and Back-UPS user manuals (Schneider Electric), input sensitivity and voltage transfer settings
  5. CyberPower and Eaton UPS user manuals, input sensitivity and generator compatibility sections