COST ANALYSIS all chapters-1
📚 COST ANALYSIS all chapters-1.pdf
Brief overview
This document provides a comprehensive analysis of cost accounting principles and practices essential for informed business decision-making. It covers the foundational concepts, inventory valuation, cost allocation, and the calculation of the cost of goods sold.
Key points
- Introduction to fundamental cost accounting concepts and their relation to general accounting.
- Various inventory valuation methods, including weighted average, FIFO, and LIFO.
- Allocation of indirect costs through cost centers using primary and secondary methods.
- Calculation of the cost of goods sold and management of manufacturing issues.
1. Introduction to cost accounting
1.1 Purpose of cost accounting
Cost accounting equips you with skills to use financial information. This helps in making strategic business decisions.
It tracks costs and expenses related to production or operations. The course also covers various costing methods.
These include cost per unit, total cost, and marginal cost. You will develop skills in cost analysis and decision-making.
🔑 Important: Cost accounting helps answer critical business questions like "At what price will I offer my products?" 3.
1.2 Limitations of general accounting
General accounting focuses only on external company flows. It treats the company's interior as a "black box." General accounting provides a single, summarized result for all products and activities.
It also cannot evaluate certain items like final inventory or production for internal use.
🔑 Important: General accounting shows a single result for all products combined 5.
1.3 Objectives of cost accounting
Cost accounting closes the gaps in general accounting. It illuminates the "black box" by detailing the transformation process.
Cost accounting breaks down general accounting's single result into multiple results per product. It helps evaluate inventory items by calculating unit costs.
This aids in valuing final inventory and fixed production used internally.
- Inventory tracking: Provides real-time quantities and values of raw materials, goods, and finished products.
- Cost calculation: Determines intermediate and final costs.
- Profitability analysis: Measures margin variations across production stages.
- Reconciliation: Ensures consistency between general and cost accounting logic 7.
1.4 Cost characteristics
A cost is defined as a sum of expenses for a defined element within the accounting network. Costs are characterized by three factors:
| Characteristic | Description |
|---|---|
| Content | Total costs or partial costs |
| Timing of costing | Pre-established or established (observed) |
| Scope of cost studied | Store, department, region, or customer |
1.5 General accounting vs. cost accounting
The two accounting systems differ in several key aspects. General accounting looks backward, while cost accounting considers the present and future.
Their company vision also varies, with general accounting being global and cost accounting detailed.
| Feature | General Accounting | Cost Accounting |
|---|---|---|
| Horizon | Past | Present, future |
| Company Vision | Global | Detailed |
| Expenses' Classification | By nature | By destination |
| Observed flows | External | Internal |
| Nature of Information | Precise, certified, formal | Fast, relevant |
| Objectives | Financial | Economic |
| Rules | Prescriptive rules | Flexible, scalable |
| Users | Third-Party, Management | All managers |
1.6 Expenses in cost accounting
Cost accounting expenses are derived from general accounting expenses. Adjustments are made to eliminate certain non-incorporable expenses and add others, known as supplementary expenses.
- General Accounting Expenses: Operating, financial, and non-current expenses 11.
- Cost Accounting Expenses: Adjusted general accounting expenses.
📝 Example: Adjustments include removing non-incorporable expenses and adding supplementary expenses.
1.7 Non-incorporable expenses
These are expenses not accepted by cost accounting because they do not correspond to normal operating conditions.
-
Examples include:
- Life insurance premiums.
- Amortization of preliminary costs.
- All non-current expenses.
- Certain current expenses not related to current operations.
-
Specific current expenses not considered:
- Income taxes.
- Current expenses relating to past years.
- Amortization of fixed assets with no value.
- Expenses recoverable from third parties.
- Expenses covering a risk (e.g., provision for litigation) 13.
1.8 Supplementary charges
These are additional costs that are theoretically or conventionally added to the accounting expenses.
- Types of supplementary charges:
- Theoretical or conventional cost of capital.
- Operator's conventional remuneration.
- Usage, spread, and subscription charges.
1.9 Exercise: January 2021 Expenses
An industrial company reported specific expenses in January 2021. You need to determine different categories of expenses for cost accounting.
-
General Accounting Expenses:
- Resold purchases of goods: 900,000 DH
- Consumed purchases of materials: 400,000 DH
- Insurance premium (quarterly): 60,000 DH
- Professional Fees: 15,000 DH
- Personnel Transportation: 4,000 DH
- Telephone fee (annual): 96,000 DH
- Postal Expenses: 1,000 DH
- Taxes: 22,000 DH
- Staff Compensation (semi-annual): 240,000 DH
- Interest on loans and debts: 20,000 DH
- Penalties: 12,000 DH
- Donations: 24,000 DH
- Annual depreciation of tangible fixed assets: 72,000 DH.
-
Supplementary Expenses:
- Monthly remuneration of the operator: 5,500 DH.
-
Non-incorporable Expenses:
- Penalties: 12,000 DH
- Donations: 24,000 DH
- Taxes: 22,000 DH (Income tax is generally non-incorporable)
- Insurance premium: Portion not related to January.
- Telephone fee: Portion not related to January.
- Staff Compensation: Portion not related to January.
- Annual depreciation of tangible fixed assets: This is a non-current expense, typically non-incorporable 15.
-
Cost Accounting Expenses: This involves calculating monthly accruals and excluding non-incorporable items.
🔑 Important: To calculate cost accounting expenses, you must adjust general accounting expenses by adding supplementary charges and removing non-incorporable ones. 12 16.
1.10 Exercise: January 2013 for Maroc Sud S.A.R.L.
This company organizes monthly cost accounting. You are provided with financial data and additional information.
-
General Accounting Expenses:
- Purchase of raw materials: 190,000 DH
- Purchase of packaging: 12,500 DH
- Rental and rental charges: 7,200 DH
- Advertising: 8,800 DH
- Taxes (annual): 66,000 DH
- Staff remuneration: 490,000 DH
- Tax penalty: 3,500 DH
- Depreciation and amortization (annual): 96,000 DH.
-
Supplementary Expenses:
- Shareholders' equity remuneration at 10% annually.
- Calculate capital cost based on 2,500,000 DH.
-
Non-incorporable Expenses:
- Tax penalty: 3,500 DH
- Depreciation and amortization relating to preliminary costs: 12,000 DH 17.
- Taxes: Annual taxes portion not related to January.
- Staff remuneration: Annual remuneration portion not related to January.
- Depreciation and amortization: Portion not related to January, or considered non-current if applicable.
-
Usage Expenses:
- Rental and rental charges: 7,200 DH.
-
Cost Accounting Expenses: This involves summing approved expenses after adjustments.
🔑 Important: Accurately identifying and separating non-incorporable and supplementary expenses is crucial for correct cost accounting. 14 18.
2. Inventory valuation methods
2.1 Permanent inventory system
The permanent inventory system continuously tracks stock quantities and values throughout the financial year. This system applies to all company inventory, including raw materials, intermediate, and finished products.
The cost recorded for inventory entries depends on the item. For materials and supplies, it's the purchase cost.
For intermediate and finished products, it's the production cost 20.
- Entry cost: Purchase or production cost of goods 21.
- Exit cost: Determined by the inventory valuation method used.
The inventory account follows the formula: FS=IS+E−Ex. This can be rearranged to find the exit quantity (Ex) or stock variation 22.
2.2 Methods for assessing stock outflows
Three primary methods are used to value inventory outflows:
- Weighted Average Unit Cost (WAUC)
- First In, First Out (FIFO)
- Last In, First Out (LIFO) 23.
2.3 Weighted Average Unit Cost (WAUC)
The WAUC method values inventory outflows at an average unit cost. This average is derived from the unit costs of all inputs for the period.
There are two main approaches to calculating WAUC:
2.3.1 WAUC calculated at the end of the period
This method accumulates the initial stock and all subsequent entries to calculate a single average cost at the period's end.
Note: The unit cost of 11.09 is a weighted average. It is calculated as (500010 + 6000*12) / (5000 + 6000) = 110,000 / 11,000 = 10 for the first average unit cost.
Then, after the exit on Jan 3, the new unit cost is (250010 + 600012) / (2500 + 6000) = 97,000 / 8500 = 11.41. The final unit cost is calculated at the end of the period.
The example calculation in the source material seems to have a slight discrepancy.* 26.
2.3.2 WAUC calculated after each entry
This method recalculates the average unit cost every time new inventory is received 24.
Note: The unit cost 11.41 is calculated after the entry on January 12: (250010 + 600012) / (2500 + 6000) = 97,000 / 8500 = 11.41. 27.
2.4 FIFO (First In, First Out)
FIFO assumes that the first inventory items purchased or produced are the first ones to be used, sold, or discarded. This means the cost of older inventory is matched against current sales revenue 28.
Under FIFO, the 2500 units sold on January 3 are valued at 10 (the cost of the first batch). On January 13, the 3000 units sold are taken from the remaining 2500 units at 10 and then 500 units at 12 from the second batch 29.
2.5 LIFO (Last In, First Out)
LIFO assumes that the last inventory items purchased or produced are the first ones to be used, sold, or discarded. This method matches the most recent costs against current sales revenue 30.
Under LIFO, the 2500 units sold on January 3 are valued at 10. On January 13, the 3000 units sold are taken entirely from the most recent batch at 12 31.
2.6 Comparison of inventory valuation methods
Each valuation method results in different exit and final stock values. This impacts reported costs and financial analysis.
| Method | Exit Value | Final Stock Value | Accounting Law Permitted |
|---|---|---|---|
| WAUC (End of period) | 60,995 | 61,005 | Yes |
| WAUC (After each entry) | 59,230 | 66,000 | Yes |
| FIFO | 60,000 | 66,000 | Yes |
| LIFO | 61,000 | 61,000 | No |
- Accounting law: Only WAUC and FIFO methods are permitted by accounting regulations 32.
- Impact: Different methods lead to different cost of goods sold and ending inventory values, affecting profitability and financial statements.
2.7 Recognition of inventory differences
The permanent inventory system tracks theoretical stock levels. However, physical counts may reveal discrepancies due to various reasons.
Causes of inventory differences:
| Cause of Difference | Description |
|---|---|
| Supplier delivery | Quantity tolerance allowed by commercial usage or partial loss during transport |
| During storage | Evaporation, breakage, theft, or spoilage |
| Measurement at release | Approximate measurement, weighing errors, or miscounts |
| Inaccurate recording | Errors in entering data into the permanent inventory system |
- Cycle counts: Periodic physical inventories covering a fraction of stock each month or quarter help identify differences 34.
Inventory differences are categorized based on the comparison between actual and theoretical stock:
- Real Final Stock < Theoretical Final Stock: This indicates a stock shortfall, treated as a fictitious withdrawal.
- Real Final Stock > Theoretical Final Stock: This signifies a stock surplus, treated as if items were added.
- Real Final Stock = Theoretical Final Stock: This represents a perfect match, with no discrepancy 35.
🔑 Important: Understanding inventory valuation methods is crucial for accurate cost of goods sold calculation and financial reporting, and only WAUC and FIFO are universally accepted by accounting standards.
3. Cost center allocation of indirect costs
3.1 Introduction to cost centers
-
Cost centers: These are divisions within a company where indirect costs are grouped. They often represent actual departments or services.
-
Homogeneous nature: Each cost center should have a similar type of activity.
-
Work unit: A measurable unit that represents the activity of a cost center. The cost per work unit is calculated by dividing the total cost of the section by the number of work units.
-
Main sections: These directly contribute to the company's production process. Examples include procurement or production.
-
Auxiliary sections: These provide support services and do not directly participate in production. Examples include maintenance or administration.
3.2 Allocation of indirect costs
Indirect costs are allocated to cost centers using allocation keys. These keys are typically expressed as percentages and must be regularly reviewed.
- Primary allocation: This step assigns indirect costs to the various cost centers.
- Secondary allocation: This step reallocates the costs of auxiliary sections to the main production sections.
3.2.1 Primary allocation example
The primary allocation distributes indirect costs based on defined keys. For instance, non-stocked purchases might be allocated across maintenance, procurement, production, and distribution sections using specific percentages.

