A generator converts mechanical energy into electrical energy. It does this by spinning a conductor through a magnetic field, which pushes electrons through a circuit and produces usable electricity. Generators exist to provide power wherever and whenever the electrical grid can’t, whether that means keeping your lights on during a storm, running equipment at a remote job site, or feeding electricity into the grid itself from a wind farm or power plant.
How a Generator Creates Electricity
Every generator relies on a principle discovered in the 1830s: when a magnetic field around a wire changes, it creates a voltage that pushes electric current through that wire. The faster the field changes, the stronger the voltage. This is the foundation of virtually all electricity generation on Earth, from a small portable unit in your garage to a massive turbine at a hydroelectric dam.
Inside a generator, two main components do the work. The rotor is an electromagnetic shaft that spins. The stator is a stationary cylinder made of insulated wire coils that surrounds the rotor. As the rotor spins, the changing magnetic field passes through each section of the stator’s wire coils, and each section becomes a separate conductor producing electric current. The mechanical energy that spins the rotor can come from almost anything: a gasoline engine, flowing water, steam from burning coal or natural gas, or wind pushing turbine blades.
Backup Power for Homes
The most familiar purpose of a generator is keeping a home running when the grid goes down. Storms, hurricanes, equipment failures, and heat waves all cause outages, and a generator bridges the gap until power returns. The size you need depends on what you want to keep running.
A small inverter generator producing up to about 2,000 watts can handle a refrigerator, some lights, and a phone charger. Step up to a midsized inverter (2,000 to 3,500 watts) and you can add a window air conditioner or space heater. Large inverter generators in the 5,000 to 7,500 watt range can run a refrigerator, lights, a furnace, or a small central air conditioning unit. Large portable generators, which top out around 8,500 watts, can power most of a home.
Whole-house standby generators sit permanently outside your home, connect directly to your electrical panel, and kick on automatically when they detect an outage. They run on natural gas or propane, so there’s no refueling during a prolonged blackout. Portable generators are less expensive but require manual setup, extension cords or a transfer switch, and regular refueling with gasoline.
Clean Power for Sensitive Electronics
Not all generator power is created equal. Traditional generators convert fuel into electricity through raw mechanical rotation, and the output fluctuates slightly in voltage and current. This “dirty power” is fine for tools, lights, and appliances with simple motors, but it can damage or disrupt laptops, smartphones, televisions, and medical devices.
Inverter generators solve this by producing electricity with less than 3% total harmonic distortion, a measure of how stable the current is. They do this by first generating power, converting it to direct current, then electronically rebuilding it into a smooth, stable alternating current. The result is electricity clean enough for any device you’d plug in at home. Inverter generators also run quieter and use fuel more efficiently, though they cost more per watt than conventional models.
Critical Infrastructure and Emergency Power
Generators aren’t optional for hospitals. Federal regulations require hospitals, long-term care facilities, and other healthcare providers to maintain emergency power systems capable of running heating and cooling, emergency lighting, fire detection and alarm systems, sewage and waste disposal, and life-support equipment. These generators must be inspected weekly and test-run for 30 minutes every month, following strict national safety codes.
The requirements go further than just having a generator on site. Facilities must ensure their generator has enough capacity to maintain safe temperatures for patients and to keep provisions stored safely. They also need a plan for keeping emergency fuel supplies available during extended disasters. For hospitals that administer anesthesia or use life-support equipment, backup power systems are a non-negotiable condition of their certification.
Keeping the Electrical Grid Stable
Generators also play a less visible but equally important role in the power grid itself. Electricity demand isn’t constant. It spikes on hot afternoons when air conditioning use surges, or during cold snaps when heating demand climbs. When baseline power plants can’t meet these surges, grid operators turn to “peaker plants,” facilities with generators designed to come online within minutes and run only as long as the spike lasts.
Peaker plants have served this role for decades, covering the gap between available supply and sudden demand. They also support what’s called peak-load shifting, temporarily absorbing large blocks of demand so the broader grid isn’t overwhelmed. While battery storage is beginning to replace some peaker plants, generators remain a core tool for grid reliability.
Generators in Renewable Energy
Wind turbines are generators. The blades act like airplane wings: wind creates aerodynamic lift that spins the rotor. That rotor connects to a generator, either directly or through a gearbox that speeds up the rotation. Inside the generator, copper windings turn through a magnetic field to produce electricity, exactly the same principle as any other generator.
Some modern wind turbines use direct-drive generators that skip the gearbox entirely. Instead, a giant ring of permanent magnets spins with the rotor, producing current as the magnets pass through stationary copper coils. Each turbine in a utility-scale wind farm sends its electricity to a substation, where it’s stepped up in voltage and transferred to the grid. Hydroelectric dams and geothermal plants work the same way: a natural force spins a turbine connected to a generator, and mechanical motion becomes electricity.
At every scale, the purpose is the same. A generator takes energy that exists in one form, whether it’s the chemical energy in gasoline, the kinetic energy of wind, or the thermal energy of steam, and turns it into the electrical energy that powers nearly everything in modern life.

