
3D Printing Quantity Calculator Formula
Learn how to estimate 3D printing filament volume, weight, length, and material cost from a model volume and print assumptions.
This calculation provides an early estimate of filament needed before slicing a model. It adjusts the solid model volume for estimated material fill and waste, then uses density, filament diameter, and price to estimate grams, metres, and material-only cost.
- 100% Free
- No Sign-Up Required
- Private & Secure
- Mobile Friendly
Estimated filament weight
Where:
Start with the solid model volume, apply the estimated material fill, add waste, and multiply the resulting material volume by filament density.
Variables Explained
| Variable | What It Means | Unit |
|---|---|---|
| W - Estimated filament weight | Estimated mass of filament required, including the waste allowance. | g |
| V - Model solid volume | Volume of the model if it were completely solid. | cm³ |
| F - Estimated material fill | Percentage used as a simplified estimate for infill, walls, top and bottom layers, and supports. | percent |
| A - Waste allowance | Extra percentage of material allowed for purging, brims, supports, setup losses, and similar waste. | percent |
| D - Filament density | Mass per unit volume of the selected filament material. | g/cm³ |
| d - Filament diameter | Nominal diameter of the round filament. | mm |
| P - Filament price per kilogram | Purchase price of one kilogram of filament. | currency |
Step-by-Step Calculation
Estimate base material volume
Apply the estimated material fill percentage to the fully solid model volume.
baseMaterialVolume = modelVolume * (materialFill / 100)
Add the waste allowance
Increase the base volume to account for expected extra material.
totalMaterialVolume = baseMaterialVolume * (1 + wasteAllowance / 100)
Convert volume to weight
Multiply material volume by density to calculate estimated filament mass in grams.
filamentWeight = totalMaterialVolume * materialDensity
Calculate filament cross-sectional area
Treat the filament as a circular strand to find its area in square millimetres.
filamentCrossSection = 3.14159265 * pow(filamentDiameter / 2, 2)
Convert material volume to filament length
Convert cubic centimetres to cubic millimetres, divide by strand area, then convert millimetres to metres.
filamentLength = (totalMaterialVolume * 1000) / filamentCrossSection / 1000
Calculate material cost
Convert grams to kilograms and multiply by the entered price per kilogram.
materialCost = (filamentWeight / 1000) * filamentPrice
Example: small PLA print estimate
Base material volume
100 × (20 / 100)
20.0 cm³
Total material volume
20.0 × (1 + 10 / 100)
22.0 cm³
Filament weight
22.0 × 1.24
27.3 g
Filament cross-sectional area
3.14159265 × pow(1.75 / 2, 2)
2.405 mm²
Filament length
(22.0 × 1000) / 2.405 / 1000
9.1 m
Material cost
(27.3 / 1000) × 25.00
$0.68
Final Result
The print is estimated to require 27.3 g, or about 9.1 m, of 1.75 mm PLA at an estimated material cost of $0.68.
Assumptions
- ✓The entered model volume represents a fully solid version of the part.
- ✓Estimated material fill is a simplified proxy for infill, shells, top and bottom layers, and supports.
- ✓Filament density is uniform and matches the selected material.
- ✓The filament has a consistent circular diameter.
- ✓The price per kilogram represents the cost of usable filament.
Limitations
- !A slicer uses exact toolpaths and can produce a materially different estimate.
- !Wall count, layer height, infill pattern, support geometry, and seam settings are not calculated separately.
- !Actual waste can vary with purging, priming, calibration, failed starts, and printer setup.
- !The cost excludes electricity, printer depreciation, labour, shipping, and failed prints.
Common Mistakes to Avoid
Entering a volume in mm³ as though it were cm³; divide mm³ by 1,000 before entering it.
Using infill percentage alone without allowing for walls, top layers, supports, or a waste allowance.
Using a PLA density value for a different material without checking its product data.
Entering spool price rather than price per kilogram.
Expecting filament diameter to change estimated weight; it changes length, not mass for the same volume and density.
Related Formulas
Frequently Asked Questions
How is 3D print filament weight calculated?
The calculator multiplies solid model volume by estimated material fill and waste allowance, then multiplies that volume by filament density.
How do you calculate filament length from volume?
The material volume is divided by the circular cross-sectional area of the filament. A larger diameter produces a shorter required length for the same volume.
Does infill percentage equal material fill?
Not exactly. Infill does not include shells, solid layers, supports, or purge material, so material fill should be treated as a broader planning estimate.
Why is density needed for a filament estimate?
Density converts the estimated material volume into grams. Different filament materials can have different densities.
Does changing from 1.75 mm to 2.85 mm filament change the weight needed?
No. With the same material volume and density, weight stays the same, while the estimated filament length becomes shorter for thicker filament.
Ready to calculate your result?
Use the calculator to get instant results with your own inputs.