Filament Cost Calculator
This filament cost calculator works out the plastic cost of a print: cost per gram, cost per meter and the filament cost for the grams or length you used. It does not add electricity, labour or markup. For a full job price, use the 3D print cost calculator.
The starting numbers in the form are examples. Replace them with the price and net weight of the spool you actually bought.
Free filament cost calculator
The starting numbers below are examples. Replace the spool price and weight with the spool you actually bought. Typical material densities sit under the length fields as starting values. You can type a density from your filament data sheet when you have one.

How do you use this filament cost calculator?
Three steps cover most jobs. The form already holds an example 100 g print from a 25, 1000 g spool so you can check the math.
- Enter the spool price and net weight. Type what you paid for the spool and the net filament weight, for example 1000 g. Use the filament weight, not the boxed weight.
- Enter usage as grams or as length. If you have grams from Orca Slicer, type them directly. If you only have length, type the meters, the filament diameter and a density.
- Read the three results. The calculator returns cost per gram, cost per meter and the filament cost of the print.
What formula does this calculator use?
Cost per gram = spool price / net spool weight in grams.
Filament cost of the print = grams used × cost per gram.
When you enter length instead of grams, the calculator first converts length to grams:
Grams = π × (diameter in mm / 2)² × length in meters × density in g/cm³.
Cost per meter uses the same conversion for one meter, then multiplies by cost per gram. You still need a diameter and a density for the per-meter figure, even when you entered grams for the print itself. The calculator uses 1.75 mm and 1.24 g/cm³ for that line if you leave those fields on their example values.
Worked example
A 25 spool holds 1000 g of filament, and the print uses 100 g. Those prices are examples.
- Cost per gram: 25 / 1000 = 0.0250
- Cost per kilogram: 0.0250 × 1000 = 25.00
- Filament cost of the print: 100 × 0.0250 = 2.50
For cost per meter, take 1.75 mm filament at 1.24 g/cm³ (the typical PLA starting value):
- Grams per meter: π × 0.875² × 1 × 1.24 ≈ 2.983 g/m
- Cost per meter: 0.0250 × 2.983 ≈ 0.0746
A 33.55 m length at those same diameter and density values equals about 100.06 g, so the print cost still displays as 2.50 if you switch the form to length mode.
To keep Orca Slicer’s own statistic in line with this result, open Orca Slicer filament settings and set Price to the same cost per kilogram, with Density on the same value you use here. After you slice, copy the grams from the slice result back into this calculator.
Typical filament densities
These typical densities appear as starting values in many slicer profiles. They are not a measurement of every brand or blend. Type a data-sheet density when you have one.
| Material | Typical density (g/cm³) |
|---|---|
| PLA | 1.24 |
| PETG | 1.27 |
| ABS | 1.04 |
| ASA | 1.07 |
| TPU | 1.20 |
| Nylon | 1.14 |
Frequently asked questions
How do I calculate filament cost per gram?
Divide the spool price by the net spool weight in grams. A 25 spool with 1000 g of filament costs 0.025 per gram. Multiply that figure by the grams in the print to get the filament cost of the job.
How do I convert filament length to weight?
Weight in grams = π × (diameter in mm / 2)² × length in meters × density in g/cm³. Choose a typical density from the table on this page, or type the density from your filament data sheet.
What density should I use for PLA, PETG, ABS, ASA, TPU or Nylon?
Use a typical starting value when you do not have a brand figure: PLA 1.24, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.20 and Nylon 1.14 g/cm³. Brands and blends can differ, so a data sheet value is better when you have one.
Where do I get the grams for this calculator in Orca Slicer?
Slice the plate, then read the filament usage in grams from the slice result. You can also enter a length if that is what you have. To align Orca’s own cost statistic, set Price and Density in Orca Slicer filament settings to the same figures you use here.
How is this different from the 3D print cost calculator?
This filament cost calculator prices only the plastic. The 3D print cost calculator adds electricity, printer depreciation, a failure rate, optional labour and an optional markup so you can price a whole job.
Get the grams from a slice, then price the plastic
Slice the plate in Orca Slicer, copy the filament usage into this calculator, and use the 3D print cost calculator when you need electricity, labour or a selling price as well.
