How to Estimate 3D Print Weight and Filament Cost from an STL
Before you print, sell prints or quote a customer, you want to know how many grams of filament a model will use. A slicer gives the best answer, but it needs the right settings and a few minutes. This guide gives you a quick calculator, the formula behind it, and an honest look at why small models use much more material than “volume times infill” suggests.
Calculator
Enter the model volume (the STLtoMP4 viewer shows it when you open a model, and most slicers and mesh tools do too), pick a material and set your own infill and price.
The formula
weight = volume × density × (shell + (1 − shell) × infill) × (1 + waste)
- Volume is the solid volume of the model in cm³. One cm³ equals one millilitre.
- Density is the material density in g/cm³ (table below).
- Shell is the fraction of the volume that is printed solid: outer walls, top layers and bottom layers.
- Infill is the density of the interior pattern you choose in the slicer.
- Waste covers supports, brims, skirts and purging; it is an allowance you set from experience.
Why small models use more than volume × infill
Walls and top/bottom layers are printed solid, whatever the infill. For a small model that solid skin is a large part of the total volume. We calculated the solid share for a sphere-like shape, assuming a combined skin thickness of 1.2 mm (three 0.4 mm walls) and of 2.0 mm (thicker walls and layers). For a sphere of radius r and skin thickness t the shell share is 1 − (1 − t/r)³:
| Diameter | Shell share, 1.2 mm skin | Shell share, 2.0 mm skin |
|---|---|---|
| 20 mm | 32% | 49% |
| 40 mm | 17% | 27% |
| 60 mm | 12% | 19% |
| 100 mm | 7% | 12% |
So a 20 mm ball prints roughly 32% to 49% solid even at 0% infill, while a 100 mm ball is nearer 7% to 12%. Compact shapes follow this pattern; thin or very bumpy shapes have more surface per volume and are even more shell-dominated. That is why the calculator asks for a shell share instead of assuming zero.
Material densities
| Material | Typical density (g/cm³) | Notes |
|---|---|---|
| PLA | 1.24 | Varies slightly with colour and additives |
| PETG | 1.27 | |
| ABS | 1.04 | Lighter than most filaments |
| ASA | 1.07 | |
| TPU | 1.21 | Flexible; check the hardness of your spool |
| Nylon (PA) | 1.01 to 1.14 | Depends on type (PA12 low, PA6 high) |
| PC | 1.20 |
These are typical datasheet values. Filament with fibres, metal powder or wood fillers can be noticeably heavier; use the density printed on your spool if there is one.
Worked examples
All examples use a price of 20 per kg, so the last column is simply grams × 0.02.
| Model | Volume | Density | Shell | Infill | Filament | Cost |
|---|---|---|---|---|---|---|
| 20 mm cube, PLA | 8 cm³ | 1.24 | 55% | 15% | 6.4 g | 0.13 |
| 60 mm figure (35 cm³), PETG | 35 cm³ | 1.27 | 30% | 15% | 19.8 g | 0.40 |
| Large vase (180 cm³ solid volume), PLA | 180 cm³ | 1.24 | 22% | 10% | 66.5 g | 1.33 |
Example 1 in detail: 8 cm³ × 1.24 × (0.55 + 0.45 × 0.15) × 1.05 = 6.4 g. Note that 55% of this tiny cube is skin, which is why 15% infill does not give 15% of the weight.
Where to read the volume
- The STLtoMP4 viewer shows the volume, surface area and bounding size of the loaded model. Pick the file unit first, otherwise the volume will be wrong by a large factor (inches versus millimetres is 25.4 times in length, which is 16,387 times in volume). See scale and units.
- Slicers show a volume or directly the filament weight after slicing.
- Mesh tools such as MeshLab and Blender report volume; make sure the mesh is closed first (pre-print check).
Accuracy and limits
- The result is a quick estimate. Your slicer's number, which includes exact top/bottom layers, supports and purge, is the reference for quoting a job.
- Open or broken meshes give wrong volumes. Repair them before measuring.
- Extrusion width, layer height and the infill pattern change the real figure.
- The sphere table above applies to compact shapes only.
Pricing a print
Material is only one part of the cost. A common approach is to add machine time, electricity, wear on the printer and nozzles, failed prints and your own time. Material cost per gram is also a good way to spot designs that waste filament: if most of the weight is skin, a higher infill barely matters, but a smaller model, fewer top layers or a thinner wall setting will.
Frequently asked questions
How many metres is a 1 kg spool?
For 1.75 mm filament about 330 metres of PLA and about 400 metres of ABS, because ABS is less dense. The calculator shows the length for your material.
Why does my slicer say more than this calculator?
Most often because of supports, a brim, a higher shell share than you entered or thicker top and bottom layers. Set the shell share closer to the slicer's result to calibrate.
Does the infill percentage mean percent of the weight?
No. It is the density of the interior pattern only. The skin is added on top.
How we calculated
The formula is mass = volume × density; the shell share for the sphere table follows from the volume of a spherical shell, 1 − (1 − t/r)³. Filament length uses the circular cross-section of the filament at its nominal diameter. The examples were calculated with the same formula as the calculator on this page.