How to calculate the cost of a 3D print
For most home prints, the cost is the plastic you use plus a little electricity. The calculator adds those up and lets you include the extras people tend to forget: failed prints, machine wear, and profit if you sell.
The formula behind the calculator
Filament cost is the weight of the print multiplied by the price per gram of your spool. A 1 kg spool that cost 20 dollars works out to 2 cents per gram, so a 50 g print uses 1 dollar of plastic. Spools are not always 1 kg: 750 g, 2 kg, and 250 g sample spools are common, which is why the calculator asks for the spool weight as well as its price.
Electricity cost is the printer’s average power draw in kilowatts, multiplied by the print time in hours, multiplied by your price per kilowatt-hour. A printer averaging 120 W for 3 hours uses 0.36 kWh. At 0.20 per kWh that is about 7 cents, a small fraction of the plastic for most prints.
Those two numbers are the subtotal. On top of them the calculator adds an optional machine-wear cost per hour, then a failure allowance as a percentage of everything so far, then an optional markup. With the default settings, a 50 g, 3-hour PLA print comes to about 1.13 dollars.
What each input does
- Spool price and spool weight set the price per kilogram.
- Filament used, in grams, sets the plastic cost.
- Print time, power draw, and electricity price set the energy cost.
- Failure allowance spreads the cost of failed prints across the good ones.
- Machine wear covers nozzles, belts, build plates, and eventually the printer itself.
- Markup turns cost into a selling price.
Where to find the filament weight
The most accurate weight comes from your slicer. After slicing, PrusaSlicer, Bambu Studio, OrcaSlicer, and Cura all show the estimated filament used in grams and meters, along with the print time. That figure already includes the walls, infill pattern, supports, brim, and skirt you chose, so it is the number to type into the calculator.
If you have not sliced the model yet, switch Weight from to 3D file estimate and drop the STL, OBJ, or 3MF file. The calculator reads it on your device, measures its solid volume and surface area, and estimates the plastic as a solid outer shell plus partially filled inside. Set the infill percentage and the wall thickness to match the profile you plan to use. With two 0.4 mm perimeters plus a little overlap, about 1.2 mm is a reasonable starting value.
The model estimate cannot see supports, brims, purge towers, or the extra material in top and bottom layers, so expect your slicer to report somewhat more. Use the estimate to compare options or quote roughly before you have the file set up, and the slicer number when it matters.
Filament densities used
Turning a volume into a weight needs the material’s density. The calculator uses values from manufacturer datasheets measured to ISO 1183: PLA 1.24 g/cm³ and PETG 1.27 g/cm³ from Prusament’s technical data sheets, ABS 1.05 g/cm³ and TPU 95A 1.20 g/cm³ from Bambu Lab’s. Blends with fillers can be quite different. Carbon-fiber, wood, glow-in-the-dark, and metal-filled filaments are often denser, so choose Other and type the density printed on your spool’s datasheet.
Density also explains why the same model weighs different amounts in different materials. A part that takes 100 g of PLA needs about 102 g of PETG and about 85 g of ABS, because ABS is lighter for the same volume. When you only know the weight from a different material, the calculator’s 3D file mode recalculates it for you.
How much electricity a 3D printer uses
Printer power draw varies with the machine, the bed temperature, the room, and whether there is an enclosure. Heating the bed at the start draws the most; once it is hot, the heaters cycle on and off and the average drops well below the power supply’s rating. A desktop printer with a 300 W power supply may average around a third of that during a PLA print, and noticeably more for ABS with a hot bed.
The only way to know your own number is to measure it. A plug-in energy meter between the printer and the wall shows kilowatt-hours used for a whole print. Divide by the print hours to get the average watts, and use that in the calculator from then on. Your price per kilowatt-hour is on your electricity bill, usually listed per kWh with taxes and standing charges shown separately.
Pricing prints you sell
When a print is for someone else, the cost is the floor, not the price. Set the markup to the percentage you want on top of the cost, and the calculator shows a price next to the total. Many sellers also set a minimum order price, because a 5 g keychain can take as much handling time as a 100 g part.
Keep an eye on the price per kilogram printed, shown under the total. It combines plastic, electricity, and extras into one figure you can compare across jobs and materials, and it is a quick way to check a quote: if it is far below what you pay per kilogram of filament, an input is probably wrong.
Your settings are saved in this browser, so the spool price, electricity rate, and printer power are still there the next time you open the page. They are not sent anywhere, and any 3D file you drop in is read on your device and not stored.
Ways to estimate 3D printing cost
Ways to estimate what a 3D print costs, compared.
| Feature | This calculator | Slicer estimate | Spreadsheet | Online print service quote |
|---|---|---|---|---|
| Filament cost | Yes, from grams or a 3D file | Yes, if you enter the spool price | Yes, if you build the formula | Included in the price |
| Electricity | Yes | Some slicers, with setup | If you add it | Included |
| Failures and wear | Yes, optional | No | If you add it | Included |
| Needs the model sliced | No, but slicer grams are more accurate | Yes | Depends on your inputs | No |
| Works on a phone | Yes | No | Somewhat | Yes |
| Best for | Quick cost and price for your own printer | Exact weight and time | Tracking many jobs | Comparing with outsourcing |
Troubleshooting
Why an estimate can differ from what a print really costs.
- The weight from the 3D file is much lower than my slicer’s
- The file estimate leaves out supports, brim, purge, and extra top and bottom layers. Raise the wall thickness or infill to match your profile, or type the slicer’s grams instead.
- The model shows no volume
- The mesh has holes or inverted faces, so its volume cannot be measured. Slice it and use the slicer’s weight, or repair the mesh first.
- The model is far too small or too big
- STL and OBJ files have no units. If the file was exported in meters or inches, change File units and the estimate updates.
- Electricity looks too high or too low
- Use the printer’s average draw, not the power supply rating, and check that the electricity price is per kWh in the same currency.
- My settings disappeared
- They are stored in this browser only. Private windows, other devices, and clearing site data start from the defaults.