Drop a G-code, 3MF or STL and get the cost of the print and the price to charge, filament per colour included.
The print
Each row keeps its own price, and the last one you type is remembered for that material. The slicer's grams already include purge, flushing and the prime tower.
Printer and electricity
$0.55Labour and extras
$0.00Selling price
What is 3D Print Cost Calculator?
3D Print Cost Calculator is a free 3D printing price calculator that works out what a print costs you and what to charge for it. Instead of typing grams and hours by hand, you drop the sliced file: a .gcode from Cura, PrusaSlicer, OrcaSlicer or Simplify3D, a Prusa .bgcode, a Bambu Studio or OrcaSlicer .gcode.3mf, or an .stl model. The calculator reads the print time and the filament used for every colour, then adds electricity, printer wear, failed prints, labour, packaging, marketplace fees and your markup.
Everything happens in your browser. The file is never uploaded, there is no account, and your spool prices, power rate and markup are remembered for the next file. Drop several files at once and you get a table with a cost and a price for each print and a total for the batch, ready to download as CSV.

How to calculate the cost of a 3D print
- Drop your file on the page, or choose it. G-code and .gcode.3mf fill in the print time and the grams of every filament straight from the slicer. Press Try the sample to see a two-colour print priced first.
- Check the spool price of each filament in the table. Pick your spool size (250 g to 5 kg) and type the price you paid for it. Every row keeps its own price, so a cheap PLA Basic and a pricier PLA Matte in the same print are costed apart, and the last price you type for a material is remembered for the next file.
- Set your printer once: its average power in watts, your electricity rate, what the printer cost, how many hours it should pay itself off over, and how many prints fail.
- Add labour and extras if you sell prints: preparation time for the order, post-processing per copy, your hourly rate, and costs per copy such as packaging or magnets.
- Read the price to charge. Move the markup slider, add the marketplace fee and sales tax, and set the number of copies. Copy the quote, download it as a PDF, or share a link that carries the numbers.
The 3D print cost formula
The cost of a 3D print is the sum of five parts. The calculator shows each one as a line and as a share of the total, so you can see what really drives the price.
| Part | How it is worked out | Example (sample planter) |
|---|---|---|
| Filament | grams ÷ 1000 × spool price per kg, for every colour | 25.8 g + 4.6 g of PLA at $20/kg = $0.61 |
| Electricity | hours × watts ÷ 1000 × price per kWh | 1.77 h × 120 W at $0.16 = $0.03 |
| Printer wear | hours × printer price ÷ hours it pays off over | 1.77 h × $600 ÷ 5000 h = $0.21 |
| Failed prints | (filament + electricity + wear) × f ÷ (1 − f), for a failure rate f | $0.86 × 5 ÷ 95 = $0.045 |
| Labour and extras | minutes ÷ 60 × hourly rate, plus packaging and parts | Not counted in the example |
Added up, the sample two-colour planter costs $0.90 to print with the default settings (PLA at $20/kg, 120 W at $0.16/kWh, a $600 printer over 5,000 hours, 5% failures, no labour). With a 50% markup the price to charge is $1.35, which is a 33% margin: markup is profit on the cost, margin is profit as a share of the price. The failure line is not a flat 5%: when 5 prints in 100 fail, each good print carries the plastic and machine time of 5 ÷ 95 of a print. Labour is not reprinted, because you only finish the prints that succeed. If you sell on a marketplace, the price is raised so the fee comes out of the buyer's payment and not out of your profit: price = (cost + profit + fixed fee) ÷ (1 − fee %). Sales tax or VAT is added on top of that.
Which files it reads
- G-code (.gcode, .gco, .g) from PrusaSlicer, SuperSlicer, OrcaSlicer, Bambu Studio, Cura, Simplify3D, ideaMaker, Creality Print and others. The slicer’s own estimate of time and filament is used first; a file without it is measured move by move.
- Binary G-code (.bgcode), the default for the Prusa MK4, Core One, XL and MINI, with its embedded thumbnail.
- Bambu Studio and OrcaSlicer .gcode.3mf, the sliced plate you send to a Bambu Lab printer. Every plate becomes its own row, with the time, the grams of each AMS colour and the plate picture.
- STL and unsliced 3MF models. The calculator measures the volume and surface area of the mesh and estimates the weight from the material, the infill and the number of walls.
Cost per colour for multi-colour prints
Most 3D print cost calculators take one weight and one spool price. A multi-colour print from an AMS, an MMU or a tool changer uses several filaments with different prices, and the purge and prime tower waste is part of the cost. When you drop a multi-colour file, every filament gets its own row with the colour swatch and the name from the slicer, its grams, its spool price and its cost. Change one spool price and only that line moves.
STL weight and volume calculator
An STL has no print time or filament length, because it has not been sliced yet. For an STL the calculator measures the exact volume of the mesh, then estimates the printed weight: the walls, top and bottom count as solid plastic (surface area × wall thickness), and the inside is filled at your infill percentage. Pick the material for its density, PLA at 1.24 g/cm³ or PETG at 1.27 g/cm³ for example, and a printer speed for the time estimate. Treat the result as a quote for a model you have not sliced; slice the model and drop the G-code for exact numbers.
3D print weight calculator: grams from filament length
Slicers write filament as a length, and a few write grams too. To turn a length into grams, multiply it by the cross-section of the filament and by the density of the plastic: grams = length (mm) × π × (diameter ÷ 2)² × density (g/cm³) ÷ 1000. One metre of 1.75 mm PLA (1.24 g/cm³) weighs about 2.98 g, so a 10 m print uses about 30 g. The calculator uses the slicer's grams when the file has them, and otherwise this formula with the density of the material you pick: PLA 1.24, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.21 and nylon 1.14 g/cm³. Switch between g and oz, or mm and inches, with the units toggle above the result.
How much does it cost to 3D print?
For a hobbyist the cost of a 3D print is mostly filament: PLA costs about $15 to $25 a kilogram, so a 50 g part costs about $1 in plastic, and a typical printer uses 100 to 150 W, which adds a few cents an hour. Printer wear matters more than electricity: a $600 printer written off over 5,000 hours costs $0.12 for every hour it prints. If you sell prints, your time is usually the largest cost, which is why the calculator counts preparation once per order and post-processing for every copy.
Frequently asked questions
How do you calculate the cost of a 3D print?
Multiply the grams of filament by the spool price per gram, add electricity (hours × kW × price per kWh) and printer wear (hours × printer price ÷ lifetime hours), then add a share for failed prints. For a price to charge, add labour and extras and your markup. The calculator does this for you from the sliced file.
Can I calculate the cost from a G-code file?
Yes. Drop the .gcode and the calculator reads the print time and filament used that the slicer wrote into the file, for each extruder or colour. If a file has no such header, it adds up the extrusion moves and estimates the time from the moves.
Does it work with Bambu Lab .gcode.3mf files?
Yes. A .gcode.3mf from Bambu Studio or OrcaSlicer carries the time, the grams of every AMS filament and a picture of each plate. The calculator reads all of them and makes a row for each plate.
Is my file uploaded?
No. The file is read by your browser on your own device and never leaves it. Only your prices and settings are saved, in this browser, so you do not type them again.
How accurate is the cost?
For G-code and .gcode.3mf files the time and grams are the slicer’s own numbers, so the cost is as accurate as your prices, and the grams already include purge, flushing and the prime tower. Real printers often run a few percent off the slicer’s time. For STL files the weight is an estimate within about 10 to 20% of a sliced result, depending on the shape.
What markup should I use for 3D prints?
Sellers commonly charge two to four times the material and machine cost for small items, or add their labour at an hourly rate and then a 30 to 100% markup. Etsy takes a 6.5% transaction fee plus about 3% and a fixed amount for payment processing; enter them under Selling price so they come out of the buyer’s price, not your profit.
Can I see the layers of my file?
Yes. Press View layers to open the same file in the G-code Viewer, which shows every layer in 3D, the print time and filament per layer, and the slicer’s settings.