How to Make a Generator Safe for Electronics

Most portable generators produce “dirty” power that can damage or shorten the life of computers, routers, TVs, and other sensitive electronics. The key measurement is total harmonic distortion (THD): you want less than 3% THD reaching your devices. Inverter generators hit that mark on their own, but conventional generators typically don’t. The good news is that a combination of the right equipment and simple setup practices can make nearly any generator safe for electronics.

Why Generator Power Damages Electronics

The electricity coming out of your wall at home is a smooth, consistent sine wave at 120 volts and 60 Hz. A conventional generator’s output looks rougher. The engine speed fluctuates under changing loads, which causes three problems at once: voltage sags and surges, frequency drift, and waveform distortion. These irregularities are collectively called “dirty power.”

The devices most vulnerable to dirty power are anything with a circuit board or microprocessor. Computers, routers, Wi-Fi access points, NAS drives, DVRs, streaming boxes, smart home hubs, and LED drivers are all especially sensitive. Even brief voltage sags can force a router or PC to reboot, while repeated surges slowly degrade the components inside TVs, chargers, and anything with a control board. You might not see immediate failure, but the cumulative damage adds up.

Inverter Generators vs. Conventional Generators

An inverter generator is the simplest path to electronics-safe power. These units convert the generator’s raw AC output to DC, then invert it back to AC as a clean sine wave. Most inverter generators produce under 3% THD straight from the outlet, which is safe for laptops, desktop computers, audio systems, and LCD televisions without any additional equipment.

Conventional (open-frame) generators are cheaper and more powerful, but their THD often runs between 5% and 25%. Many include an automatic voltage regulator (AVR), a solid-state device that senses the output voltage and adjusts the generator’s field current to hold a steady voltage as load and temperature change. An AVR helps with voltage stability, but it does nothing to clean up harmonic distortion or frequency drift. If you already own a conventional generator, you’ll need external protection to make its power safe.

Use a Double-Conversion UPS

The single most effective device you can place between a generator and your electronics is a double-conversion (online) uninterruptible power supply. Unlike a basic surge protector or even a standard battery backup, a double-conversion UPS completely rebuilds the incoming power. It converts the generator’s AC to DC, stores it in the battery, then generates brand-new AC output with clean sine wave characteristics and voltage regulation within about 2% of the target.

This process eliminates every common generator problem at once: voltage dropouts, noise, harmonic distortion, waveform distortion, and frequency instability. Generator sources are notorious for frequency drift, and because cheaper UPS designs (called “off-line” or “line-interactive”) pass the incoming power directly through to your equipment, they can’t filter out frequency problems. A double-conversion unit can, because it’s always regenerating the power from scratch.

Size your UPS to handle the total wattage of everything you’ll plug into it, plus about 20% headroom. For a home office setup with a computer, monitor, router, and modem, a 1,000 to 1,500 VA unit is typically sufficient. The UPS battery also gives you a buffer if the generator hiccups or needs refueling.

Add a Power Line Conditioner

A power line conditioner sits between the generator and your devices and acts as an electronic power purifier. It continuously monitors incoming electricity, uses a transformer to adjust voltage back to the correct level when it drifts too high or too low, and runs the power through filters that strip out electromagnetic and radio frequency interference. Many line conditioners also include basic surge protection.

This makes them more useful than a surge protector alone. A surge suppressor has one job: diverting sudden voltage spikes to ground. It won’t help with the steady voltage fluctuations, electrical noise, or waveform distortion that generators produce. A line conditioner handles all of those. If a double-conversion UPS is out of your budget, a quality line conditioner paired with a surge protector is a reasonable middle ground for equipment like audio systems, TVs, and gaming consoles.

Proper Grounding

Grounding your generator reduces electrical noise and protects against shock hazards. OSHA’s guidelines reference Article 250 of the National Electrical Code for generators connected through transfer switches. In practice, many portable generators with built-in outlets are designed as a separately derived system and may not require a separate grounding rod if you’re only using the onboard receptacles. But if you’re connecting to a building’s wiring through a transfer switch, a grounding electrode (typically an 8-foot copper rod driven into the earth) is required.

Check your generator’s manual for its specific grounding requirements. Proper grounding also helps surge protectors and line conditioners work correctly, since those devices need a ground path to divert excess voltage.

Use the Right Extension Cords

A cheap or undersized extension cord introduces voltage drop, which means your electronics receive less voltage than the generator is producing. The longer the cord and the thinner the wire, the worse the drop. Standard voltage drop calculations are based on keeping losses under 3% of the target voltage.

For a 20-amp circuit at 120 volts using 12-gauge wire, the maximum recommended run is about 175 feet. But if you’re pulling closer to the wire’s full capacity, that distance shrinks quickly. At 16 amps on the same 12-gauge cord, you might safely run 90 feet. For generator use, keep cords as short as possible and use at least 12-gauge (12 AWG) wire for any run over 25 feet. Avoid daisy-chaining multiple cords together, and never use lightweight indoor extension cords outdoors with a generator.

Load Management

Generators produce their cleanest power when running between 30% and 75% of their rated capacity. Running a generator at near-maximum load causes the engine to bog down, which directly worsens voltage sags and frequency instability. Running it nearly empty can cause overspeeding and voltage swells.

Avoid starting large motor loads (like a sump pump or refrigerator compressor) while sensitive electronics are plugged in. The startup surge from a motor can momentarily pull the generator’s voltage down far enough to crash a computer or reboot a router. If you need to run both, start the motor loads first and let them stabilize before plugging in your electronics. Better yet, put your sensitive devices on a separate circuit through a UPS so they’re isolated from those transient dips.

Putting It All Together

The best protection is layered. Start with the generator itself: if you’re buying new and your primary concern is electronics, an inverter generator under 3% THD is the cleanest option. If you’re working with a conventional generator, pair it with a double-conversion UPS for your most critical devices (computers, networking gear, storage drives). Use a line conditioner for secondary electronics like TVs and audio equipment. Add a quality surge protector as a final safety net on every outlet you’re using.

Ground the generator properly, use heavy-gauge cords kept as short as practical, and manage your loads so the generator runs in its sweet spot. No single device or trick makes generator power perfectly safe on its own, but this combination converts even a rough conventional generator into a reliable power source for everything from laptops to home theater systems.