Compression Ratio Calculator
Estimate static and dynamic engine compression ratios from cylinder geometry, chamber volume, piston shape, and intake-valve timing.
Engine inputs
Changing units converts the current entries; it does not change the underlying geometry.
Whole number from 1 to 24. It affects total engine displacement, not the per-cylinder ratio.
Cylinder diameter. Required and positive.
Crank stroke from top to bottom dead center. Required and positive.
Use the compressed gasket thickness, not the uninstalled thickness.
Diameter of the gasket opening around the cylinder.
Positive means the piston is below the deck at TDC; negative means it protrudes.
Measured cylinder-head chamber volume at top dead center.
Enter a dish/relief as positive volume; enter a dome as negative volume.
Dynamic compression inputs
Center-to-center rod length; it must exceed half the stroke.
Advertised intake-valve closing angle after bottom dead center, from 0° to 120°.
Live results
Static compression ratio
9.52:1
Dynamic compression ratio
7.89:1
Compressed volume
84.127 cc
Displacement per cylinder
716.622 cc
Engine volume
5.733 L
Effective stroke
71.445 mm
Dynamic swept volume
579.227 cc
Static ratio is a geometric identity. Dynamic ratio is a timing-based geometric estimate that begins compression at the entered intake-valve closing point.
Enter a complete valid engine specification to calculate compression ratio and enable the Excel export.
Static compression ratio 9.52 to 1; dynamic compression ratio 7.89 to 1.
Compressed-volume breakdown
| Component | Volume | Share of compressed volume |
|---|---|---|
| Combustion chamber | 64.000 cc | 76.08% |
| Piston volume | 6.000 cc | 7.13% |
| Head gasket volume | 8.979 cc | 10.67% |
| Deck clearance volume | 5.148 cc | 6.12% |
| Total compressed volume | 84.127 cc | 100.00% |
A domed piston appears as a negative piston-volume contribution because it occupies space that would otherwise belong to the clearance volume. Shares can therefore be negative or exceed 100% for individual components while the total remains exactly 100%.
How to use this compression ratio calculator
What this calculator does. It converts engine geometry into the static compression ratio, the clearance volume above the piston at top dead center, per-cylinder swept displacement, total engine displacement, and a dynamic compression-ratio estimate that accounts for when the intake valve closes. Static compression ratio is a geometric identity: the cylinder volume at bottom dead center divided by the volume at top dead center. Dynamic compression ratio is more conditional because it treats the piston position at the entered valve-closing angle as the start of compression. It does not predict measured cranking pressure, combustion pressure, fuel requirement, knock margin, horsepower, or safe piston-to-head clearance.
When to use it. Use it when checking a planned engine build, comparing cylinder-head chamber sizes, estimating the effect of a thicker or thinner head gasket, or seeing how a different camshaft closing point changes effective compression. It is also useful for reconciling a claimed compression ratio with measured bore, stroke, deck, gasket, chamber, and piston volumes.
How to calculate. The calculator opens with a complete demonstration engine, so the results and Excel workbook are immediately available. Follow these steps:
- Choose Measurement units. Metric uses millimeters and cubic centimeters; Imperial uses inches and cubic inches. Switching units converts the current values rather than simply relabeling them.
- Replace the demonstration values for the core engine dimensions and volumes. Results update live after each valid change.
- Open Dynamic compression inputs if you want to change connecting-rod length or intake-valve closing timing. The dynamic result remains visible in the main results panel.
- Read the primary Static compression ratio, then compare the related volume and dynamic metrics. Use the breakdown table to verify exactly what makes up the compressed volume.
- Select Download Excel to generate a fresh workbook from the current validated model. Reset clears the demonstration data and results; with required fields empty, Excel export is disabled until a complete valid specification is entered again.
Input guide. Number of cylinders is a required whole number from 1 to 24; the example uses 8. More cylinders increase total engine displacement but do not change the per-cylinder compression ratio. Bore diameter (b) is the required cylinder diameter; the example is 101.6 mm (4.000 in). A larger bore increases swept, gasket-related, and deck-clearance volumes. Piston stroke (s) is the required crank stroke; 88.392 mm (3.480 in) is used here. A longer stroke increases swept displacement and generally raises compression ratio if clearance volume is unchanged. Head gasket thickness (t) is the compressed installed thickness; the example is 1.0414 mm. A thicker gasket adds clearance volume and lowers compression ratio. Gasket bore (g) is the gasket opening diameter; 104.775 mm is used in the example, and increasing it also adds gasket volume. Deck clearance (c) is the piston crown position relative to the block deck at TDC: positive values mean below-deck, while negative values represent protrusion. The example uses +0.635 mm. Do not reverse this sign convention. Combustion chamber volume is a required positive measured or specified head-chamber volume; the example is 64 cc. Piston volume uses +6 cc for the demonstrated dish/relief. Enter a dome as a negative value because a dome displaces clearance volume. Connecting rod length is the center-to-center rod length; the example is 144.78 mm and it must exceed half the stroke for a valid slider-crank geometry. Intake valve closing (IVC) is the advertised closing angle after bottom dead center; the example is 60° ABDC. Larger closing angles normally shorten the effective compression stroke and reduce the dynamic ratio.
Output guide. Static compression ratio is dimensionless and exact for the entered geometry. Dynamic compression ratio is a geometric estimate driven by the static clearance volume plus rod length and IVC timing. Compressed volume is the total clearance volume at TDC. Displacement per cylinder is the bore-and-stroke swept volume. Engine volume is the total swept displacement and multiplies that per-cylinder volume by Number of cylinders. Effective stroke is the piston travel remaining from the IVC piston position to TDC. Dynamic swept volume applies the bore area to that effective stroke. The summary pills repeat cylinders, total displacement, static ratio, and dynamic ratio from the same model. In the Compressed-volume breakdown, the Component column names each clearance contribution, Volume shows its signed amount, and Share of compressed volume divides that component by the total; a negative dome contribution is therefore expected rather than an error.
Worked example. With 8 cylinders, a 101.6 mm bore, 88.392 mm stroke, 1.0414 mm gasket thickness, 104.775 mm gasket bore, 0.635 mm deck clearance, 64 cc chamber, and +6 cc piston volume, the swept volume is 716.622 cc per cylinder. The gasket contributes 8.979 cc and deck clearance contributes 5.148 cc, producing 84.127 cc of total compressed volume. Applying CR = (Vd + Vc) / Vc gives 9.52:1. With a 144.78 mm rod and a 60° ABDC IVC, the slider-crank position gives an effective stroke of 71.445 mm, a dynamic swept volume of 579.227 cc, and a 7.89:1 dynamic ratio. Those are the first-open values in the results and workbook.
Learn more. The dimensional calculations use cubic length relationships, and NIST's guidance on SI volume units confirms the relationship between cubic millimeters, cubic centimeters, and milliliters. For measurement conventions, NIST's SI length guidance is a useful reference when converting bore, stroke, gasket, deck, and rod dimensions.
How the compression-ratio formulas work
The swept displacement of one cylinder is the volume of a cylinder with diameter b and height s: one quarter of π times bore squared times stroke. The compressed or clearance volume combines the combustion chamber, signed piston volume, head-gasket volume, and deck-clearance volume. The gasket and deck terms are also cylindrical volumes. Once both volumes are expressed in the same unit, the ratio is straightforward.
Static CR = (swept volume + compressed volume) ÷ compressed volume
The dynamic calculation adds slider-crank geometry. The piston is still moving toward TDC after bottom dead center while the intake valve may remain open. The entered IVC angle and rod length locate the piston when that valve is considered closed; only the remaining piston travel becomes the effective stroke for the dynamic swept volume. This is why later intake closing usually lowers the dynamic ratio even though the engine's physical bore, stroke, and static compression ratio have not changed.
Measurement quality matters more than extra decimals
Compression-ratio calculations are sensitive to small volumes. A few cubic centimeters of chamber or piston-volume error can move the result noticeably, especially on smaller cylinders or high-compression builds. Measure rather than assume where practical, and use compressed gasket thickness rather than catalog-uncompressed thickness when the manufacturer provides it. Deck clearance should be measured at TDC with a sign convention that matches the calculator. If a piston is domed, verify whether the piston manufacturer's published value is expressed as dome displacement or net piston volume before entering a negative number.
Unit switching is exact within the defined conversion constants: 25.4 mm per inch and 16.387064 cubic centimeters per cubic inch. The latter aligns with NIST conversion guidance. The calculator keeps the canonical model in millimeters and cubic centimeters, so repeated unit switching does not intentionally change the engine geometry.
Compression ratio, efficiency, and knock
A higher geometric compression ratio can support higher thermodynamic efficiency, but it also changes the engine's knock tendency and interacts with fuel octane, chamber design, charge temperature, ignition timing, boost, mixture, and operating conditions. An EPA-hosted literature review on compression ratio and fuel octane discusses this relationship in the context of knock resistance and engine efficiency. Use the calculator as a dimensional planning tool, not as a standalone recommendation for fuel grade or a safe compression limit.