How Does a Gasoline Engine Work, Step by Step

A gasoline engine converts the chemical energy stored in fuel into rotational motion through a repeating cycle of small, controlled explosions. Each explosion pushes a piston down inside a cylinder, and that up-and-down motion gets translated into the spinning force that ultimately turns your wheels. Most car engines repeat this cycle thousands of times per minute across four, six, or eight cylinders working in sequence.

The Four-Stroke Cycle

Nearly every gasoline car engine runs on what’s called the four-stroke cycle. Each cylinder completes four distinct movements of its piston (two up, two down) to produce one burst of power. The entire sequence happens in a fraction of a second.

Intake

The piston slides downward, creating a low-pressure zone inside the cylinder. With the intake valve open, atmospheric pressure pushes a mixture of air and fuel into that space, filling the cylinder. The intake valve then closes, sealing everything inside.

Compression

With both valves sealed shut, the piston moves back up and squeezes the air-fuel mixture into a much smaller space at the top of the cylinder. This compression heats the mixture and makes it far more explosive. Modern naturally aspirated engines compress the mixture to roughly 10 to 12.5 times its original volume. Turbocharged engines typically use lower ratios, around 8:1, because the turbo has already pressurized the incoming air. Mazda’s SkyActiv engines push as high as 14:1, which is unusually high for gasoline and improves efficiency.

Power

At the top of the compression stroke, the spark plug fires. The resulting combustion creates rapidly expanding hot gases that shove the piston downward with considerable force. Both valves stay closed. The piston’s downward motion transfers through a connecting rod to the crankshaft, converting that straight-line push into rotation. This is the only stroke that actually produces power; the other three are preparation and cleanup.

Exhaust

The exhaust valve opens and the piston rises again, pushing the spent gases out of the cylinder and into the exhaust system. Once the piston reaches the top, the exhaust valve closes, the intake valve opens, and the whole cycle starts over.

How the Spark Is Created

Your car’s battery supplies about 12 volts of electricity, which isn’t nearly enough to jump across the gap in a spark plug. The ignition coil solves this problem through a principle called transformer action. It contains two sets of wire windings: a primary coil with 150 to 300 turns of wire, and a secondary coil with 15,000 to 30,000 turns. When current flows through the primary winding, it builds a magnetic field. The ignition system then cuts off that current at precisely the right moment, causing the magnetic field to collapse. That collapse induces around 200 volts in the primary winding and roughly 20,000 volts in the secondary winding, enough to produce a spark hot enough to ignite the compressed fuel mixture.

How Fuel Gets Into the Cylinder

For efficient combustion, gasoline engines need about 14.7 parts air to every 1 part fuel by weight. This specific ratio allows all the fuel to combine with all the available oxygen, producing the least carbon monoxide and the most complete burn. In practice, engines adjust this ratio constantly. A richer mixture (around 12:1 to 13:1) produces maximum power, while a leaner mixture (around 16:1) minimizes fuel consumption.

Older engines used carburetors to mix fuel and air, but modern vehicles use one of two injection methods. Port fuel injection sprays fuel into the intake port just above the intake valve, where it mixes with air before entering the cylinder. Gasoline direct injection (GDI) skips the port entirely and sprays fuel straight into the combustion chamber at pressures between 2,000 and 3,000 psi. Direct injection gives the engine’s computer more precise control over exactly how much fuel enters each cylinder and when, which improves both power and efficiency.

Turning Explosions Into Wheel Spin

The piston moves in a straight line, but your wheels need rotation. The crankshaft handles this conversion. It’s a heavy, precisely shaped shaft with offset sections called journals. Each piston connects to the crankshaft through a connecting rod, and as the piston pushes down, the connecting rod forces the crankshaft to rotate, much like your legs pushing bicycle pedals in a circle.

A heavy flywheel bolts to one end of the crankshaft. Its weight stores rotational energy and smooths out the gaps between power strokes, keeping the engine spinning steadily rather than lurching with each individual explosion. In a four-cylinder engine, only one cylinder is firing at any given moment, so the flywheel’s momentum carries the crankshaft through the three non-power strokes of the other cylinders.

Valve Timing and Why It Matters

The camshaft controls when the intake and exhaust valves open and close. It’s a rotating shaft with egg-shaped lobes, one for each valve, connected to the crankshaft by a timing belt or chain so that valve events stay perfectly synchronized with piston movement. If the timing drifts even slightly, the engine runs poorly or can be damaged.

Most modern engines use variable valve timing, which adjusts exactly when valves open and close based on engine speed and load. At low speeds, the system optimizes for torque and fuel efficiency. At high speeds, it adjusts for maximum power. The overlap period, when both the intake and exhaust valves are briefly open at the same time, can be tuned to help pull fresh mixture in and push exhaust gases out more effectively. The result is better fuel economy, lower emissions, and stronger performance across a wider range of driving conditions than older fixed-timing engines could manage.

Where Most of the Energy Goes

Gasoline engines are less efficient than most people assume. Even well-designed modern engines convert only about 37% to 40% of the fuel’s chemical energy into useful mechanical work. The rest is lost as heat, split roughly between the exhaust gases, the engine block itself, and friction between moving parts. This is why engines need robust cooling and lubrication systems to survive.

The cooling system circulates a mixture of water and antifreeze through channels cast into the engine block, absorbing heat and carrying it to the radiator, where airflow dissipates it. Without cooling, combustion temperatures would warp and destroy metal components within minutes.

The lubrication system pumps oil between every moving metal surface inside the engine. Oil does more than reduce friction. It creates a gas-tight seal between the piston rings and the cylinder wall (preventing combustion gases from escaping), carries heat away from internal surfaces, and flushes microscopic debris out of critical gaps. The oil passes through a cooler and a filter before recirculating.

What Happens to the Exhaust

Combustion produces three regulated pollutants: unburned hydrocarbons (fuel that didn’t fully combust), carbon monoxide (from incomplete burning), and nitrogen oxides (formed when extreme heat forces nitrogen and oxygen in the air to combine). Left untreated, these gases contribute to smog and respiratory problems.

The catalytic converter, a standard component since the mid-1970s, handles all three. It contains precious metal catalysts that trigger chemical reactions as exhaust flows through. A well-designed converter reduces carbon monoxide by 80% to 95%, unburned hydrocarbons by 85% to 90%, and also breaks down nitrogen oxides. The converter needs to reach high temperatures to function, which is why emissions are highest during the first minute or two after a cold start before it warms up.