Put in bore, stroke and the number of cylinders, and the first calculator returns the swept volume of each cylinder and the engine's total displacement in cc, liters and cubic inches, along with the bore-to-stroke ratio. That is the number you need when you identify an engine, check a rebuild after an overbore or a stroker crank, or answer a displacement question on the A1 test. Two more tools sit underneath for machine-shop work on the same cylinder. One adds up the clearance volume (head chamber, gasket bore, deck clearance and piston dish or dome) to give the static compression ratio, with a quick mode for when a question hands you swept and clearance volumes directly. The other shows how milling the head or swapping the gasket moves that ratio, and tells you how much clearance volume a chosen ratio calls for. A single toggle switches every length on the page between millimeters and inches; volumes always read in cc, with cubic inches beside them. The sample engine is loaded: 96 mm bore by 92 mm stroke, four cylinders, for 2,663.7 cc, which is 2.66 L or 162.5 in³. Pair that cylinder with a 52 cc chamber and a 3 cc dish, plus 0.5 mm of deck clearance under a 1.0 mm gasket of 97 mm bore, and it runs 11.09:1; take 0.5 mm off the head and it rises to 11.67:1. Each result comes with the working written out the way a test answer would be.
This toggle sets the length unit for all three tools at once. Enter bore, stroke, gasket and deck sizes in mm. Volumes stay in cc (1 cc = 1 mL) whichever unit you pick, and cubic inches appear next to them.
Engine displacement
Compression ratio
Change of compression ratio
01Calculating displacement in millimeters and in inches
Picture one cylinder as a short column of air. Its cross-section is a circle the size of the bore, and the piston sweeps it from bottom dead center up to top dead center, a distance equal to the stroke. The volume of that column is the swept volume of the cylinder, and adding up every cylinder gives the engine's displacement. As a formula:
V = π/4 × bore² × stroke × cylinders
The π/4 factor equals 0.7854. Some books write the same thing with the radius, π × r² × stroke, and both give the same answer because the radius is half the bore and half the bore squared is bore²/4. Either form is fine as long as you stay with one. Drop the full bore into the radius version and your answer is four times too big.
Metric route. Take the 96 mm bore and 92 mm stroke. Squaring the bore gives 9,216; times 0.7854 and times 92, that is 665,917 mm³ for one cylinder. A cubic centimeter holds 1,000 mm³, so each cylinder sweeps 665.92 cc, and with four of them the engine displaces 2,663.7 cc, or 2.664 L. For cubic inches, divide by 16.387 to get 162.5 in³.
Inch route. Dividing by 25.4 turns the same cylinder into a 3.7795 in bore and a 3.6220 in stroke. Then 0.7854 times 3.7795 squared times 3.6220 gives 40.637 in³ per cylinder, and four cylinders make 162.5 in³. Multiplying by 16.387 brings you back to 2,663.7 cc. The two answers match apart from rounding, and running both is a good way to check yourself when a question is in one unit and the answer choices are in the other.
You will also see the bore-to-stroke ratio in the results. When the bore is bigger than the stroke, as here (96 / 92 = 1.043), the engine is oversquare. A stroke longer than the bore makes it undersquare, and equal dimensions make it square. None of this changes the displacement math, but the terms come up in engine specifications and design questions, so the calculator names the case for you to compare with your own call.
02Liters, cc and cubic inches: conversions and rounding
One milliliter and one cubic centimeter are the same amount of space, and a liter is 1,000 of them, so 2,663.7 cc equals 2.6637 L. Manufacturers market engines in liters because it makes a short label. The exact figure lives in the service information, while badges, model names and most parts catalogs round it, usually to one decimal place. Rounded that way, 2,663.7 cc becomes 2.7 L, even though the unrounded value sits much nearer 2.66 than 2.70. So you cannot feed a badge back through the formula and recover the bore and stroke: a 2.7 L label fits every engine from 2,650 cc up to 2,749 cc, so two quite different engines can wear it.
Rounding to the nearest tenth is the habit, not a rule. A maker may pick whatever number fits its naming of models, or a tax bracket, so the badge can be a tenth off from the arithmetic. Think of the liter figure as a name rather than a measurement, and go by the engine code or the VIN when you order parts or pull specifications.
For decades, American engines were rated in cubic inches, and older shop manuals still are. One cubic inch is 16.387 cc, which makes 1 L equal to 61.02 in³. A 350 in³ engine works out to 350 × 16.387, or 5,735 cc, and it was sold as a 5.7 L. Results on this page appear in all three units, so you can match whatever a question, a parts book or a manual uses.
03Compression ratio from the same cylinder: building the clearance volume
Once you know the swept volume of a cylinder, you are halfway to its compression ratio, which is why that calculator lives on this page too. The ratio compares the space above the piston at the bottom of its stroke with the space left at the top. At BDC that space is swept volume plus clearance volume; at TDC only the clearance volume is left. Written out:
CR = (swept volume + clearance volume) / clearance volume
This is a per-cylinder figure. Use the one-cylinder swept volume from the displacement formula, never the engine total. The clearance volume is all the space still open above the piston crown at TDC, and in a real engine it comes from four places:
- Head combustion chamber. Measure it by filling it from a burette under a clear plate, or take the figure from service information or the cylinder head maker.
- Head gasket opening. Treat it as a cylinder with the gasket's bore diameter and its compressed thickness as the height. Gasket bores usually run slightly larger than the cylinder bore.
- Deck clearance. This is the space left at TDC between the top of the piston and the deck surface of the block: a cylinder whose diameter is the bore and whose height is that gap. A piston that stops below the deck adds this volume; a crown that sticks up above the deck subtracts it, and you enter that case as a negative deck figure.
- Piston top. A dish or valve reliefs add volume and a dome removes it. Piston makers list this in cc, with a dish positive and a dome negative, and the calculator follows the same convention.
Worked example using the default numbers: 96 mm bore, 92 mm stroke, a 52 cc chamber, a 97 mm gasket bore that compresses to 1.0 mm, the piston sitting 0.5 mm down from the deck, and a 3 cc dish.
Swept: 0.7854 × 96² × 92, divided by 1,000, gives 665.92 cc.
Gasket: 0.7854 × 97² × 1.0, divided by 1,000, gives 7.39 cc.
Deck: 0.7854 × 96² × 0.5, divided by 1,000, gives 3.62 cc.
Clearance: add 52, 7.39, 3.62 and 3 to get 66.01 cc.
Ratio: 665.92 plus 66.01 is 731.93, and dividing by 66.01 gives 11.09:1.
Gasket plus deck adds up to 11.0 cc, roughly one sixth of the total clearance. Drop the gasket alone and the answer becomes 12.36:1; drop both and it becomes 13.11:1, against the correct 11.09:1. Gaps like that are what multiple-choice distractors are made of. When a question labels a lone chamber figure as the clearance volume, switch to quick mode; if it lists gasket and deck dimensions, it expects you to include them.
04Static and dynamic compression in brief
Everything calculated so far is the static ratio, a pure geometry figure fixed by the parts. What the charge really feels is a smaller dynamic (effective) ratio. The reason is valve timing: the intake valve is still open when the piston passes bottom dead center and does not seat until the piston is some way up the bore. While it is open, the piston just pushes charge back toward the intake port, so compression really starts at intake closing. More cam duration means a later closing point and a lower effective ratio, and the loss is greatest at low RPM, when intake ram effect is too weak to keep filling the cylinder. Engine builders therefore raise the static ratio to suit a long-duration cam, and an engine with lots of compression but a mild cam can knock at low speed. Forced induction works in reverse: a turbo or supercharger raises the pressure in the cylinder at the moment the valve closes, with neither ratio changing, so engines with boost get lower static ratios. On a test, an unqualified compression ratio means the static one, and that is the only kind these tools compute.
Want static and dynamic compression in more depth, with the dynamic ratio worked out from rod length and intake closing angle? The dedicated compression ratio calculator covers both.
05Diesel engines run much higher compression, and why
There is no spark plug in a diesel. It squeezes plain air until the air is hot enough to light the fuel that the injector sprays in as the piston nears TDC. That is the entire reason diesels run far higher compression ratios than gasoline engines: compression alone has to reach ignition temperature on every stroke, cold starts included. A gasoline engine compresses a fuel and air mixture, and there the limit runs the other way, since too much compression lets the mixture light by itself ahead of the spark, which is detonation. In both cases the designer picks a ratio to suit how that fuel ignites. Look up the exact ratio for a given engine in its service information rather than guessing from the fuel it burns.
Diesel clearance volume is also laid out differently. A direct-injection diesel typically has an almost flat head face, with most of the chamber formed as a bowl in the piston crown. That makes the piston dish figure big and the head chamber figure small, and it turns deck height (often piston protrusion, on a diesel) into a closely held dimension. Indirect-injection diesels also have a prechamber in the head; count it in the clearance volume. This page's compression tool copes with all of it: type the piston bowl in as a positive dish, the small chamber in the flat head, and a negative deck figure where the piston protrudes.
On a test, the arithmetic for a diesel is no different. The diagnosis around it is: when a diesel loses compression, you tend to see white smoke and hard starts first and lost power later, because the air never gets hot enough to light the fuel, and a diesel compression test is judged against the maker's figure and the spread between cylinders, not a general rule. If you are aiming at ASE A9 Light Vehicle Diesel Engines or ASE T2 Diesel Engines, both tests have their own cylinder head and engine block content areas.
06Head milling, gasket thickness, and working back from a target ratio
Any change to clearance volume changes the compression ratio, while the swept volume stays put. In a rebuild, the head face and the head gasket are two of the usual places that change happens.
Milling the head. Resurfacing the head face cuts metal off the chamber side. A shallower chamber means less clearance volume and a higher ratio. The easy estimate treats the removed metal as a disc of bore diameter with the depth of the cut as its thickness: ΔV ≈ π/4 × bore² × cut. For the sample cylinder, cutting 0.5 mm takes away roughly 0.7854 × 96² × 0.5, divided by 1,000, or 3.62 cc. Clearance drops from 66.01 cc to 62.39 cc, and the ratio becomes (665.92 + 62.39) / 62.39, or 11.67:1, compared with 11.09:1 before.
That estimate runs high. At the head face, the chamber outline is normally smaller than the bore, with the quench (squish) area making up the rest, so less volume actually comes out of the chamber than a full disc would suggest. Some head makers publish a cc-per-millimeter or cc-per-thousandth figure for a particular casting, and if you have it, use it. If not, cc the chamber with a burette once the machining is done. Milling has other effects too. With an overhead cam, the cam ends up closer to the crank, and valve timing retards unless the timing drive (its chain or belt tensioner and cam sprocket) can absorb the change. Valves also end up closer to the pistons. On a V engine it pulls the head faces closer together, so the intake manifold may need machining to fit.
A thicker head gasket pushes the ratio back down. Going from 1.0 mm to 1.5 mm compressed, with the bore still 97 mm, adds 0.7854 × 97² × 0.5, divided by 1,000, or 3.69 cc. Clearance goes up to 69.70 cc and the ratio drops to (665.92 + 69.70) / 69.70, or 10.55:1. Shops use this to bring the ratio back down on a milled head, and it is why gasket thickness is a spec and not a matter of whatever is on the shelf.
Working backward from the ratio you want to the clearance volume it needs: rearrange CR = (S + C) / C into C = S / (CR − 1). To hit 12:1, divide the sample cylinder's 665.92 cc by 11, which gives C = 60.54 cc. The cylinder has 66.01 cc now, so 5.47 cc must come out. Divided over the bore area, 5.47 / (0.7854 × 96² / 1,000), that comes to roughly 0.76 mm to be cut from the head. A thinner gasket or a piston with less dish can take out the same volume, alone or combined with milling. The third calculator shows this working for any target you enter.
07Mistakes that give the wrong displacement or ratio
- Using the bore as if it were the radius. π/4 × bore² and π × radius² are the same thing. Put the bore into the radius form and the volume comes out four times too large, which is why a four-cylinder car engine sometimes shows up at more than 10 L on a scratch pad.
- Leaving out the gasket and deck volumes. Next to the chamber they look small, but they matter. In the example they total 11.0 cc; skip the gasket and the ratio reads 12.36:1, skip both and it reads 13.11:1, when the right answer is 11.09:1.
- Mixing inch and metric dimensions. A bore in inches with a stroke in millimeters, or a 3.78 bore typed in while the page is set to millimeters, produces a wrong answer that can still look believable. Convert everything into one system before you begin (25.4 mm per inch), and set the unit toggle before you type. The toggle never touches volumes; 52 cc of chamber reads 52 cc in either mode.
- Fretting over cc versus mL. No mistake here at all. By definition a cubic centimeter is a milliliter, so a chamber that takes 52 mL from the burette is a 52 cc chamber. Burettes are marked in mL and specs are written in cc; treat them as the same.
- Reversing the dome sign. A dish or a valve relief adds clearance volume and lowers the ratio, and a dome takes up chamber space and raises it. Piston catalogs and this calculator both put a dish as positive and a dome as negative. Type the example's 3 cc dome in as +3 rather than −3 and you get 11.09:1 when the true figure is 12.10:1.
- Leaving clearance out of the top of the fraction. CR = (swept + clearance) / clearance, and swept over clearance alone is always exactly one lower, 10.09 rather than 11.09 for the example, and test writers count on that slip.
- Using total engine displacement in the ratio. Compression ratio is a per-cylinder figure. Divide the whole engine's displacement by one cylinder's clearance volume and the ratio comes out four, six or eight times too high.
- Trusting the milling estimate too far. Treating the cut as a full bore-sized disc overstates the volume removed whenever the chamber is narrower than the bore at the head face. cc the chamber after machining.
08Displacement and compression on the ASE A1 test
ASE A1 Engine Repair gives the cylinder head and the engine block content areas of their own. Of the 45 scored questions, 6 come from Cylinder Head and Valve Train Diagnosis and Repair and 4 from Engine Block Diagnosis and Repair. The task lists in those areas include checking head and block decks for warpage, measuring cylinder bores, and installing the head gasket and head, and that is where questions on milling, gasket thickness and deck clearance come from. Bore measurement also ties straight back to displacement: an overbore increases the bore, and the formula above tells you by how much the engine grows.
Area A, General Engine Diagnosis, is the biggest part of A1 at 18 questions, and it covers cranking, running and relative compression tests as well as leak-down testing. No question will ask you to turn a compression gauge reading into a compression ratio, since the two measure different things, but you will have to interpret a set of compression readings, and understanding how clearance volume affects cylinder pressure makes that easier.
Commit two formulas to memory. For displacement: 0.7854 × bore² × stroke × cylinders. For compression: CR = (swept + clearance) / clearance. Then practice assembling clearance volume from all four pieces, because an answer that skips the gasket or deck volume is exactly the distractor you will be offered.
To try engine items in the four-choice test format, use the free A1 questions.
09Sources
- ASE (National Institute for Automotive Service Excellence): test specifications and study guides content areas, question counts and task lists for the Automobile tests; the ASE section on this page restates them in our own words.
- Compression ratio (reference article) background for the static ratio as swept plus clearance volume over clearance volume, and for how static and dynamic compression differ.
10Questions people ask
- How is engine displacement calculated?
- Square the bore, multiply by pi/4 (0.7854), then by the stroke and by the cylinder count. Working in millimeters gives cubic millimeters; a 1,000 divisor turns that into cc, and another turns cc into liters. Take a four-cylinder whose bore is 96 mm and whose stroke is 92 mm: 0.7854 times 96 squared times 92 times 4, divided by 1,000, comes to 2,663.7 cc (2.66 L). Using inches, the same formula returns cubic inches, and multiplying by 16.387 converts them to cc.
- How do I work out a compression ratio?
- Use CR = (swept + clearance) / clearance for one cylinder: swept and clearance volumes added, divided by clearance alone. Clearance is the sum of four parts: head chamber, gasket bore, the space above the piston at the deck, and the piston dish (a dome counts as negative). A 665.9 cc cylinder with 66.0 cc of clearance gives (665.9 + 66.0) / 66.0, which is 11.09:1.
- Does milling the head raise compression?
- Yes. The cut makes the chamber shallower, so clearance volume shrinks while swept volume does not. Estimate the volume removed as pi/4 x bore^2 x cut depth. Cutting 0.5 mm from a head on a 96 mm bore takes out about 3.6 cc, and the example engine goes up to 11.67:1 from 11.09:1. Since most chambers are narrower than the bore, the estimate runs a little high; cc the chamber once machining is done. Going to a thicker head gasket undoes some of that rise.
- Are cc and mL the same thing?
- Yes, by definition: one cubic centimeter is one milliliter, and 1,000 of either is a liter. Chambers are measured with a burette marked in milliliters and specified in cc, and you can use the two figures interchangeably. One cubic inch is 16.387 cc.
- How do static and dynamic compression differ?
- Static compression is pure geometry, fixed by bore, stroke and clearance volume; spec sheets and test questions mean this one when they say compression ratio. Dynamic, or effective, compression comes out lower: the intake valve does not seat until after BDC, and the charge is compressed only from then on. A cam that closes the intake later cuts the effective ratio, especially at low RPM, which is why engines built around long-duration cams get higher static ratios.
11Practice for the test
On A1, displacement, compression and machining items fall under the cylinder head, engine block and general diagnosis areas. Our practice tests are built area by area from each ASE test specification, and each answer comes with an explanation that also covers why the other choices are wrong. Sample questions are free and need no account.
Ten free questions per test, no account: free practice questions. For how we write and review questions, see our question method.
Related guides
ToolboxPrep is run independently and has no affiliation with, or endorsement from, ASE (the National Institute for Automotive Service Excellence). Our questions are original, written from ASE’s published test specifications and task lists and other public sources. They are not actual ASE test questions and not recalled or “brain dump” questions. ASE is a trademark of its owner, and we never use the ASE logo. Standards and service information are cited, not reproduced.