3D Print Cost Calculator
NEW!

3D Print Cost Calculator

Work out what a 3D print costs from its grams and print time: filament, electricity, machine time, setup fee, margin and a minimum price, in your currency.

3D Printing

Everything is calculated in your browser. Nothing is sent anywhere.

The print

Examples
g
Print time

Don't know the grams or the time? Slice your model in the STL slicer and the cost appears under its summary.

Your rates and the price

Your rates are saved in this browser and shared with the STL slicer.

Cost breakdown
ItemAmount
Material—
Electricity—
Machine time—
Setup fee—
Subtotal—
Margin—
Total—

Each line is rounded to the cent on its own and the total comes from the unrounded values, so adding the lines by hand can be a cent off.

Rates
EUR/kg
EUR/kWh
W
EUR/h
EUR
%
EUR

Keywords

3d print cost calculator3d printing cost calculatorfilament cost calculatorhow much does a 3d print cost3d print price calculatorpla cost per gram3d printer electricity cost

Need something else?

How to use

1

Enter how much filament the print uses, in grams, and how long it takes, in hours and minutes. Both figures are in your slicer's summary; if you have not sliced the model yet, the online STL slicer on this site gives you both.

2

Pick your currency and fill in your rates: what you paid per kilogram of filament, your electricity price per kWh and your printer's average power in watts. The starting values suit a hobbyist printing PLA.

3

If you sell prints, add a machine rate per hour, a setup fee per job, a margin percentage and a minimum price. Leave any of them at 0 to skip it.

4

Read the breakdown: material, electricity, machine time, setup fee, subtotal, margin and total. Change any rate and the price updates at once.

5

Open Examples to try typical jobs, from an 8 g keychain to a 900 g cosplay helmet. Your rates are remembered in this browser for next time, and the STL slicer uses the same ones.

Features

Every line of the price, not just a total

Material, electricity, machine time and setup are shown separately, then the subtotal, the margin and the total. You can see at a glance whether a job is expensive because of plastic or because of hours on the printer.

Business rates when you need them

A machine rate per hour covers wear, maintenance and the printer's purchase price; a setup fee covers preparing the file, clearing the bed and post-processing; a margin and a minimum price stop small jobs from being printed at a loss.

Any common currency

Euro, US dollar, pound sterling, Canadian and Australian dollar, Swiss franc and several Latin American currencies. The amounts are formatted for your language, and nothing is converted: you enter prices in the currency you pay in.

Same numbers as the slicer

The price comes from the same function the STL slicer's cost panel uses, and the two pages share your saved rates. Slice a model there and the cost appears under the summary; come here when you already know the grams and the time.

Examples to start from

Five sample jobs load realistic grams and print times so you can see how the price scales from a quick 12-minute knob to a print that runs for a day and a half.

Why Choose This Tool?

Nothing leaves your browser

The calculation runs on your own device. Your rates, your prices and your margins are not sent anywhere, and they are only saved in your browser's local storage so you do not have to type them again. There is no account and no tracking of what you price.

The formula is on the page

Many cost calculators give a number without saying how they got it. Here the exact formula is written out below, with a worked example you can check with a pocket calculator, so you can defend a quote to a customer or spot a rate you entered wrong.

Built for people who sell prints

A filament-only calculator is fine for a hobby, but it underprices every job you sell. Machine time, setup, margin and a minimum price turn a material cost into a price that pays for the printer, your time and the prints that fail.

Fast to re-price

Change the filament price after a new spool, or your electricity tariff after a new bill, and every figure updates at once. You do not need to reslice anything: the grams and the time stay the same, only the rates change.

How to calculate the cost of a 3D print

The cost of an FDM print comes from a small number of inputs: how much plastic it uses, how long the printer runs, what you pay for filament and electricity, and, if you sell prints, what you charge for the machine and your own time. This calculator adds them up with a fixed formula. Below is exactly what it does, where each input comes from and how to choose your rates.

The formula

