3D Printer Filament Cost Calculator
Estimate the true cost of a filament 3D print from grams used, spool price, print hours, electricity and an explicit failed-print allowance.
How the result changes
Only filament used for one attempt changes; all other inputs stay at your current values. The line illustrates the formula across the shown range. This is not a forecast of real-world outcomes.
About this calculation
A spool price alone does not describe the cost of a completed 3D print. This 3D printer filament cost calculator combines filament used, the purchase price and weight of its spool, print duration, average electrical power, a local tariff and an optional machine-time allowance. It also models the expected cost of getting one successful print when some independent full attempts fail. Use slicer estimates and your own printer measurements where available; the default values are examples, not a market price list.
Formula
C_mat = g/g_spool × price; C_power = W/1000 × h × tariff; C_success = (C_mat + C_power + machineRate × h)/(1 − f/100)
Worked example
With Filament used for one attempt: 120 g, Filament weight per spool: 1000 g, Spool purchase price: 25 currency units, Print time per attempt: 6 hours, Average printer power: 120 W, Electricity price: 0.25 currency units/kWh, Machine and upkeep allowance: 0.5 currency units/hour, Failed-attempt probability: 10 %, filament cost per attempt is 3.00 currency units.
Separate material, electricity and machine time
Filament cost is used grams divided by grams on the spool, multiplied by the spool price. Electricity is average watts divided by 1,000 to obtain kW, multiplied by hours and price per kWh. Machine and upkeep allowance is an optional rate per hour multiplied by the same print duration. Keep the money fields in one currency. If a slicer includes support, brim and purge material in its grams, do not add those grams again. For a multicolor print, calculate each filament separately if their prices differ.
Worked example for one print
A 120 g attempt from a 1,000 g spool costing 25 units consumes 3.00 units of filament value. A six-hour run at an average 120 W uses 0.72 kWh, which costs 0.18 units at 0.25 per kWh. At 0.50 units of machine allowance per hour, add 3.00 more units. A single complete attempt therefore has modeled cost 6.18. If each independent attempt has a 10% chance of failure and must be repeated in full, expected cost per success is 6.18 ÷ 0.90, about 6.87 units.
Read failure probability carefully
The failure adjustment is an expectation over repeated similar jobs, not a bill for this exact print. A failed attempt that stops halfway wastes less than a full print; a failure that damages a part may waste more. Enter zero when you want only the cost of one attempt. A 10% failure probability is not the same as adding 10% to cost: with whole attempts repeated independently, the expected number of attempts is 1/(1 − 0.10), or about 1.111. This distinction grows at higher failure rates.
Scope and price decisions
Prusa's print-pricing guidance separates material, electricity, labor and machine or upkeep costs. This tool includes the first two and a user-entered machine allowance, but it does not automatically include design time, post-processing labor, packaging, shipping, tax or profit. Those belong in a quotation after cost is understood. Printer watts vary while heating and moving, so an average measured across a representative run is more reliable than a nameplate maximum. Machine-time allowance also depends on how you treat maintenance and depreciation.
Check the input basis
A price per 1 kg spool belongs with 1,000 g of purchasable material, while a partial spool or refill may have a different price and weight. Slicer grams may differ from actual consumption due to purges and waste. Compare the calculated material portion with the amount of filament remaining after several jobs to calibrate it. A shared result URL reveals your prices and costs to its recipient; do not share a private quote unless you intend to disclose those assumptions.
Common questions
Is the output a selling price?
No. It estimates direct and selected machine costs. Labor, packaging, business overhead, taxes and profit are outside the current fields and need separate decisions before quoting a customer.
Sources and references
Inputs
- Filament used for one attempt (g)
- Filament weight per spool (g)
- Spool purchase price (currency units)
- Print time per attempt (hours)
- Average printer power (W)
- Electricity price (currency units/kWh)
- Machine and upkeep allowance (currency units/hour)
- Failed-attempt probability (%)