Cost accounting is the discipline that establishes what a single unit of your product actually costs — not the month's total expenses divided by output. Without accurate costing, a factory owner can sell a product below its real cost, believe the business is profitable, and lose money on every single piece that leaves the gate.
This article is a complete teaching guide. We will cover the fundamentals of cost accounting, the four principal costing methods, and apply all of it to a real example: a canvas shoe factory, worked through in detail. If you follow it on a shoe factory, you can apply the same method to any other plant — apparel, furniture, food, HVAC and so on.
Part one: why cost accounting is not optional
Picture the situation. A canvas shoe factory in 10th of Ramadan City produces 10,000 pairs a month. The owner sells a pair for EGP 120. His mental model of cost versus price is simple:
- Total monthly expenses: EGP 800,000
- Output: 10,000 pairs
- "Cost": EGP 80 per pair
- "Profit": EGP 40 per pair x 10,000 = EGP 400,000 a month
The problem? Those numbers are thoroughly misleading. Here is why:
- The factory produces three different models — each with a different cost
- Some models consume more material and more labour
- Total expenses mix fixed costs (rent, administrative salaries) with variable ones (materials)
- The premium model costing EGP 110 sells at EGP 130 — a margin of just EGP 20
- The basic model costing EGP 60 sells at EGP 100 — a margin of EGP 40
When management decided to drop the basic model because its price point looked "unexciting" and concentrate on the premium line with the "higher price", they discovered three months later that they were losing money. Why? Because the premium model's real cost was 110, not the 80 average.
Cost accounting gives you the true cost of each product, not an average. That is what lets you make correct decisions about pricing, promotion, and which models to discontinue.
Part two: classifying costs
Before calculating anything, you need to understand how costs are classified. There are three main axes:
1. By relationship to the product: direct versus indirect
| Type | Definition | Examples in a shoe factory |
|---|---|---|
| Direct cost | Can be traced to a specific product easily | Canvas, soles, adhesive, the stitcher's labour |
| Indirect cost | Cannot be attributed to one product | Factory electricity, building rent, the supervisor's salary, maintenance |
2. By relationship to volume: fixed versus variable
| Type | Definition | Examples |
|---|---|---|
| Fixed cost | Does not change with output | Factory rent, the general manager's salary, annual depreciation |
| Variable cost | Moves with output | Raw materials, piece-rate production labour, operating electricity |
| Semi-variable cost | A fixed component plus a variable one | Electricity (meter charge plus consumption), telephone |
3. By function: manufacturing versus non-manufacturing
- Manufacturing cost: everything related to production (materials, labour, manufacturing overhead)
- Non-manufacturing cost: sales, marketing, administration, research and development
Part three: the three elements of manufacturing cost
Every manufactured product's cost is built from three elements. This is what is known as the fundamental cost equation:
Product cost = direct materials + direct labour + manufacturing overhead
Element 1: direct materials
The inputs that physically become part of the product and can be seen in it. For a canvas shoe factory:
- Canvas
- Insole
- Outsole
- Laces
- Metal eyelets
- Thread
- Industrial adhesive
- Dye
- Packaging carton
An important rule: very small inputs whose value is immaterial (thread, adhesive) can be treated as indirect materials to keep the accounting manageable. But canvas and soles must be treated as direct.
Element 2: direct labour
The wages of workers who physically handle the product or operate the machine that makes it. In a shoe factory:
- The cutter
- The stitcher
- The assembler, who bonds the sole to the upper
- The finishing and packing operator
Not direct: the supervisor's salary, security, cleaning staff, administrators. Those belong in manufacturing overhead.
Element 3: manufacturing overhead
Every manufacturing cost that is neither direct material nor direct labour. This is the hardest part of the exercise, because it has to be allocated across products. It includes:
- Factory electricity
- Building rent
- Machine depreciation
- Machine maintenance
- Supervisor and production manager salaries
- Social insurance contributions for production workers
- Indirect materials (thread, minor adhesives)
- Internal materials handling
- Water
- Boiler gas
Part four: a fully worked example — costing one pair of canvas shoes
Let us apply everything to a real case. "Nile Footwear" produces a single model for simplicity: a size 42 canvas trainer.
Step one: direct materials per pair
| Material | Quantity | Unit price | Cost |
|---|---|---|---|
| Canvas (metres) | 0.5 m | EGP 40/m | 20.00 |
| Outsole | 1 pair | EGP 15 | 15.00 |
| Insole | 2 pieces | EGP 3 | 6.00 |
| Laces | 2 laces | EGP 1.5 | 3.00 |
| Metal eyelets | 16 pieces | EGP 0.10 | 1.60 |
| Carton | 1 carton | EGP 2.5 | 2.50 |
| Total direct materials | 48.10 |
Step two: direct labour per pair
The factory employs 50 production workers at EGP 4,000 a month, or EGP 200,000 monthly. Output is 10,000 pairs a month.
Method 1 — flat allocation (simplified):
200,000 / 10,000 = EGP 20 of direct labour per pair
Method 2 — actual time (accurate):
Each pair takes 30 minutes of work (cutting, stitching, assembly, finishing). The hourly rate is EGP 25. Cost = 25 x 0.5 = EGP 12.50
We will use the accurate method. Direct labour = EGP 12.50
Step three: manufacturing overhead
This is the difficult part. First, total the monthly indirect costs:
| Item | Monthly cost |
|---|---|
| Factory rent | 30,000 |
| Factory electricity | 25,000 |
| Machine depreciation (240,000 annual / 12) | 20,000 |
| Machine maintenance | 8,000 |
| Supervisor's salary | 10,000 |
| Production manager's salary | 15,000 |
| Social insurance for workers (~25% of payroll) | 50,000 |
| Indirect materials (thread, adhesive, dye) | 12,000 |
| Internal handling and other | 5,000 |
| Total manufacturing overhead | EGP 175,000/month |
The real question: how do we spread EGP 175,000 across 10,000 pairs?
Allocation method 1: per unit
175,000 / 10,000 = EGP 17.50 per pair
Simple, but inaccurate as soon as your models differ.
Allocation method 2: on direct labour hours (the most common)
Total monthly direct labour hours = 50 workers x 8 hours x 25 days = 10,000 hours
Overhead rate = 175,000 / 10,000 hours = EGP 17.50 per hour
Each pair consumes 0.5 hours, so 17.50 x 0.5 = EGP 8.75 per pair
This is the method we will use.
The result: cost of one pair
| Direct materials | 48.10 |
| Direct labour | 12.50 |
| Manufacturing overhead | 8.75 |
| Total manufacturing cost per pair | EGP 69.35 |
If the pair sells for EGP 120, gross profit is EGP 50.65 per pair, or EGP 506,500 a month.
But hold on — that is not net profit. There is still:
- Selling and marketing costs (sales rep salaries, advertising)
- Administrative costs (general manager, accountant, head office rent)
- Finance costs (loan interest)
- Tax
If those total EGP 250,000 a month, or EGP 25 per pair, net profit becomes EGP 25.65 per pair.
Part five: the four costing methods
1. Job order costing
Suits production where every batch differs (make-to-order). Each job carries its own separate cost.
Example: a factory producing 500 pairs in custom colours for a travel company plus 1,000 standard trainers. Each job gets its own cost record.
When to use it: make-to-order production, customised products, contracting firms.
2. Process costing
Suits continuous production where all units are identical. Cost is spread across total output.
Example: a factory producing one model at 10,000 pairs a month — our example above.
When to use it: high-volume identical output, large plants, chemicals, food.
3. Standard costing
Before the period begins, management sets a standard cost per product based on experience. During operations, actual cost is compared against standard. The variances reveal waste or efficiency.
Example: standard is 0.5m of canvas per pair. Actual is 0.55m. The variance is 0.05m x EGP 40 x 10,000 pairs = EGP 20,000 lost monthly to canvas wastage.
When to use it: any serious factory that wants to measure efficiency and control quality.
4. Activity-based costing (ABC)
The newest and most accurate approach. It allocates indirect costs across activities rather than units or hours, with each activity carrying its own driver.
Example: machine maintenance allocated by machine running hours. Quality control costs allocated by number of inspections. Shipping costs by number of shipments.
When to use it: complex plants with many products, and service businesses.
Part six: variance analysis
This is the beating heart of cost accounting. The gap between standard and actual cost is the variance, and analysing it exposes production problems.
The principal variances
1. Material price variance
Standard: canvas at EGP 40/m. Actual: EGP 45/m. Variance = (45 - 40) x quantity used. Unfavourable means suppliers raised prices, or your order volumes are too small to earn a discount.
2. Material usage variance
Standard: 0.5m per pair. Actual: 0.55m. Variance = (0.55 - 0.5) x pairs x unit price. Unfavourable means production waste, undertrained operators, or ageing machinery.
3. Labour rate variance
Standard: EGP 25/hour. Actual: EGP 28/hour. Unfavourable means unplanned overtime.
4. Labour efficiency variance
Standard: 0.5 hours per pair. Actual: 0.6 hours. Unfavourable means workers are slower than assumed, machines went down, or materials arrived late.
5. Overhead variance
Splits into spending variance and efficiency variance. More involved, but important.
How to act on a variance
- Find the cause: ask the supervisor, read the quality reports, review supplier invoices
- Classify it: is it controllable or uncontrollable?
- Take action: change supplier, train operators, service the machine, or revise the standard if it was unrealistic
- Review monthly: a variance that repeats for three months is a structural problem that needs fixing
Part seven: cost accounting KPIs
| Metric | Formula | Target |
|---|---|---|
| Unit cost | Total cost / units produced | Falling over time |
| Gross margin | (Revenue - cost) / revenue | Rising over time |
| Waste percentage | Material wasted / material used | Below 5% |
| Labour efficiency | Standard hours / actual hours | Above 95% |
| Machine effectiveness (OEE) | Quality x performance x availability | Above 85% |
| Conversion cost | Labour + overhead | Falling as a share of revenue |
Part eight: seven common cost accounting mistakes
- Ignoring depreciation — every machine loses value annually, and that has to enter the cost. Leaving it out understates product cost
- Allocating overhead badly — allocating per unit when models differ in production time penalises some products and flatters others
- Not tracking waste — if 5% of the canvas is miscut, that has to be carried by the remaining 95%
- Treating social insurance as an administrative cost — for a production worker it is a manufacturing cost
- Not accounting for idle time — a worker is present for 8 hours but the product consumes 6 of them. The other 2 hours of downtime and breaks still have to be absorbed
- Never updating the standard — if canvas prices rise, the standard must move. Clinging to an old standard hides problems
- Confusing pricing with costing — cost is what you pay; price is what you ask. Price = cost + margin + tax, not the other way round
Part nine: implementing cost accounting in your factory
Step 1: start with classification
List every monthly expense and classify it: direct materials, direct labour, manufacturing overhead, selling and marketing, administrative. This may take a week.
Step 2: choose your allocation basis
Pick a driver for each indirect cost. The most common is direct labour hours — but if your machines differ substantially, consider machine hours instead.
Step 3: set standards
For each product: how many metres of canvas? How many labour hours? Start with an estimate grounded in reality, and refine after two weeks of observation.
Step 4: capture actual data
For every job: materials consumed, actual labour hours, any stoppages. An ERP makes this dramatically easier.
Step 5: compare and analyse
At the end of each week or month: standard versus actual. Investigate any variance above 3%.
Step 6: make decisions
On the basis of the numbers: change supplier, train an operator, discontinue a loss-making model, raise a price, lower a price.
Part ten: cost accounting by hand versus in an ERP
The theory is elegant. Doing it in Excel is a nightmare. Consider:
- Tracking 50 workers x 25 days x hours per job = 1,250 entries a month
- Tracking every material against every job
- Allocating overhead across every product
- Calculating variances for every line
- Repeating the whole exercise every month
A single accountant can need 5-10 days a month just to close the period.
Modern ERPs (Hunt ERP, Odoo, SAP) do this automatically:
- Every job is recorded in the system
- Materials are drawn from stores with each operation
- Labour hours come from the biometric clock
- Overhead is allocated automatically
- Actual-versus-standard cost reports appear live
At Hunt ERP we have a manufacturing and production module that does all of this daily and automatically, plus a make-to-order module for factories producing customised goods. But the point of this article stands: understand the fundamentals first. Any system, however powerful, will hand you numbers you cannot interpret if you do not understand cost accounting.
The bottom line
Cost accounting is not just "for accountants". It is the operating mind of the factory. A factory owner who does not know the real cost of their products is a factory owner operating in the dark.
The example we worked through (EGP 69.35 per pair of canvas shoes) may look simple, but a complete methodology sits behind it. Applying that methodology to your own plant reveals:
- Which products genuinely make money, and which only look good on paper
- Where waste and losses are hiding
- Worker and machine efficiency
- The safe floor price below which every sale is a guaranteed loss
- Strategic decisions: which line to expand, which model to retire
Start simple. Apply it to one product, set standards, compare against actuals, learn, and expand. The best time to start cost accounting was five years ago; the second best time is today.
For those who want to go deeper, I recommend Cost Accounting: A Managerial Emphasis by Charles Horngren — a comprehensive university reference. For practical development, the Institute of Management Accountants (IMA) offers the globally recognised CMA certification.
Ready to see your company reports done right? Request a custom quote or start with a free trial .