Filament Cost Calculator

Free filament cost calculator: enter your spool price and weight to get cost per gram, material per part, machine time and a selling price at your margin.

Cost per gram—
Material cost per part—
Machine cost per part—
Total cost per part—
Material for the whole batch—
Total cost of the batch—
Price per part at your margin—
Price for the whole batch—

How the filament cost calculator works

Enter what you actually paid for the spool, the spool's net weight, and how many grams the part uses — cost per gram and material cost appear immediately. Add the print time and your printer's hourly cost and the page returns a full per-part cost, a batch total, and a selling price at your target margin. Nothing to sign up for, and no cap on how many parts you run through it.

The formula behind it

cost per gram = spool price ÷ spool weight in grams

That's the whole calculation for material — everything else on this page is that number applied to a part. The table shows what it works out to for common spool sizes, so you can sanity-check your own input:

Spool Price paid Cost per gram 50 g part 200 g part
1 kg $18 $0.018 $0.90 $3.60
1 kg $22 $0.022 $1.10 $4.40
1 kg $25 $0.025 $1.25 $5.00
1 kg $30 $0.030 $1.50 $6.00
500 g $12 $0.024 $1.20 $4.80

Note the last row: a 500 g spool at $12 looks cheaper than a 1 kg spool at $22, but it's dearer per gram. Comparing sticker prices is the most common way to lose money on filament, and it's invisible once you're pricing per part.

A worked example

An 80 g part, a $22/kg spool, a 6-hour print and a machine that costs $0.52/hr:

Line Calculation Cost
Material 80 g × $0.022/g $1.76
Machine time 6 h × $0.52/hr $3.12
Total cost material + machine $4.88
Price at 40% margin $4.88 ÷ (1 − 0.40) $8.13

Electricity is already inside that $0.52/hr. Labor and packaging are not — add them if you're quoting a customer.

Why filament is usually the smaller line

In the example above, filament is 36% of the cost and machine time is 64%. Shrink the part to 20 g at the same settings and filament drops to about 12%: the plastic halves, but the printer still runs its cycle and you still handle the part. That's why pricing from grams alone undercharges small parts and overcharges big simple ones — the input that dominates is time, not weight.

Get the machine cost right

The hourly figure is where most filament calculators stop and where most quotes go wrong. It isn't just electricity: it's depreciation (what the machine cost you, spread over the hours you'll actually run it), maintenance and power combined. The 3D printer cost estimator works it out from purchase price, lifetime hours and utilization in about a minute.

What this page leaves out

Labor and post-processing, packaging and hardware, failure rate, marketplace fees, tax and shipping. They're all real and all push the price up — the main 3D print pricing calculator handles labor, packaging, hardware, batch quantity and tax, and its fees-and-failures section shows how to fold the rest in.

Related

Frequently asked questions

How do I calculate filament cost per gram?

Divide the spool price by the spool weight in grams. A $22 spool of 1 kg is $0.022 per gram, so a 50 g part uses $1.10 of filament; a 500 g spool bought for $12 works out to $0.024 per gram even though its sticker price looks lower.

Should I enter the price per kg or the price I paid?

They're the same thing when the spool is 1 kg. For a 500 g spool, enter the amount you paid and set the spool weight to 500 — the calculator converts both to cost per gram, which is the only number that's comparable across spools.

Does this include electricity?

It's inside the machine cost per hour, not a separate line. Get that hourly figure from the printer cost estimator (purchase price ÷ lifetime hours ÷ utilization, plus maintenance and electricity) and paste it in — then the per-part total covers everything except labor and packaging.

Why does a small part seem to cost more per gram?

The cost per gram never changes with part size — what changes is everything around it. A 20 g part still occupies the printer for a print cycle and still needs handling, so material falls to about 12% of the part's total cost while machine time stays the same.

Should I add an allowance for failed prints?

Yes, if you sell prints. Divide your grams by (1 − failure rate) — at 10% failures, a 50 g sellable part consumes about 55.5 g of filament — or simply add the wasted grams as a separate line. Use your own rate from the last 20 prints rather than a rule of thumb.

What margin should I use to get a selling price?

Whatever your market supports, but understand what the number means: margin is a share of the selling price, so 40% margin is cost ÷ 0.6, while 40% markup is cost × 1.4. On a $4.88 cost that's $8.13 versus $6.83 — same words, very different prices.