This solution is a fully self-contained, premium single-page application. It uses a clean, modern aesthetic with Tailwind CSS, Lucide icons for visual clarity, and reactive vanilla JavaScript for the calculation engine. ```html Free Engine Piston Displacement Calculator: Cubic Inches & CCs

Engine Displacement Calculator

Calculate swept volume in Cubic Inches (CID) and Cubic Centimeters (CC).

Diameter (mm)
Length (mm)
Count
Total Displacement
0.00
CC
Total Displacement
0.00
CID

Calculation Formula

V = π × r² × h × n