3D Print Filament Cost Calculator
Knowing the material cost of a 3D print is the first step to pricing your work or simply deciding whether a long print is worth starting, and this filament cost calculator makes it instant. Enter the grams of filament the print uses, a figure your slicer reports for any model, along with the price per gram of your filament, and the tool multiplies the two to give the material cost of the print. Working in price per gram is the flexible part: you find it by dividing a spool's price by its weight in grams, so a 25 dollar spool of 1,000 grams is 0.025 dollars per gram, and that single rate lets you cost any print no matter how much of the spool it consumes. The calculator covers the filament material only, which is usually the largest variable cost per print, so for a full picture you would add electricity, machine wear, the occasional failed print and your time on top. Because filament prices and the grams each model needs vary widely, both inputs are fully editable rather than fixed. The calculation is a single multiplication, shown in the formula below, with a worked example that reconciles exactly to the calculator defaults so you can confirm the result yourself.
Filament cost is weight times unit price: cost = grams used x price per gram. A 50 gram print using filament at $0.025 per gram costs $1.25 in material.
Filament cost formula
Cost = G x P
G = grams of filament used in the print
P = price per gram of filament
Price per gram = spool price / spool grams
The grams from your slicer multiplied by the price per gram gives the material cost. The price per gram comes from dividing a spool's price by its weight in grams.
Worked example
A print uses 50 grams of filament, and your filament costs 0.025 dollars per gram (a 25 dollar spool of 1,000 grams).
- Cost = grams x price per gram
- Cost = 50 x 0.025
- Cost = 1.25
The print costs 1.25 in filament. These are the calculator's default inputs, so the result above matches the widget exactly.
3D print filament cost calculator: frequently asked questions
How do I work out filament cost per print?
Multiply the grams of filament the print uses by the price per gram of your filament. A print that uses 50 grams of filament costing 0.025 dollars per gram works out to 50 x 0.025, which equals 1.25 dollars in material. Your slicer reports the grams a model needs, so you only need to supply the price per gram.
How do I find the price per gram?
Divide the spool price by the spool weight in grams. A 25 dollar spool holding 1,000 grams is 25 / 1,000, which equals 0.025 dollars per gram. Using the price per gram lets you cost any print regardless of how much of a spool it consumes, and you can update it whenever you buy filament at a different price.
Does this include electricity and wear?
No. This calculator covers only the filament material cost, which is usually the largest variable per print. A full cost would also add the electricity the printer draws, a share of nozzle and machine wear, failed prints and your time. To approximate those, add a margin on top of the material cost the calculator returns.
How can I reduce filament use?
Lowering infill density, using thinner walls where strength allows, reducing the number of perimeters and orienting the model to need less support all cut the grams a print consumes. Your slicer shows the gram estimate change as you adjust these settings, so you can see the cost effect directly before committing to a long print.
What is the filament cost formula?
Material cost equals grams used multiplied by price per gram. With a 50 gram print and filament at 0.025 dollars per gram, that is 50 x 0.025, which equals 1.25 dollars.
Official sources
- Mass and measurement standards: US National Institute of Standards and Technology (NIST). As at 25 June 2026.
Reviewed by the CalculatorHub team, edited by James Graham, 25 June 2026. See our methodology. This is general information, not financial, tax, legal or investment advice.