Home » 3D Printing » 3D Filament Cost Calculator

3D Filament Cost Calculator

Estimate filament grams and print material cost from spool price and net weight, print length, diameter, and material density. Filament volume is a cylinder (π × radius² × length); density gives grams, then price per gram gives cost. This free, no-signup calculator runs in your browser and does not upload your inputs.

3D Printing Updated August 2026 3 min read

Enter Print and Spool Details

g
$
m
mm
g/cm³

How the 3D Filament Cost Calculator Works

This calculator determines the cost of a 3D print by first figuring out the price per gram of your filament. It does this by dividing the total spool cost by its weight. Next, it calculates the volume of the filament required for your print. Using the filament diameter and the print length from your slicer, it calculates the volume of that cylindrical length of plastic.

With the volume known, it then uses the filament's density (g/cm³) to convert that volume into a precise weight in grams. Finally, it multiplies the print's weight by the cost per gram to give you an accurate material cost for your specific print. This method is more accurate than just using length, as it accounts for differences in filament material densities.

What This Calculator Calculates

The calculator estimates the material cost, weight, and length of filament used for a single 3D print. It converts the filament length from your slicer into a weight using the filament's diameter and density, then calculates the cost based on your spool's price per gram. The result is a material cost estimate — it does not include electricity, printer wear, or post-processing.

Input Guide

Spool Weight
The total weight of the filament on the spool, in grams. This is printed on the spool packaging. A standard spool is 1,000 g (1 kg).
Spool Cost
The total price you paid for the spool, in your local currency. The calculator divides this by the spool weight to get the cost per gram.
Print Length
The estimated filament length your slicer reports for the print, in meters. This is the total length of filament the printer will use, including skirts and brims. The same number drives the 3D print time calculator, so you can price and schedule the same job from one figure.
Filament Diameter
The diameter of your filament, in millimeters. The two common sizes are 1.75 mm and 2.85 mm (also called 3 mm). Using the wrong diameter will give incorrect volume and weight results.
Filament Density
The mass per unit volume of the filament material, in g/cm³. Common values: PLA ≈ 1.24, ABS ≈ 1.04, PETG ≈ 1.27, TPU ≈ 1.21. Use the value from your filament manufacturer for the most accurate result.

Interpreting Your Results

The main result shows the estimated material cost of your print, in your local currency. The supporting figures show the filament weight in grams and the cost per gram of your spool. If your cost seems high, check that you entered the correct filament diameter — using 2.85 mm instead of 1.75 mm will overcount the weight by about 2.6×.

How It’s Calculated

The core formulas used for the calculation are:

Cost per Gram = Spool Cost / Spool Weight

Filament Volume (cm³) = π × (Diameter / 20)² × (Print Length × 100)

Print Weight (g) = Filament Volume × Density

Print Cost = Print Weight × Cost per Gram

Worked Example

Let's say you have the following spool and print information:

  • Spool Weight: 1000 g
  • Spool Cost: $22.50
  • Print Length: 32 meters (from your slicer)
  • Filament Diameter: 1.75 mm
  • Filament Density (PLA): 1.24 g/cm³
  1. Calculate cost per gram: $22.50 / 1000 g = $0.0225/g
  2. Calculate filament volume: π × (1.75mm / 20)² × (32m × 100) ≈ 77.0 cm³
  3. Calculate print weight: 77.0 cm³ × 1.24 g/cm³ = 95.48 g
  4. Calculate final print cost: 95.48 g × $0.0225/g = $2.15

The calculator would estimate the print to cost $2.15 in materials.

Filament Price Per Gram: How to Compare Brands and Bulk

Cost per gram is the only number that makes two different products comparable, and it is the figure behind every "PLA price per gram" question. The calculator derives it by dividing the spool price by the net filament weight on that spool, then applies it to the weight your print actually consumes. Using the same 95.44 g print as above, a 1,000 g spool prices out like this:

Filament price per gram and the cost of a 95.44 g print
Spool price (1,000 g)Price per kgCost per gramCost of a 95.44 g print
$15.00$15.00/kg$0.0150/g$1.43
$22.50$22.50/kg$0.0225/g$2.15
$30.00$30.00/kg$0.0300/g$2.86
$40.00$40.00/kg$0.0400/g$3.82

