MeshMath

STL weight & filament calculator

Drop an STL to see how many grams and metres of filament your print will use, and what it costs. Your file stays on your device.

Drop an STL file hereBinary or ASCII STL

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

MaterialDensity (g/cm³)1 kg of 1.75 mm ≈
PLA1.24335 m
PETG1.27327 m
ABS1.04399 m
ASA1.07388 m
TPU1.21343 m
Nylon1.14364 m

Worked example: a 60 × 40 × 30 mm box

Worked example

Solid rectangular block, PLA, 20% infill, 1.2 mm walls

Model volume60 × 40 × 30 = 72,000 mm³ (72 cm³)
Surface area2 × (60×40 + 60×30 + 40×30) = 10,800 mm²
Shell volume10,800 × 1.2 = 12,960 mm³
Infill volume(72,000 − 12,960) × 0.20 = 11,808 mm³
Plastic extruded24,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/kg30.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

Troubleshooting

SymptomLikely causeFix
Weight is 0 g or negativeMesh is open or inside-outRepair the STL (most slicers have “Fix model”) and reload
Dimensions look 25.4× too smallSTL exported in inchesChange the Units selector to Inches
Result much lower than slicerThin walls setting or big top/bottom areasRaise wall thickness to perimeters × line width
File will not loadNot 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

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

See all tools →