First the print time is turned into hours: hours = seconds ÷ 3,600. Then four cost lines are calculated:

  • Material = grams ÷ 1,000 × filament price per kg
  • Electricity = printer watts × hours ÷ 1,000 × electricity price per kWh
  • Machine time = hours × machine rate per hour
  • Setup = setup fee (a fixed amount per job)

These four add up to the subtotal. The margin is the subtotal × margin % ÷ 100, and the total is the subtotal plus the margin, or the minimum price if that is higher. Each line and the total are rounded to two decimals only at the end. The total is calculated from the unrounded values, so if you add up the rounded lines by hand you can occasionally be one cent away from it; the total is the more accurate figure.

A worked example

Take a phone stand that uses 60 g of PLA and prints in 4 hours 10 minutes (15,000 seconds, or 4.1667 hours). The rates are 20 per kg of filament, 0.25 per kWh, a printer drawing 150 W on average, a machine rate of 1.50 per hour, a setup fee of 2, a margin of 30 % and a minimum price of 5.

  • Material: 60 ÷ 1,000 × 20 = 1.20
  • Electricity: 150 × 4.1667 ÷ 1,000 = 0.625 kWh, × 0.25 = 0.15625, shown as 0.16
  • Machine time: 4.1667 × 1.50 = 6.25
  • Setup: 2.00
  • Subtotal: 1.20 + 0.15625 + 6.25 + 2 = 9.60625, shown as 9.61
  • Margin: 9.60625 × 30 ÷ 100 = 2.881875, shown as 2.88
  • Total: 9.60625 + 2.881875 = 12.488125, which is above the minimum of 5, so the price is 12.49

Notice what dominates: the plastic costs 1.20 and the electricity 16 cents, but the machine time is 6.25. For most small and medium prints, time is worth far more than material, which is why a calculator that only counts grams underprices any job you sell.

Where the grams and the print time come from

Your slicer reports both after it slices the model. It knows the length of filament every line pushes, and converts that length to weight with the material's density. A metre of 1.75 mm filament has a cross-section of π × 0.875² ≈ 2.405 mm², so it holds about 2.4 cm³ of plastic; at the 1.24 g/cm³ the STL slicer on this site uses for PLA, that is roughly 3 grams per metre. PLA's density is usually given as about 1.21 to 1.43 g/cm³ depending on its grade, and PETG is slightly denser, so the same length of a different material can weigh a little more or less.

The print time is an estimate. Slicers time each move with the printer's acceleration settings, but real firmware blends moves together and the printer spends a few minutes heating before the first layer, so the actual time can differ. If you sell prints regularly, compare a few estimates with the real times on your printer and adjust your machine rate if your printer is consistently slower than the estimate.

If you have the model but not the numbers, slice it in the online STL slicer: its cost panel prices the result with the same formula and the same saved rates as this page.

Choosing your rates

Filament price per kg. Divide what you paid for a spool by its net weight in kilograms. A 1 kg spool at 20 is 20 per kg; a 750 g spool at 18 is 24 per kg. Include shipping if you want the true cost. Some prints also waste plastic on a purge line, a skirt or failed starts; if you want to cover that, raise the price per kg slightly rather than inflating the grams.

Electricity price per kWh. Use the all-in price per kWh from your bill, including taxes and network charges. For scale, Eurostat puts the EU average household price in the second half of 2025 at about €0.29 per kWh, ranging from about €0.11 in Hungary to about €0.40 in Ireland, and the US Energy Information Administration reported an average US residential price of 18.31 cents per kWh for July 2026.

Printer power. This is the average draw while printing, not the power supply's rating. The heated bed pulls a lot while warming up and much less once it holds temperature. Prusa reports an average of about 80 W for its MK-series printers printing PLA at room temperature and about 120 W for ABS. Large-bed printers draw more. The default here, 150 W, is a deliberately generous figure; the most accurate value comes from a plug-in energy meter over a whole print. A kilowatt-hour is one kilowatt sustained for one hour, so a 150 W printer running for 10 hours uses 1.5 kWh.