Two practical rules follow from that table. First, a spool price is meaningless without its net weight: a "2 kg" spool that is really 1,000 g of filament on a heavy plastic holder is twice the price per gram of the label suggests. Enter the net filament weight, not the packaged weight — the filament spool weight calculator is the tool for establishing that figure when the packaging is unclear. Second, cost per gram is what scales: because the calculator multiplies grams by cost per gram, a 32 m print moves from $1.43 to $3.82 purely on which spool you buy. Bulk spools almost always win on this measure, and a premium branded PLA only earns its price when the print would fail without it.

Practical Recommendations

  • Track cost per gram across spools — compare the cost per gram of different brands and materials to find the best value for your projects.
  • Use the manufacturer's density — if your filament packaging lists a specific density, use that instead of the generic PLA/ABS values for a more accurate cost.
  • Account for failed prints — add 10–20% to your calculated cost to account for failed prints, support material, and calibration waste.
  • Batch similar prints — printing multiple copies of the same model in one session reduces per-unit setup time and waste.

Common Mistakes

  • Using the wrong filament diameter — entering 2.85 mm instead of 1.75 mm will overcount the weight by about 2.6×, since volume scales with the square of the radius.
  • Using a generic density instead of the manufacturer's value — density varies by brand and formulation. A 5% error in density means a 5% error in cost.
  • Not including support material in the print length — your slicer's length estimate should include supports, skirts, and brims. If you manually enter a shorter length, the cost will be underestimated.
  • Forgetting to account for failed prints — the calculator only estimates the cost of successful prints. Factor in a failure rate for realistic budgeting.
  • Using spool cost without subtracting remaining filament — if your spool is partially used, the cost per gram is still based on the original spool price, not the remaining amount.

Why Small Diameter Errors Become Large Weight Errors

The calculator treats a filament path as a solid cylinder. Its cross-sectional area is πr², so a diameter error is squared before it reaches mass or price. If 32 m of “1.75 mm” filament actually measures 1.80 mm, the same length occupies 81.43 cm³ rather than 76.97 cm³. With PLA at 1.24 g/cm³, that is 100.97 g instead of 95.44 g—a 5.8% increase, or about $2.27 instead of $2.15 at $0.0225/g. The 0.05 mm diameter difference is therefore not harmless rounding when quoting or planning a large batch.

Measure the value that changes the answer. Slicer filament-diameter settings are often nominal. Ovality, coextrusion, moisture-sensitive nylon, and manufacturer-specific extrusion tolerances can shift the effective volume; an empty-spool mass cannot detect those changes. When a small diameter error matters, weigh a known extruded length on a calibrated balance and compare it with the slicer's mass estimate. That empirical check also reveals flow or pressure bias that a diameter measurement alone cannot.

Cost depends on the accounting question as well as the physics. Dividing the original purchase price by the full filament weight gives the historical cost of the material you bought. For the cost of replacing the material still on a partly used spool, use the current purchase price per gram of an equivalent new spool instead. The page cannot separate the plastic holder, net filament mass, or remaining filament, so it will not invent a residual-cost adjustment; enter the net filament weight and the price relevant to your decision, and report which convention you used.

Assumptions and Limitations

This calculator assumes the print length from your slicer is accurate and includes all extruded material (skirts, brims, supports). It does not account for electricity costs, printer wear, or post-processing materials (sanding, painting, solvents). The density is a user-provided value; the calculator does not verify it against the actual material. The cost per gram is based on the full spool price, not the remaining filament on a partially used spool.

When to Use Caution

Do not rely on this calculator for pricing commercial prints — add labor, overhead, and profit margins. For multi-material prints (dual extrusion), calculate each material separately. If your spool is partially used, the cost per gram is still based on the original spool price, which may overstate the actual cost of the remaining filament.

Common Mistakes When Estimating Filament Cost

Filament cost estimation seems simple, but these errors can throw off your budget:

  • Using the wrong filament diameter: 2.85 mm filament has about 2.6× the volume of 1.75 mm for the same length. Using the wrong diameter in the calculator will give a wildly inaccurate weight and cost.
  • Ignoring support material: If your print uses a different material for supports (e.g., PVA with PLA), you need to account for that separately.
  • Forgetting failed prints: Not every print succeeds. Factor in a 10-20% buffer for failed attempts, especially when learning.
  • Using length instead of weight: Filament is sold by weight (grams or kilograms), not length. Always convert to weight for accurate cost estimation.
  • Not accounting for filament moisture: Nylon, PETG, and TPU absorb moisture from the air, which adds weight but reduces print quality. Store filament in dry boxes.