- Total primary allocation (P.A.T.): This represents the sum of indirect costs after the initial distribution across all sections.
3.2.2 Secondary allocation: Hierarchical
In hierarchical allocation, auxiliary sections are allocated to main sections in a fixed order. Costs from one auxiliary section are fully allocated before moving to the next.

- Secondary Allocation Total (S.A.T.): This is the total cost of auxiliary sections after they have been allocated to the main sections.
3.2.3 Secondary allocation: Reciprocal services
Reciprocal services occur when auxiliary sections provide services to each other. This requires a more complex allocation method to account for these interdependencies.
🔑 Important: When auxiliary sections serve each other, their costs must be reciprocally allocated to accurately reflect the total cost.
Equations are used to solve for the final costs of these reciprocal services. For example, the energy cost (E) and administration cost (A) can be determined simultaneously.
E=6000+0.2×30000+0.2×A A=29000+0.3×30000+0.1×E

- Final S.A.T. under reciprocal services: Auxiliary sections show a zero balance after all inter-service allocations are complete.
3.3 Application examples of cost center allocation
Various scenarios illustrate the application of primary and secondary cost allocation.

- Example 1: Maintenance and administration sections are auxiliary. Maintenance costs are distributed to administration, purchases, and sales. Administration costs are then distributed proportionally.
- Example 2: Administration and maintenance are auxiliary sections. Administration is allocated to production and sales. Maintenance is allocated to production and sales.

