A dairy turns milk into cream, skim milk and whey. A meat-cutting plant produces prime cuts, trimmings and bones. A sawmill outputs boards, sawdust and wood chips. In every case, a single process consumes materials, labor and energy, and several products come out of it. If the ERP cannot represent that, it pins the entire cost on one item, and product margin is wrong before anyone has calculated it.
This guide is for CFOs, controllers and IT directors at mid-sized food, chemicals, plastics and metals manufacturers. It explains how to tell co-products, by-products and waste apart, which joint cost allocation method to choose, and how to configure it in SAP S/4HANA, Odoo, Sage X3 and Dynamics 365.
Why Co-Products Distort Your Margins
Take the most common situation: the ERP is configured with a single-output bill of materials. The “main” product absorbs 100% of the production cost, and the other outputs enter stock at zero value, or are not declared at all. Three effects follow.
- The main product’s margin is understated, because it carries a cost that also benefits other products.
- Revenue from the other outputs is pure margin: whey sold for €20,000 shows a 100% margin, even though it consumed milk, energy and labor.
- Inventory is misvalued: the quantities of co-products exist physically but not, or not correctly, in the books, which causes problems at period close and at stock count.
The topic is close to gross margin management by product line, but it comes earlier in the chain: before you can manage a margin, you must decide which product each euro of cost belongs to.
Definitions: Co-Product, By-Product, Waste, Scrap
These four terms lead to different accounting and ERP treatments. IAS 2 (Inventories) addresses the subject in paragraph 14: a production process may result in more than one product being produced simultaneously, such as joint products or a main product and a by-product. Costs are allocated at the stage where the products become separately identifiable, or at the end of production. The standard adds that most by-products are by nature immaterial, and are then often measured at net realisable value, with that value deducted from the cost of the main product (IAS 2, IFRS Foundation).
| Term | Operational definition | Commercial value | Usual ERP treatment |
|---|---|---|---|
| Co-product | Intended output, sold as such, of value comparable to the other outputs | Significant | Receives a share of the joint cost (allocation key) |
| By-product | Secondary output of low value relative to the main product | Low but real | Valued at net realisable value and deducted from the main product’s cost, or at standard cost |
| Waste | Output with no value, or with a disposal cost | Zero or negative | Quantity tracked, disposal cost charged to the process |
| Scrap | Non-conforming product resulting from a quality defect | Variable | Yield or quality variance, outside joint cost allocation |
The line between co-product and by-product is not physical, it is economic and documented: it is a management decision, agreed with the auditor, and it must stay stable from one year to the next. A by-product whose selling price climbs can become a co-product, and the ERP must allow that change without rewriting history.
Joint Cost Allocation Methods
Joint cost is everything incurred before the split-off point, meaning before the moment the products become separately identifiable. Four methods dominate.
- Market value at split-off: each product receives a share of the joint cost proportional to its sales value at that stage. It requires an observable market price for products that can be sold as they stand at separation.
- Net realisable value (NRV): start from the final selling price, subtract further processing costs and selling expenses, and allocate pro rata. It applies when products cannot be sold at split-off.
- Physical units: allocation in proportion to kilos, liters or units produced. Simple, but blind to value.
- Zero cost or deducted value for the by-product: nothing is allocated to the by-product, or its NRV is deducted from the main product’s cost, as IAS 2 allows for immaterial by-products.
Advantages and Limits
| Method | Advantages | Limits |
|---|---|---|
| Market value at split-off | Reflects each product’s ability to bear cost, uniform margin | Needs observable prices at split-off, which are volatile |
| Net realisable value | Usable when products are processed after split-off, the most common in process industries | Depends on price and processing cost forecasts that must be kept up to date |
| Physical units | Stable, easy to audit, no dependence on prices | Can assign a loss to a low-value-per-mass product (see example below) |
| Zero cost / NRV deduction | Very simple for immaterial by-products | Overstates the main product’s cost if the by-product grows in importance |
Worked Example (Fictional)
The figures below are invented for teaching purposes. A dairy process costs €100,000 before split-off and yields three outputs.
| Output | Quantity | Total selling price | Further processing | NRV |
|---|---|---|---|---|
| A, cream | 2,000 kg | €90,000 | €10,000 | €80,000 |
| B, concentrated skim milk | 6,000 kg | €70,000 | €30,000 | €40,000 |
| C, whey | 12,000 kg | €20,000 | €0 | €20,000 |
Total NRV is €140,000. Allocating the joint cost on NRV, A receives about €57,143, B €28,571 and C €14,286. Gross margin is €22,857 on A, €11,429 on B and €5,714 on C, a uniform rate of about 28.6% of NRV.
With allocation by physical units (20,000 kg in total), A receives 10%, B 30% and C 60% of the joint cost: €10,000, €30,000 and €60,000. A’s margin soars to €70,000, B’s falls to €10,000 and C shows a €40,000 loss, even though it is the cheapest product to obtain in value terms. If C is treated as a by-product deducted at its NRV (€20,000), the joint cost to split between A and B drops to €80,000.
The choice of method does not change total profit, it changes which product looks profitable. And therefore your pricing, discontinuation and product mix decisions.
ERP Setup
Bill of Materials and Routing with Multiple Outputs
In a classic discrete ERP, the bill of materials describes a parent and its components. In process industries, you need to declare several outputs in the same BOM (or formula, or recipe) and in the same routing. The setup points common to all vendors:
- the main product (or “leading co-product”) that carries the BOM;
- the theoretical quantity of each output per base quantity, which defines the expected yield;
- the status of each output: co-product, by-product or waste;
- the routing operation that generates the output, useful for dating the split-off point;
- the warehouse and lot of receipt, to preserve traceability.
The rules for BOM versioning also apply to this type of BOM: a change in theoretical yield is an engineering change to be approved, not a simple correction.
Theoretical vs. Actual Yield, and Variances
The BOM sets a theoretical yield. The production order consumes and produces actual quantities. The yield variance breaks down into three parts:
- consumption variance (more material than planned for the same output);
- mix variance (the process gave more A and less B than expected);
- overall yield variance (fewer total outputs, hence losses or scrap).
This breakdown must exist in the ERP, otherwise the controller receives a single, unusable variance. It must also feed shop-floor quality and yield reporting, with a yield indicator by line and by shift.
Allocation Keys
The allocation key is the parameter that translates the chosen method into percentages. Depending on the vendor, it is entered as a fixed value (equivalence numbers, percentages) or recalculated from prices and quantities. Governance rule: a key has an owner, a validity date and a review at least once a year. A key set at go-live and never reviewed is the leading cause of distorted margins.
Inventory Valuation
Co-products received into stock are valued at their share of the joint cost, then follow the item’s valuation method (weighted average cost, FIFO, standard cost). If you work with standard cost, the allocation is frozen in the standard and actual variances are isolated at close. If you value at actual cost, the key applies to each production order. The choice interacts with FIFO, weighted average and standard cost valuation methods: decide the two together, never separately.
How It Works in SAP, Odoo, Sage X3 and Dynamics 365
SAP S/4HANA. Co-products are costed with an apportionment structure, defined in the costing view of the leading co-product’s material master. The total process costs are distributed among the co-products using equivalence numbers, optionally by cost component group. By-products are entered with a negative quantity in the leading co-product’s BOM, and their cost follows the net realisable value method (SAP Learning, Costing Co-Products and SAP Help, Apportionment Structure).
Odoo MRP. By-products are enabled in the Manufacturing settings, then added in the “By-Products” tab of the BOM, with a quantity and, where needed, the operation that produces them. Stock quantities update when the manufacturing order is closed (Odoo documentation, By-products). The cost split between the main product and by-products should be checked against the version and edition in use, and some projects rely on an add-on module.
Sage X3. The by-product is declared in the BOM with the component type “by-product”. When valuation is enabled, the calculated standard cost of the manufactured product is reduced by the value of the by-product. In MRP, a by-product generates a suggestion that increases stock; in a work order, it generates a firm record (Sage Community Hub, By-products and how to manage them). For true co-products with high stakes, confirm with your integrator exactly what your version covers.
Dynamics 365 Supply Chain Management. Co-products and by-products are declared in the formula. For co-products, the allocation percentage is entered manually or calculated with the total cost allocation (TCA) method, which derives it as a weighted average from the active cost prices of the co-products, which must be greater than zero. For by-products, a field specifies how their amount is added to the production cost: percentage of materials, amount per series, or per quantity (Microsoft Learn, Total cost allocation).
| Criterion | SAP S/4HANA | Odoo MRP | Sage X3 | Dynamics 365 SCM |
|---|---|---|---|---|
| Declaration | Co-products and by-products (negative quantity) in the BOM | By-Products tab of the BOM | By-product component type | Co-product / by-product lines in the formula |
| Co-product allocation | Apportionment structure, equivalence numbers | To be validated by version and module | To be validated by version | Manual or TCA |
| By-product valuation | Net realisable value | Depends on item setup | Deducted from standard cost if valuation is enabled | Percentage, per series or per quantity |
| Cost view | Product cost estimate | Stock valuation | Revised standard cost | Formula cost calculation |
This table summarises the documentation cited above. It is no substitute for a test on your own scope: the depth of co-product handling varies markedly from one vendor and edition to another. For chemicals and life sciences, the SAP PP-PI, Oracle and Infor comparison covers the specialised modules in detail.
Lot Traceability and Co-Products
A collected milk lot produces several output lots: cream, skim milk, whey. If a quality check leads to a recall on the raw material lot, every output lot derived from it is affected, including the by-product sent to animal feed. Forward and backward traceability must therefore cover every output, not just the main product.
Three implementation requirements:
- every output receives a lot number linked to the originating lot or production order;
- the by-product or waste going to another channel (animal feed, energy recovery) stays traced to its recipient;
- the recall test must be replayed at acceptance, starting from a material lot and checking that co-products and by-products show up as expected.
HACCP details and traceability requirements are covered in our food industry ERP guide to batch traceability.
Pitfalls to Avoid
- Stale allocation: a key based on last year’s prices. Consequence: margins that drift from reality. Plan a review at least annually, and whenever prices move significantly.
- By-product sold with no price in the ERP: the sale carries zero cost, so the margin is 100%. Require a standard price or an NRV, even approximate, when the item is created.
- Overstated main product margin: a by-product valued too high deducts too much cost from the main product, whose margin looks better than it is. Conversely, with no allocation at all, the main product carries everything and its margin is understated.
- Theoretical yield never updated: every order generates permanent variances that drown out the real ones.
- Confusing scrap with by-product: a quality defect must not be allocated like a co-product, it belongs in yield variances.
- Changing method mid-year without accounting approval: period-to-period comparisons lose their meaning.
Impact on the Monthly Close
Co-products affect the close in three places: work-in-progress valuation (joint costs incurred but split-off not yet reached), valuation of output inventory (allocation key up to date), and yield variance calculation. Build into the close calendar a step to verify the allocation key and a review of by-products released without a price. Without it, the controller fixes by hand in a spreadsheet what the ERP should have done.
8-Point Implementation Checklist
- Inventory the multi-output processes and classify each output: co-product, by-product, waste or scrap.
- Get the classification approved by finance leadership and the auditor.
- Choose the allocation method by process family (NRV, market value, physical units) and document it.
- Declare the multiple outputs in BOMs and routings, with theoretical yields.
- Configure the allocation keys, with owner, validity date and review frequency.
- Decide inventory valuation together with allocation (standard cost, FIFO, weighted average).
- Set up yield variance tracking (consumption, mix, overall yield) and its reporting.
- Replay a lot recall at acceptance, covering co-products and by-products.
Going Further
Co-product setup should be prepared before you choose a vendor: download our ERP evaluation grid, 30 criteria to test in demos, including multi-output handling and traceability. To follow upcoming guides on ERP for process industries, subscribe to the newsletter.