Compression Ratio Calculator
- Swept volume per cylinder: pi/4 x bore^2 x stroke = 0.7854 x (86.0 mm)^2 x 86.0 mm = 499.6 cc.
- At bottom dead center the cylinder holds swept plus clearance volume: 499.6 + 55.0 = 554.6 cc.
- Compression ratio = 554.6 / 55.0 = 10.08 : 1.
- The clearance volume is 9.9% of the total — small changes to chamber, gasket or deck height move the ratio more than most builders expect.
- Typical ranges: 8:1 to 12:1 for gasoline engines, 14:1 to 23:1 for diesels, which need the heat of compression to ignite the fuel.
A compression ratio calculator tells you how many times the contents of an engine's cylinder are squeezed between bottom and top dead center. The answer comes from a straightforward formula: compression ratio equals swept volume plus clearance volume, divided by clearance volume. Swept volume per cylinder is pi divided by 4, multiplied by the bore squared and the stroke; with bore and stroke entered in millimetres, the result falls out directly in cubic centimetres. Clearance volume is everything left above the piston at top dead center — the combustion chamber, head-gasket bore volume, and the deck-height gap. Because clearance volume is small, small errors in it swing the ratio hard. Typical ranges run 8:1 to 12:1 for gasoline engines, higher with direct injection and knock control, and 14:1 to 23:1 for diesels, which need compression heat to ignite. Raising the ratio raises thermal efficiency with diminishing returns, and knock — not arithmetic — sets the ceiling for a given fuel.
This geometric method is the accepted standard because it captures the two volumes that physically define compression in a reciprocating engine. The static ratio computed here is geometric; the effective ratio is lower once valve timing traps less than the full stroke, which is why Atkinson-cycle engines quote big static numbers and behave like smaller ones. This page shows the formula, step-by-step workings, worked examples, and sources.
Worked examples
Square 2.0L four cylinder
Primary result: 10.08 : 1 — 499.6 cc swept against 55.0 cc of clearance: a typical modern gasoline ratio. (86 · 86 · 55)
| Compression ratio | 10.08 : 1 |
| Swept volume per cylinder | 499.6 cc |
| Clearance share of total volume | 9.9% |
Big-bore V8 cylinder
Primary result: 12.20 : 1 — 716.7 cc per cylinder at 12.20 : 1 — performance-engine territory. (101.6 · 88.4 · 64)
| Compression ratio | 12.20 : 1 |
| Swept volume per cylinder | 716.7 cc |
| Clearance share of total volume | 8.2% |
High-compression diesel
Primary result: 19.23 : 1 — 19.23 : 1 — diesel territory, where compression itself is the ignition source. (93 · 102 · 38)
| Compression ratio | 19.23 : 1 |
| Swept volume per cylinder | 692.9 cc |
| Clearance share of total volume | 5.2% |
How compression ratio is calculated
A compression ratio calculator works through one cylinder at a time. The core formula is simple: compression ratio equals swept volume plus clearance volume, divided by clearance volume. That quotient tells you how many times the cylinder's contents are squeezed between bottom dead center and top dead center. Every term in the equation comes from a physical measurement, so the math is straightforward once you know where each volume lives.
Swept volume is the space the piston sweeps through on its stroke. Calculate it as pi/4 multiplied by the bore squared, multiplied by the stroke. Enter bore and stroke in millimetres and the result falls out directly in cubic centimetres — no unit conversion needed. For example, an 86 mm bore and an 86 mm stroke give roughly 499 cc of swept volume per cylinder. That number is fixed by the hardware and does not change unless you rebore the block or swap the crank.
Clearance volume is everything left above the piston at top dead center. That includes the combustion chamber machined into the cylinder head, the volume enclosed by the head-gasket bore, and the deck-height gap between the piston crown and the block deck. Add these together and you have the clearance volume. This term is small by design — often one-tenth or less of the swept volume — and that is exactly why it dominates the answer's sensitivity. A 0.5 cc error in clearance volume shifts the ratio far more than a 0.5 cc error in swept volume, because the clearance term sits in both the numerator and the denominator. Get the chamber volume and gasket bore right, or the calculated ratio will mislead you.
Typical results from a compression ratio calculator fall into known ranges. Gasoline engines run 8:1 to 12:1, with higher values possible when direct injection and active knock control let the engine tolerate more pressure. Diesels sit much higher, from 14:1 to 23:1, because they rely on compression heat to ignite the fuel without a spark plug. The ratio computed here is the static, geometric figure. The effective ratio is lower once valve timing traps less than the full stroke, which is why Atkinson-cycle engines quote big static numbers yet behave like smaller ones in practice.
Raising the compression ratio raises thermal efficiency, but with diminishing returns. The real ceiling is set by knock — not by arithmetic — for any given fuel. Once the air-fuel mixture detonates ahead of the flame front, efficiency and durability both suffer, so the calculated ratio is a target to test against real-world fuel behavior, not a number to maximize in isolation.
What goes into clearance volume
Clearance volume is everything left above the piston at top dead center, and it comes from three distinct places: the combustion chamber cast into the cylinder head, the head-gasket bore volume, and the deck-height gap between the piston crown and the block deck. Because the compression ratio equation divides the total of swept volume plus clearance volume by that clearance volume, any mistake in measuring these small spaces shows up multiplied in the final number. That is why experienced builders treat clearance volume with far more care than swept volume, and why a compression ratio calculator is only as good as the clearance figures you feed it.
Each of the three contributors behaves differently. The combustion chamber is the largest piece, and its volume varies with casting core shift, valve seat cuts, and any porting work that opens up the chamber walls. The head-gasket bore volume depends on the gasket's bore diameter and compressed thickness — a gasket that is 0.060 in thick instead of 0.040 in adds a measurable chunk of volume on a big-bore engine. The deck-height gap is the smallest and easiest to overlook: if the piston sits 0.005 in below the deck, that thin disc of space still counts, and if the piston protrudes above the deck, it subtracts from the other two.
Builders measure clearance volume with a graduated burette filled with liquid, usually mineral spirits or alcohol dyed for visibility. The head is clamped to the block with the piston at top dead center and a greased piston ring to seal the bore, then fluid is metered in through a spark-plug hole or a plate covering the chamber. The burette reading in cubic centimeters is the true clearance volume for that cylinder. Most builders check every cylinder, because production tolerances and machining variation can shift the number by a full cubic centimeter or more from hole to hole — enough to move the ratio by several tenths.
Machining changes each contributor in predictable ways. Milling the cylinder head reduces chamber volume and raises the ratio, which is the most common single change builders make. Decking the block closes the deck-height gap and can push the piston above the deck if the cut is aggressive, at which point the chamber volume is reduced by the protruding piston crown. Valve jobs that widen seats open the chamber slightly, and replacing a thick gasket with a thin one shrinks the gasket bore volume. Every one of these cuts is small, but because clearance volume is small to begin with, the ratio moves with every pass of the cutter.
Gasoline vs diesel ratios
Gasoline and diesel engines occupy opposite ends of the compression-ratio scale because they ignite fuel in fundamentally different ways. A typical gasoline engine runs between 8:1 and 12:1, while a diesel engine operates from 14:1 to 23:1. The gap reflects a simple physical reality: spark-ignition engines must stay below the threshold where fuel detonates on its own, while compression-ignition engines must reach a temperature high enough to guarantee that self-ignition happens every time.
In a gasoline engine, the piston squeezes the air-fuel mixture and a spark plug fires at the right moment. Raise the ratio too far and the heat of compression alone lights the charge before the spark arrives. That uncontrolled detonation, called knock, can crack pistons and ring lands. Higher-octane fuel and direct injection with active knock control let engineers push the ratio toward the top of the 8:1 to 12:1 band, but knock, not arithmetic, sets the ceiling for a given fuel. Raising the ratio does increase thermal efficiency, but with diminishing returns.
A diesel engine has no spark plug. It compresses air alone, and the heat from that compression must be hot enough to ignite the fuel the instant it is injected. If the ratio drops too low, the air at top dead center is not hot enough and the engine will not fire, especially on a cold start. That is why diesels need ratios from 14:1 to 23:1. The upper end of the range is limited by mechanical stress: peak cylinder pressure rises steeply with the ratio, which forces heavier pistons, rods, and block structure.
When you use a compression ratio calculator, remember that the number it returns is the static, geometric ratio. The formula is (swept volume + clearance volume) divided by clearance volume, where swept volume per cylinder equals pi/4 times bore squared times stroke. Clearance volume is everything left above the piston at top dead center: the combustion chamber, head-gasket bore volume, and the deck-height gap. Because clearance volume is small, a tiny error in it swings the ratio hard. The effective ratio is lower still once valve timing traps less than the full stroke, which is why Atkinson-cycle engines quote big static numbers and behave like smaller ones.
Static vs effective compression ratio
The number a compression ratio calculator produces is the static, geometric ratio: (swept volume + clearance volume) divided by clearance volume. That tells you how many times the cylinder's contents are squeezed between bottom and top dead center. It is a clean measurement of hardware dimensions, and it assumes the intake valve closes exactly at bottom dead center, trapping the full swept volume. Real engines rarely do that.
Effective compression ratio is what the engine actually experiences, and it is lower than the static number whenever valve timing closes the intake valve late. By leaving the intake valve open past bottom dead center, some of the fresh charge is pushed back out before compression truly begins. The piston still travels the same stroke, but the cylinder traps less mixture, so the real squeeze is smaller than the geometry suggests. This is the core of Atkinson and Miller cycle engines, which trade a little low-end torque for efficiency by shortening the effective intake stroke without shortening the physical one.
That is why a 14:1 hybrid engine can run happily on regular fuel. The static compression ratio calculator might say 14:1, which would normally invite knock in a gasoline engine, but the late intake-valve closing means the effective ratio is far lower at the moment it matters. The engine behaves like a smaller one during compression while still expanding the full stroke during the power stroke, extracting more work from each combustion event. The result is a high-efficiency engine that does not need premium fuel to avoid destructive detonation.
The ceiling on compression ratio is set by knock, not by arithmetic. Raising the ratio raises thermal efficiency, but with diminishing returns — each additional point delivers less benefit than the one before it. Eventually the heat and pressure at top dead center exceed what the fuel can tolerate, and the charge self-ignites ahead of the flame front. Direct injection and active knock control let modern gasoline engines creep higher than the old 8:1 to 12:1 range, but the fuel's octane rating still draws the final line. Diesels, which need compression heat to ignite fuel rather than a spark plug, run 14:1 to 23:1 because knock is the goal, not the enemy.
FAQs
What is compression ratio?
The ratio of a cylinder's volume at bottom dead center to its volume at top dead center — how hard the mixture is squeezed. It tells you how much the air-fuel mixture is compressed before ignition.
How do I calculate compression ratio?
Divide swept volume plus clearance volume by clearance volume. For example, a 499.6 cc swept volume with 55 cc of clearance gives (499.6 + 55) / 55 = 10.08 : 1.
What is a good compression ratio?
For modern gasoline engines, roughly 10:1 to 12:1 balances efficiency and knock resistance on pump fuel; diesels run 14:1 to 23:1. The right ratio depends on fuel octane and engine design.
What is clearance volume?
The volume remaining above the piston at top dead center: combustion chamber plus head-gasket volume plus the deck-height gap. It is the space left when the piston reaches its highest point.
Does a higher compression ratio mean more power?
It raises thermal efficiency, which helps power and economy, until knock forces the ignition timing back — the fuel's octane sets the practical limit. Higher ratios improve output but only up to the point the fuel allows.
How do I measure clearance volume?
Builders cc the chamber with a burette and fluid, add the gasket's bore volume (bore area x compressed thickness), and the deck gap volume from the piston's depth below the deck. Sum these for total clearance volume.