AIThis post was created with the assistance of artificial intelligence (AI).

A first-person report by Thorsten Meyer.

Buying for a business?Offer from Amazon

Get business pricing on monitors, keyboards and dev gear

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

“What did this print cost?” sounds like a finance question. In practice it is a data modelling question. Where does each number come from, how reliable is it, what is the unit of record, and what do you do with values you do not have yet? I answered it for my Bambu Lab X2D with a small tool of my own, and the modelling choices turned out to matter more than the arithmetic.

Here is the model, the data from the first week, and the design decisions behind it.

Workshop illustration with a 3D printer, filament spools and a design desk
The cost of a printed part is spread across several sources of data.

What is the unit of record?

One finished print. Not a spool, not a month, not a part number. A print is the event that has a start, an end, a result and a set of materials, and every cost line can be attached to it.

Per-print records answer the questions people actually ask: what did this part cost, which jobs are expensive, how does a long plate compare to a short one? Monthly totals can be computed from per-print records at any time. The reverse is not possible.

Where does each cost line come from?

  • Material — Source: Planned grams per filament in the sliced print file, times the price of that filament · Quality: Planned, not weighed · Status: Recorded for every print
  • Machine time — Source: Start and end from the printer’s status stream · Quality: Measured · Status: Recorded for every print
  • Electricity — Source: Energy counter of a metering smart plug at start and end · Quality: Measured once wired · Status: Built, no readings yet
  • Wear — Source: Price of wear parts over their expected print hours · Quality: Estimated · Status: Not configured yet

The material line deserves a note. The grams come from the slicer’s own plan, read back from the finished print file. For a successful print that is a good proxy. For a failed print it would overstate what ended up in the part and understate the waste, which is why the result of every job is stored next to the grams.

How should missing values be stored?

As missing. My records show “power unknown” because no energy readings have arrived yet. Storing a zero would make every print look cheaper than it was, and every report built on top would inherit the error silently. Storing a typical value from a forum would be worse: it looks like data and is not.

The practical rule: a cost total is only labelled a full cost when every line is present. Until then it is a material cost, and the interface says so.

Lagvik print record with material cost, grams and power marked as unknown
A single print record. The power line is present in the model and empty in the data.

What did the first week of data show?

Single prints on the X2D, all successful. Material cost is what that filament cost us. The last two columns are derived.

  • Plate of desiccant cores — Grams: 258 · Hours: 13.8 · Material cost: €2.59 · Grams per hour: 18.7 · Material cost per hour: €0.19
  • Second plate of desiccant cores — Grams: 235 · Hours: 13.6 · Material cost: €2.37 · Grams per hour: 17.3 · Material cost per hour: €0.17
  • Holder for the filament-path switch — Grams: 137 · Hours: 5.9 · Material cost: €1.37 · Grams per hour: 23.1 · Material cost per hour: €0.23
  • Single desiccant core — Grams: 54 · Hours: 2.8 · Material cost: €0.54 · Grams per hour: 19.2 · Material cost per hour: €0.19
  • Toolbox frame — Grams: 68 · Hours: 2.0 · Material cost: €0.68 · Grams per hour: 34.6 · Material cost per hour: €0.35
  • Toolbox bottom — Grams: 55 · Hours: 1.4 · Material cost: €0.55 · Grams per hour: 38.4 · Material cost per hour: €0.38

All PETG. The printer record behind it: 63.2 operating hours, 16 prints, 16 ok, 0 failed.

Why normalise by hour?

Because it puts every cost line on the same axis. Material per hour sits in a narrow band, about €0.17 to €0.38 here. Electricity and wear are naturally per-hour quantities. Once they arrive, all three can be added per hour and multiplied by duration, and prints of very different length become comparable.

The derived columns also expose a pattern that totals hide: grams per hour vary by more than a factor of two on the same printer with the same material. The short toolbox prints deposit material much faster than the long plates. That is a property of the part geometry and the slicer’s plan, not of the machine.

Schematic animation of different infill patterns inside a part
Infill density changes the grams far more than the outer size of a part.

What about failures in the model?

With 0 failures in 16 prints, a failure surcharge would be noise right now. The model still reserves room for it: the result of each print is a field, so a failure rate per material or per part can be computed the day there is something to count.

What this means for you

  • Pick the event as the unit of record. For a printer, that is the finished job. Aggregate later.
  • Label data quality. Planned, measured and estimated values belong in different boxes, even if they share a column.
  • Keep unknown values unknown. Zeros and borrowed typical values both corrupt the totals.
  • Normalise to time. Per-hour figures make material, power and wear comparable across short and long prints.

The tool behind these numbers is internal to our workshop and not available for download. The model is the useful part, and it fits in a spreadsheet just as well as in a database.

BLACK FRIDAY

Black Friday Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Dux: Free, Open-source Wayland Desktop Shell With File Manager And Theming

Dux presents a free, open-source desktop shell for Wayland with Dux Files, dynamic theming and a suite of related desktop tools.

What The AI And Quantum Shift Means For Defence Encryption

AI-generated mathematics is adding uncertainty to defence encryption plans built around the quantum threat, but no cryptographic break has been reported.

Can Ironclad Help Move Computer Use Forward?

OpenAI has a page titled “Advancing computer use with Ironclad,” but the available information does not establish what the project is or what it does.