Compression Ratio Calculator
Find an engine's static and dynamic compression ratio from its geometry.
Metric and imperial units throughout, with a collapsed dynamic section for cam timing.
Updated November 26, 2026
The two ratios
A compression ratio compares the volume above the piston at bottom dead centre with the volume that is left at top dead centre. Two versions of that comparison matter, and this page computes both: the static ratio assumes the whole stroke is compressed, while the dynamic ratio counts only the part of the stroke that happens after the intake valve has shut.
The static number is the one printed in specifications, service manuals and parts catalogues, so it is what everybody quotes and compares. The dynamic number is the more honest description of the engine in motion, because a cylinder stops filling well before bottom dead centre: by the time the piston turns around, the intake valve is still open and some of the charge is pushed back out. From the moment it closes, the trapped charge is what gets squeezed.
That makes this a working page for people assembling or evaluating a real engine rather than a textbook exercise: choosing a chamber volume or a head gasket before the parts are ordered, checking what an overbore or a head skim does to the ratio, and seeing how much of that ratio survives once the cam's intake closing point is taken into account. Alongside the two ratios it reports one cylinder's displacement and the whole engine's, and both groups solve in reverse, so a target ratio can be turned back into the volume that would produce it.
What it does not do is estimate power, cylinder pressure or the likelihood of knock. The ratio is a geometric property of the parts you have; how much pressure it produces, and whether the fuel can take it, depends on the cam, the heads, the charge temperature, boost and the ignition map.
10.82 : 1
Static ratio of the four-cylinder example used on this page
9.98 : 1
The same engine, dynamic, with the intake valve closing 40° after bottom dead centre
5 parts
Chamber, piston, gasket thickness, gasket bore and deck clearance build the trapped volume
Quick start
Type the bore and the stroke
A square 2.0 litre four is a good engine to work through: 86 mm bore and 86 mm stroke. The displacement box fills in with the swept volume of one cylinder, and with four cylinders the engine volume reads 1,998.23 cc — the two litres on the badge.
Add the five numbers that sit above the piston
Piston volume, gasket thickness and deck clearance are pre-filled with 0, 0.9 mm and 0, so this engine only has to change two of them and fill the two empty ones: gasket 1.2 mm, deck clearance 0.3 mm (the crown sitting three tenths of a millimetre below the deck at top dead centre), a 42 cc chamber, and a gasket bore of 87 mm for the fire ring, a millimetre wider than the cylinder bore. The piston stays flat at 0.
Those add up to the trapped volume, and the two parts you might not expect to matter are worth real numbers: the 87 mm fire ring at 1.2 mm thick holds 7.13361 cc, and the thin slice between the crown and the deck — as wide as the cylinder bore — holds another 1.74264 cc.
Read the static ratio
The ratio is the swept volume plus the trapped volume, divided by the trapped volume: 10.8 times as much volume at the bottom as at the top, or 10.8191 : 1.
Nothing about the cam or the rod has entered the calculation yet, which is why a spec sheet can quote this number without knowing anything about the timing.
Open the dynamic group if you know the cam
The collapsed dynamic group takes two more values: the rod length, centre to centre, and the intake valve closing point in degrees after bottom dead centre. With a 143 mm rod and the valve shutting at 40°, the piston still has 78.6365 mm to climb out of an 86 mm stroke, so roughly one tenth of the sweep is no longer being compressed.
Feeding that shorter column back into the same ratio gives 9.97834 : 1. The static box still reads 10.8191 — the cam changed what is compressed, not the geometry.
Put the two numbers side by side
Use the static ratio to talk about the build and to compare it with a specification, and the dynamic ratio to reason about what the engine will actually do with the fuel you have in mind. The gap between them is the honest cost of a long-duration cam: on this engine 0.84 of a ratio point at 40°, and much more with a race profile. Whether a given dynamic number is acceptable for a given fuel is a judgement about chamber shape, charge cooling, ignition timing and fuel quality — this page gives you the geometry, not the verdict.
Working backwards from a target ratio
Type the ratio you want instead of reading it. A target of 9.5 : 1 on this engine implies 58.7714 cc trapped above the piston, so with the gasket and the deck left alone the chamber has to grow from 42 cc to 49.8952 cc. The page keeps the ratio you typed and recalculates the box it can still solve — the recalculated one is marked as a calculated value, so you can see which number gave way.
The formulas
There is no empirical fit anywhere in this page. Every number comes from the geometry of a cylinder, so the answer is only as good as the volumes you put in.
Swept volume of one cylinder
The formula works in millimetres, so a bore or a stroke entered in inches or centimetres is converted before it is multiplied. The product of , and is a cubic millimetre count, and the turns it into cubic centimetres. Multiply by the cylinder count for the engine volume. The same relation also answers the other way round: give it a displacement and it returns the bore or the stroke that produces it, which is how a class limit or a build sheet gets turned into dimensions.
The volume left above the piston
The chamber and the piston volume are measured quantities, entered in cc. The gasket and the deck gap are computed from their own dimensions: and are the gasket's bore and its crushed thickness, and is how far the crown sits below the deck. Two sign conventions carry meaning here rather than being pedantic: a domed piston that pushes into the chamber is entered as a negative piston volume, and a piston that stands above the deck is entered as a negative deck clearance. Both shrink the trapped volume, and both raise the ratio.
The static ratio
The reverse form on the right is the one a builder uses most: pick a ratio and a displacement, and it hands back the trapped volume that ratio implies. A ratio of exactly 1:1 has no answer in that direction, because it would divide by zero, and the box stays empty with an explanation rather than showing an infinity.
How far the piston still travels
With the crank radius , the rod length and the closing point measured after bottom dead centre, this is the distance from the piston crown to top dead centre at the moment the intake valve shuts. At the valve shuts at top dead centre and the adjusted stroke equals the full stroke, so the dynamic ratio equals the static one — type 0 and check, it is a quick way to confirm the engine is described to the page consistently. At the piston has not started up yet and the adjusted stroke is zero.
The page also solves this relation backwards, so a measured piston position can return the rod length, the closing point or the stroke. When the geometry has no real answer — a rod shorter than half the stroke under the square root, or an arccosine argument outside its range — the box stays blank with a note instead of producing a meaningless number.
The dynamic ratio
Same ratio, shorter column. Because for any real closing point, the dynamic ratio can never exceed the static one, and the page flags a dynamic figure you type that would break that rule.
Units that are exact and units that are not
One inch is exactly 25.4 mm and one cubic inch is exactly 16.387064 cc, so the imperial entries are converted without a rounding step; a litre is exactly 1000 cc. The degree conversion is taken from π itself rather than from a truncated 0.017453 factor, so the angle that reaches the trigonometry is the angle you typed.
What actually moves the ratio
Every number in the two tables below was produced by this page from the same 2.0 litre four used in the quick start, changing one value at a time. They answer the question most builds start with: where should the effort go?
Only the cam changes the dynamic ratio this much
| Intake valve closing point | Adjusted stroke (mm) | Static ratio | Dynamic ratio |
|---|---|---|---|
| 0° after BDC | 86 | 10.8191 | 10.8191 |
| 20° after BDC | 84.1651 | 10.8191 | 10.6096 |
| 40° after BDC (baseline) | 78.6365 | 10.8191 | 9.97834 |
| 60° after BDC | 69.4339 | 10.8191 | 8.92763 |
| 80° after BDC | 56.8808 | 10.8191 | 7.49437 |
| 90° after BDC | 49.6182 | 10.8191 | 6.66516 |
A cam that holds the intake valve open an extra 20° costs about 1.05 of a dynamic ratio point on this engine, and the cost grows as the closing point is pushed further: from 40° to 80° the dynamic ratio falls by 2.48 while the static ratio does not move at all. This is the single biggest lever available to a builder who does not want to change parts, and it is also the reason two engines with the same static ratio can behave completely differently.
What one part is worth
| Change from the baseline engine | Static ratio | Dynamic ratio |
|---|---|---|
| Gasket 0.9 mm thick | 11.1758 | 10.3045 |
| Gasket 1.2 mm (baseline) | 10.8191 | 9.97834 |
| Gasket 1.6 mm thick | 10.3806 | 9.57744 |
| Gasket 2.0 mm thick | 9.97967 | 9.21082 |
| Chamber 38 cc | 11.6569 | 10.7445 |
| Chamber 42 cc (baseline) | 10.8191 | 9.97834 |
| Chamber 46 cc | 10.1033 | 9.3239 |
| Chamber 50 cc | 9.48487 | 8.75838 |
| Deck clearance 0 mm | 11.1673 | 10.2968 |
| Deck clearance 1.0 mm | 10.0924 | 9.31387 |
| Piston dome, −5 cc | 11.8892 | 10.9569 |
| Piston dish, +5 cc | 9.94042 | 9.17493 |
| Bore 87 mm (1 mm overbore) | 11.0407 | 10.181 |
| Rod 180 mm instead of 143 mm | 10.8191 | 9.91419 |
Read the rows in pairs. A 1.1 mm thicker gasket is worth 1.20 of ratio and costs nothing but a gasket; 4 cc of chamber is worth 0.72; a 1 mm overbore is worth only 0.22 while adding 47 cc to the engine; and 37 mm of extra rod length moves the dynamic number by 0.06 and the static number not at all. If a build is close to a limit, the gasket and the chamber are the places to spend attention, and the rod is not.
Measuring the parts
The arithmetic is exact, so the error in the answer comes almost entirely from the volumes and dimensions you measured. These are the places where builds go wrong.
Gasket thickness means crushed thickness
A gasket measured in its packet is thicker than the same gasket under torque. The number this page needs is the one it settles at when the head is bolted down, which is what the manufacturer quotes as the compressed thickness. Half a millimetre of error here is worth roughly half a ratio point on the example engine.
Use the chamber figure for the assembled head
The chamber volume that matters is the one the engine will run, with the valves and the plug in place and the head as it will be bolted down. If the head has been skimmed, or the valves replaced, the figure from the last measurement no longer applies — measure again before trusting a ratio that sits close to a limit.
Mind the two signs
A domed piston that occupies chamber space is a negative volume, a dished piston is positive, and a crown standing above the deck is a negative deck clearance. Getting a sign wrong on a dome or a dish is worth about a ratio point on the example engine: a 5 cc dish reads 9.94042 and a 5 cc dome reads 11.8892.
Take the closing point the way the card gives it
The intake closing figure belongs in degrees after bottom dead centre, matching the lift the cam card quotes its duration at. A closing point quoted at the wrong lift moves the dynamic ratio noticeably without any part changing, which is exactly the kind of error that makes a build look safer or riskier than it is.
Measure the gasket bore, do not assume the cylinder bore
Most fire rings are a little wider than the cylinder, and the sliver between them is trapped volume. On the example engine, a gasket bore 1 mm wider adds 0.1649 cc at 1.2 mm of thickness, worth about 0.03 of a ratio point — small, but it is free accuracy while the gasket is in your hand, and it scales with the thickness.
Work with your machinist on the final figures
Deck heights, chamber volumes and valve reliefs are usually measured or corrected by the machine shop, and they are the numbers that decide the outcome. Set the page up with the figures you actually intend to assemble, then ask for them to be confirmed on the parts before anything is ordered or run.
Questions
Why is the dynamic ratio so much lower than the static one?
Because only the travel after the intake valve shuts is compressed. At 40° after bottom dead centre the piston still has 78.6365 mm of an 86 mm stroke to climb, and the charge that has already been pushed back through the still-open valve is not there to compress any more. Retard the closing point further and the gap opens quickly: the page gives 8.92763 at 60° and 6.66516 at 90° against a static 10.8191.
Does a longer rod change my compression ratio?
Not the static ratio. Rod length never enters that calculation; it only appears in the geometry that positions the piston at the closing point. On the example engine a 180 mm rod instead of 143 mm leaves the static ratio at 10.8191 and moves the dynamic ratio from 9.97834 to 9.91419 — worth knowing, but it is not a way to change compression.
I typed a target ratio and one of the boxes I filled in changed. Why?
The page keeps the number you typed and recalculates a value behind it rather than quietly ignoring your target. Which box gives way depends on what else is filled in: with a displacement and a measured trapped volume it is the ratio that follows, but with a ratio typed in it will be a volume or a dimension it can still solve for — on the example engine, asking for 9.5 : 1 moves the chamber from 42 cc to 49.8952 cc. The recalculated block is marked as a calculated value, so you can see what moved. If a measurement must stay fixed, change the part instead of the ratio.
Why are the compressed volume and ratio boxes still empty?
The trapped volume needs five values plus the bore: chamber volume, piston volume, gasket bore, gasket thickness and deck clearance. Piston volume, gasket thickness and deck clearance are pre-filled with 0, 0.9 mm and 0, so in practice the boxes that stop the calculation are the chamber volume, the gasket bore and the bore itself. The dynamic group has the same behaviour: it needs both the rod length and the closing point, and without them the adjusted stroke and the dynamic ratio stay empty rather than guessing.
How far to trust it
- The ratio is not a pressure and not a prediction of knock. A higher ratio raises the pressure and temperature at the end of compression, but how much of each, and whether the fuel can take it, depends on chamber shape, charge temperature, cam overlap, boost and ignition timing. Detonation damages engines, so treat this page as geometry and confirm any decision about fuel or boost with the engine builder and, where it matters, with a dyno session.
- The dynamic ratio uses one valve event. One closing point and one rod length stand in for everything the valve train does. Overlap, flow, intake tuning and the rest of the cam card are not modelled, and neither is the small change in trapped mass that comes from the cylinder not quite filling.
- Boost changes the mass, not the ratio. A compression ratio is a ratio of volumes, so forced induction does not change it, even though it changes everything about the pressure the engine sees. Nothing here models boost, volumetric efficiency or temperature, and the mixture itself is a separate question — the air-fuel ratio calculator works that out from the mass of air and fuel.
- Two warnings are real boundaries, not noise. A static ratio above 25 : 1 is flagged as implausible for a piston engine, which usually means a chamber volume entered in litres where cubic centimetres were expected or a deck clearance off by a factor of ten. A dynamic ratio above the static one is flagged too, because it cannot happen if the four volumes and the timing describe the same engine.
- Your measurements set the accuracy, and the parts are the final answer. Chamber volume, deck height and gasket crush are estimates until the real parts are measured, and assembly changes them: skimming a head, fitting different valves or changing the gasket moves the numbers. Do not order pistons or a cam on the strength of a single run of this page — verify the parts, then run the finished figures through again.
Related Calculators
Cost of Owning a Dog Calculator
Calculates the total cost of owning a dog based on size and various expense categories.
Back to School Calculator
Plan a back-to-school budget across clothing, electronics, shoes, supplies and extras, with itemised costs and a remainder for every category.
Commute Calculator
Compare the monthly cost of driving to work with the same commute by public transport, including fuel, parking, wear and tickets, per person.
Gas Calculator
Estimate the fuel a trip burns and what it costs, split per person, from the car's published or measured fuel economy, the trip distance and the pump price.
MPG Calculator
Work out miles per gallon, the fuel a drive burns and the trip cost from the distance, the fuel economy and the pump price, in US or UK mpg, L/100 km or km/L.
Compression Ratio to PSI Calculator
Convert a compression ratio such as 9:1 into compression pressure in psi, or work back from a measured pressure to the ratio terms or to the atmospheric pressure the engine was breathing.