The firm opens soon. Guides and calculators are already free to use —get notified when we open
Finance basics

Cost price: step-by-step calculation method (purchase, production and full cost) with a worked example

From purchase cost to full cost price: direct and indirect costs, allocation keys, selling price and margin. Worked example of a production workshop in MAD.

Published 9 min readLevel: IntermediateEl Arabi Aich

In brief
  • Purchase cost includes the purchase price and landed costs; production cost adds direct labour and production overheads; full cost price adds distribution and administration expenses.
  • Direct costs are assigned unambiguously to a product; indirect costs are allocated using drivers (machine hours, labour hours, quantities).
  • The selling price is built from the full cost price plus the target margin, then tested against the market price.
  • Do not underestimate indirect costs: this is the leading cause of underpriced goods and services.

Setting a price without knowing your cost price is like sailing without a chart. Many Moroccan SMEs sell at “a market price” without knowing whether each product makes or loses money. The full costing method answers this question in three stages: purchase cost, production cost, and full cost price.

The three levels

Level Contents Formula
Purchase cost Net purchase price + landed costs (freight, customs, insurance, handling) Purchase price excl. VAT + purchasing costs
Production cost Purchase cost of materials consumed + direct labour + indirect production costs Materials + DL + IPC
Full cost price Production cost of goods sold + distribution costs + administration costs Production cost + DC + AC

These figures are excluding VAT: recoverable VAT is not a cost.

Direct and indirect costs

  • Direct: assigned immediately to a specific product (raw materials for a batch, hours worked on a specific order).
  • Indirect: shared across multiple products (workshop rent, electricity, supervision, maintenance). They are allocated using cost drivers (allocation keys): machine hours, labour hours, floor space, quantity produced, or material value.

Worked example: a joinery workshop

A workshop manufactures two products: doors (A) and windows (B). Monthly figures:

Item Doors (A) Windows (B) Total
Quantity produced and sold 200 300
Direct materials (MAD) 80,000 120,000 200,000
Direct labour hours 1,000 1,400 2,400
Direct labour hourly rate (MAD) 40 40
Machine hours 600 900 1,500
Indirect production costs (workshop rent, energy, maintenance, depreciation) 90,000
Distribution costs (sales team, delivery) 36,000
Administration costs 24,000

Step 1: direct costs

  • DL A = 1,000 × 40 = 40,000; DL B = 1,400 × 40 = 56,000.

Step 2: indirect production costs allocated by machine hours (1,500 h): rate = 90,000 ÷ 1,500 = MAD 60 per machine hour.

  • A: 600 × 60 = 36,000; B: 900 × 60 = 54,000.

Step 3: production cost

A B
Materials 80,000 120,000
DL 40,000 56,000
Indirect costs 36,000 54,000
Production cost 156,000 230,000
Per unit 780 766.67

Step 4: distribution and administration costs allocated pro rata to production cost (total 386,000): distribution 36,000 ÷ 386,000 = 9.33% and administration 24,000 ÷ 386,000 = 6.22%.

  • A: distribution 14,549; administration 9,699; B: distribution 21,451; administration 14,301.

Step 5: full cost price

A B
Production cost 156,000 230,000
Distribution 14,549 21,451
Administration 9,699 14,301
Total full cost price 180,248 265,752
Unit full cost price 901.24 885.84

The effect of choosing the allocation key

Indirect production costs (MAD 90,000) were allocated by machine hours. Another driver is possible: direct labour hours. The result changes:

Doors (A) Windows (B) Total
Machine hours 600 900 1,500
Direct labour hours 1,000 1,400 2,400
Allocation key Rate Indirect costs for A Indirect costs for B Production cost per unit of A per unit of B
Machine hours (base case) MAD 60/h 36,000 54,000 780.00 766.67
Labour hours MAD 37.50/h 37,500 52,500 787.50 761.67

