A factory sells its best-selling product at a price set three years ago from a spreadsheet costing. Material prices changed several times, wages rose, the main supplier changed and scrap increased on an old line. The product still sells well, because it is actually being sold at a loss nobody knows about.
Knowing actual product cost underpins pricing, promotions, large orders, discontinuing products and supplier negotiations.
Cost components
| Component | Examples | Source |
|---|---|---|
| Direct materials | Raw and packing materials | BOM and stock issues |
| Direct labour | Line hours | Operations, workstations, job cards |
| Overheads | Power, maintenance, depreciation, supervision | Workstation hour rate |
| Scrap | Process loss and quality rejects | Planned in BOM, actual in work order |
| Subcontracting | Outsourced stage | ERPNext subcontracting |
The BOM
The bill of materials is the recipe: materials, sub-assemblies and operations with times. ERPNext costs a BOM from valuation, last purchase or price list rates plus operating cost. Use multi-level BOMs, planned scrap, by-products and versioned BOMs.
Standard vs actual
| Variance | Likely cause | Owner |
|---|---|---|
| Material price | Bought above standard | Purchasing |
| Material usage | More issue or scrap | Production, quality |
| Operation time | Slow runs, breakdowns, long setups | Production, maintenance |
| Overhead | Higher energy or lower volume | Finance |
A work order records actual materials and output, and the manufacture stock entry values finished goods from actual consumption and operating cost, so planned vs actual can be compared per order.
Overheads and scrap
Most factories cost materials only and leave power, depreciation and supervision as general expenses, so machine-heavy products look cheaper than they are. Set an hour rate per workstation covering these costs. Record excess scrap and rejects with reasons, otherwise good products silently absorb the loss.
From cost to decisions
- Price floors per product.
- Product mix toward higher margins.
- Minimum acceptable price for large orders.
- Impact of each material price change.
- Make vs subcontract.
See management accounting in ERPNext and the best ERP for factories.
Costing across industries
| Industry | Specifics | Focus |
|---|---|---|
| Food | Scrap, shelf life, batches | Batch and expiry tracking, loss per stage |
| Plastics and packaging | Regrind, mould changes | By-products and setup time |
| Furniture | Made to order sizes | BOM per order, variable times |
| Apparel | Sizes, colours, outsourcing | Variants and subcontracting |
| Chemicals | Formulas and batches | Batch BOMs and quality |
Stock valuation
ERPNext supports moving average and FIFO. With volatile prices, moving average spreads increases across all quantities while FIFO issues older prices first; choose consciously and apply consistently.
Landed cost
Freight, insurance, duties, clearance and inland transport belong in imported material cost. ERPNext's Landed Cost Voucher distributes them across shipment items; see landed cost.
Getting started
- Review BOMs of key products with real quantities and scrap.
- Define workstations, operations, times and rates.
- Record actual issues in work orders.
- Compare standard and actual monthly.
- Update prices accordingly.
Frequently asked questions
Standard vs actual cost?
Standard is what it should cost per BOM; actual is what a specific work order cost.
How are overheads charged?
Through workstation hour rates applied to time consumed.
Does ERPNext calculate cost automatically?
Yes, from the BOM and operations, then from actual consumption in the work order.
How does scrap affect cost?
Planned scrap is in the BOM; excess shows as a variance.





