How the STL weight calculator works
An STL is a list of triangles describing the outside of your model. MeshMath reads that list in your browser and computes three things: the enclosed volume, the surface area and the bounding box. From these it estimates how much plastic the printer will actually lay down.
1. Model volume (signed tetrahedron method)
Each triangle forms a tetrahedron with the origin. Summing their signed volumes gives the exact volume of a closed mesh:
V = | Σ (v1 · (v2 × v3)) / 6 |
2. Walls and infill
Slicers print solid perimeters and top/bottom skins, then fill the inside with sparse infill. We approximate the solid shell as surface area × wall thickness:
shell = min(V, area × wall)
plastic = shell + (V − shell) × infill%
3. Grams, metres and cost
grams = plastic (cm³) × density (g/cm³)
metres = plastic (mm³) ÷ (π × (d/2)²) ÷ 1000
cost = grams ÷ 1000 × price per kg
Common filament densities
| Material | Density (g/cm³) | 1 kg of 1.75 mm ≈ |
|---|---|---|
| PLA | 1.24 | 335 m |
| PETG | 1.27 | 327 m |
| ABS | 1.04 | 399 m |
| ASA | 1.07 | 388 m |
| TPU | 1.21 | 343 m |
| Nylon | 1.14 | 364 m |
Worked example: a 60 × 40 × 30 mm box
Worked example
Solid rectangular block, PLA, 20% infill, 1.2 mm walls
| Model volume | 60 × 40 × 30 = 72,000 mm³ (72 cm³) |
| Surface area | 2 × (60×40 + 60×30 + 40×30) = 10,800 mm² |
| Shell volume | 10,800 × 1.2 = 12,960 mm³ |
| Infill volume | (72,000 − 12,960) × 0.20 = 11,808 mm³ |
| Plastic extruded | 24,768 mm³ = 24.77 cm³ |
| Weight (PLA, 1.24 g/cm³) | 24.77 × 1.24 = 30.7 g |
| Filament length (1.75 mm) | 24,768 ÷ 2.405 mm² = 10.3 m |
| Cost at $20/kg | 30.7 ÷ 1000 × 20 = $0.61 |
Printed solid, the same block would weigh 72 × 1.24 = 89 g. Infill and walls cut the material by about two thirds, which is why a solid-volume estimate is almost always far too high.
Why weights differ from your slicer
The calculator treats walls, top and bottom skins as one shell of uniform thickness. Real slicers print a set number of perimeters on the sides and a separate number of solid layers on the top and bottom, so a flat, wide part (lots of top and bottom area) usually weighs a little more in the slicer than here, and a tall thin part a little less. Supports, brims, rafts and purge towers are not part of the model, so add them on top: a brim is typically 1–3 g, and a purge tower on a multi-material print can be 10–50 g.
If you want this calculator to match your slicer more closely, set the wall thickness to your perimeter count × line width (for example 3 × 0.45 = 1.35 mm) and compare one known part. Once you know your personal offset (say, slicer reads 8% higher), apply it to future estimates.
Common mistakes
- Leaving density on PLA for every spool. ABS is 16% lighter per cm³ than PLA, so the same model uses noticeably more metres of ABS for the same grams. Set the material before you read the result.
- Using inch STL files as millimetres. A model exported in inches looks 25.4× too small and weighs about 16,000× less. If dimensions look tiny, switch Units to inches.
- Trusting the number on non-watertight meshes. Holes or flipped faces make the signed-volume sum wrong. If the weight looks absurd, repair the mesh in your slicer or a tool like Meshmixer and reload.
- Forgetting supports. Heavily supported figurines can use 20–40% extra material. Budget for it when buying filament.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Weight is 0 g or negative | Mesh is open or inside-out | Repair the STL (most slicers have “Fix model”) and reload |
| Dimensions look 25.4× too small | STL exported in inches | Change the Units selector to Inches |
| Result much lower than slicer | Thin walls setting or big top/bottom areas | Raise wall thickness to perimeters × line width |
| File will not load | Not an STL (3MF, OBJ, STEP) | Export as STL from your CAD or slicer |
FAQ
How much filament will my print use?
Drop your STL into the calculator above. It measures the exact model volume, then applies your infill percentage and wall thickness to estimate the plastic actually extruded, shown in grams and metres of filament.
How accurate is this STL weight calculator?
Model volume is exact for a watertight mesh. The printed weight is an estimate, usually within 10–20% of what your slicer reports, because slicers add details like top/bottom layer counts, supports, brims and purge that depend on settings.
What density should I use for PLA, PETG and ABS?
Typical values are PLA 1.24 g/cm³, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.21 and Nylon 1.14. Check your filament spool or datasheet and edit the density field if yours differs.
Is my STL file uploaded anywhere?
No. The file is read and processed entirely in your browser with JavaScript. Nothing is sent to a server.
My model looks tiny or huge — what's wrong?
STL files have no units. Most are in millimetres, but some are exported in inches. Switch the Units selector to inches if the dimensions look 25.4× too small.
How many metres are in a 1 kg spool?
About 330 m of 1.75 mm PLA, or about 130 m of 2.85 mm PLA. It varies with density and diameter.
Recommended gear
- Overture High Speed PLA, 1 kg (1.75 mm) — Our default PLA pick: tight ±0.02 mm diameter tolerance and fast-print friendly.
- Overture High Speed PETG, 1 kg — Tougher and more heat-resistant than PLA for functional parts.
- Digital kitchen scale (0.1 g) — Weigh spools to see what is left; 0.1 g resolution is plenty.
Some links are affiliate links. MeshMath earns a commission on purchases made through Overture and Anycubic (via Awin) links, at no extra cost to you. Picks are chosen for usefulness, not paid placement.
Related tools
3D print cost calculator
Filament, electricity, printer wear, labour, failure rate and markup — what to charge.
3D print time estimator
Drop an STL and estimate print time and energy use from layer height and speed.
Online STL viewer & measure
View any STL in 3D, get exact dimensions and check it fits your printer bed.
STL scale & unit fixer
Find the exact scale % to hit a target size, or fix inch/cm exports.
Filament length ↔ weight converter
Convert metres of filament to grams and back for any material and diameter.
Lithophane generator
Turn a photo into a printable lithophane STL with a live 3D preview.