The difference is modest here (less than 1% of production cost) because both products consume resources in similar proportions. For a business whose products differ sharply (one highly mechanised, another highly manual), the choice of allocation key noticeably changes unit costs — and therefore prices and the decision to keep or discontinue a product.

Selection principle: choose the driver that best reflects the actual consumption of the costly resource. If overheads consist mainly of machine depreciation and energy, machine hours are appropriate; if they are mainly tied to labour (supervision, training), direct labour hours are more relevant.

Full costing or variable costing: which decision?

Full cost price allocates fixed costs. It is used to set an average price that covers all expenses. For a one-off decision (accepting a discounted order during a quiet period), you reason in variable cost: only the costs that would disappear if the order were declined matter.

Product A, for an order of 20 doors Full cost Variable cost
Materials (MAD 400 per door) 8,000 8,000
Direct labour (MAD 200 per door) 4,000 4,000
Indirect production costs (MAD 180 per door) 3,600 0 (fixed: already incurred)
Distribution and administration costs 2,400 0
Total 18,000 12,000
Cost per door 900 600

An order offered at MAD 800 per door is below full cost (900) but above variable cost (600): it generates MAD 4,000 of contribution margin (20 × 200) to help absorb fixed costs. Provided capacity is available and the price does not become the benchmark for other customers, it can be accepted. Full costing remains the benchmark for long-term pricing policy.

Preparing a quote from the full cost price

A joinery business receives a request for 20 bespoke doors. It calculates its price from its full cost price.

Item Calculation Amount (MAD)
Materials (wood, hardware) 20 × 400 8,000
Direct labour 20 × 200 4,000
Indirect production costs 20 × 180 3,600
Production cost 15,600
Distribution and administration costs (13%) 13% × 15,600 2,028
Full cost price 17,628
Target margin (25% mark-up rate on selling price) 17,628 ÷ 0.75
Selling price excl. VAT 23,504
Margin 23,504 − 17,628 5,876
VAT at 20% 4,701
Price incl. VAT 28,205

The price per door is MAD 1,175 excl. VAT. If the customer asks for a 10% discount (MAD 2,350), the margin drops to MAD 3,526 (16.7% of the selling price), and the business must decide whether the order remains worthwhile (see the article on margin and mark-up rate).

Actual cost vs standard cost

Many companies calculate a standard cost (budgeted) and compare it with the actual cost to manage variances. Let us return to the production of 20 doors:

Item Standard Actual Variance Possible cause
Materials 8,000 8,900 +900 Increase in wood price (+8%) and extra offcuts (+3%)
Labour 4,000 4,600 +600 Overtime to meet the deadline
Indirect costs 3,600 3,700 +100 Energy consumption
Total 15,600 17,200 +1,600 +10.3%

Breakdown of the material variance: price variance = (actual price − standard price) × actual quantity; quantity variance = (actual quantity − standard quantity) × standard price. This analysis guides corrective action: renegotiating purchase prices or reducing workshop waste. Monthly monitoring of significant variances is a key profitability lever.

Machine hourly cost: a worked example

A machine costs MAD 480,000, depreciated over 8 years (60,000 per year). It consumes MAD 12,000 in energy, MAD 18,000 in maintenance and MAD 30,000 in insurance and floor-space rent per year. It operates 1,500 hours per year.

Item Annual amount (MAD)
Depreciation 60,000
Energy 12,000
Maintenance 18,000
Insurance and floor space 30,000
Total 120,000
Machine hourly cost 120,000 ÷ 1,500 = MAD 80 per hour

An order that uses the machine for 40 hours is charged MAD 3,200 in machine costs. This hourly rate is used to value jobs and to compare buying against subcontracting (if a subcontractor charges MAD 65 per hour, subcontracting is cheaper at the 1,500-hour utilisation level; if the machine ran 2,400 hours, its hourly cost would drop to MAD 50).

