Almost every car burns a fine mist of fuel and air inside a sealed metal can — the cylinder — and harnesses the tiny explosions to spin a shaft. It takes four strokes of the piston (two full turns of the crankshaft) to complete one cycle: intake, compression, power, exhaust — suck, squeeze, bang, blow. Scroll through to watch the valves, spark and piston dance in perfect time, then see how several cylinders overlap to deliver smooth power.
Follow a single cylinder through all four strokes. The intake valve (left, blue) lets the fuel-air mix in; the exhaust valve (right, orange) lets burnt gas out; the spark plug fires only at the top of the power stroke. The piston's up-and-down motion is turned into rotation by the connecting rod and crankshaft. Use Run for continuous motion or Step to advance one stroke at a time.
One cylinder only fires once every 720° (two full crank turns), so on its own the engine surges then coasts. Real engines stagger several cylinders so that while one is on its power stroke, the next is already coming up to fire. Toggle the cylinder count and watch the firing events spread evenly around the two revolutions — the power bar at the bottom shows how the pushes overlap into a steady output. (Firing order shown is the common even-interval spacing of 720° ÷ cylinders.)
The whole machine is an energy-conversion chain. Petrol holds a lot of chemical energy; igniting it releases that energy as heat, which makes the trapped gas expand violently. That expansion shoves the piston down in a straight line (linear motion), and the crank converts that into a turning rotation that ultimately spins the wheels.
It is called four-stroke because the piston makes four passes (two down, two up) per cycle — distinct from a two-stroke, which crams intake/compression and power/exhaust into a single up-and-down each. The genius is the timing: a camshaft geared to turn at half crank speed opens each valve at exactly the right instant, and the spark fires once every other revolution, so combustion always pushes the piston the way the crank is already going.