TorqueMath

3D Printing Filament Calculator

Enter the filament, the print weight and time from the slicer and your spool price. Get the filament length, the material and electricity cost of the print, how much is left on the spool, and the new e-steps (or rotation distance) from an extruder calibration.

TorqueMath.com · 3D Printing Filament Calculator
Filament
Material
g/cm³
mm
The density is on the spool label or the maker's data sheet; the tiles fill in typical values.
Print (from the slicer)
g
h
Use the weight including supports, brim and purge; if the slicer gives only metres, the length readout shows the matching weight.
Cost
€
g
W
€/kWh
%
Average power, not the power supply rating: a bed-slinger with a heated bed uses about 80–150 W once warm, an enclosed printer more.
Filament left on the spool
g
g
Weigh the spool on a kitchen scale. Empty spools weigh about 150–250 g (plastic) or 120–200 g (cardboard); the maker often lists it.
Extruder calibration
steps/mm
mm
mm
mm
mm
Heat the hot end, mark the filament 120 mm above the extruder inlet, send G1 E100 F100 (relative mode, M83) and measure the mark again.
Method and assumptionsMethod: g/m = ρ·π·d²/4; length = weight / (g/m); material cost = weight · spool price / spool grams · (1 + allowance); electricity = P·t/1000 · price · (1 + allowance); filament left = spool now − empty spool; new e-steps = old · requested / (mark − distance after); Klipper rotation_distance = old · extruded / requestedBasis: Solid round filament of nominal diameter; density from the spool or typical values; average printer power over the print; Marlin and Klipper calibration conventionsLimits: Real filament diameter varies (±0.02–0.05 mm changes weight per metre by 2–6 %); filled, silk and matte blends have other densities; the electricity estimate uses an average power; calibrate e-steps hot and slow, flow is set separately in the slicerReferences: Polymaker filament technical data · Marlin M92 / M500 (e-steps) · Klipper rotation_distanceFormulas · How this calculator was checked · TorqueMath v2.11
Spool and print
Extruder calibration

How it is calculated

dρg/m = ρ·πd²/4120ag/m = ρ·π·d²/4L = m / (g/m)C = m·price/kg + P·t·price/kWhx = 120 − aEnew = Eold ·100 / x

Filament is a cylinder, so its weight per metre is the cross-section times the density: 1.75 mm PLA at 1.24 g/cm³ weighs 2.98 g per metre, so a 1 kg spool holds about 335 m. The cost of a print is its weight times the price per gram plus the electricity the printer uses over the print time, with an allowance for failed prints. The e-steps calibration is the usual Marlin method: extrude a known length, measure how much really went in and scale the steps per millimetre.

Weight per metre g/m = ρ · π · d² / 4 ρ g/cm³, d mm (= g per metre) Filament length L = m / (g/m) Material cost C_m = m · price / spool grams · (1 + allowance) Electricity E = P · t / 1000 kWh, C_e = E · price per kWh · (1 + allowance) Spool left m_left = spool now − empty spool, L_left = m_left / (g/m), prints left = m_left / m Extruded length x = mark − distance after New e-steps E_new = E_old · requested / x (M92 E… then M500) Klipper rotation_distance_new = rotation_distance_old · x / requested

Typical densities: PLA 1.24, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.21, nylon 1.12 and PC 1.19 g/cm³; fillers, silk and matte blends differ (for example Polymaker lists 1.17–1.37 g/cm³ for its PLA range), so use the value on your spool. Calibrate e-steps with the hot end at printing temperature and slow (F100), repeat until the result is within about 1 %, and calibrate the flow (extrusion multiplier) in the slicer only after that.

Print ABS, ASA, nylon and PC with ventilation or an enclosure with a filter, and never leave a printer running unattended for long. Electricity and filament prices change; enter your own.

How to use this calculator

A narrated walkthrough with a worked example, step by step.

The video plays from YouTube (youtube-nocookie.com) only after you click it. From then on YouTube’s privacy policy applies.

