Home › Engineering & Automotive › Compression Ratio Calculator
Compression Ratio Calculator
Computes the static compression ratio of a piston engine from bore, stroke, combustion chamber volume and the optional piston dish/dome, deck clearance and head gasket volumes: CR = (swept + clearance) / clearance.
When to use
You are building or modifying an engine and need the compression ratio after changing heads, pistons, gaskets or deck height.
Do not use when: You need dynamic (effective) compression ratio, which depends on intake valve closing timing, or plain displacement (use engine-displacement).
Formula
swept = π/4 × bore² × stroke; deck_volume = π/4 × bore² × deck_clearance; gasket_volume = π/4 × gasket_bore² × gasket_thickness; clearance = chamber_volume_cc + piston_volume_cc + deck_volume + gasket_volume; compression_ratio = (swept + clearance) / clearance (all volumes in cc)
Static (geometric) ratio for one cylinder. Effective compression is lower because the intake valve closes after bottom dead centre; pump-fuel engines typically run 8:1–11:1 naturally aspirated and higher with direct injection.
Inputs
| Parameter | Type | Unit | Required | Description |
|---|---|---|---|---|
bore_mm | number | mm | yes | Cylinder bore in millimetres (inches × 25.4). Range: > 0, ≤ 1000 |
stroke_mm | number | mm | yes | Stroke in millimetres. Range: > 0, ≤ 1000 |
chamber_volume_cc | number | cc | yes | Volume of the cylinder-head combustion chamber in cc (from the head specification or by cc-ing the head). Range: > 0, ≤ 5000 |
piston_volume_cc | number | cc | default 0 | Positive for a dish or valve reliefs (adds clearance volume), negative for a dome, 0 for flat-top. Range: ≥ -500, ≤ 500 |
deck_clearance_mm | number | mm | default 0 | Distance the piston sits below the block deck at TDC (negative if it protrudes). Range: ≥ -5, ≤ 20 |
head_gasket_thickness_mm | number | mm | default 0 | Compressed gasket thickness; 0 to ignore the gasket volume. Range: ≥ 0, ≤ 10 |
head_gasket_bore_mm | number | mm | no | Gasket opening diameter; defaults to the cylinder bore. Range: > 0, ≤ 1000 |
Outputs
| Output | Type | Unit | Description |
|---|---|---|---|
compression_ratio | number | (swept + clearance) / clearance. | |
compression_ratio_text | string | Formatted as n:1. | |
swept_volume_cc | number | cc | π/4 × bore² × stroke for one cylinder. |
deck_volume_cc | number | cc | π/4 × bore² × deck_clearance. |
gasket_volume_cc | number | cc | π/4 × gasket_bore² × gasket_thickness. |
clearance_volume_cc | number | cc | chamber + piston + deck + gasket volumes: the volume above the piston at TDC. |
Example
350 SBC: 4.00 × 3.48 in, 64 cc heads, 5 cc reliefs, 0.025 in deck, 0.040 in gasket at 4.100 in: {"bore_mm":101.6,"stroke_mm":88.392,"chamber_volume_cc":64,"piston_volume_cc":5,"deck_clearance_mm":0.635,"head_gasket_thickness_mm":1.016,"head_gasket_bore_mm":104.14} → {"compression_ratio":9.655,"compression_ratio_text":"9.65:1","swept_volume_cc":716.62,"deck_volume_cc":5.148,"gasket_volume_cc":8.654,"clearance_volume_cc":82.802}
86 × 86 mm, 45 cc chamber, 1 mm gasket at 87 mm, flat piston, zero deck: {"bore_mm":86,"stroke_mm":86,"chamber_volume_cc":45,"head_gasket_thickness_mm":1,"head_gasket_bore_mm":87} → {"compression_ratio":10.806,"swept_volume_cc":499.56,"gasket_volume_cc":5.945,"clearance_volume_cc":50.945}
GET https://tttkmbb.com/api/v1/calculate/compression-ratio?bore_mm=101.6&stroke_mm=88.392&chamber_volume_cc=64&piston_volume_cc=5&deck_clearance_mm=0.635&head_gasket_thickness_mm=1.016&head_gasket_bore_mm=104.14
Machine access
- API:
GET https://tttkmbb.com/api/v1/calculate/compression-ratio(query parameters) orPOSTwith a JSON body{"inputs": {...}} - Schema: https://tttkmbb.com/api/v1/calculators/compression-ratio · Markdown: https://tttkmbb.com/engineering/compression-ratio.md · JSON definition: https://tttkmbb.com/engineering/compression-ratio.json
- MCP: server
https://tttkmbb.com/mcp, toolrun_calculator with calculator_id="compression-ratio" - OpenAPI operationId:
calculate_compression_ratio - Freshness:
static. Authentication: none. Rate limit: fair use (see rate limits).
Sources
- Wikipedia – Compression ratio (reference)
- Wikipedia – Engine displacement (reference)
FAQ
How do I get the chamber volume?
From the cylinder-head specification, or measure it by filling the chamber with liquid from a burette (cc-ing) with the valves and spark plug installed.
Does a thicker head gasket lower compression?
Yes: it adds clearance volume. Each 0.25 mm (0.010 in) of gasket on a 100 mm bore adds about 2 cc, roughly 0.2 points of ratio on a 10:1 engine.
Related calculators
- Engine Displacement Calculator — Total displacement from the same bore and stroke.
- Cylinder Calculator — Cylinder volume geometry.
- Ideal Gas Law Calculator — Pressure rise of the compressed charge.