How Internal Combustion Engines Work
From the four-stroke Otto cycle and air-fuel stoichiometry to deflagration flame fronts, slider-crank kinematics, and thermodynamic Carnot limits
“How does a controlled explosion of gasoline vapors inside a metal chamber convert into smooth rotational torque that propels a multi-ton vehicle?”
The internal combustion engine was the primary prime mover of twentieth-century civilization, powered by the immense chemical energy density of liquid hydrocarbons—roughly forty-five megajoules per kilogram. In 1876, German engineer Nikolaus Otto perfected the four-stroke thermodynamic cycle: Intake, Compression, Power, and Exhaust. Across two full rotations of the crankshaft, a piston draws in a stoichiometric air-fuel mixture, compresses it into a high-pressure clearance volume, and catches the explosive force of a deflagration flame front initiated by a timed electrical spark. Expanding gases at 2,500°C push the piston downward, which a slider-crank mechanism converts into rotary torque at the flywheel. Governed by a half-speed camshaft operating spring-loaded poppet valves, the engine's real-world thermal efficiency is constrained by Carnot limits to roughly thirty to thirty-five percent, with the remaining heat rejected through the radiator and exhaust.
To understand the failure modes and edge cases detailed in this piece, we recommend familiarizing yourself with these foundational mechanisms first:
1. The Energy Density of Liquid Fire
To understand why the internal combustion engine (ICE) conquered the world—powering 1.5 billion passenger cars, heavy freight trucks, container cargo ships, diesel-electric locomotives, and propeller aircraft—one must understand a single thermodynamic metric: energy density.
ENERGY DENSITY COMPARISON
Energy Carrier Specific Energy (MJ/kg) Energy Density (MJ/L)
─────────────────────────────────────────────────────────────────────────────
Lithium-Ion Battery (2026) 0.9 – 1.1 MJ/kg 2.0 – 2.5 MJ/L
Dynamite / TNT 4.6 MJ/kg 7.5 MJ/L
Dry Firewood 16.0 MJ/kg 10.0 MJ/L
Bituminous Coal 24.0 MJ/kg 20.0 MJ/L
**Gasoline / Diesel Fuel** **44.0 – 46.0 MJ/kg** **34.0 – 36.0 MJ/L**
A single kilogram of liquid gasoline contains forty-five megajoules of chemical energy—nearly fifty times more energy per kilogram than the most advanced lithium-ion battery, and ten times more energy than an equal mass of dynamite!
Gasoline does not explode instantly like dynamite because it requires external oxygen to burn. It is a dense, stable, transportable liquid reservoir of ancient solar energy stored in hydrocarbon covalent bonds ($C_n H_{2n+2}$).
The internal combustion engine is a precision thermodynamic converter: it takes this liquid fuel, mixes it with atmospheric air, ignites it in tiny, controlled pulses inside a rigid steel chamber, and harnesses the explosive thermal expansion of the resulting gas to turn a heavy steel shaft.
2. The Four-Stroke Otto Cycle: Step-by-Step
In 1876, the German inventor Nikolaus Otto built the first successful four-stroke internal combustion engine.
The cycle is called "four-stroke" because the piston must make four separate linear sweeps (two down, two up) inside the cylinder to complete a single thermodynamic sequence. Because each stroke corresponds to a half-turn (180°) of the crankshaft, one full cycle requires two complete revolutions (720°) of the engine.
THE FOUR STROKES OF THE OTTO CYCLE
Stroke 1: INTAKE Stroke 2: COMPRESSION Stroke 3: POWER Stroke 4: EXHAUST
(Crank: 0° ──► 180°) (Crank: 180° ──► 360°) (Crank: 360° ──► 540°) (Crank: 540° ──► 720°)
[Intake Open] [Both Valves Shut] [SPARK FIRES!] [Exhaust Open]
│ │ │ │
╭─────┴─────╮ ╭───────────╮ ╭───────────╮ ╭───────────╮
│ Air + Fuel│ │ Gas Squeeze│ │ 2,500°C │ │ Burned Gas│
│ Sucked In │ │ 15 bar │ │ 80 bar │ │ Pushed Out│
│ │ │ │ │ │ │ │
│ Piston │ │ Piston │ │ Piston │ │ Piston │
│ DESCENDS │ │ ASCENDS │ │ BLASTED │ │ ASCENDS │
│ ▼ │ │ ▲ │ │ DOWN! │ │ ▲ │
╰───────────╯ ╰───────────╯ ╰───────────╯ ╰───────────╯
(Intake Stroke) (Work Spent) (WORK PRODUCED!) (Scavenging)
1. The Intake Stroke (Induction)
- The piston starts at Top Dead Center (TDC)—the highest point of its travel.
- The intake valve opens. The piston moves downward toward Bottom Dead Center (BDC).
- As the piston descends, it expands the volume inside the cylinder, dropping pressure below atmospheric pressure (creating a partial vacuum of roughly 0.2 to 0.5 bar below atmosphere).
- Atmospheric air rushes through the intake manifold, dragging atomized gasoline droplets along with it.
- Stoichiometry: For complete combustion, gasoline requires an exact air-fuel mass ratio of 14.7 (14.7 grams of air for every 1 gram of fuel). If the mixture has too much fuel (rich), unburned hydrocarbons escape in the exhaust; if it has too much air (lean), the flame burns sluggishly and combustion chambers overheat.
2. The Compression Stroke
- At BDC, the intake valve snaps shut. The combustion chamber is now a completely sealed steel container.
- The piston moves upward, squeezing the air-fuel mixture into the tiny clearance volume at the top of the cylinder.
- In a modern gasoline engine, the compression ratio ($r$) is typically between 9 and 12 (in diesel engines, it reaches 16 to 22).
- According to the Ideal Gas Law ($PV = nRT$), adiabatic compression causes both pressure and temperature to skyrocket:
- Pressure rises from 1 bar to fifteen to twenty bar.
- Temperature jumps to approximately 400°C to 500°C—hot enough to instantly vaporize any lingering liquid fuel droplets into a homogeneous, highly reactive gaseous state.
3. The Power Stroke (Combustion and Expansion)
- A few degrees before the piston reaches TDC, the spark plug fires, releasing a 20,000-volt electrical arc across its gap.
- The compressed vapor ignites, releasing chemical bond energy.
- Peak cylinder pressure explodes to 60 to 80 bar (roughly 1,000 pounds per square inch), and temperatures briefly spike to 2,500°C—hotter than the melting point of iron!
- This immense pressure acts on the circular crown of the piston: for an 85 mm piston, an 80-bar pressure generates an instantaneous downward thrust of over 45,000 Newtons (equivalent to dropping a four-ton elephant onto the piston).
- The expanding gas pushes the piston violently downward from TDC to BDC. This is the only stroke in the entire cycle that produces net positive mechanical work.
4. The Exhaust Stroke
- As the piston nears BDC, the exhaust valve opens. The residual pressure in the cylinder rushes out into the exhaust manifold.
- The piston sweeps back upward toward TDC, physically sweeping the remaining spent combustion gases ($CO_2$, water vapor, nitrogen, and trace pollutants) out of the chamber.
- At the top of the stroke, the exhaust valve closes, the intake valve cracks open, and the four-stroke cycle repeats.
At 3,000 engine RPM, this entire four-stroke sequence occurs twenty-five times every single second in every single cylinder.
3. Combustion Physics: Deflagration vs. Detonation (Knock)
A dangerous myth suggests that an internal combustion engine works via "explosions."
An engine that explodes is an engine that is about to destroy itself.
Normal, healthy combustion is not an explosion; it is a controlled deflagration:
DEFLAGRATION VS. DETONATION (KNOCK)
CONTROLLED DEFLAGRATION (Healthy) UNCONTROLLED DETONATION (Engine Knock)
Spark fires at plug; Spark fires; flame advances normally;
laminar-turbulent flame front BUT unburned "end gas" overheats
sweeps smoothly at 20–30 m/s. and spontaneous auto-ignites!
┌────────────────────────────────┐ ┌────────────────────────────────┐
│ [Spark] ──► ~ ~ ~ ~ ~ │ │ [Spark] ──► ~ ~ ~ ~ ◄── [BOOM!]│
│ Smooth, progressive pressure │ │ Supersonic shockwave (>1000m/s)│
│ rise; gentle push on piston. │ │ violent pinging, melts pistons!│
└────────────────────────────────┘ └────────────────────────────────┘
- Deflagration: The spark creates a tiny flame kernel. A turbulent flame front propagates outward through the air-fuel mixture at a subsonic speed of twenty to thirty meters per second. The fuel burns smoothly over roughly two milliseconds, allowing pressure to rise smoothly and push the piston down like a powerful hydraulic arm.
- Detonation (Engine Knock): As the flame front advances, it compresses and heats the unburned gas trapped in the far corners of the cylinder (the "end gas"). If the fuel’s molecular structure cannot withstand this extreme heat, the end gas spontaneously auto-ignites all at once. Instead of a subsonic flame, a violent supersonic shockwave tears across the combustion chamber at over 1,500 meters per second.
- This shockwave slams against the piston crown and cylinder walls, producing the metallic "pinging" or "knocking" sound heard in struggling engines. Within seconds of sustained detonation, the shockwave strips the insulating boundary layer of gas off the piston, melting the aluminum crown and shattering piston rings.
The Octane Rating: Resisting the Knock
The Octane Rating of gasoline (such as 87, 91, or 93 AKI) is not a measure of how much energy the fuel contains. High-octane fuel contains the exact same chemical energy per gallon as low-octane fuel.
Octane is purely a measure of auto-ignition resistance:
- Isooctane (100 Octane): A branched hydrocarbon ($2,2,4\text{-trimethylpentane}$) that resists auto-ignition under extreme heat and pressure.
- n-Heptane (0 Octane): A straight-chain hydrocarbon that knocks violently at modest compression.
- An 87-octane fuel behaves like a mixture of 87% isooctane and 13% n-heptane, allowing engines with compression ratios up to 10 to operate without knocking. High-performance turbo engines require 93-octane fuel to prevent knock under high boost pressures.
4. Kinematic Transformation: The Slider-Crank
How does up-and-down (linear reciprocating) motion transform into the smooth, continuous rotary motion needed to spin car wheels or propeller blades?
It relies on one of the most important mechanisms in mechanical history: the Slider-Crank Mechanism.
THE SLIDER-CRANK KINEMATICS
[PISTON CROWN] (Moves vertically only: y-axis)
│
│ Wrist Pin (Gudgeon Pin)
▼
┌─────────────┐
│ │
│ CONNECTING │ Length L
│ ROD │
│ │
└──────┬──────┘
│ Rod Big-End Journal
▼
(CRANKPIN JOURNAL) ◄── Revolves in circle of radius R!
│
▼
[MAIN CRANKSHAFT]
The piston is pinned to the small end of a forged-steel connecting rod. The big end of the rod clamps around an offset journal on the crankshaft:
- As the piston plunges downward, the connecting rod swings at an angle, forcing the crankpin to revolve in a circle.
- The stroke length of the piston is exactly twice the crank radius: $$\text{Stroke} = 2 \cdot R_{\text{crank}}$$
The Trigonometry of Torque
The torque delivered to the crankshaft at any moment depends on the piston force and the angle of the crank ($\theta$):
$$\tau(\theta) = F_{\text{piston}} \cdot R \cdot \sin(\theta + \phi)$$
- At Top Dead Center ($\theta = 0^\circ$), the connecting rod is perfectly vertical. Even though cylinder pressure is at its maximum (80 bar), torque is zero because the force pushes directly down through the center of the crankshaft bearing!
- Peak torque occurs roughly seventy to eighty degrees after TDC, when the connecting rod angle creates the maximum perpendicular lever arm against the crank throw.
The Role of the Heavy Flywheel
Because an Otto-cycle cylinder produces power during only one out of four strokes (only 180° out of 720° of rotation), a single-cylinder engine would jerk violently, slowing down during compression and stalling.
To maintain continuous rotation, a massive steel disc called a flywheel is bolted to the end of the crankshaft:
- During the power stroke, the explosive burst of torque accelerates the flywheel, storing kinetic energy in its rotational inertia: $$E_{\text{kinetic}} = \frac{1}{2} I \omega^2$$
- During the other three non-power strokes (exhaust, intake, and compression), the spinning flywheel gives up a portion of its stored momentum, carrying the piston smoothly through compression until the next spark fires.
- In multi-cylinder engines (inline-4, V6, V8), the firing intervals are staggered across the 720° cycle, ensuring that at any given moment, at least one cylinder is in its power stroke, delivering seamless, uninterrupted torque.
The pipeline diagram below traces the thermodynamic and kinematic transformation of chemical fuel into rotational shaft horsepower:
Piston descends from TDC, creating an intake manifold vacuum that ingests air and fuel mixed at an exact 14.7 mass ratio.
Both poppet valves seal; ascending piston compresses the vapor by 10, spiking pressure to 15 bar and temperature to 450°C.
Spark plug fires 15° BTDC; a subsonic turbulent flame front sweeps across the chamber, spiking pressure to 80 bar at 2,500°C.
Superheated high-pressure gas expands against the piston crown, driving the slider-crank assembly downward with 45 kN of thrust.
Exhaust valve opens; rising piston sweeps spent CO2, water vapor, and nitrogen into the catalytic converter manifold.
Rotational flywheel momentum drives the piston back through non-power strokes while a 1 half-speed camshaft times the valves.
5. The Clockwork Valvetrain: Why Camshafts Spin at Half Speed
How do the intake and exhaust valves know when to open and close?
They are operated by the camshaft: a steel shaft lined with teardrop-shaped lobes (cams). As the shaft rotates, the high lobe pushes down on a spring-loaded valve, snapping it open; as the lobe passes, heavy valve springs slam the valve shut against its seat.
THE 1:2 TIMING GEAR RATIO
CRANKSHAFT (Pistons) CAMSHAFT (Valves)
┌────────────────────────────────┐ ┌────────────────────────────────┐
│ 2 Complete Revolutions (720°) │ ── 2:1 ─►│ 1 Complete Revolution (360°) │
│ 1 Intake, 1 Compression, │ Gear │ Each cam lobe lifts its valve │
│ 1 Power, 1 Exhaust stroke │ Belt │ ONCE per full 4-stroke cycle! │
└────────────────────────────────┘ └────────────────────────────────┘
Notice the critical mathematical ratio:
- The four-stroke cycle takes two rotations of the crankshaft (720°).
- But each valve must open only once per cycle (the intake valve opens during stroke 1; the exhaust valve opens during stroke 4).
- Therefore, the camshaft must rotate at exactly half the speed of the crankshaft ($1$ drive ratio).
- A timing chain, cogged rubber belt, or gear train links the crankshaft to the camshaft. If this belt snaps while the engine is running, the camshaft stops while the crankshaft keeps spinning: in an "interference engine," the rising pistons smash into the open valves at thousands of RPM, destroying the cylinder head.
6. The Thermodynamic Ceiling: Carnot Limits and Waste Heat
Why are car engines so hot that they require massive liquid radiators, water pumps, and cooling fans just to keep from melting?
The answer lies in the fundamental laws of thermodynamics formulated by Sadi Carnot in 1824.
An internal combustion engine is a heat engine: it takes heat from a high-temperature source ($T_H \approx 2,500\text{ K}$), converts a fraction of it into mechanical work ($W$), and must reject the remainder to a cold reservoir ($T_C \approx 300\text{ K}$ ambient air).
WHERE DOES THE FUEL ENERGY GO?
100% FUEL ENERGY IN (Gasoline Combustion)
│
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
~33% USEFUL BRAKE POWER ~33% EXHAUST GAS HEAT ~29% COOLING HEAT
Flywheel torque spins Hot gas blasts out Absorbed by radiator
drivetrain and wheels. tailpipe into the air. coolant and oil.
│
▼
~5% FRICTION
Piston skirt friction,
oil shearing, pumps.
The theoretical maximum efficiency of any ideal Otto cycle is governed by its compression ratio ($r$) and the specific heat ratio of air ($\gamma \approx 1.4$):
$$\eta_{\text{Otto}} = 1 - \frac{1}{r^{\gamma - 1}}$$
- For a compression ratio of $10$, theoretical thermodynamic efficiency is roughly 60 percent.
- In the real world, non-instantaneous combustion, heat loss through cylinder walls, blowby leakage past piston rings, and throttling pumping losses cut this figure in half.
- A modern production gasoline engine operates at a brake thermal efficiency of barely thirty to thirty-five percent (modern hybrid engines like Toyota's Atkinson-cycle reach 40%; large two-stroke marine container ship diesels reach 50%).
Two-thirds of every dollar you spend on gasoline never moves your car: it is rejected into the atmosphere as roaring heat through the radiator and exhaust pipe!
7. Comparative Matrix: Engine Architectures
The table below contrasts the operational parameters of the primary reciprocating internal combustion engine designs:
| Engine Cycle | Fuel Type | Ignition Mechanism | Compression Ratio | Peak Thermal Efficiency | Key Advantage / Disadvantage |
|---|---|---|---|---|---|
| Four-Stroke Otto | Gasoline / Petrol | Electric spark plug (Timed arc) | 9 – 12 | 30% – 35% | Smooth, wide RPM range, clean emissions; lower efficiency than diesel |
| Four-Stroke Diesel | Diesel fuel | Compression ignition (Self-ignites) | 16 – 22 | 40% – 45% | Massive low-end torque, high efficiency; heavy engine block, high $NO_x$ |
| Two-Stroke Cycle | Gasoline + 2T oil | Spark ignition (Every 360° turn) | 7 – 9 | 20% – 25% | Twice the power strokes per RPM, ultra-lightweight; dirty exhaust, high wear |
| Atkinson Cycle | Gasoline (Hybrids) | Spark; delayed intake valve closure | 13 – 14 (Expansion > Compression) | 38% – 41% | Exceptional fuel economy; poor low-end torque (supplemented by electric motor) |
| Wankel Rotary | Gasoline | Dual spark plugs; orbiting rotor | 9 – 10 | 25% – 28% | Zero reciprocating parts, smooth high RPM; high oil consumption, apex seal wear |
8. Summary: The Tamed Combustion Chamber
The internal combustion engine is a supreme triumph of classical thermodynamics and precision mechanical synchronization:
- Chemical Concentration: It exploits the unmatched forty-five megajoule-per-kilogram energy density of liquid hydrocarbons.
- Thermodynamic Choreography: The four-stroke Otto cycle rhythmically separates induction, compression, power, and exhaust into distinct geometric phases across two crankshaft turns.
- Combustion Control: Advanced chamber geometry and octane chemistry enforce smooth deflagration flame fronts while preventing destructive supersonic detonation knock.
- Kinematic Transformation: The slider-crank converts high-pressure vertical expansion into continuous shaft torque, smoothed by the rotational inertia of the flywheel.
- Clockwork Timing: A half-speed valvetrain coordinates poppet valve gas exchange with microsecond precision at thousands of revolutions per minute.
For over a century, this mechanical symphony of fire, steel, and air has formed the prime mover of global transportation, lifting aircraft into the sky, propelling fleets across oceans, and moving the freight of the world.
In our companion explainers across the Machines & Mechanical Systems Series, we examine the mechanisms that transmit and compete with this thermal engine:
- How Gears and Mechanical Advantage Work explores the transmissions and differentials that transform engine torque into wheel speed.
- How Hydraulic Systems Multiply Force traces how engine-driven pumps power heavy construction and flight control actuators.
- How Refrigerators and Heat Pumps Work examines the inverse thermodynamic cycle that uses mechanical work to move heat backward.
- How Electric Motors Work explores the solid-state electromagnetic machines that are rapidly succeeding internal combustion engines in the modern world.
Where to Go From Here
Explore companion architectures or dive deeper into downstream mechanisms.
How Airplane Wings Actually Generate Lift
Why does a 500-ton aluminum airliner stay suspended in thin air, and why is the popular textbook explanation of lift completely wrong?
How Electric Motors Work
How does passing an electrical current through stationary coils of copper wire make a heavy steel shaft spin with hundreds of horsepower?
Verified Specifications & Architectural References
This explainer is grounded in primary-source engineering specifications, regulatory circulars, and standard documentation.
Internal Combustion Engine Fundamentals (2nd Edition)
The definitive engineering bible on engine thermodynamics, fluid flow in intake manifolds, turbulent flame propagation, and emissions chemistry.
The Internal-Combustion Engine in Theory and Practice (2 Volumes)
Classic foundational work on engine kinematics, gas exchange, heat rejection, and dimensional analysis of reciprocating prime movers.
Réflexions sur la puissance motrice du feu (Reflections on the Motive Power of Fire)
The historic landmark treatise formulating the theoretical maximum efficiency limits for any heat engine operating between two temperatures.