- Example 3: Personnel management and building management are auxiliary. They provide services to each other and to the main sections. This requires reciprocal allocation to find their true costs.
🔑 Important: The total cost of auxiliary sections is determined after considering the services they provide and receive from other sections.
🔑 Important: Cost center allocation ensures that all indirect costs are assigned to final cost objects, providing a true picture of production costs.
4. Cost of goods sold and manufacturing issues
4.1 The operating cycle and cost calculation
The operating cycle tracks costs through procurement, manufacturing, and distribution. It aligns costs with sales revenue to determine profit.
- Procurement phase: Calculates costs for raw materials and supplies. This includes the purchase price plus procurement department expenses.
- Manufacturing phase: Determines the production cost for semi-finished or finished goods. It includes consumed materials and manufacturing overhead.
- Distribution phase: Calculates the cost of goods sold. This adds distribution costs to the production cost of the sold items.
In an industrial company, key costs are:
| Phase | Cost Determined | Calculation |
|---|---|---|
| Procurement | Raw Material Acquisition Cost | Purchase Price + Procurement Expenses |
| Production | Cost of Production | Raw Material Cost + Direct Labor + Production Overhead Expenses |
| Distribution | Cost of Goods Sold (Cost of Sales) | Cost of Production of Sold Goods + Distribution Expenses |
The cost of purchase, or direct materials cost, includes the purchase price of materials (excluding recoverable VAT) and indirect costs allocated to procurement 56.
The production cost includes raw materials consumed, direct labor, and production overheads. This cost applies to fully completed production.
Unfinished products are classified as work in progress 57.
The cost of goods sold is the cost of products sold plus selling and distribution overheads. Gross Margin equals revenue minus the cost of goods sold 58.
4.1.1 Application example
Company ABC uses cost accounting. For January 2022:
- Raw Material Purchases: 6,000 kg at 5.50 Moroccan Dirhams/kg.
- Production: 1,200 units, each requiring 1.5 kg of raw materials.
- Direct Labor: 60 hours at 50 Moroccan Dirhams/hour.
- Sales: 450 units at 60 Moroccan Dirhams/unit.
Overhead expenses are categorized by department and expense type:

