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

ComponentExamplesSource
Direct materialsRaw and packing materialsBOM and stock issues
Direct labourLine hoursOperations, workstations, job cards
OverheadsPower, maintenance, depreciation, supervisionWorkstation hour rate
ScrapProcess loss and quality rejectsPlanned in BOM, actual in work order
SubcontractingOutsourced stageERPNext 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

VarianceLikely causeOwner
Material priceBought above standardPurchasing
Material usageMore issue or scrapProduction, quality
Operation timeSlow runs, breakdowns, long setupsProduction, maintenance
OverheadHigher energy or lower volumeFinance

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

IndustrySpecificsFocus
FoodScrap, shelf life, batchesBatch and expiry tracking, loss per stage
Plastics and packagingRegrind, mould changesBy-products and setup time
FurnitureMade to order sizesBOM per order, variable times
ApparelSizes, colours, outsourcingVariants and subcontracting
ChemicalsFormulas and batchesBatch 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

  1. Review BOMs of key products with real quantities and scrap.
  2. Define workstations, operations, times and rates.
  3. Record actual issues in work orders.
  4. Compare standard and actual monthly.
  5. 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.