The formula
Filament weight = cross-section area × length × density (1.75 mm: area = 0.02405 cm²)
From model volume: weight ≈ volume × density × (infill + shell allowance)
Material cost = weight (kg) × spool price ÷ spool weight
Electricity = hours × printer watts ÷ 1,000 × price per kWh
Total = material + electricity + wear + failure allowance; price = total × (1 + markup) + labour
Worked example
- An 85 g PLA print taking 5.5 hours on a 120 W printer, with a $22/kg spool and $0.17/kWh:
- Material = 0.085 × $22 = $1.87; electricity = 5.5 × 0.12 × $0.17 = $0.11; wear = 5.5 × $0.20 = $1.10; failures (10%) = $0.20.
- Cost per print = $3.28. With 100% markup and $5 labour, a selling price of about $11.56.
- The print uses 28.5 m of 1.75 mm filament, and one spool makes about 11.8 prints.
What a 3D print really costs
Most people think of filament as the cost of a 3D print, but a realistic price includes electricity, wear on the printer, failed prints and, if you're selling, your time and profit. Filament is often the largest part for big prints, while machine time dominates small, slow prints. This calculator adds all of these so hobbyists can see what their prints cost and makers can price them sensibly for sale on marketplaces or to clients.
Working out filament use
The most accurate source is your slicer, which reports the weight and length of filament for each print, including supports, brim and purge. If you only know the length, the calculator converts it to weight using the filament's diameter and density: a metre of 1.75 mm PLA weighs about 3 g. From a model's volume, it estimates weight using the infill percentage plus an allowance for walls and top and bottom layers, which is approximate, since walls often make up a large share of a part's weight.
Material densities
Different materials have different densities, so the same model weighs different amounts. PLA is about 1.24 g/cm³, PETG 1.27, ABS 1.04, ASA 1.07, TPU 1.21 and nylon about 1.14. Resin prints are usually measured in millilitres; standard resins are around 1.1 g/mL. Lighter materials like ABS give more length per kilogram, which slightly offsets their price. Spool prices range from about $15–$30 per kg for standard PLA to much more for engineering and speciality filaments.
Electricity and machine costs
A typical desktop FDM printer draws 70–150 W on average while printing, more when heating the bed and nozzle; enclosed and large-format printers use more. Electricity is usually a small share of the cost, a few cents per hour. Machine wear covers nozzles, belts, build surfaces, fans, maintenance and eventually replacing the printer. A common approach is to divide the printer's cost plus expected maintenance by its useful life in hours: a $600 printer expected to run 3,000 hours costs $0.20 an hour.
Failures and pricing
Not every print succeeds, especially large or complex ones, so add a failure allowance of 5–20% to material and electricity costs. For selling prints, add a markup for profit and a separate charge for labour such as design, removing supports, sanding, painting and packaging. Many makers price per hour of print time or per gram with a minimum charge. Our profit margin calculator shows the margin a price gives, and the freelance rate calculator helps set an hourly rate.
Reducing print costs
Lower infill, fewer walls, thinner layers only where detail matters, efficient support settings and orienting parts to minimise supports all reduce material and time. Printing several parts in one job saves heating time. Buying filament in larger spools or bulk packs reduces the price per kilogram. Use the electricity rate from your bill; for other devices, our electricity cost calculator estimates running costs.
Resin printing costs
For resin (SLA, MSLA and DLP) printers, measure resin use in millilitres from the slicer and multiply by the price per litre. Also allow for consumables such as isopropyl alcohol for washing, gloves, FEP or nFEP film replacements and LCD screens, which wear out over hundreds to a few thousand hours. Failed resin prints waste material quickly, so a higher failure allowance is often realistic.
Related tools
For resin projects, the epoxy resin calculator estimates casting volumes, and for CNC machining, the CNC feed rate calculator sets speeds. Our volume calculator estimates the volume of simple shapes.