Topic Cost accounting Financial accounting
Included expenses Period expenses, adjusted All expenses for the financial year
Depreciation May be calculated over economic useful life Accounting depreciation schedule
Finished goods inventories Valued at production cost Valued at production cost (Law 9-88, Art. 14)
Inventory changes Factored into costs Accounts 713
Profit / loss Analytical profit/loss by product or activity Profit/loss for the financial year

Reconciling analytical profit/loss with accounting profit/loss (non-included items, imputed costs) is part of the year-end file. An unexplained discrepancy points to an allocation error.

Pitfalls to avoid

  • A single cost price for very different products: the average conceals loss-making items.
  • Outdated allocation keys that no longer reflect operations.
  • Forgetting hidden costs: returns, warranties, sales time, financing costs on inventory.
  • Using full cost for a one-off order: variable cost is more relevant.
  • Failing to update costs after a rise in raw material prices.

From cost price to selling price

For a 25% margin on the selling price (mark-up rate / gross margin on sales), the price excl. VAT is calculated as: full cost price ÷ (1 − 0.25).

  • A: 901.24 ÷ 0.75 = MAD 1,201.65 excl. VAT
  • B: 885.84 ÷ 0.75 = MAD 1,181.12 excl. VAT

If the market caps doors at MAD 1,100 excl. VAT, the actual margin on A is (1,100 − 901.24) ÷ 1,100 = 18.1%: you must either accept a lower margin, cut costs, or differentiate the offering.

Which method should you choose?

Method Principle Use
Full costing All costs allocated to products Long-term pricing, product profitability
Variable costing Only variable costs included Short-term decisions, break-even analysis
Specific costs / ABC Overheads allocated by activity Businesses with complex structures
Standard costing Predetermined costs, variance analysis Manufacturing, management control

Variances to monitor

  • Material variance: purchase price different from standard price, or excess consumption.
  • Labour variance: hourly rate or time spent.
  • Activity variance: under-utilisation leaving fixed costs insufficiently absorbed.

Putting it into practice in an SME

  1. Map your costs: analytical chart of accounts with a product or activity code.
  2. Choose simple allocation keys and document the rationale.
  3. Calculate each month the cost price of your 3 to 5 main products.
  4. Compare against the selling price and target margin.
  5. Adjust prices and organisation when costs drift.
  6. Feed the results into your break-even point and budget.

Special cases and edge situations

The company manufactures to order, with each product different. Use job costing: each job receives its own materials, labour hours and share of overheads.

Indirect costs are substantial. Activity-based costing (ABC) allocates costs according to actual cost drivers (number of orders, deliveries) and corrects distortions caused by hour-based allocation.

Production is continuous (chemicals, food processing). Process costing calculates an average cost per unit over the period, taking work-in-progress into account.

Cost price is below the market price. The company has room to manoeuvre; otherwise, decide between cost reduction, a price increase or discontinuing the product.

Actual cost persistently diverges from standard cost. Revise the standard: an overly optimistic standard cannot be used to steer the business.

Frequently asked questions

What is the difference between production cost and full cost price?

Production cost covers expenses tied to manufacturing (materials, production labour, workshop overheads). Full cost price adds distribution costs (sales, delivery) and administration costs attributable to the product — in other words, everything it cost until delivery to the customer.

What should be done with structural overheads (head office rent, senior management)?

It depends on the method: under full costing, they are allocated to products using a reasonable driver; under variable costing, they are excluded from product cost and covered by the contribution margin (see break-even point).

Is depreciation included in the cost price?

Yes, under full costing: depreciation on production equipment is part of production cost. Under variable costing, it is excluded because it does not vary with volume.

What selling price should be set?

The full cost price sets the floor. The final price depends on cost, target margin, perceived customer value and competitors’ prices. If the market will not accept a price that covers full cost, you must reduce costs or adjust the offering.

El Arabi Aich

Article written from the official texts and the firm’s engagement practice. It shows its publication date and, where applicable, its last review.

Related articles

A question about your situation?

Tell us about your project: we reply within 48 business hours with a draft engagement letter.