New · CMCG Online Academy — 10 free accounting lessons · 10 free lessonsTry it
Solved exercises

Cost accounting: 4 fully worked exercises

Practise full costing, weighted average cost, analytical margin, and break-even on four original worked cases.

CMCG diagram of costs and margin in cost accounting
New · CMCG’s flagship program

Practise this topic in CMCG Online Academy

Short lessons and corrected exercises on Moroccan accounting. The introduction (10 lessons) is free: your first name and city are enough.

Start for free

Cost accounting turns expenses into decision information. These cases move from cost classification to break-even analysis.

This page is a self-contained workshop. Attempt each case before reading the solution, then compare the reasoning rather than only the final number. Amounts are in Moroccan dirhams (DH), and every case is original.

Reviewed by Hassan Ekhailou, founder of CMCG in Tangier.

Build on this topic with CMCG Online Academy, with accounting lessons, practice and assessments, plus French courses.

How to work through the cases

Read the requirement, isolate the useful data, write the formula before inserting numbers, and test whether the result makes economic sense. In accounting, an unexplained number is not a complete answer.

Exercise 1 — Allocate indirect costs

Case

Products A and B use DH110,000 and DH70,000 of materials plus DH60,000 and DH36,000 of labour. Allocate DH72,000 of workshop overhead 60% to A and 40% to B. Output is 1,200 A and 800 B. Find unit full cost.

Worked solution

A receives DH43,200 of overhead: (110,000 + 60,000 + 43,200) / 1,200 = DH177.67. B receives DH28,800: (70,000 + 36,000 + 28,800) / 800 = DH168.50.

Check. All DH72,000 is allocated and total cost equals DH348,000.

Common mistake. Dividing overhead by total units and ignoring the 60/40 allocation key.

Exercise 2 — Calculate weighted average cost after a receipt

Case

Opening inventory is 500 units at DH40. A purchase adds 700 units at DH44 plus DH2,800 of attributable transport. Calculate weighted average cost, a 900-unit issue, and closing inventory.

Worked solution

Available cost is 20,000 + 30,800 + 2,800 = DH53,600 for 1,200 units. Weighted average is DH44.6667. The issue is DH40,200 and the 300-unit closing inventory is DH13,400.

Check. Issue plus closing inventory reconstructs DH53,600.

Common mistake. Omitting transport even though it is directly attributable to the purchase.

Exercise 3 — Measure analytical margin

Case

A 5,000-unit batch costs DH250,000 in materials, DH120,000 in production, and DH45,000 in distribution. The company sells 4,200 units at DH110. Value closing stock at production cost and calculate analytical profit on units sold.

Worked solution

Unit production cost is 370,000 / 5,000 = DH74. Closing inventory is 800 × 74 = DH59,200. Production cost sold is DH310,800. Adding DH45,000 distribution gives DH355,800 cost of sales. Revenue is DH462,000, so profit is DH106,200.

Check. Closing inventory does not absorb the period's distribution cost in this case.

Common mistake. Valuing the 800 remaining units at the DH110 selling price.

Exercise 4 — Find break-even point

Case

Unit selling price is DH120, variable cost is DH72, and fixed cost is DH180,000. Find break-even in units and revenue, then forecast profit at 4,800 units.

Worked solution

Unit contribution is DH48. Break-even is 180,000 / 48 = 3,750 units, or DH450,000 revenue. At 4,800 units, profit is 4,800 × 48 - 180,000 = DH50,400.

Check. At break-even, total contribution of DH180,000 exactly covers fixed cost.

Common mistake. Dividing fixed cost by selling price rather than unit contribution.

Suggested revision plan

Repeat all four exercises after 24 hours without the solutions. Track classification, calculation, and interpretation errors separately because each needs a different correction strategy.

Download the PDF workbook

The printable workbook adds a fresh practice set and a self-check grid: Cost accounting: 4 fully worked exercises — PDF.

Related CMCG guides

To strengthen the entries behind these calculations, revisit debit and credit and trial-balance analysis.

Reference framework

The general principles follow the logic of Morocco's General Code of Accounting Standardisation (CGNC). Audit cases also use international auditing terminology without replacing a professional engagement.

Frequently asked questions

Are these exercises adapted to Morocco?

Yes. The terminology, DH amounts, and financial statements fit learners in Morocco. The cases are educational; a real tax, legal, or audit decision still requires the applicable rules and the entity's facts.

Should I memorise the answers?

No. Memorise the process: classification, formula, calculation, control, and interpretation. Numbers change, but that reasoning chain transfers to new cases.

Continue learning with CMCG

Build on this topic with CMCG Online Academy, with accounting lessons, practice and assessments, plus French courses.

Related training: practical accounting training in Tangier · online accounting course

Turn what you read into real practice.

Work on real accounting files with a certified accountant, in Tangier or online.

Message on WhatsApp
Message on WhatsAppOnline Academy