The following calculations are needed:
- Purchase Cost
- Production Cost
- Cost of Goods Sold
- Gross Margin
4.2 Cost drivers and units
A cost driver measures activity in units of work. These can be physical units like material consumed or labor hours, or monetary units called the cost rate.
The cost of a unit of work is calculated as: Cost of unit of work=Number of units of workTotal expenses of the center When the unit is monetary, it's a cost rate: Cost rate=Value in dirhams of the baseTotal expenses of the center This cost per unit is then allocated to each phase of the product's operating cycle. 63 64.
4.3 Manufacturing issues
Companies often calculate costs for a period that doesn't match a full production cycle. This leads to issues with work in progress, by-products, residual products, and intermediate products.
4.3.1 Work in progress
Work in progress (WIP) refers to unfinished products. Its cost is calculated by adjusting direct and indirect expenses for the change in WIP inventory.
Cost of production for a period = Direct expenses + indirect expenses + initial WIP inventory - final WIP inventory 66.
WIP can be valued using several methods:
| Valuation Method | Description |
|---|---|
| Detailed valuation | Uses complete cost sheet data for WIP, including materials, labor, and work units. |
| Predetermined costs | Estimates consumed resources for WIP based on rough calculations. |
| Valuation by equivalence | Defines a global ratio between WIP and finished products to determine value. |
📝 Example: A company produced 10,800 finished units and 300 WIP units that were one-quarter finished. Total costs were 2,117,500 dirhams. The equivalent finished products are 10,800 + (300/4) = 10,875. The cost per finished unit is 2,117,500 / 10,875 = 194.71 dirhams. The cost of a WIP unit is 194.71 / 4 = 48.68 dirhams. The 300 WIP units are valued at 14,603 dirhams 67.
📝 Example: Company DFR has 120 initial WIP units and produces 612 completed units, with 100 final WIP units. Predetermined costs per unit are: Materials 278.72, Labor 186.95, Workshop 1 13.60, Workshop 2 27.20. The stages of completion for final WIP are: Materials 50%, Labor 30%, Workshop 1 30%.
- Initial WIP value: 120 * (278.72 + 0.70 * 186.95 + 0.70 * 13.60) = 50,292.60 MAD.
- Final WIP value: 100 * (0.50 * 278.72 + 0.30 * 186.95 + 0.30 * 13.60) = 19,952.50 MAD.
- Cost of production for completed units: 322,806.43 (period costs) + 50,292.60 (initial WIP) - 19,952.50 (final WIP) = 353,146.53 MAD 68.
4.3.2 Residual products
Residual products include waste and scrap.
| Type | Description | Accounting Treatment |
|---|---|---|
| Waste | Residue from materials used in manufacturing. | Non-usable: Cost is part of the main product's production cost. Disposal costs also increase the main product's cost. Usable: Sold as is (profit reduces main product cost or adds to revenue); processed (net profit deducts from main product cost); reused (valued at market/fixed price, then transferred). |
| Scrap | Products not meeting quality standards. | Non-usable: Cost is part of the main product's production cost. Disposal costs also increase the main product's cost. Usable: Sold as is (profit reduces main product cost or adds to revenue); processed (net profit deducts from main product cost); reused (valued at market/fixed price, then transferred). |
4.3.3 By-products
By-products are obtained during the main production process and have commercial value. Their costs are hard to determine directly.
Methods for determining by-product costs:
| Method | Description |
|---|---|
| Sharing production costs | Production costs are divided based on arbitrary criteria, equivalence coefficients, or distribution keys. |
| Evaluation based on market | Cost is determined as: selling price - margin - distribution costs - processing costs. |
🔑 Important: By-product costs are typically estimated based on their selling price less related expenses, rather than direct cost allocation 70.
4.3.4 Intermediate products
Intermediate products are finished at one stage but will be used in a subsequent production phase for another product. Their storage between production phases is their defining characteristic 71.
🔑 Important: Understanding the flow of costs through procurement, production, and distribution, along with accounting for manufacturing issues like WIP, by-products, and scrap, is crucial for accurate cost of goods sold calculation and profit determination. 54 65.
© 2026 Maeve. All rights reserved. This content is protected by copyright.