In-depth article Bill of materials ~9 min read
Bill of materials series

BOM cost rollup: calculating a costed bill of materials from the bottom up, with a worked example and Excel

Published December 2, 2026 — a product's cost is calculated by rolling its BOM up: each subassembly adds up its components and its operations. The rule, how phantoms, scrap and materials by weight are handled, a three-level example, a calculator and the Excel formulas.

Σ qty × cost + operations Cost of a subassembly
bottom up Components before their parents
115,42 Cost of the example cart (fictitious costs)

In short: the cost of a manufactured item is the sum of the quantities of its components multiplied by their cost, plus the cost of its own operations. The cost of a purchased item is its purchase price. So the calculation runs from the bottom up (cost rollup): purchased items first, then each subassembly, up to the finished product. A phantom item has no operations of its own: its cost passes straight to its parent. Example: a frame made of 4 tubes at 6.50, 8 screws at 0.12 and 18.00 of welding costs 4 × 6.50 + 8 × 0.12 + 18.00 = 44.96.

1. The rule: each level adds up the level below

Cost of an item = Σ (quantity of each component × cost of the component) + cost of the item's operations. A component's cost is itself calculated with the same rule, which sets the order: an item is calculated only once all its components are known. It is the reverse of where-used, which goes from a component up to its parents to find where it is used; here, you go up to find how much the parent costs.

Item typeWhat goes into its costWhere the data comes from
PurchasedUnit purchase price (possibly landed costs)Item master, ERP side
ManufacturedΣ components + operations of its routingBOM and routing
PhantomΣ components onlyBOM (see the phantom item)
SubcontractedSubcontracting price + material supplied to the subcontractorSubcontract order and BOM
Material by weight or lengthQuantity in the stock unit × price of that unitBase unit of the item record

Scrap: if part of the material is lost (offcuts, planned scrap), the calculation quantity becomes quantity × (1 + scrap rate). Example: 4 tubes with 5% scrap cost 4 × 1.05 × 6.50 = 27.30 instead of 26.00.

2. Example: the series' cart, over three levels

The BOM is the one on the series' reference page; costs are fictitious and have no currency, to show the calculation.

Item (level)CalculationUnit cost
Welded frame CH-110 (1)4 × 6.50 + 8 × 0.12 + 18.00 of welding44.96
Wheel assembly CH-120 (1, phantom)7.80 + 3.60 + 4 × 0.12, no operation11.88
Handle CH-130 (1)4.20 + 2 × 0.12 + 3.00 of forming7.44
Powder paint PE-001 (1)0.25 kg × 14.003.50
Cart CH-100 (0)44.96 + 4 × 11.88 + 7.44 + 3.50 + 12.00 of assembly115.42
+ 12.00 assemblyFrame ×14 × 6.50 tube8 × 0.12 screws+ 18.00 weldingWheel assy ×47.80 wheel3.60 plate4 × 0.12 screwsHandle ×14.20 tube2 × 0.12 screws+ 3.00 formingPowder paint0.25 kg × 14.00Cart: 115.4244.9611.887.443.5044.96 + 4 × 11.88 + 7.44 + 3.50 + 12.00 = 115.42
The calculation follows the tree from the bottom up: purchased components, then each subassembly with its operations, then the cart. The wheel assembly (dashed) is a phantom: its 11.88 cost counts four times, with no operation of its own.

3. Cost rollup calculator

One line per item, in indented BOM order: level; reference; quantity per parent; purchase cost (items with no components); operations cost (manufactured items). Decimals accept a comma or a point.

Product cost
—
Purchases; operations
—
Lines read; subassemblies
—

    Default example: the cart in section 2. For scrap, multiply the line quantity by (1 + rate) before entering it. The calculator only reads what you paste: nothing is sent.

    4. What the cost contains, and what it does not

    The calculation adds up purchases and operations. Splitting it in two ways helps to read it: by cost type, to see what weighs most; by subassembly, to see where to act.

    by cost typepurchases: 82.42 (71%)operations: 33.00 (29%)by subassemblyframe 44.96wheels 4 × 11.88handle 7.44 · paint 3.50 · assembly 12.00
    The same 115.42 read twice: 71% purchases and 29% operations; the four wheels weigh more than the frame.
    • Operations cost: routing time × work center hourly rate. The routing, not the BOM, carries it.
    • Standard or actual cost: calculating with planned prices and times gives a standard cost, frozen for a period; the actual cost is measured after production, with the prices paid and the time spent. The variance between the two is tracked in accounting.
    • Outside the BOM calculation: overheads, packaging and shipping, unless they are modelled as items or operations. Their allocation is a cost accounting matter.

    5. The cost rollup in Excel

    Start from the indented BOM: level in A, reference in B, quantity per parent in C, from row 2. Column D holds the cumulative quantity (quantity per finished product); F the purchase cost of items with no components; G the operations cost of manufactured items.

    CellExcel or LibreOfficeCart
    D2: cumulative quantity (copy down)=IF(A2=0,C2,C2*LOOKUP(2,1/(A$1:A1=A2-1),D$1:D1))1, 1, 4, 8, 4, 4, 4, 16…
    Purchases per product=SUMPRODUCT(D2:D13,F2:F13)82.42
    Operations per product=SUMPRODUCT(D2:D13,G2:G13)33.00
    Product cost=SUMPRODUCT(D2:D13,F2:F13+G2:G13)115.42

    The cumulative quantity avoids calculating each subassembly: each purchase cost and each operations cost is multiplied by the number of times it is used in one product, then everything is added up. The result is the same as the level-by-level calculation. Formulas checked in LibreOffice Calc on the cart; in French-language Excel: SI, RECHERCHE and SOMMEPROD, with semicolons.

    Printable version: the BOM cost rollup as a PDF (A4, no sign-up): rule, worked example and Excel formulas.

    6. Points to watch

    • Units: a quantity in kg multiplied by a price per metre gives a wrong cost. The quantity's unit must be the price's unit.
    • Phantoms: an operation entered on a phantom is counted although no order will trigger it. Operations belong to the parent that actually assembles the parts.
    • Duplicate records: two records for the same part, one with an up-to-date price and one without, give two costs for the same product depending on which BOM is read.
    • Engineering or manufacturing BOM: the cost is calculated on the mBOM, which contains consumables, packaging and the shop floor's real groupings.

    7. FAQ

    What is a BOM cost rollup?

    Calculating a product's cost by rolling its BOM up from the bottom: the cost of each manufactured item is the sum of its component quantities multiplied by their cost, plus its operations. The result is called a costed BOM.

    How do you calculate the cost of a BOM?

    Give a purchase cost to each purchased item and an operations cost to each manufactured item, then calculate the subassemblies from the lowest level up to the finished product. In a spreadsheet, each line's cumulative quantity multiplied by its cost, then summed, gives the same total.

    How is a phantom item costed?

    As the sum of its components, with no operation of its own: it has no work order and no stock. Its cost passes straight to its parent, multiplied by the number of phantoms per parent.

    Should the eBOM or the mBOM be costed?

    The mBOM, because it describes what is actually bought and assembled, consumables and packaging included. Costing the eBOM can be useful at the concept stage, to estimate an order of magnitude.

    How is scrap included in the cost?

    By multiplying the component quantity by (1 + scrap rate): 4 tubes with 5% scrap count as 4.2 tubes. The scrap rate is entered on the BOM line or in the item record, depending on the software.

    Read next