Compression Ratio Calculator: Static and Dynamic
By FindMySum · Last reviewed
Compression ratio is one of the first numbers engine builders look at. It sets how hard an engine squeezes its charge, which affects power, efficiency and the octane of fuel it needs. This calculator adds up every volume above the piston to give the static compression ratio and the engine's displacement, and optionally the dynamic ratio once valve timing is taken into account.
The formula
At bottom dead centre (BDC) the cylinder holds the swept volume plus the clearance volume. At top dead centre (TDC) only the clearance volume is left. The compression ratio is the ratio of the two:
CR = (V_swept + V_clearance) ÷ V_clearance
Swept volume is the cylinder the piston moves through: π/4 × bore² × stroke.
Clearance volume is everything above the piston at TDC:
- the combustion chamber in the head, quoted by the head maker in cc;
- the head gasket: π/4 × gasket bore² × compressed thickness;
- the deck clearance: π/4 × bore² × the gap between the piston top and the block deck (negative if the piston pokes above the deck);
- the piston: a dish or valve reliefs add volume, a dome subtracts it.
Worked example: the default
The calculator opens with a square 86 × 86 mm four-cylinder engine, a 40 cc chamber, an 87 mm × 0.8 mm gasket, 0.5 mm deck clearance and a 5 cc dished piston.
- Swept volume: π/4 × 8.6² × 8.6 = 499.6 cc per cylinder, or 2.0 L for four cylinders
- Gasket: π/4 × 8.7² × 0.08 = 4.76 cc
- Deck: π/4 × 8.6² × 0.05 = 2.90 cc
- Clearance: 40 + 4.76 + 2.90 + 5 = 52.66 cc
- CR = (499.6 + 52.66) ÷ 52.66 = 10.49:1
Lengths are in centimetres inside the calculation so the volumes come out in cubic centimetres. If you work in inches, choose Inches: bore, stroke, gasket and deck are converted, and chamber and piston volumes stay in cc, as head and piston makers quote them.
Why small volumes matter
The clearance volume is small, so a few cc change the ratio a lot. On the default engine, a 0.5 mm gasket instead of 0.8 mm raises the ratio by about a third of a point, and swapping the 5 cc dish for a 3 cc dome takes it above 12:1. That is why builders measure chambers and dishes rather than trusting catalogue numbers.
Dynamic compression ratio
The static ratio assumes compression starts at BDC. In a real four-stroke engine the intake valve closes some time after BDC to let the incoming charge keep filling the cylinder. Until it closes, the rising piston pushes some mixture back out, so compression really starts later.
The dynamic ratio uses the piston's distance from TDC at intake valve closing (IVC). That position comes from the slider-crank geometry in Heywood's textbook:
s = a cos θ + √(l² − a² sin² θ)
where a is half the stroke, l the connecting rod length and θ the crank angle from TDC (180° plus the IVC angle after BDC). The distance from TDC is a + l − s, and the dynamic ratio is (π/4 × bore² × that distance + clearance) ÷ clearance.
Open "Advanced options" and enter the rod length and the IVC angle from the cam card. A small-block V8 with a 4.000 × 3.480 in bore and stroke, 64 cc heads and a 5.7 in rod has a static ratio of 9.6:1; with the intake closing 60° after BDC, its dynamic ratio is about 8.0:1. Cam makers quote valve timing in different ways (advertised duration or at a set lift), so use the IVC figure consistently when comparing cams.
Displacement
The calculator also reports total displacement, swept volume × number of cylinders, in cc, litres and cubic inches (1 in³ = 16.387064 cc exactly). The V8 above is 349.8 in³, the familiar "350".
Limits
The calculation treats the space above the piston as simple cylinders. It leaves out the small crevice volume between the piston crown and the top ring, and any recesses not included in your chamber figure. For a precise build, measure the whole clearance volume with the piston at TDC.
The BMEP calculator uses the displacement to show how hard an engine works for its size, and the gear ratio calculator turns engine speed into road speed.
More questions
Why does compression ratio affect efficiency?
In the ideal Otto cycle, thermal efficiency rises with compression ratio: η = 1 − 1/r^(γ−1). Going from 8:1 to 12:1 raises the ideal efficiency from about 56% to about 63% for γ = 1.4. Real engines gain less, because of heat loss and friction, but the direction is the same.
What is knock?
Knock, or detonation, is the unburned mixture ahead of the flame igniting on its own from heat and pressure. It causes a sharp pressure spike that can damage pistons and bearings. Higher compression raises end-gas temperature and pressure, so it raises the risk of knock unless the fuel's octane rating is higher too.
Do diesel engines have higher compression?
Yes, much higher, typically around 15:1 to 22:1. Diesels rely on the heat of compression to ignite the fuel, which is injected near top dead centre, so there is no premixed charge to knock in the same way.
Does a turbocharger change the compression ratio?
Not the geometric ratio, which is fixed by the parts. But boost raises the pressure and temperature at the start of compression, so turbocharged petrol engines usually use a lower static ratio than a naturally aspirated version of the same engine to keep away from knock.
What does milling the head do?
Machining material off the head's gasket face reduces the combustion chamber volume, raising the compression ratio. The change depends on the chamber shape, so the reliable way to know the new volume is to measure it after machining.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.