If you're wondering how is compression ratio calculated, here's the short answer: add one cylinder's swept volume to its clearance volume, then divide that total by the clearance volume. Swept volume is the space the piston travels through; clearance volume is the space left above it at top dead center. For example, 500 cc of swept volume and 50 cc of clearance volume give you a 550-to-50, or 11:1, compression ratio.
That's static compression ratio: a measurement of engine geometry, not the pressure you'll read on a compression gauge. Get the volumes right and the math is easy. Miss the piston dish or gasket thickness, and you can talk yourself into a number that doesn't belong to the engine on your stand.
How is compression ratio calculated from bore and stroke?
Start with one cylinder, not the displacement of the whole engine. The formula for swept volume is:
Swept volume = 0.7854 x bore x bore x stroke
Use the same units for bore and stroke. If both measurements are in inches, the result is cubic inches. Multiply by 16.387 to convert cubic inches to cubic centimeters, usually written as cc. Working in centimeters gives you cubic centimeters directly.
Say an engine has a 4.000-inch bore and a 3.500-inch stroke. One cylinder sweeps approximately 43.98 cubic inches, or 720.7 cc. On an eight-cylinder engine, that works out to about 351.9 cubic inches total, but use the single-cylinder figure for the compression calculation.
Now suppose the measured clearance volume is 80 cc. Add that to 720.7, then divide the result by 80. The static compression ratio is approximately 10.01:1, usually rounded to 10.0:1. That 80 cc needs to account for every bit of space above the piston at top dead center, not just the chamber in the cylinder head.

What goes into clearance volume?
The cylinder head's combustion chamber is a big part of it. So are the compressed head gasket, the space between the piston and deck, and the shape of the piston crown. Valve reliefs and a dished piston add volume. A piston dome takes up space in the chamber and reduces volume. Use the piston manufacturer's specified net volume if available, and pay attention to its sign convention; not every catalog labels dome and dish volumes the same way.
To calculate gasket volume, use the same cylinder-volume formula, substituting the gasket's bore and compressed thickness for bore and stroke. For a 4.100-inch gasket bore and 0.040-inch compressed thickness, the volume is approximately 0.528 cubic inches, or 8.7 cc. Use the gasket bore, not the cylinder bore, and use compressed thickness rather than what a new gasket measures in your hand.
For a piston below the deck at top dead center, calculate the space above it with cylinder bore and measured deck clearance. A 4.000-inch bore with the piston 0.020 inch down gives about 4.1 cc. A piston that sits above the deck displaces volume instead, but don't assume a simple flat-cylinder calculation tells the whole story if the crown protrudes or has a complex shape. Check piston-to-head clearance and measure the assembly carefully.
As a simple example, a 64 cc chamber, 8.7 cc gasket, 4.1 cc of deck space, and 3.2 cc of net piston relief volume add up to 80 cc. That's the clearance volume used in the earlier calculation. Mixing up a dome and a dish can swing the answer enough to matter on a street engine.
Measure the parts, not the sales pitch
Advertised chamber and piston volumes are useful starting points, but machining and manufacturing tolerances can change the finished combination. If you're building an engine and the number matters, measure the parts you're actually bolting together. Confirm bore after any machining, and measure deck height with the piston at true top dead center. Piston rock can fool a quick measurement, so follow a consistent procedure and measure at appropriate points across the pin axis.
A burette and a clear plate are common tools for measuring combustion chamber volume. With the valves installed and sealed, level the head, apply a thin seal around the chamber, and fill the plated chamber through its fill hole with measuring fluid. The amount required is the chamber volume. Take care to eliminate air bubbles and avoid counting fluid outside the chamber. Piston crown volume can also be measured, but the setup and calculation must account for the known cylinder space above the piston.

Don't overlook the head gasket's position relative to the bore, either. Its opening must provide adequate clearance around the cylinder and combustion chamber. A gasket volume calculation tells you how much space it adds; it doesn't establish that the gasket fits the engine safely.
Static ratio isn't a compression test
A compression tester measures cranking pressure, usually in psi. That reading is affected by cam timing, cranking speed, throttle position, sealing, and other conditions. Static ratio is a volume ratio calculated from dimensions. You can't reliably convert a gauge reading straight into a static compression ratio, or diagnose a worn engine from the advertised ratio alone.
You'll also hear builders talk about dynamic compression ratio. That calculation accounts for intake valve closing timing as well as geometry, and different calculation methods can produce different figures. It's useful when comparing combinations, but it doesn't replace a proper check of cam timing, fuel requirements, and the rest of the build.
Higher static compression can improve efficiency and power in a suitable combination, but it also changes the engine's knock sensitivity. Fuel octane, combustion chamber design, ignition timing, cooling, load, and boost all play a part. Don't pick a ratio from somebody else's build sheet and assume your engine will be happy on the same pump gas.
Before the heads go on, write down each measured volume and run the calculation again. If the result surprises you, check the units and the signs on the piston volumes first. A few minutes with a calculator beats pulling the top end back apart.
