3D print cost calculator
A 3D print costs its weight in filament plus the electricity the printer uses while it runs. With the US defaults, a 50 g PLA part that prints in 3 hours costs about USD 1.06.
Last updated 22 November 2026.
Everything here runs in your browser. If you drop STL files, your browser reads them on your device and nothing is uploaded. The calculator remembers your last numbers on this device, so you only type your filament and electricity prices once.
How the cost of 3D printing is worked out
The cost of a print is the filament it uses plus the electricity it draws. Add printer wear and failed prints if you want a fuller number, and a markup if you sell prints.
| Part of the cost | Formula |
|---|---|
| Filament | part weight (g) × spool price ÷ spool weight (g) |
| Electricity | printer power (W) ÷ 1000 × print time (h) × price per kWh |
| Printer wear | print time (h) × wear cost per hour |
| Failed prints | (filament + electricity + wear) × failure rate ÷ (1 − failure rate) |
| Price to charge | cost per print × (1 + markup) |
Cost per gram is the cost per print divided by the part weight.
To use it as a filament cost calculator, set printer power to 0 and leave the extras at 0. The total is then the filament alone. It also works as a filament calculator for length: under the part weight it shows how many metres of 1.75 mm or 2.85 mm filament that weight is, from the material's density.
A worked example
A 50 g PLA part that prints in 3 hours, with a USD 20 spool of 1 kg, a printer drawing 120 W and electricity at USD 0.18 per kWh:
- Filament: 50 g × USD 20 ÷ 1000 g = USD 1.00
- Electricity: 120 W ÷ 1000 × 3 h = 0.36 kWh, and 0.36 kWh × USD 0.18 = USD 0.065
- Cost per print: USD 1.065, about USD 1.06, or USD 0.021 per gram
At these prices filament is about 94% of the cost. Electricity counts for more on long prints of light parts, or where power is expensive.
Why failed prints use that formula
If 1 print in 10 fails, you pay for 10 prints to get 9 good ones. Each good print carries one ninth of a wasted print, which is 11% on top, not 10%. The calculator counts a failed print as a whole one. Prints that fail early waste less, so this errs on the high side.
Where to find each number
Your slicer, the spool label and your electricity bill have every number the calculator needs.
- Part weight and print time. Your slicer shows both after you slice the model. These are the most accurate numbers you can use.
- Spool price and weight. The spool weight is the filament only, not the reel. The label or the shop page gives it. If you know a price per kg, leave the weight at 1000 g and type that price.
- Printer power. The 120 W default is an assumed average for a desktop printer. A plug-in power meter between the wall and the printer gives the real figure over a whole print.
- Electricity price. Your bill shows the price per kWh.
Default prices by currency
When you pick a currency, the calculator fills in a typical spool and electricity price for it. A first visit picks the currency from your time zone. Prices you've typed stay as they are, and nothing is converted between currencies.
| Currency | 1 kg spool of PLA | Electricity per kWh | Electricity source |
|---|---|---|---|
| USD | 20 | 0.18 | US residential average, EIA, 2026 |
| EUR | 20 | 0.28 | EU household average, Eurostat, first half of 2026 |
| GBP | 15 | 0.26 | Ofgem price cap unit rate, October to December 2026 |
| INR | 1,200 | 7 | Typical state tariff (₹6 to ₹8; each state sets its own) |
| CAD | 23 | 0.15 | Canada Energy Regulator estimate, 2026 (8.5 to 18.7 cents by province) |
| AUD | 30 | 0.33 | AER default market offer, 2026 to 2027 (26 to 44 cents by state) |
Spool prices are rounded from shop prices for common brands such as eSun and Bambu Lab in November 2026. Your own spool and bill will differ, so type yours in.
Estimating weight from STL files
The calculator can estimate the weight of one part or a whole set from STL files when you have no slicer to hand. For each file it measures the model's volume and surface area, treats the outer shell (walls plus top and bottom layers) as solid, fills the rest at your infill percentage, and multiplies by the material's density. You can change the infill and shell thickness, and set the file units to inches if the models were saved that way.
You can drop or pick several files at once and add more later. Each file gets a row with its size and estimated weight, a quantity and a remove button. The calculator multiplies each part's weight by its quantity and adds them up. The total then covers the whole set, and the average per part is shown under it. A file that can't be read is listed with the reason, and the other files are still added.
A 3D preview shows all the parts side by side. Pick a file name in the list to see just that part, and pick it again to go back to all of them. The files and quantities aren't saved when you leave the page; your typed prices are.
The densities it uses are typical values for each plastic. Brands differ a little.
| Material | Density (g/cm³) |
|---|---|
| PLA | 1.24 |
| PETG | 1.27 |
| ABS | 1.04 |
| ASA | 1.07 |
| TPU | 1.21 |
This is a rough estimate. Your slicer knows the real wall count, infill pattern, supports and brim, so its weight is the one to trust. Print time depends on speeds, acceleration and travel moves, which an STL doesn't contain, so the calculator asks you for the time instead of guessing it. For a set, type the time your slicer gives for everything you print together.
Need a part changed or made from scratch? AdderCAD designs it from a description. There are more free tools for 3D printing on this site.