What happens inside a generator
A generator converts chemical energy from fuel into electrical energy through a process that relies on magnetism and motion. Inside the machine, fuel burns in an engine, which spins a shaft. That spinning shaft rotates a coil of wire inside a magnetic field. As the wire moves through the magnetic field, electrons in the wire are pushed along, creating an electrical current that flows out through the generator's outlets.
The basic principle is the same whether the generator runs on gasoline, diesel, natural gas, or propane. The fuel type changes how hot the engine burns and how efficiently it converts that heat into motion, but the electrical generation part works identically. A small portable generator and a large industrial one use the same physics — just different scales and materials.
Key Takeaways
- A generator's engine burns fuel to create heat, which pushes pistons that spin a shaft connected to a coil of wire.
- The spinning coil moves through a magnetic field, which forces electrons to move and creates electrical current.
- An alternator regulates the voltage so the electricity coming out matches what your devices expect (usually 120 or 240 volts in North America).
- Portable generators produce AC current (alternating current), which is what household outlets deliver, though some models include inverters to produce DC current for batteries and electronics.
- The amount of electricity a generator produces depends on engine size, fuel type, and how fast the engine spins.
The engine burns fuel to create motion
The engine in a generator works like the engine in a car or lawn mower. Fuel enters a combustion chamber, mixes with air, and is ignited by a spark plug. The explosion pushes a piston downward, which is connected to a crankshaft. As the piston moves, it turns the crankshaft, which spins continuously as long as fuel keeps burning.
In a four-stroke engine (the most common type in portable generators), this cycle repeats thousands of times per minute. Each cycle has four stages: fuel and air enter the chamber, the spark plug ignites the mixture, the explosion pushes the piston down, and the exhaust gases exit. The faster the engine spins, the more times this cycle repeats, and the more electrical current the generator can produce.
The spinning shaft rotates a coil inside a magnetic field
The crankshaft from the engine is connected directly to the rotor, a coil of wire that sits inside the generator's alternator. The alternator is the part that actually creates electricity. Around the rotor sits a stationary magnetic field created by permanent magnets or electromagnets.
As the rotor spins, the coil of wire moves through the magnetic field. Magnetism exerts a force on electrons in the wire, pushing them to move in one direction. When electrons move, that movement is electrical current. The faster the coil spins, the more electrons are pushed per second, and the more current flows out of the generator.
The alternator converts motion into usable voltage
The current created by the spinning coil is alternating current (AC), meaning the electrons flow back and forth rather than in one steady direction. Household outlets in North America deliver AC current, which is why most portable generators produce it directly.
The alternator also includes a voltage regulator, a component that monitors the electrical output and adjusts the magnetic field strength to keep the voltage steady. Without it, the voltage would spike and drop as the engine speed varies, which would damage plugged-in devices. The regulator ensures that the electricity coming out of the generator stays at the correct voltage — typically 120 volts for standard outlets or 240 volts for larger appliances.
Some generators include an inverter, an electronic device that converts AC current into direct current (DC). This is useful if you want to charge batteries, power USB devices, or run electronics designed for DC power. Inverter generators are quieter and more fuel-efficient than standard models because the engine can run at variable speeds rather than at full throttle constantly.
Generator size determines how much electricity it produces
The amount of electrical power a generator produces is measured in watts. A small portable generator might produce 2,000 to 3,000 watts, enough to run a few household appliances. A larger portable model produces 5,000 to 7,000 watts. Industrial generators can produce 10,000 watts or more.
Power output depends on three factors: the size of the engine, the speed at which it spins, and the design of the alternator. A larger engine burns more fuel per cycle and creates more motion. A faster-spinning engine repeats its cycles more times per second. A larger alternator coil with stronger magnets produces more current per rotation. Manufacturers balance these factors based on what the generator is designed to do — a portable model prioritizes light weight and portability, while a standby generator prioritizes continuous power output.
Fuel type affects efficiency and runtime
Gasoline is the most common fuel for portable generators because it is widely available and engines are inexpensive to manufacture. However, gasoline degrades over time, especially if stored for months, which can clog the carburetor and prevent the engine from starting.
Diesel generators are more efficient, meaning they produce more electricity per gallon of fuel burned. They also run longer on a tank and are more durable for heavy use. Diesel fuel stores longer than gasoline without degrading. The trade-off is that diesel generators are heavier, more expensive, and louder.
Natural gas and propane generators connect to a gas line or tank and produce fewer emissions than gasoline or diesel. They are common for standby generators that power homes during outages because they can run continuously as long as fuel is supplied. Propane can also be stored indefinitely without degrading, making it reliable for emergency backup.
What limits how much power a generator can deliver
Even a large generator cannot produce unlimited power. The limit is set by the size of the engine and the design of the alternator. If you plug in devices that draw more power than the generator is rated for, the voltage drops, the engine strains, and the generator may shut down to protect itself.
Starting power is also a constraint. Many appliances, especially those with motors like air conditioners and refrigerators, draw much more power when they first turn on than when they run normally. A generator rated for 5,000 watts might not be able to start a 3,500-watt air conditioner because the startup surge exceeds the generator's capacity. Manufacturers list both running watts and starting watts for this reason.
Frequently Asked Questions
Why does a generator need an engine if it's making electricity?
The engine provides the motion needed to spin the coil inside the magnetic field. Electricity cannot be created without movement through a magnetic field — the engine is what creates that movement. Without the engine, the coil would sit still and no current would flow.
Can a generator produce electricity without fuel?
No. A generator converts chemical energy stored in fuel into motion, then converts that motion into electricity. Once the fuel runs out, the engine stops spinning, and electricity production stops. Some generators can run for 8 to 12 hours on a single tank, depending on load and fuel type, but they cannot run indefinitely without refueling.
Why do generators get hot?
Burning fuel creates heat, and not all of that heat is converted into motion — some is lost as waste heat through the engine block and exhaust. The hotter the engine burns, the more efficient it is at converting fuel into motion, but efficiency is never 100 percent. Generators include cooling fins or fans to dissipate this heat and prevent the engine from overheating and shutting down.
What's the difference between a generator and a battery?
A battery stores electrical energy chemically and releases it slowly over time. A generator creates electrical energy on demand by burning fuel. A battery can power devices for hours but eventually runs out. A generator can run as long as fuel is supplied, but it requires active fuel consumption and produces noise and emissions.
Can I run a generator indoors?
No. Generators produce carbon monoxide, a colorless, odorless gas that is lethal in enclosed spaces. Always run a generator outdoors, at least 20 feet away from windows, doors, and vents. Even a small portable generator can produce dangerous carbon monoxide levels inside a home or garage within minutes.