Back to Blog
Corporate Solutions

Product Costing Software: BOM, Labor and Overhead

How does product costing software work? Material cost from the bill of materials, scrap, labor and machine time, overhead allocation, standard versus actual cost and versioned calculations in one place.

Maliyet HesaplamaÜrün ReçetesiBirim MaliyetÜretim

Product costing software calculates the unit cost of a product from its bill of materials, its operation times and current price tables. The short answer: unit cost is the sum of material, labor, machine and an overhead share, and that number should never be typed into the product record by hand. Costing software derives it from the source every time, so when the purchase price of one raw material changes, every product that uses it is recalculated.

Why should cost never be typed into the product record?

In many companies cost is a number that was worked out once in a spreadsheet and copied into the product record. It was right that day and has been aging ever since. A raw material price moves, a component is added to the BOM, an operation takes longer, and the number on the record stays where it was. Nobody can say which price and which date a given cost was based on. Products built from subassemblies are worse: a change in a lower level BOM reaches the parent products only if someone remembers. In the end the sales team prices on top of a cost they believe is current and that is in fact months old.

A typed cost is a photograph, a calculated cost is a live view. A number that does not update itself when the price table changes is not a safe basis for a decision.

What product costing software should include

  • Material cost: BOM quantity multiplied by the dated purchase price, including the planned scrap factor.
  • Labor and machine: each operation time multiplied by the hourly rate of its work center, shown as separate lines.
  • Multilevel BOM: the cost of a subassembly is calculated first and rolled up into the parent from the bottom.
  • Overhead share: the allocation base (machine hours or labor hours) is chosen explicitly and carries a validity date.
  • Standard and actual cost: planned and incurred figures are kept apart and the variance is reported line by line.
  • Versions and exchange rates: every calculation is versioned, and for currency linked materials the rate and its date are stored.

How is unit cost calculated from the BOM?

The arithmetic is simple, the discipline is the hard part. For every BOM line the quantity, the current purchase price and the scrap factor are multiplied. Scrap is stored as an integer in parts per thousand, so decimal rounding errors do not pile up. For operations, minutes are multiplied by the hourly rate of the work center and divided by sixty. Amounts are integers in minor units. The most important rule: a material without a price is never silently counted as zero, it goes on a missing list and the calculation returns no result. The example below shows this:

type BomLine = { materialId: string; qty: number; scrapPermille: number };
type Operation = { workCenterId: string; minutes: number };
type Product = { id: string; lines: BomLine[]; operations: Operation[] };
type CostResult =
  | { ok: true; materialKurus: number; operationKurus: number; totalKurus: number }
  | { ok: false; missing: string[] };

function unitCostKurus(
  product: Product,
  prices: Map<string, number>,
  rates: Map<string, number>,
): CostResult {
  const missing: string[] = [];
  let materialKurus = 0;
  let operationKurus = 0;
  for (const line of product.lines) {
    const priceKurus = prices.get(line.materialId);
    if (priceKurus === undefined) missing.push(line.materialId);
    else {
      const gross = line.qty * priceKurus * (1000 + line.scrapPermille);
      materialKurus += Math.round(gross / 1000);
    }
  }
  for (const op of product.operations) {
    const hourlyKurus = rates.get(op.workCenterId);
    if (hourlyKurus === undefined) missing.push(op.workCenterId);
    else operationKurus += Math.round((op.minutes * hourlyKurus) / 60);
  }
  if (missing.length > 0) return { ok: false, missing };
  const totalKurus = materialKurus + operationKurus;
  return { ok: true, materialKurus, operationKurus, totalKurus };
}

This calculation takes its inputs from elsewhere and does not do their job. BOMs, routings and work orders are defined in production tracking and MRP software, and the costing tool only reads quantities and times from there. Purchase prices come from the orders and price records in purchasing software. The price table is dated: the calculation uses the price valid on the chosen date and records which one it used.

Standard cost, actual cost and versions

Standard cost is the figure you expect from the BOM and the planned times. Actual cost comes from the material really consumed and the time really spent. Blending the two into one number hides the variance. Kept apart, they show whether extra scrap, a longer operation or a price increase pushed the cost up. Every calculation is a version and is never edited, a new one is added. Selling price and margin are outside this tool: putting a price on top of cost is the job of sales quote software, and a quote only needs to know which cost version it was based on. This article is general information and not financial advice, and your official cost accounting records stay with your accounting.

Off the shelf or custom software?

Most ERP packages ship with a costing module, and it fits a conventional production structure well. Where they struggle is with rules specific to one business: different allocation bases per work center, subcontracted steps, currency linked raw materials, customer specific BOM variants. With a simple product structure a standard module may be enough. If you want cost tied to your own BOM, purchasing and quoting flow, versioned and traceable, custom development leaves fewer manual corrections.

Conclusion

Good product costing software does not store a typed number, it derives it from the BOM and a dated price table. It does not hide a missing price, it rolls subassemblies up from the bottom, it shows the overhead allocation base openly and it keeps every calculation as a version. To build this on top of your production and purchasing data, see our corporate solutions page or describe your product structure and request a quote.

Let's Build Your Project

Get a free consultation for your website, mobile app, or corporate software project.

Get a Free QuoteExplore our Corporate Solutions service