Back to Blog
Smart Factory

A Factory That Sees Real Product Cost: Building Real-Time Manufacturing Cost and Profitability Management on MES

When cost is only visible after the monthly close, loss-making items keep getting booked. This guide covers how to calculate real-time manufacturing cost from the performance data MES already collects, and integrate it with ERP for profitability management by item, line, and customer.

POLYGLOTSOFT Tech Team2026-08-278 min read0
MESManufacturing CostProfitability AnalysisERP IntegrationCost Management

The Cost You Only Learn About at Month-End

The most common question on a factory floor is simple: "Do we actually make money on this item?" Yet many plants need more than 30 days to answer it. Last month's cost only becomes visible after the monthly close and the accounting settlement are complete — and by then, sales has already booked next month's orders.

The root cause is the gap between standard cost and actual cost. When a standard cost set at the beginning of the year is used for all twelve months, a 15% jump in raw material prices combined with an industrial electricity rate hike can quietly turn a profitable item on the books into a loss-making item in reality. Plants repeatedly discover — three months too late — that a product accounting for 20% of revenue has been eroding operating profit the whole time.

The Data Elements Behind Real-Time Cost

The good news is that most of the raw material for cost calculation is already being collected by MES.

  • Material consumption at lot level: actual issued quantity per work order × receiving unit price by lot. Using actual consumption rather than standard BOM quantity is what makes yield loss show up in cost.
  • Actual labor hours: man-hours derived from operator start and end timestamps
  • Equipment runtime: machine-hours based on run/downtime collected from equipment
  • Defect and rework cost: scrapped material plus rework labor. Omit this and high-defect items misleadingly appear to be low-cost items.
  • Power and utilities: metering data at line or equipment level
  • Utilities are usually metered only at the plant level, so allocation is required. A practical approach is to install meters on major equipment and allocate the remainder by rated power consumption × runtime ratio. In practice, metering just 20% of equipment typically explains 70–80% of total power consumption.

    Designing the Cost Allocation Model

    The core of the model is the hourly burden rate by process.

  • Aggregate direct labor, depreciation, power, consumables, and indirect labor by process.
  • Divide by that process's baseline operating hours (machine-hours or man-hours).
  • Apply the rate to actual work order hours to charge conversion cost.
  • For example, if a CNC line carries 48 million KRW in monthly overhead against 1,600 baseline machine-hours, the hourly burden rate is 30,000 KRW. Distortion drops sharply when the basis matches the nature of the process — machine-hours for automated lines, man-hours for manual assembly.

    Apply activity-based costing (ABC) selectively, only to activities with large per-item variation such as internal logistics, inspection, and die changeover. Once you create more than 30 cost drivers, the maintenance burden outweighs the accuracy gain. Starting with five to eight drivers and expanding only where explanatory power falls short is the safer path.

    MES-ERP Integration Architecture

    MES manages performance data; ERP manages monetary value. There are three main integration points.

  • Master data: ERP → MES (items, BOM, routing, standard prices)
  • Performance data: MES → ERP (material issues, production results, labor hours, defects)
  • Settlement: ERP → MES (confirmed purchase prices, labor rate feedback)
  • Send performance data via daily batch or event-based API, and until purchase prices are confirmed, apply the most recent receiving price provisionally and adjust the difference at close. With this structure, estimated cost is available on D+1 — pulling the decision point forward by nearly a month.

    For dashboards, four views are enough: contribution margin by item, value added per hour by line, profitability ranking by customer, and standard-versus-actual variance (quantity, price, and volume variance).

    Rollout Sequence and Validating Results

  • Pilot: start with 5–10 items — top revenue products or those with known defect issues.
  • Model validation: reconcile real-time cost against accounting settlement cost for three months until the gap falls within ±3%.
  • Full rollout: extend to all items, then connect the model to the quotation system.
  • The biggest payoff appears at the quotation stage. Linking actual cost data to quotes lets you defend a minimum viable price with evidence and screen out loss-making orders before they are accepted. The goal of cost management is not a more precise close — it is a better order decision.

    Working with POLYGLOTSOFT

    Drawing on our MES implementation and ERP integration experience, POLYGLOTSOFT designs and builds real-time manufacturing cost and profitability management systems. We provide step-by-step support — from assessing the performance data you already collect, to designing the allocation model, implementing profitability dashboards, and connecting the results to your quotation system. If you are considering the shift to a factory where real cost is visible, please feel free to reach out to us.

    Need Technical Consultation?

    Our expert consultants in smart factory, AI, and logistics automation will analyze your requirements.

    Request Free Consultation