What Happens During the Compression Stroke?

During the compression stroke, the piston moves upward in the cylinder with both valves closed, squeezing the air-fuel mixture into a much smaller space. This rapid reduction in volume raises both the pressure and temperature of the mixture, preparing it for ignition. It’s the second of four strokes in a standard engine cycle, sitting between the intake stroke (which draws the mixture in) and the power stroke (which drives the piston back down after combustion).

How the Piston Compresses the Mixture

The compression stroke begins once the intake valve closes. At that point, the cylinder is sealed: both the intake and exhaust valves are shut tight, creating a closed chamber. The crankshaft, still spinning from the momentum of previous cycles (and from the other cylinders in a multi-cylinder engine), pushes the piston upward from the bottom of the cylinder toward the top.

This upward movement shrinks the volume inside the cylinder dramatically. The physics here are the same as pumping a bicycle tire: you’re doing work on the gas to force it into a tighter space. The energy to drive this compression comes from the crankshaft, which stores rotational energy from the power strokes of other cylinders and from the flywheel attached to it.

What Happens to Pressure and Temperature

As the volume drops, both pressure and temperature climb. NASA’s Glenn Research Center describes this as an adiabatic process, meaning no heat is added from an outside source. The temperature rise comes entirely from the mechanical work of squeezing the gas. The relationship is exponential, not linear: pressure increases proportionally to the compression ratio raised to the power of about 1.4 (a constant related to the heat properties of air). Temperature follows a similar pattern.

In practical terms, a typical gasoline engine compresses the mixture to roughly 8 to 13 times its original volume. Modern naturally aspirated engines with direct injection commonly run compression ratios of at least 12:1, while turbocharged engines sit lower, around 10:1 to 10.5:1. Toyota’s 2.5-liter engine, for example, reaches 13:1 in standard form and 14:1 in its hybrid variant. The higher the ratio, the more the gas heats up and the more energy you can extract when it ignites.

Why the Seal Has to Be Airtight

For compression to work, the cylinder must be nearly gas-tight. This is the job of the piston rings, which are small metal bands that wrap around the piston and press outward against the cylinder wall. They prevent the pressurized mixture from leaking past the piston into the crankcase below, a problem called blow-by.

When piston rings wear down or the cylinder wall becomes scored, the seal weakens. The engine loses compression pressure, which means less force during the power stroke, reduced fuel efficiency, and sometimes noticeable power loss. A compression test, where a mechanic measures the pressure each cylinder can build, is one of the most common ways to diagnose internal engine wear.

Gasoline vs. Diesel Compression

Gasoline and diesel engines handle the compression stroke differently, and the difference is fundamental. In a gasoline engine, the compression stroke squeezes a pre-mixed blend of fuel and air. A spark plug then ignites it at the top of the stroke. Compression ratios stay moderate (roughly 10:1 to 13:1) to avoid igniting the mixture too early.

Diesel engines skip the spark plug entirely. They compress only air during the compression stroke, using much higher ratios of 15:1 to 20:1. This extreme compression raises the air temperature high enough to ignite diesel fuel on contact. The fuel is injected directly into the superheated air at the top of the stroke, and it combusts immediately. This is why diesel engines are called compression-ignition engines, while gasoline engines are spark-ignition.

How Compression Affects Engine Efficiency

The compression ratio is one of the single biggest factors in how efficiently an engine converts fuel into motion. Higher compression means the expanding gases during the power stroke push the piston through a greater pressure difference, extracting more mechanical energy from the same amount of fuel. The thermal efficiency of an engine’s cycle is, mathematically, a direct function of the compression ratio.

This is why engineers constantly push compression ratios higher. But there’s a ceiling, and it’s set by a problem called engine knock.

Engine Knock and Pre-Ignition

If the mixture gets too hot during compression, it can ignite on its own before the spark plug fires. This is called pre-ignition, and it’s destructive. The explosion tries to force the piston downward while the crankshaft is still pushing it up, creating intense stress on internal components. You might hear this as a metallic pinging or knocking sound from the engine.

Higher compression ratios increase the tendency for this to happen, which is why high-performance and high-compression engines require premium fuel with a higher octane rating (89 to 93). Octane doesn’t add energy to the fuel. It raises the temperature at which the fuel spontaneously ignites, giving the compression stroke room to build more pressure without triggering premature combustion. Modern engines also use knock sensors that detect early signs of detonation and adjust ignition timing in real time to prevent damage.

Variable Compression in Modern Engines

Traditional engines have a fixed compression ratio, which means engineers have to pick a single value that balances efficiency, power, and knock resistance across all driving conditions. Turbocharged engines, for instance, typically run compression ratios about two points lower than naturally aspirated ones, sacrificing efficiency at light loads to avoid knock under boost.

Variable compression ratio technology resolves this tradeoff by physically changing the compression ratio while the engine runs. Some designs use a multi-link crankshaft mechanism, others use connecting rods with adjustable effective lengths, and some shift the crankshaft position itself. One prototype system demonstrated two stages: 9.56:1 for high-load, high-boost situations and 12.11:1 for cruising and light loads. Simulations for a 2.0-liter turbocharged engine estimated fuel consumption improvements of 5 to 7 percent, a meaningful gain from a single mechanical change. The engine can run high compression when conditions allow it and drop lower when knock risk increases.

How Mixing Improves During Compression

The compression stroke doesn’t just raise pressure and temperature. It also improves how thoroughly the fuel and air are blended. As the piston drives upward, it creates turbulence inside the cylinder that continues stirring the mixture. A more uniform, homogeneous blend burns more completely and more evenly, which means better efficiency and lower emissions.

This principle is taken to its extreme in homogeneous charge compression ignition (HCCI) engines, where the fuel and air are premixed so thoroughly that the entire charge ignites simultaneously throughout the cylinder once compression raises it past a critical temperature. Because the mixture is uniformly lean and burns at lower temperatures, HCCI produces significantly fewer emissions than conventional combustion. The challenge is controlling exactly when that ignition happens, since there’s no spark plug to trigger it.