Compression Ratio Calculator
Calculate engine compression ratio from volumes at bottom dead centre (BDC) and top dead centre (TDC).
Reviewed by the ToolNestr Editorial Team — July 2026
How compression ratio is calculated
Compression ratio is one of the most important specifications of an internal combustion engine. It describes how much the air-fuel mixture is compressed before ignition. The ratio is calculated by dividing the total cylinder volume when the piston is at bottom dead centre (BDC) by the volume when the piston is at top dead centre (TDC). The TDC volume is known as the clearance volume.
The swept volume (the volume displaced by the piston) is calculated from bore and stroke using the same cylinder volume formula as engine displacement. The clearance volume is the sum of the combustion chamber volume in the cylinder head, the head gasket volume, the piston deck height volume, and any piston crown volume (dome adds volume, dish subtracts). This calculator takes bore, stroke, and clearance volume as inputs and computes the ratio.
The formula explained
Worked example
Bore: 86 mm · Stroke: 86 mm · Clearance: 50 cc
Engine Building
Calculate the compression ratio of your build before assembly. Adjust head gasket thickness, piston dome height, or cylinder head volume to target a specific CR.
Performance Tuning
Increasing compression ratio is one of the most effective ways to gain power. Calculate the CR change when milling cylinder heads or using thinner head gaskets.
Fuel Selection
Higher compression requires higher octane fuel. Use the calculator to determine your engine's CR and select the minimum octane rating needed to prevent detonation.
Engine Diagnostics
A compression test measures cylinder pressure, not ratio. But knowing your calculated CR helps interpret compression test results when diagnosing engine wear.
How to use the compression ratio calculator
Enter bore and stroke
The swept volume is calculated automatically from the cylinder bore diameter and piston stroke length.
Enter clearance volume
This is the volume above the piston at TDC: chamber + gasket + deck height + piston crown volume.
Read the ratio
The compression ratio is displayed along with swept volume and clearance volume for reference.
Tips for compression ratio
Measure clearance volume accurately
The most common source of error is the clearance volume. Use a burette (cc kit) to measure the actual combustion chamber volume with the cylinder head installed and valves seated.
Include all volume components
Clearance volume = chamber volume + gasket volume + deck height volume + piston crown volume (or − dish volume). Missing any component gives an incorrect CR.
Higher CR requires better fuel
As a rule of thumb: CR 8–10:1 uses regular (87 octane), 10–11:1 uses mid-grade (89), 11–12:1 uses premium (91–93), above 12:1 usually needs race fuel or E85.
Dynamic vs static CR
This calculator gives the static compression ratio. Dynamic CR depends on valve timing and is lower than static. Forced induction engines need lower static CR to avoid detonation under boost.
Related tools
Frequently asked questions
What is compression ratio?
Compression ratio (CR) is the ratio of cylinder volume when the piston is at bottom dead centre (BDC) to the volume at top dead centre (TDC). Higher ratios generally mean more power but require higher octane fuel.
How do I measure the volumes?
Swept volume comes from bore and stroke. Clearance volume is measured by filling the combustion chamber with fluid from a burette (cc'ing the heads).
What is a good compression ratio?
Street petrol engines: 8:1 to 10:1. Performance builds: 10:1 to 12:1. Race engines: 12:1 to 15:1. Diesel: 14:1 to 22:1.
What happens if CR is too high?
Excessive compression causes detonation (knocking), which can destroy pistons and rings. Higher octane fuel resists detonation.
Can I calculate CR from displacement alone?
No. You need the clearance volume (combustion chamber + head gasket + piston top volume) in addition to the swept volume.
Sources & references
This tool uses standard formulas and reference values from:
- • SAE International standards (e.g. J1349 engine power, J1634 EV range). sae.org
- • U.S. DOE / EPA — fueleconomy.gov, official efficiency, MPGe and charging figures. fueleconomy.gov
- • Vehicle manufacturer service specifications — always defer to the OEM figures for your specific vehicle.
General estimates. Follow your manufacturer’s published specifications and a qualified mechanic for safety-critical work.