The swept-volume formula
Displacement is the volume the pistons sweep as they travel. Rose-Hulman's internal combustion engines course (ME410) sets out the geometry: bore is the diameter of the cylinder, stroke is the distance the piston moves between bottom centre and top centre, and the volume swept between those two points is Vd = π × B² × L ÷ 4. Multiplying Vd by the number of cylinders gives the engine's displaced volume.
US federal regulations use the same definition. In the EPA's emission rules for recreational vehicles, 40 CFR 1051.140(b) says an engine configuration's displacement is the intended swept volume rounded to the nearest cubic centimetre, and that swept volume is the product of the internal cross-section area of the cylinders, the stroke length, and the number of cylinders. The rule's own example is a one-cylinder engine with a 6.00 cm bore and a 6.25 cm stroke: (6.00 ÷ 2)² × π × 6.25 = 177 cc. Enter 60 mm, 62.5 mm and one cylinder and the calculator shows 176.7 cc, which rounds to the same 177.
The rule adds a precision instruction worth copying: work from the design dimensions with enough significant figures to pin the result to 0.1 cc. The calculator keeps full precision internally and rounds only what it displays.
A worked example from an engine course
The default inputs come from a Rose-Hulman ME410 test problem about a 2003 Honda Civic DX engine: four cylinders, 75.0 mm bore, 95.4 mm stroke. The course solution gets 421,464 cubic millimetres per cylinder and 1.686 × 10⁶ cubic millimetres, or 1.686 L, for the engine.
The calculator reproduces those figures: 421.5 cc per cylinder and 1,685.9 cc in total, shown as 1.686 L. Divided by 16.387064 cc per cubic inch, the same engine is 102.9 cubic inches.
Bore and stroke must be in the same unit. The formula multiplies a squared diameter by a length, so mixing millimetres and inches gives a meaningless number. The unit switch converts both fields at once, and the result does not change when you flip between them.
Cubic inches, cc and liters
A cubic centimetre and a millilitre are the same volume, so 1,000 cc is one litre. Cubic inches come from the inch, which NIST Special Publication 811 defines as exactly 2.54 cm. Cubing that gives 16.387064 cubic centimetres per cubic inch, and NIST's conversion table lists one cubic inch as 1.638 706 × 10⁻⁵ cubic metres, the same figure written in SI units.
To see the conversion working on an inch-measured engine, take a hypothetical eight-cylinder with a 4.00 in bore and a 3.48 in stroke. π/4 × 4.00² × 3.48 × 8 = 349.8 cubic inches, which the calculator also shows as about 5,733 cc, or 5.733 L.
Boring the cylinders oversize raises displacement through the squared bore term. On that same hypothetical engine, a bore of 4.03 in instead of 4.00 in gives 355.1 cubic inches, an increase of about 5.3 cubic inches from a change of 0.03 in. Lengthening the stroke raises displacement in direct proportion, because stroke appears only once in the formula.
Compression ratio from the clearance volume
The clearance volume, Vc, is the cylinder volume at top centre, the space left above the piston when it is as high as it goes. Rose-Hulman's notes give the compression ratio as the maximum cylinder volume over the minimum: rc = (Vd + Vc) ÷ Vc, using the swept volume of one cylinder, not the whole engine.
In the Civic test problem each cylinder has a clearance volume of 50,174 cubic millimetres. Enter 50.174 cc in the optional field and the calculator returns 9.4:1, matching the course solution's (421,464 + 50,174) ÷ 50,174 = 9.4.
The same notes list typical compression ratios of 8 to 12 for spark-ignition engines and 12 to 24 for compression-ignition (diesel) engines. If your result lands far outside the range for your engine type, check that you entered the clearance volume for one cylinder in cubic centimetres.
Mean piston speed
Add an engine speed and the calculator also reports mean piston speed, Sp = 2 × L × N, where L is the stroke and N is the rotational speed. The piston travels the stroke twice per revolution, once down and once up. Rose-Hulman's notes give 8 to 15 m/s as the range for most engines and point out that this is an average, not the instantaneous piston velocity, which varies over the stroke.
For the Civic example the course takes its maximum brake power of 115 hp at 6,100 rpm and gets 2 × 95.4 mm × 6,100 ÷ 60 = 19.4 m/s. Type 6,100 into the rpm field and the calculator shows the same 19.4 m/s, about 3,819 ft/min.
The notes say the ratio of bore to stroke, B/L, is 0.8 to 1.2 for small and medium engines and can be as low as 0.5 for large diesel engines. The Civic engine's 75.0 ÷ 95.4 = 0.79 sits just under that band. Separately, at 6,100 rpm its mean piston speed is 19.4 m/s, above the 8 to 15 m/s range.
Working backwards, and where displacement thresholds matter
The formula can be turned around when you know the displacement you want. Stroke = displacement ÷ (π/4 × bore² × cylinders), and bore = √(displacement ÷ (π/4 × stroke × cylinders)). For a single cylinder that must stay at 50 cc with a 40 mm bore, the stroke works out to 50,000 ÷ (π/4 × 40² × 1) = 39.8 mm. Try the numbers in the calculator: 40 mm by 39.8 mm on one cylinder returns 50 cc.
Displacement is not only a spec-sheet number; regulations draw lines with it. The same EPA part 1051 that defines swept volume applies, under section 1051.1, to snowmobiles, off-highway motorcycles and all-terrain vehicles, and to offroad utility vehicles with engines of 1,000 cc or less, maximum engine power of 30 kW or less and a top speed above 25 miles per hour. Section 1051.1 also mentions engines under 50 cc used in motorcycles that are motor vehicles. When a threshold like that is in play, the rounding rule in 1051.140, to the nearest whole cubic centimetre from design dimensions, is the one that counts for EPA part 1051 purposes.
Where the numbers come from on a real engine
The EPA rule calculates displacement from the design specifications for the cylinders, so a maker's stated bore and stroke are the right inputs for a stock engine. For an engine you have rebuilt, measure the actual bore after machining; a rebuild is exactly the case where the design figure is no longer the real one.
The swept-volume definition does not depend on the operating cycle. Rose-Hulman's notes describe four-stroke and two-stroke engines, spark and compression ignition, and say most engines run on a four-stroke cycle, but the bore, stroke and cylinder count give the displacement the same way for each. If you are converting other quantities around the engine, the volume converter handles litres, gallons and cubic inches, and the shape volume calculator works out any cylinder from its radius and height.