This calculator does the everyday arithmetic of FDM 3D printing. Choose the filament (PLA, PETG, ABS, ASA, TPU, nylon or PC, or type the density from the spool) and the diameter, then enter the print weight and time from the slicer, the spool price and your electricity price. It gives the length of filament the print uses, the weight per metre, the material and electricity cost of the print with an allowance for failed prints, and the cost per print hour. Weigh the spool and enter the empty spool weight to see how many grams and metres are left and how many prints like this you can still make. The extruder calibration turns the classic 120 mm mark test into new e-steps for Marlin (with the M92 and M500 commands) or a new rotation_distance for Klipper. Hobby makers, schools, makerspaces and small print shops use it to price prints and to set up a new extruder.

Worked example: an 85 g PLA print of 6.5 hours

  1. 1.75 mm PLA with a density of 1.24 g/cm³ weighs 1.24 × π × 1.75² / 4 = 2.98 g per metre, so the 85 g print uses 85 / 2.98 = 28.5 m of filament, and a 1 kg spool holds about 335 m.
  2. Material: a € 22 spool of 1 000 g costs € 0.022 per gram. 85 g × 0.022 × 1.05 (5 % allowance for failed prints) = € 1.96.
  3. Electricity: 120 W × 6.5 h = 0.78 kWh. At € 0.30 per kWh with the same allowance: 0.78 × 0.30 × 1.05 = € 0.25.
  4. Total € 2.21 for the print, € 0.34 per print hour.
  5. The spool weighs 640 g and an empty one 250 g, so 390 g (131 m) are left: enough for 4 prints like this.
  6. E-steps: the mark was 120 mm above the extruder and 23 mm after G1 E100, so 97 mm went in instead of 100. New e-steps = 93 × 100 / 97 = 95.88; send M92 E95.88 and M500. On Klipper the rotation_distance changes from 33.5 to 33.5 × 97 / 100 = 32.495.

The print costs about € 2.21, the spool has 390 g left, and the extruder needs 95.88 steps/mm (3 % under-extrusion fixed). Repeat the extrusion test once to confirm.

Common mistakes

Standards and sources

FAQ

How many metres of filament are on a 1 kg spool?

About 335 m of 1.75 mm PLA (1.24 g/cm³), 327 m of PETG, 400 m of ABS and about 120 m of 2.85 mm PLA. The length is weight divided by the weight per metre, ρ · π · d² / 4.

How do I calculate the cost of a 3D print?

Multiply the print weight by the price per gram of the spool (spool price / filament grams), add the electricity (printer power in kW × hours × price per kWh), and add a few percent for failed prints. An 85 g PLA print of 6.5 h costs about € 2.21 with € 22 spools and € 0.30 per kWh.

How do I calibrate the e-steps?

Heat the hot end, mark the filament 120 mm above the extruder, send M83 and G1 E100 F100, and measure the mark again. If it is 23 mm away, 97 mm went in: new e-steps = old × 100 / 97. Set it with M92 E… and save with M500, then repeat the test.

What is the Klipper equivalent of e-steps?

Klipper uses rotation_distance, the filament length per motor turn, which goes the other way: new rotation_distance = old × actual extruded / requested. With 97 mm extruded of 100 and 33.5 mm before, the new value is 32.495.

How do I know how much filament is left on a spool?

Weigh the spool and subtract the empty spool weight (often 150–250 g for plastic spools, printed on the label or the maker's website). The rest divided by the weight per metre gives the metres left.

Which density should I use for PLA, PETG and ABS?

Typical values are PLA 1.24, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.21, nylon 1.12 and PC 1.19 g/cm³. Blends with fillers, silk or matte additives can be 1.17–1.37 g/cm³ for PLA, so use the value from your spool or data sheet when you know it.

Tools for this job

What you need to build, measure or check the result.

As an Amazon Associate I earn from qualifying purchases. Prices and availability are shown on Amazon.