Professional Tips

  • Buy filament in bulk (1 kg spools or larger) to reduce cost per gram.
  • Use a filament dryer for hygroscopic materials (nylon, PVA, TPU) to maintain consistent print quality.
  • Keep a log of filament usage per print to improve your estimates over time.
  • Consider the cost of electricity and printer wear for a true "cost per print" — material is only part of the equation.
  • Leftover filament from failed prints can often be reused. Store short ends in sealed bags with desiccant.

Frequently Asked Questions

Where should I read the total filament length for this calculator?

Read the total filament used from the same sliced model and profile in Cura, PrusaSlicer, Bambu Studio, or another slicer. It normally includes extrusion for perimeters, top/bottom layers, infill, supports, brim, skirt or raft, and any purge the slicer models. For example, 32 m of 1.75-mm PLA at 1.24 g/cm³ is 76.97 cm³ and 95.44 g. Do not reuse the length from different layer heights or a material change; the tool performs no G-code simulation and does not know which features that number contains.

Why does filament density change the calculated weight?

Density is mass per unit volume, so the same filament length contains a different mass in each polymer. The 32-m example occupies 76.97 cm³: at PLA’s typical 1.24 g/cm³ it weighs 95.44 g, but at ABS’s 1.04 g/cm³ it weighs 80.05 g—about 19% less. A 5% density error therefore changes mass and material cost by 5%. Prefer the manufacturer’s value; generic densities, filled filaments and moisture uptake can shift the real result.

What density values should I use for PLA, ABS, PETG, and TPU?

Typical starting values are PLA 1.24, ABS 1.04, PETG 1.27, and TPU 1.21 g/cm³. For 100 m of 1.75-mm filament, that is approximately 298, 250, 305, and 291 g respectively. These are reference estimates, not guaranteed formulation data: color, pigment, manufacturing and moisture can change them. Enter the supplier’s measured or datasheet density when accuracy matters, especially for hygroscopic nylon, PETG or TPU.

Does the result include purge, support, brim, and failed-print waste?

Only the length you enter is converted and priced. If the slicer’s 32-m total already includes a brim and purge line, entering 32 m avoids double-counting; add extra length only for planned failed attempts or setup waste. With a 10% failure buffer, 32 m becomes 35.2 m, about 104.99 g of PLA rather than 95.44 g. At $22.50 per kilogram, those figures cost $2.15 and $2.36 respectively.

How should I enter a non-dollar price or a partly used spool?

Enter the price paid for the filament and its net full-spool filament weight, using the same currency units; the page does not perform exchange-rate conversion. For a 1,000-g spool costing 25,000 VND, cost per gram is 25 VND, so the 95.44-g example represents 2,386 VND, although the current display formats that number with a dollar sign. A partly used spool still uses the original purchase-price-per-gram convention here. For a replacement-cost decision, use the current price per gram of an equivalent new spool; the page cannot infer residual value or plastic-holder weight.

Why does 2.85-mm filament change weight so much at the same print length?

Because cross-sectional area follows π(D/2)². A 2.85-mm filament has 2.65 times the cross-section of 1.75-mm filament, so 32 m contains 204.14 cm³ rather than 76.97 cm³; at PLA density 1.24, that is 253.13 g instead of 95.44 g. Even a nominal 1.75-mm strand measuring 1.80 mm raises mass by about 5.8%. Check the physical diameter, ovality and the slicer’s extrusion-calibration setting when the result matters.

How do I compare two filaments or two spools in one calculation?

Select Compare with another option, fill in Option B, then select Compare A and BCompare A and B. Both options reuse the print length and filament diameter from the shared fields, so only the density and the price per gram (spool cost ÷ spool weight) differ. Choosing a preset writes that polymer’s density into the field—PLA 1.24, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.21, Nylon 1.14, PC 1.20 g/cm³—while typing a different density switches the preset back to Custom. For 32 m of 1.75-mm filament, PLA at $22.50 per kilogram costs $2.15 and PETG at $25 per kilogram costs $2.44, about 12% more, even though the PETG part weighs only 2.4% more.