# Print Cost from File

> Drop a sliced file and get grams, time and a quote, for one plate or all of them.

- Page: https://3dprintkit.tools/tools/print-cost/
- Category: G-code
- Opens: .gcode, .gcode.3mf
- Cost and privacy: Free. Runs in your browser; files are never uploaded. No account.

## When you need it
Use it when you need a price, not just a weight.

- Quoting a commission, or pricing items for Etsy, a market stall or a school fair.
- Checking what a long multi-colour print on a Bambu P1S, X1 or H2D costs in filament and power.
- Working out a per-item price when one plate holds several copies.

Slicers show grams and time. This tool turns them into a full cost.

## How to use it
1. Drop the sliced .gcode or .gcode.3mf on "Drop the sliced file".
2. Under "Your prices", choose one plate or all of them in Price (only shown for files with several plates), then pick a Currency.
3. Enter a "Filament price per kg" for each filament. It starts from the filament cost saved in the slicer, or your last price, or 20.
4. Set "Printer power while printing" in watts, "Electricity price" per kWh, "Printer wear and upkeep" per hour and a "Failure allowance" in percent.
5. Add "Your time (prep, removal, packing)" in minutes and "Your hourly rate".
6. Set a Markup and the number of "Items in this print".
7. Read the Cost table and press "Copy breakdown".

## What you get
A cost table with one row per filament (type, grams and cost), Electricity with the print time, Printer wear, Failure allowance, Your time, the total Cost, the price with your markup and the price per item. Rows that come to zero are hidden. "Copy breakdown" puts the same lines, with the file name and plate, on your clipboard as plain text.

The failure allowance is a percentage of material, power and wear. The markup applies to the whole cost, your time included.

## Good to know
- Defaults are 120 W, 0.15 per kWh and a 10% failure allowance. Wear, labour and markup start at zero.
- Your settings are remembered in this browser for next time.
- Grams and time are the slicer's estimates. If a file lists no grams, they're worked out from filament length, diameter and density, and the tool says so.
- Shipping, packaging, platform fees and tax aren't included.
- For a model you haven't sliced yet, use Weight & Volume.
- The file is read in your browser and never uploaded.

## Questions

### How do I calculate the cost of a 3D print?

Add the filament (grams times price per kg), electricity (printer watts times hours times price per kWh), printer wear per hour, an allowance for failed prints and your time. 3dprintkit's Print Cost from File reads the grams and print time from your sliced .gcode or .gcode.3mf and does the sums.

### How much should I charge for a 3D print on Etsy?

Start from the full cost, not only the filament. Print Cost from File adds electricity, printer wear, a failure allowance and your time, applies your markup and gives a per-item price. It doesn't include Etsy fees, shipping or tax, so add those on top.

### How much electricity does a 3D printer use per print?

It depends on the printer, bed temperature and material; a smart plug shows the average draw over a whole print. Print Cost from File starts at 120 W and multiplies your figure by the print time in the .gcode or .gcode.3mf and your price per kWh.

### Can I price each plate of a Bambu .gcode.3mf separately?

Yes. When a .gcode.3mf has several plates, the Price menu in 3dprintkit's Print Cost from File lets you pick one plate or all plates together, and the breakdown updates for that choice.

## More in G-code

- [Pause & Colour Swap](https://3dprintkit.tools/tools/pause-colour-swap.md): Add pauses or colour changes at the layers you pick, for printers without an AMS or to drop in magnets.
- [G-code Viewer](https://3dprintkit.tools/tools/gcode-viewer.md): See every layer of a .gcode or .gcode.3mf, with grams per filament and time.
- [Spool Check](https://3dprintkit.tools/tools/spool-check.md): Weigh your spool and see whether this print will finish.
