WikiNano.
Petrol Engine Workshop
Petrol Engine Workshop

Four-stroke spark-ignition engine

Suck. Squeeze. Bang. Blow.

Every petrol car and motorcycle runs the same four-step loop, up to a hundred times a second. Watch it slowly here, turn the crank by hand, tap any part, then tune an engine of your own.

Fig. 1Section through one cylinder · twin overhead cams · port fuel injection
Hatched areas are cut metal, as on an engineering drawing. Drag along the timing strip to turn the crank by hand (arrow keys work too). Hover or tap a part to identify it.
Stroke 3 of 4360°–540°
Power

The spark lights the mixture. Burning gas expands and drives the piston down. This is the only stroke that does work.

Crank angle
366°
Piston travel
1% ↓
Cylinder pressure
–
Gas temperature
–
Intake valve
Closed
Exhaust valve
Closed

Two turns of the crank

The four strokes

One cycle takes 720° of crankshaft rotation: four strokes of 180°, each a single trip of the piston between top dead centre (TDC) and bottom dead centre (BDC). Click a card to send the cutaway to that stroke.

10°–180°

Intake

The piston slides down with the intake valve open. Falling pressure pulls air and a fine mist of petrol in through the port.

Piston
TDC → BDC
Valves
Intake open
Pressure
0.3–0.95 bar
Mixture
14.7 kg air : 1 kg fuel
2180°–360°

Compression

Both valves are shut. The rising piston squeezes the charge to about a tenth of its volume. The spark fires 10–40° early because the flame needs time to spread.

Piston
BDC → TDC
Valves
Both closed
End pressure
up to 15–20 bar
End temperature
400–500 °C
3360°–540°

Power

The flame crosses the chamber in 2–3 ms. Pressure peaks about 10–15° after TDC and shoves the piston down with a force of several tonnes. Only this stroke delivers work.

Piston
TDC → BDC
Valves
Closed until ≈ 40° BBDC
Peak pressure
25–75 bar
Flame temperature
2,000–2,500 °C
4540°–720°

Exhaust

The exhaust valve opens just before BDC, so most gas blows out on its own. The rising piston pushes out the rest. Near TDC both valves are briefly open together.

Piston
BDC → TDC
Valves
Exhaust open
Gas temperature
600–900 °C
Valve overlap
≈ 20–30°
Fig. 2  Indicator diagram: pressure against volume
IntakeCompressionPowerExhaust

The area inside the big loop is the work one cylinder delivers each cycle. The thin loop along the bottom is pumping work: energy spent pulling air past a part-closed throttle.

Fig. 3Valve timing spiral, two crank turns

Start at the top (TDC) on the inner turn and follow the spiral clockwise. The inner arc shows when the intake valve is open, the outer arc the exhaust valve. The valves open early and close late so the moving gas can keep flowing; around the final TDC both are open at once (overlap).

Sandbox

Tuning lab

Change the engine's shape, fuel and ignition, and watch a live model of the cycle respond. The trade-offs real engineers juggle show up here too: advance the spark too far and it knocks, run it lean and it misfires, run it rich and the catalyst stops working.

Start from
Break something

Shown slower than real time.

Engine geometry
Cylinders
Operating point
Fuel and spark
Power
–kW
Torque
–N·m
End-gas self-ignition
The unburnt gas ahead of the flame heats as it is squeezed. If it reaches 100% before the flame arrives, it explodes on its own: knock.
Fig. 4Dyno sweep at this throttle and spark setting
Torque (N·m, left)Power (kW, right)Knocks at this timing
Fig. 5Cylinder pressure around TDC
FiringNo spark (motored)Spark

Best torque comes when peak pressure lands roughly 12–16° after TDC. Too early and the piston is still rising into it; too late and the gas expands before it has done its work.

Fig. 6Spark timing sweep at this speed and load

Fig. 7Emissions before and after the catalyst
Leaving the engineAt the tailpipe

A three-way catalyst needs oxygen to burn CO and HC, but must take oxygen away to break NOx apart. Both only happen in a narrow window around λ = 1, which is why modern engines hold the mixture there with an oxygen sensor.

Firing order

More cylinders, smoother push

A single cylinder delivers one hard shove every two turns and coasts the rest of the time. Add cylinders, space their power strokes evenly around the 720° cycle, and the torque at the crankshaft smooths out. The pressure data comes from the tuning lab.

Fig. 8Torque at the crankshaft over one cycle
TotalEach cylinderAverage

Support systems

What keeps it running

The cylinder only works because other systems feed it fuel, air and sparks, carry the heat away, keep every bearing oiled and clean up what comes out.

Workshop

Diagnose it

Nine complaints of the kind a mechanic hears every week. Pick the cause, read why, then send the fault to the tuning lab to watch it happen.

Check yourself

Quiz

Twelve questions on everything above. Each answer comes with the reason.

Reference

Compare and look up

Table 1Petrol four-stroke against diesel and two-stroke
Petrol four-strokeDiesel four-strokePetrol two-stroke
IgnitionSpark plugHeat of compressionSpark plug
Compression ratio8–13 : 115–22 : 16–9 : 1
Power controlThrottle limits air; fuel follows at ≈ 14.7 : 1Fuel quantity only, no throttle neededThrottle
Where fuel mixesIn the port, or sprayed straight into the cylinder (GDI)Injected into hot compressed airIn the crankcase, usually with oil added
Power strokes per turn, per cylinder½½1
Typical top speed6,000–9,000 rpm (cars), higher on bikes4,000–5,000 rpm8,000–12,000 rpm
Best efficiency≈ 35–41%≈ 40–46%≈ 20–30%
Main emissions fixThree-way catalyst at λ = 1Particulate filter and SCR for NOxHard to clean: fresh charge escapes with the exhaust
Found inCars, motorcycles, scooters, generatorsTrucks, buses, tractors, shipsChainsaws, outboards, older scooters
Glossary

About the numbers. The tuning lab runs a single-zone model of one cycle, one crank degree at a time: Wiebe heat release, polytropic compression and expansion, the Douaud–Eyzat correlation for end-gas knock, and the Heywood friction correlation. It reproduces real trends and realistic magnitudes, but it is a teaching model, not a design tool.

Temperatures are shown in °C, pressures in bar absolute, and crank angles from TDC at the start of the intake stroke.

About Petrol Engine Workshop

Crank a cutaway petrol engine through intake, compression, power and exhaust. Tune bore, spark and fuel in a live engine simulator.

Topic: Mechanical · Format: interactive simulation · Free, no sign-up · Updated 2026-10-15 · By Prince Vincent, WikiNano · Last reviewed 2026-10-15.

Inside this page

Common questions

What are the strokes in a petrol engine?
Intake, compression, power and exhaust, which together make one complete cycle.
What does the spark plug do?
It ignites the compressed air and fuel mixture at the right moment to push the piston down.
What is compression ratio?
The ratio of the cylinder volume when the piston is at the bottom to its volume at the top. Higher ratios can make engines more efficient.

Sources and further reading

Keep exploring