Machine rate per hour. This covers the printer itself: its purchase price spread over the hours you expect it to print, plus nozzles, belts, build plates and repairs. As an illustration, a printer that cost 600 and that you expect to run for 3,000 hours before it needs replacing costs 0.20 per hour before maintenance. Hobbyists printing for themselves usually leave this at 0.

Setup fee. A fixed amount per job for the time around the print: checking the file, slicing, starting the printer, removing the part and cleaning it up. Removing supports or sanding a part can take longer than the print itself, and this is where that time belongs.

Margin and minimum price. The margin here is a percentage added on top of cost, which accountants call a markup. It is not the same as a profit margin measured on the selling price: a 30 % markup on a cost of 10 gives a price of 13, and the profit of 3 is 23 % of that price. If you think in profit margin, a markup of m ÷ (1 − m) gives it, so a 25 % profit margin needs a 33.3 % markup. The minimum price is a floor: a 3 g replacement knob costs pennies in material, but it still takes your time to quote, print and hand over.

Three ways people use it

  • A hobbyist keeps the defaults and sets only the filament and electricity price, to see what a project really costs. Most small prints come out well under the price of a coffee.
  • A maker selling on a marketplace adds a machine rate, a setup fee and a 30 to 50 % margin, then checks each listing: a design that takes 14 hours may need a higher price or a faster print profile to be worth selling.
  • A school or makerspace charges members for material and electricity only, with a small minimum so that tiny test prints still cover the paperwork.

What this calculator does not include

It prices one print on one FDM printer. It does not add shipping or packaging, taxes such as VAT or sales tax, or payment and marketplace fees, which vary by country and platform. It does not model failed prints automatically; if one print in ten fails, a simple way to cover it is to raise your margin by about 10 %. Resin printing is priced differently (by millilitres of resin, plus wash and cure consumables), so this formula does not fit it.

Cost lineWhat drives itTypical share on a small print
MaterialGrams × price per kgSmall
ElectricityWatts × hours × price per kWhVery small
Machine timeHours × machine rateOften the largest when a rate is set
SetupFixed per jobLarge on short jobs

Frequently Asked Questions

How is the cost of a 3D print calculated?

Material is grams ÷ 1,000 × the filament price per kg. Electricity is the printer's watts × hours ÷ 1,000 × the price per kWh. Machine time is hours × your machine rate, and the setup fee is added once per job. Those make the subtotal; the margin is a percentage of the subtotal, and the total is subtotal plus margin, or your minimum price if that is higher.

How much does a 3D print cost in electricity?

Usually very little. A printer averaging 150 W for 4 hours uses 0.6 kWh, which at 0.25 per kWh is 15 cents. Even a 38-hour print at the same rates stays under 1.50. Material and, when you sell prints, machine time matter far more.

Where do I find the grams and the print time?

In your slicer's summary after slicing: every slicer reports the filament used, in metres and grams, and the estimated print time. If you have not sliced the model yet, the <a href="/en/3d-printing/stl-slicer/">online STL slicer</a> on this site gives you both and shows the cost under its summary.

What is a good margin for selling 3D prints?

There is no single right number; it depends on your market, your time and how many prints fail. Many sellers add a markup of 30 to 100 % on cost and set a minimum price for small jobs. Note that the margin here is added on top of cost (a markup): a 50 % markup is a profit margin of about 33 % of the selling price.

Why doesn't the sum of the lines match the total exactly?

Each line and the total are rounded to the cent independently, and the total is calculated from the unrounded values. Adding up the rounded lines can therefore differ from the total by a cent. The total is the more accurate figure.

Are my rates saved or uploaded?

They are saved only in your browser's local storage, so they are there next time you open this page or the STL slicer on the same device. Nothing is uploaded. In a private window or with site data blocked, the calculator still works; it just starts from the default rates each time.

Does it convert between currencies?

No. You choose the currency you pay in and enter every price in it; the currency only changes how the amounts are formatted. If you buy filament in one currency and sell in another, convert the filament price before you enter it.

Does it work for resin printers?

Not well. The formula is built for FDM printing, where the material is sold by weight. Resin is priced by volume and needs extra consumables such as isopropyl alcohol and gloves, which this calculator does not model.

Learn more