What this calculator does
Find your engine's compression ratio, and see how a different gasket or piston would change it. The ratio compares two spaces in a cylinder. One is the space above the piston at the bottom of its travel. The other is the space left when the piston reaches the top. Squeezing fuel and air into a smaller space before it burns gets more work out of it. But push the ratio too far for your fuel, and the mixture detonates, exploding all at once instead of burning smoothly. Engine builders juggle head gaskets, pistons and chamber sizes to hit a target ratio.
The calculator adds up every part of the space left when the piston is at the top, called top dead center. That's the cylinder head's combustion chamber and the head gasket's thickness. It also includes the gap between the piston and the top of the block (deck clearance), and any dish or dome on the piston. It shows each volume in cubic centimeters and the resulting static compression ratio. So you can see exactly what a thinner gasket or a different piston would change.
Where it's used
Why this math matters outside the classroom:
- Engine building. A builder totals 64 + 8.87 + 5.23 + 5 = 83.10 cc of clearance and finds a 9.75:1 ratio for a 727 cc cylinder.
- Choosing gaskets. A mechanic sees that a 0.015 in thinner gasket on a 4.1 in bore removes about 3.2 cc and raises compression.
- Piston swaps. A tuner compares a 5 cc dish with a 5 cc dome, a 10 cc swing in clearance volume per cylinder.
- Small engines. A student finds a mower engine with 160 cc swept and 25 cc of clearance runs (160 + 25) ÷ 25 = 7.4:1.
- Physics class. Students model a cylinder squeezed from 550 cc to 50 cc, an 11:1 ratio, to see how compression raises pressure.
Grade level and standards: Grade 8; Common Core State Standards for Mathematics 8.G.C.9. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Choose whether your lengths are in inches or millimeters.
- Enter the bore (cylinder width) and stroke (piston travel). Then enter the head gasket's bore and its compressed thickness.
- Enter the deck clearance. It's positive if the piston sits below the deck at top dead center, and negative if it pokes above.
- Enter the chamber volume and the piston's dish (positive) or dome (negative) volume in cc, then read the ratio.
What the inputs mean
- Head gasket bore
- The diameter of the gasket's cylinder opening.
- Compressed gasket thickness
- Use the compressed (installed) thickness, which gasket makers list. Don't use the thickness of a new gasket out of the box.
- Piston deck clearance
- Measure from the top surface of the block (the deck) to the flat part of the piston top at top dead center. In a zero-deck build, the piston sits flush with the block.
- Combustion chamber volume
- The head maker usually publishes the chamber volume. You can also measure it: seal a clear plate over the chamber and fill it from a burette, a measuring tube.
- Piston dish or dome volume
- Piston makers list a dish or dome volume. Valve reliefs, small pockets cut into a flat-top piston, add a few cc and count as positive, like a dish. A dome that rises into the chamber takes up space, so enter it as negative.
Formula and method
swept volume = (π/4) × bore² × stroke gasket volume = (π/4) × gasket bore² × gasket thickness deck volume = (π/4) × bore² × deck clearance clearance volume = chamber + gasket + deck + dish (dome negative) compression ratio = (swept + clearance) ÷ clearance
Swept volume is the space the piston sweeps through, and clearance volume is the space left above it at the top. π is pi, the circle constant. At the bottom of the stroke, the gas fills the swept volume plus the clearance volume. At the top, it fills only the clearance volume. Dividing the first by the second gives the static compression ratio.
The gasket and deck spaces are thin, flat cylinders. So their volumes come from the same πr²h formula (circle area times height) as the swept volume. Inch measurements give cubic inches, converted at exactly 16.387064 cc per in³. Millimeter measurements give mm³, divided by 1,000.
Worked example
A V8 has a 4.03 in bore and 3.48 in stroke, 64 cc chambers, a 4.100 in gasket 0.041 in thick, pistons 0.025 in below the deck and a 5 cc dish.
- Swept volume: (π/4) × 4.03² × 3.48 = 44.389 in³ = 727.41 cc.
- Gasket volume: (π/4) × 4.1² × 0.041 = 0.5413 in³ = 8.87 cc.
- Deck volume: (π/4) × 4.03² × 0.025 = 0.3189 in³ = 5.23 cc.
- Clearance volume: 64 + 8.87 + 5.23 + 5 = 83.10 cc.
- Compression ratio: (727.41 + 83.10) ÷ 83.10 = 9.75.
Result: The static compression ratio is about 9.75:1.
Understanding the result
Every cc of clearance volume matters. In the example, a gasket 0.015 in thinner removes about 3.2 cc and raises the ratio to roughly 10.1:1.
Static ratio comes purely from the engine's shape. What the engine actually feels, often called dynamic compression, also depends on when the intake valve closes. So two engines with the same static ratio can need different fuel.
Assumptions and limitations
- All cylinders are identical, and the measured volumes are accurate.
- The gasket's opening is round. The small space around the piston's top ring land (the band above the top ring) isn't counted.
- It doesn't work out dynamic compression, cranking pressure or the octane an engine needs.
- The space between the piston and the cylinder wall above the top ring (crevice volume) is usually left out of builders' math, and it's left out here.
- Follow the engine and parts makers' specifications for safe compression on a given fuel.
Frequently asked questions
How do I calculate compression ratio?
Add one cylinder's swept volume to its clearance volume (chamber, gasket, deck and piston dish). Then divide by the clearance volume. 500 cc swept with 50 cc of clearance gives (500 + 50) ÷ 50 = 11:1.
Does a thicker head gasket lower compression?
Yes. A thicker gasket adds clearance volume, which lowers the ratio. On a 4 in bore, each 0.010 in of gasket thickness adds about 2.1 cc per cylinder.
Is a piston dome positive or negative?
Negative. A dome fills part of the chamber and shrinks the clearance volume, which raises compression. A dish or valve reliefs add volume, so they're positive.
What compression ratio is good for pump gas?
It depends on cam timing, chamber design, cooling and fuel, so there's no single number. Follow the head and piston makers' advice for your combination, not a rule of thumb.
How this calculator is checked
Method: Static compression ratio CR = (V_swept + V_clearance)/V_clearance, with each thin volume (gasket, deck) as a cylinder (π/4)·d²·h; 1 in³ = 16.387064 cm³. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Compression Ratio Calculator on your own website or blog for free. Paste this code where you want it to appear: