A cup is two cylinders.
Let R be the outside radius, r = R − wall thickness, H the total height and b the base thickness. Subtract the empty interior from the outer cylinder.
Material V = πR²H − πr²(H − b)
Capacity = πr²(H − b) ÷ 1,000 mL
The default 76 × 90 mm cup, with a 3 mm wall and 4 mm base, holds about 330.97 mL filled to the brim. FDM prints can leak between layers, so test a printed cup with water first.
From a curve to triangles.
STL stores flat triangles, not exact cylinders. A circle is sampled at N equally spaced points, so the surface sits slightly inside the ideal curve.
Radial deviation = R[1 − cos(π/N)]
Volume ratio = N sin(2π/N) ÷ 2π
More segments reduce this difference. For the default cup at 128 segments, the largest gap between the flat facets and the true circle is about 0.0114 mm, far smaller than a typical printer’s accuracy.
A starting point, not full CAD.
Use it for sizing, learning, prototypes and basic shapes. It doesn’t add fillets, threads, fit allowances, supports or printer compensation.
Material volume is the solid shape, not the filament your slicer will use with infill. Check units, hole clearances and orientation in your slicer before printing, and don’t use these parts where a failure could hurt someone.
Washer & spacer
A through-hole subtracts one cylinder from another.
V = π(R² − r²)H
Surface A = 2π(R + r)H + 2π(R² − r²)
A 30 mm outside diameter, 8 mm hole and 3 mm height has an ideal material volume of about 1.970 cm³. The presets aren’t matched to standard fastener sizes, so measure your bolt first.
Block & solid cylinder
Use a block to compare a product envelope or test basic dimensions. Use a cylinder to explore volume and diameter.
Block V = width × depth × height
Cylinder V = πR²H
A 40 × 30 × 20 mm block is exactly 24 cm³. Its planar STL surfaces need only 12 triangles; changing curve resolution does not change a block.
Files and privacy
Runs in your browser. Nothing is uploaded. The JSON file records your exact dimensions, units, ideal volume and how closely the mesh follows the curves.
The Library of Congress STL format description documents triangle surfaces and the format’s limitations. Binary STL does not preserve our preview color, lighting or dimensions as editable features.
How does design by capacity work?
For inside radius r in millimeters and target C in milliliters, total height is H = base + 1,000C / (πr²). For a 76 mm diameter, 3 mm wall and 4 mm base, a 250 mL cup needs a height of approximately 68.9612 mm. Select “Solve cup height” to apply the solution, then check it and download the updated part. Targets outside the dimension limits are rejected.