Most factories know their revenue precisely, but few know the cost of each unit they produce with the same precision. That gap is what separates a profitable factory from one that sells at a loss without realizing it.
Manufacturing companies need to know their unit cost, not just their revenue, so they can set the right selling price and measure the profitability of each product in the market.
Actual cost depends on three interconnected components: raw materials or direct materials (DM), direct labor (DL), and indirect costs (overhead) such as electricity, maintenance and depreciation. Leaving out any one of them distorts the result of the production cost calculation and weakens management’s ability to make accurate decisions.
Calculating cost is not simply a matter of adding up invoices. It requires recording the quantities consumed, the productive labor hours, and the basis for allocating overhead. This guide explains how to combine DM, DL and overhead into a single cost, and then use the CTA formula to value each unit and achieve more accurate pricing.
This methodology helps Saudi factories improve resource management and cost review. The article also offers a practical framework for understanding the role of ERP systems in manufacturing and in unifying data, without assuming that a system replaces human review.
Organizing this data gives a clearer picture of cost and shows whether the company is earning a real margin or selling some products below cost. ERP tools such as Riv-ERP can make daily tracking easier.
Key Takeaways
- Knowing unit cost, alongside revenue, determines a factory’s true profitability.
- Cost combines direct materials, direct labor and overhead.
- Ignoring indirect costs can lead to inaccurate pricing and selling products at a loss.
- Accurate production cost calculation requires unified, auditable data.
- ERP systems can support cost management and provide clearer reports when configured correctly.
Why Is Calculating Production Cost Harder Than You Think?
Some factory owners in Saudi Arabia believe that calculating production cost is just a matter of adding up invoices at the end of the month. But calculating unit cost requires linking purchasing, operations and inventory data, then comparing it with what actually happened on the production line.
A cost report may show a figure that differs from the reality of the machines and workers. This does not necessarily mean there is a calculation error; the data may be incomplete or recorded in different periods, or some expenses may have been allocated to a product or production batch in an inappropriate way.
Industrial cost accounting is based on tracking three interconnected elements: direct materials, direct labor, and indirect costs. Leaving out any element distorts the actual cost, whether when valuing a unit or analyzing the cost of an entire batch.
Raw material prices are affected by the timing of purchases and supplier terms, and working hours and operating rates vary from one shift to another. Production cost calculation is therefore a dynamic process that requires updating and reviewing data, not relying on a fixed average without review.
“No factory can set a fair price for its product without an accurate understanding of the cost of every unit its lines produce.”
It is important to distinguish between actual cost and planned cost. Planned cost estimates what the company is expected to spend, while actual cost records what was really consumed. Analyzing the variances between them helps identify the causes of waste, higher wages or increased energy consumption before decisions are made.
The absence of a single source of data leads to inaccurate pricing, misleading profit margins and incorrect inventory valuation. Management may decide to expand or cut the selling price based on a figure that does not represent the product’s true cost, which weakens companies’ ability to compete.
The calculation method and the overhead allocation basis should therefore be documented and reviewed periodically. ERP systems such as Riv-ERP can organize this data if the system’s functions and settings suit the company’s needs.
Before moving on to the three components, this article explains the difference between unit cost and batch cost, then shows how to combine materials, labor and overhead to arrive at a more accurate production cost calculation that supports pricing and sales decisions.
Component One: Direct Materials (DM)
Production cost calculation starts with direct materials: every raw material that physically goes into making the product and can be linked to it without a general estimate. Materials purchased refers to the quantity that entered inventory, while materials consumed represents what was actually issued to the production line during a specific period or batch.
In a metal forming plant, steel may be a direct material, while fabric is the main material in a garment factory. Whether a material is classified as direct depends on whether it can be traced to a specific product, not on its nature alone.
Calculating direct costs requires collecting data on the quantity used, the actual purchase price, and the waste generated by the manufacturing process. The basic formula is: DM = quantity of direct materials used x cost per unit of material + chargeable waste cost.
Using an old price or an unreviewed average is not enough. The price of each purchase batch should be recorded, along with its transport or preparation costs if these are part of the approved costing policy. This helps determine precisely the value of the materials that went into production.
Normal, expected waste should also be separated from abnormal waste. Normal waste may be included in product cost according to company policy, while abnormal waste needs separate analysis so that it does not hide an operational problem or raise the cost of each product without justification.
Raw material prices may change between purchase batches because of the supplier, the quantity or market conditions. Relying on a fixed average can therefore make the recorded materials cost differ from the actual cost of a production batch.
A common mistake is to use the value of materials purchased as the value of materials consumed. The correct approach is to match issue orders against production quantities and inventory, then review the variances before approving the product cost calculation.
When this data is not kept up to date, products may be priced below cost or loaded with a high price that weakens their competitiveness. Materials costing should therefore be linked to inventory records and production orders, not to purchase invoices alone.
Tracking waste and prices manually consumes the finance team’s time, while ERP systems such as Riv-ERP help record the movement of materials from purchasing to inventory and then issue to the production line.
To understand the difference between methods of costing direct materials, the following table shows the main approaches and how well each suits different types of factory:
| Calculation Method | Accuracy Level | Potential Risks | Recommendation |
|---|---|---|---|
| Fixed estimated average | Low | Hides waste variances and price fluctuations | Not suitable for multi-product factories |
| Actual tracking per production batch | High | Requires additional manual effort | Suitable for small and medium factories |
| Automated calculation through ERP systems | Very high | Initial implementation cost | Best for large and growing factories |
Controlling direct costs starts with inventory management: identifying quantities received and issued, reviewing balances, and linking every issue to a clear production order. You can read our article on inventory management in Saudi factories to learn more about this area.
The accounting policy that sets out the treatment of waste should also be reviewed. Once the materials calculation is complete, the next component becomes clearer: the direct labor that turns these materials into a finished product.
Component Two: Direct Labor (DL)
Direct labor costs are not limited to basic salary. Calculating them requires identifying the wages and benefits associated with workers who actually take part in manufacturing the product. This includes production line workers and machine operators, while management or technical support salaries are not direct labor unless they can be linked directly to a specific production order under the approved costing policy.
The loaded hourly rate includes salary and may include allowances, statutory benefits and other employment-related costs, depending on the worker’s contract and the company’s accounting policy. You should therefore not assume that housing or transport allowances apply the same way across all contracts; the applicable regulations and internal documents should be reviewed.
Direct labor is calculated with the following formula: DL = actual productive labor hours x loaded hourly rate. This means that calculating the hourly cost requires reliable data on the hours that genuinely contributed to production, not just total attendance hours.
Overtime needs a separate review, as it may be calculated at a different rate under the regulations, the contract or the company’s policy. If it is relied on repeatedly, it raises the average hourly cost and affects the cost of every unit. The method used to calculate overtime pay should therefore be clearly defined before it is included in the product cost calculation.
Actual production hours must be distinguished from downtime. A worker may be present for eight hours, but part of that time goes to waiting for materials, fixing a breakdown or carrying out maintenance. There is no single treatment that fits every downtime case; some costs may be charged to production, or recorded as idle capacity or an operating cost, depending on the cause of the downtime and the costing system in use.
Mixing attendance hours with productive hours can distort cost and make it difficult to gauge production line efficiency. Separating the data helps management identify the impact of breakdowns, waiting time and overtime, and take appropriate action instead of automatically loading every variance onto the product. The following table shows the difference between types of hours:
| Type of Hours | Description | Impact on Unit Cost |
|---|---|---|
| Actual production hours | Direct worker time spent manufacturing | Allocated fairly across units produced |
| Downtime or maintenance hours | Waiting for materials, breakdowns, scheduled maintenance | Raises cost if counted as production |
| Overtime hours | Time outside regular working hours at a higher pay rate | Increases average hourly cost when repeated |
In practice, labor hours, production orders and downtime hours should be recorded in separate logs, then matched against workers’ payroll. This review improves the accuracy of direct cost calculations, instead of relying on a single total figure at the end of the month.
ERP systems such as Riv-ERP can support recording hours and linking them to production orders, reducing manual spreadsheets, once wage and downtime rules are configured in the system.
Rules on overtime and allowances in Saudi Arabia are governed by the Labor Law and the applicable contracts, and the details may vary from case to case.
A worker’s true cost is not measured by salary alone, but by the hours during which they actually contribute to producing units.
After calculating direct labor costs, moving on to indirect costs is essential: they complete the cost picture and show each unit’s share of electricity, maintenance, depreciation and shared resources.
Component Three: Indirect Costs (Overhead)
If materials and labor are the visible part of cost, factory overhead covers the shared expenses that are hard to link directly to a single unit. Examples include electricity, rent, maintenance, depreciation and supervision of production lines.
The difficulty lies not only in identifying these costs, but in allocating them fairly across products. Electricity, for example, may be partly fixed or variable depending on the operating pattern and machine hours, so an equal split across every product is not always appropriate.
The allocation basis is chosen according to the nature of manufacturing: it may be machine hours, direct labor (DL) hours, number of units, or floor space used. The basis must reflect actual resource consumption so that the cost calculation remains accurate.
The allocation rate is calculated with the following formula: Overhead Rate = total indirect costs / total allocation base. This rate helps factory management charge each product its share of shared expenses, then analyze the variances between planned and actual cost.
The following table shows common examples of factory overhead items, with the most logical allocation basis for each:
| Type of Indirect Cost | Practical Examples | Suggested Allocation Basis |
|---|---|---|
| Energy and utility costs | Electricity, water, industrial gas | Machine operating hours |
| Facility costs | Rent, insurance, security | Floor space allocated to each production line |
| Maintenance and depreciation | Scheduled maintenance, equipment depreciation | Equipment usage hours |
| Administrative supervision | Supervisor salaries, quality control | Number of units produced |
To illustrate, suppose Factory C in the Jeddah industrial area recorded indirect costs of SAR 120,000, with an allocation base of 10,000 machine hours. The Overhead Rate would be SAR 12 per machine hour. If a product uses two machine hours, its share of overhead is SAR 24. This approach gives a more realistic value when calculating product costs.
These costs and records should be documented in line with the applicable regulatory requirements and accounting policies, in line with the instructions of the Zakat, Tax and Customs Authority.
Errors in allocating factory overhead can load a product with higher or lower costs than reality, affecting the selling price and the company’s decisions about which products are most profitable in the market. The allocation basis should therefore be reviewed whenever production volume changes or a new line is added.
ERP tools such as Riv-ERP help record data and link expenses to manufacturing lines, but the accuracy of the result depends on the quality of inputs and the choice of an appropriate basis. Once materials, labor and indirect costs are understood, they can be combined in a single formula for a more precise analysis of each product’s cost.
How Do You Combine the Three Components Into a Single Cost?
Calculating production cost requires combining direct materials, direct labor and the unit’s share of indirect costs into one figure. The basic formula is: Total unit cost = direct materials + direct labor + share of indirect costs. This result shows the manufacturing cost, but it does not automatically represent the selling price.
The unit cost calculation process starts by unifying data on raw materials, production orders, labor hours and the overhead allocation basis. Without an organized source, costs may be recorded in different periods, or materials, labor and expense data may be gathered from conflicting spreadsheets.
To build a reliable system, you can follow these steps:
- Unify the data source for materials, labor and indirect costs.
- Define the unit of measure, such as the unit produced or the batch.
- Choose an appropriate allocation basis, such as machine hours or direct labor hours.
- Review the variances between actual cost and planned cost.
- Document the result in a central record before using it for pricing.
To apply the formula in practice, suppose Factory C in the Jeddah industrial area produces a unit that uses direct materials worth DM = SAR 48 and direct labor worth DL = SAR 22. The factory recorded monthly indirect costs of SAR 120,000 against a total allocation base of 10,000 machine hours.
The allocation rate is: Overhead Rate = 120,000 / 10,000 = SAR 12 per machine hour. If the unit uses two machine hours, its share of indirect costs is: Overhead = 12 x 2 = SAR 24.
The CTA, or total unit cost, is therefore: CTA = DM + DL + Overhead = 48 + 22 + 24 = SAR 94 per unit. This figure represents the calculated production cost; it does not mean the selling price should be SAR 94. Setting the price requires adding a profit margin and taking into account the market, sales and other commercial costs.
This approach gives management a clearer basis for analyzing the profitability of each product and making decisions on pricing or increasing production. It also helps compare the cost of units and batches, and uncover the causes of rising costs before approving any expansion plan.
Many companies rely on separate spreadsheets for materials, labor and indirect costs, which increases the likelihood of errors when combining them. A factory costing system or an ERP such as Riv-ERP can help gather data from a single source, provided the calculation rules are configured and the results reviewed.
Always distinguish between unit cost, inventory value and selling price. Each figure serves a different purpose, and the calculated cost should not be used as a final price without analyzing profit margin and demand.
| Component | Calculation Method | Value per Unit (SAR) |
|---|---|---|
| Direct materials | Quantity consumed x unit price | 45 |
| Direct labor | Labor hours x hourly wage | 20 |
| Indirect costs | Allocation rate x chosen unit of measure | 15 |
| Total | – | 80 |
The table above shows a separate example in which the total cost is SAR 80, because 45 + 20 + 15 = 80. The Factory C example, meanwhile, shows how DM, DL, the Overhead Rate and CTA are used with different figures. In both cases, the accuracy of the production cost calculation depends on the quality of the data and the allocation basis chosen.
Accuracy in combining the three components is not an accounting luxury; it is the foundation for pricing and production decisions and for improving companies’ profitability.
The Difference Between Absorption Costing and Marginal Costing
When an additional order arrives at a lower-than-usual price, it is not enough to compare the price with a unit cost calculated once. The manager needs to know which costs will change because of the order, whether spare production capacity is available, and how the decision affects profit and inventory.
In industrial cost accounting, there are two main approaches to calculating product cost: absorption costing and marginal costing. Each serves a different purpose, so the cost calculation method should be chosen according to the type of report or decision required.
Absorption costing includes materials, direct labor and all fixed and variable indirect costs. Total production cost is thus spread across units and feeds into inventory valuation and financial reports under the applicable accounting framework.
Marginal costing focuses on the costs that change when an additional unit is produced, such as certain materials, wages and energy consumption. This does not mean fixed costs disappear; they are presented separately when analyzing the decision’s impact on profitability.
For example, if the price of the additional order is SAR 70 and the marginal cost per unit is SAR 55, accepting it may appear worthwhile if there is idle capacity. Before deciding, however, shipping, quality and commission costs should be examined, along with the order’s impact on inventory and on higher-priced orders. The difference alone therefore does not prove the order is profitable.
Marginal costing is a tool for short-term decisions, not an automatic substitute for absorption costing in financial reports or inventory valuation. Using it also requires a sound classification of fixed and variable costs and a review of the assumptions used.
“The right decision is not about choosing one costing method, but about knowing which method serves the decision in front of you.”
The following table summarizes the key differences between the two approaches:
| Criterion | Absorption Costing | Marginal Costing |
|---|---|---|
| Costs included | Materials, labor, fixed and variable costs | Materials, labor, variable costs only |
| Best use | Annual financial reports | Short-term pricing decisions |
| Inventory impact | Charges part of fixed costs to inventory | Charges no fixed costs to inventory |
| Decision speed | Slower, requires comprehensive analysis | Faster, focuses on marginal cost |
Some financing programs or funders may request a cost analysis, and requirements vary according to the terms of each program. Providing accurate cost data remains important for every company when preparing reports or applying for financing.
Once materials, labor and indirect costs are understood, choosing the right approach becomes a better tool for analyzing product profitability and making decisions on price, production and market.
An ERP system such as Riv-ERP can help a company prepare multiple reports according to its approved costing settings. Automating the calculation reduces the need to rebuild spreadsheets manually and allows inventory value and cost to be reviewed more consistently.
To find out how to apply the right model in your factory, visit riv-erp.com.
The Role of ERP in Automating This Calculation
Once you understand how to calculate production cost manually, an ERP system can link purchasing, materials, labor and operating expenses in a single source, provided that the costing rules and data quality are properly set up.
A factory costing system helps record invoices, labor hours and production orders, then prepare reports that help management analyze the variances between actual and planned cost. This does not mean results appear automatically without review; the accuracy of each product’s cost calculation depends on the settings and inputs.
Unifying data reduces manual transfers between multiple files and supports inventory management and the linking of materials, labor and costs to products.
The following table shows the difference between manual calculation and an automated system:
| Criterion | Manual Calculation | Automated ERP System |
|---|---|---|
| Time required each month | Several days to compile data | Ready reports based on system settings |
| Likelihood of error | High due to manual data transfer | Lower when data is linked and reviewed |
| Price updates | Every spreadsheet must be edited manually | Can flow through to products once data is updated |
| Accuracy of financial reports | Depends on intensive human review | Depends on unified data and correct configuration |
Before choosing any system, the factory’s needs should be defined, such as linking purchasing to materials, recording labor, allocating indirect costs, and preparing inventory and profitability reports. You can read our article on how to choose an ERP system for your factory to learn about implementation criteria.
Riv-ERP offers functions that help gather purchasing, labor and expense data. The cost calculation method should also be tested on real data and the results reviewed with the accounting and production teams.
To learn more about how it works, visit riv-erp.com.
Would you like to test the calculation method on your factory’s data? Request a demo after defining the scope of the data and reports you need, and compare the results before making a decision.
Conclusion
Cost accuracy starts with defining materials, labor and overhead, then linking them to production orders and allocating them on an appropriate basis. This helps companies set selling prices, analyze profitability and make better decisions, bearing in mind that a system is a management tool, not a substitute for accounting review.
Frequently Asked Questions
What is the difference between fixed and variable overhead in factories?
Fixed factory overhead includes costs that do not change directly with production volume, such as factory rent and insurance. Variable overhead is linked to the level of operations, such as the additional electricity consumed when machine operating hours increase. The same item may have both a fixed and a variable element, so the cost pattern should be analyzed and an appropriate allocation basis chosen so that product cost and pricing decisions are not distorted.
How should I deal with raw material price fluctuations when calculating unit cost?
It is best to record the cost of each purchase batch and review the pricing policy periodically, rather than relying on a fixed average without analysis. This helps narrow the gap between actual and planned cost.
How are direct labor costs calculated correctly?
Direct labor is calculated by multiplying actual productive labor hours by the loaded hourly rate, which includes salary and may include allowances and other employment-related costs depending on the contract and company policy. Productive hours should be separated from downtime and overtime should be reviewed separately, so that unit cost is not distorted.
Can production cost be calculated manually without a specialized system?
Yes, but the calculation becomes harder as the number of products, production lines and data sources grows. A small factory can use well-organized spreadsheets, while larger factories may need a system that unifies the information.
What are the signs that your current costing system needs updating?
The most prominent signs are delayed reports, recurring variances between expected and actual cost, and difficulty explaining the profitability of each product or tracking inventory. When these indicators appear, procedures and data should be reviewed before buying a new tool.
