COST ANALYSIS all chapters

📚 COST ANALYSIS all chapters.pdf

Brief overview

This document provides a comprehensive analysis of cost accounting principles and their application in business decision-making. It details methods for tracking, valuing, and allocating costs, essential for operational efficiency and strategic planning.

Key points

  • Overview of cost accounting fundamentals, objectives, and expense treatment.
  • Application of inventory valuation methods: WAUC, FIFO, and LIFO.
  • Methods for allocating indirect costs across primary and secondary cost centers.
  • Calculation of cost of goods sold and accounting for manufacturing by-products.

1. Introduction to cost accounting

1.1 What is cost accounting?

Cost accounting helps businesses make strategic decisions using financial information. It focuses on tracking costs and expenses related to production and operations.

The course teaches fundamental concepts, how to set up cost tracking systems, and various costing methods. These methods, like cost per unit and marginal cost, aid in economic decision-making.

You will also develop skills in cost analysis.

🔑 Important: Cost accounting illuminates the "black box" of a company, detailing its internal processes.

1.2 Objectives of cost accounting

General accounting primarily deals with external reporting. It often shows a single, summarized result for all products and activities.

It also cannot easily value internal production or final inventory stocks. Cost accounting fills these gaps by detailing the transformation process of inputs.

It breaks down the overall result into specific outcomes for each product. This allows for precise valuation of inventory, including finished goods and items produced for internal use.

Cost accounting provides a detailed view of a company's operations, unlike the summarized output of general accounting.

  • Trace costs: It tracks the journey of inputs through production to finished goods.
  • Product-specific results: It allows for separate results for each product line.
  • Inventory valuation: It calculates unit costs to value raw materials, goods, and finished products.

1.3 Cost characteristics

A cost is defined as a sum of expenses linked to a specific element within the accounting network. Three main characteristics define a cost:

CharacteristicDescription
ContentTotal costs or partial costs
Timing of costingPre-established costs or observed (established) costs
ScopeCosts related to a store, department, region, or customer

1.4 General accounting vs. cost accounting

Cost accounting provides a more detailed and forward-looking view compared to general accounting.

FeatureGeneral AccountingCost Accounting
HorizonPastPresent, future
Company VisionGlobalDetailed
Expenses ClassificationBy natureBy destination
Observed flowsExternalInternal
Nature of informationPrecise, certified, formalFast, relevant
ObjectivesFinancialEconomic
RulesPrescriptive rulesFlexible, scalable
UsersThird-partyAll managers

1.5 Expenses in cost accounting

Cost accounting expenses are derived from general accounting expenses with adjustments.

  • General Accounting Expenses: These include operating expenses, financial expenses, and non-current expenses.
  • Adjustments: Cost accounting eliminates certain expenses (non-incorporable) and adds others (supplementary).

1.5.1 Non-incorporable expenses

These are expenses not accepted by cost accounting because they do not reflect normal operating conditions.

📝 Example: Life insurance premiums and amortization of preliminary costs are non-incorporable.

Other examples include:

  • Income taxes.
  • Current expenses from past years.
  • Amortization of fixed assets with no value.
  • Expenses recoverable from third parties.
  • Expenses covering a risk, like provisions for litigation.

1.5.2 Supplementary expenses

These are expenses considered in cost accounting for theoretical or conventional valuation.

  • The theoretical or conventional cost of capital.
  • The operator's conventional remuneration.
  • Usage charges, spread charges, and subscription charges.

🔑 Important: Supplementary expenses are added to reflect economic realities not captured by general accounting.

1.6 Cost accounting expenses calculation

Cost accounting expenses are calculated by starting with general accounting expenses. Then, non-incorporable expenses are removed, and supplementary expenses are added.

Formula: Cost Accounting Expenses=General Accounting Expenses−Non-incorporable Expenses+Supplementary Expenses\text{Cost Accounting Expenses} = \text{General Accounting Expenses} - \text{Non-incorporable Expenses} + \text{Supplementary Expenses}

🔑 Important: This formula helps transform general accounting data into cost accounting figures.


🔑 Important: Cost accounting provides the detailed financial insights needed for internal management decisions, complementing the external focus of general accounting.

2. Inventory valuation methods

2.1 Permanent inventory system

  • Permanent inventory: A system that continuously records stock movements. This allows constant knowledge of existing quantities and values during the financial year.
  • Applies to all stored items: raw materials, intermediate products, and finished goods.
  • Entry costs vary:
    • Materials and supplies: Purchase cost.
    • Intermediate and finished products: Production cost.
  • Exit costs depend on the valuation method used.
  • The inventory account balances using the formula: Ending Inventory + Entries = Beginning Inventory + Exits.
    • This rearranges to Exits = Beginning Inventory + Entries - Ending Inventory.
    • Or, Exits = Entries + (Beginning Inventory - Ending Inventory).
    • This means Exits = Entries + stock variation 21 22.

2.2 Methods for assessing stock outflows

Three main methods are used to value stock outflows:

  • Weighted Average Unit Cost (WAUC)
  • First In First Out (FIFO)
  • Last In First Out (LIFO) 23.

2.3 Weighted Average Unit Cost (WAUC)

WAUC values stock outflows at an average unit cost. This average is based on the unit costs of all inputs for the period.

There are two ways to calculate WAUC:

  • WAUC calculated at the end of the period: This method accumulates the initial stock and all entries. The average cost is then calculated once at the period's end.
  • WAUC calculated after each entry: This method recalculates the average cost every time a new item enters the stock 24.

Calculation Example: WAUC at end of period

Consider the following stock movements:

  • January 1: Initial Stock: 5,000 kg @ 10 dollars/kg
  • January 3: Exit: 2,500 kg
  • January 12: Entry: 6,000 kg @ 12 dollars/kg
  • January 13: Exit: 3,000 kg
DateLabelEntries (Qty @ Cost)Exits (Qty @ Cost)Stocks (Qty @ Cost)
Jan 1Batch 655,000 @ 10-5,000 @ 10
Jan 3Exit-2,500 @ 11.092,500 @ 11.09
Jan 12Batch 666,000 @ 12-8,500 @ 11.09
Jan 13Exit-3,000 @ 11.095,500 @ 11.09
  • Total entries amount: (5000×10)+(6000×12)=50,000+72,000=122,000(5000 \times 10) + (6000 \times 12) = 50,000 + 72,000 = 122,000 dollars.
  • Total quantity in: 5,000+6,000=11,0005,000 + 6,000 = 11,000 kg.
  • WAUC (End of Period) = 122,000/11,000122,000 / 11,000 kg = 11.0911.09 dollars/kg 26.

Calculation Example: WAUC after each entry

Using the same stock movements:

DateLabelEntries (Qty @ Cost)Exits (Qty @ Cost)Stocks (Qty @ Cost)
Jan 1Batch 655,000 @ 10-5,000 @ 10
Jan 3Exit-2,500 @ 102,500 @ 10
Jan 12Batch 666,000 @ 12-8,500 @ 11.41
Jan 13Exit-3,000 @ 11.415,500 @ 11.41
  • After Jan 1 entry: Stock is 5,000 kg @ 10 dollars/kg.
  • After Jan 3 exit: Stock is 2,500 kg @ 10 dollars/kg.
  • After Jan 12 entry:
    • New total quantity: 2,500+6,000=8,5002,500 + 6,000 = 8,500 kg.
    • New total value: (2,500×10)+(6,000×12)=25,000+72,000=97,000(2,500 \times 10) + (6,000 \times 12) = 25,000 + 72,000 = 97,000 dollars.
    • WAUC = 97,000/8,50097,000 / 8,500 kg = 11.4111.41 dollars/kg.
  • After Jan 13 exit: Stock is 5,500 kg @ 11.41 dollars/kg 27.

🔑 Important: WAUC calculated after each entry provides a more up-to-date cost for each transaction.

2.4 First In First Out (FIFO)

The FIFO method assumes that the first items purchased or produced are the first ones to be used, sold, or discarded. This means the oldest inventory is expensed first 28.

Calculation Example: FIFO

Using the same stock movements:

DateLabelEntries (Qty @ Cost)Exits (Qty @ Cost)Stocks (Qty @ Cost)
Jan 1Batch 655,000 @ 10-5,000 @ 10
Jan 3Exit-2,500 @ 102,500 @ 10
Jan 12Batch 666,000 @ 12-2,500 @ 10, 6,000 @ 12
Jan 13Exit-2,500 @ 10, 500 @ 125,500 @ 12
  • January 3 exit: 2,500 kg are taken from the initial stock of 5,000 kg @ 10 dollars/kg.
  • January 12 entry: Adds 6,000 kg @ 12 dollars/kg.
  • January 13 exit: 3,000 kg are taken. The first 2,500 kg are from the remaining Jan 1 stock (which is now depleted), and the remaining 500 kg are from the Jan 12 entry (500 kg @ 12 dollars/kg) 29.

2.5 Last In First Out (LIFO)

The LIFO method assumes that the last items purchased or produced are the first ones to be used, sold, or discarded. This means the newest inventory is expensed first 30.

Calculation Example: LIFO

Using the same stock movements:

DateLabelEntries (Qty @ Cost)Exits (Qty @ Cost)Stocks (Qty @ Cost)
Jan 1Batch 655,000 @ 10-5,000 @ 10
Jan 3Exit-2,500 @ 102,500 @ 10
Jan 12Batch 666,000 @ 12-2,500 @ 10, 6,000 @ 12
Jan 13Exit-3,000 @ 122,500 @ 10, 3,000 @ 12
  • January 3 exit: 2,500 kg are taken from the initial stock of 5,000 kg @ 10 dollars/kg.
  • January 12 entry: Adds 6,000 kg @ 12 dollars/kg.
  • January 13 exit: 3,000 kg are taken from the most recent entry (Jan 12 batch @ 12 dollars/kg) 31.

2.6 Comparison of inventory valuation methods

Each method results in different values for outflows and ending inventory. This affects reported costs and analytical results.

MethodExits Value (example)Ending Inventory Value (example)
WAUC (End of period)60,995 dollars61,005 dollars
WAUC (After each entry)59,230 dollars62,770 dollars
FIFO56,000 dollars66,000 dollars
LIFO61,000 dollars61,000 dollars

🔑 Important: Accounting law generally permits WAUC and FIFO methods. LIFO is often not permitted due to its potential for distorting reported profits 32.

2.7 Recognition of inventory differences

Permanent inventory systems track theoretical stock levels. However, physical counts may reveal discrepancies due to various reasons.

Reasons for discrepancies:

  • Entry:
    • Supplier delivery variances within commercial norms.
    • Partial loss during transportation.
  • Storage:
    • Evaporation.
    • Breakage.
    • Theft.
  • Exit:
    • Approximate measurements or weighing errors 34.

Reconciling theoretical and actual inventory:

  • Inventory differences arise when actual stock does not match theoretical stock.
  • Shortfall (Real FS < Theoretical FS): Treated as a fictitious withdrawal, reducing the Inventory Account.
  • Surplus (Real FS > Theoretical FS): Treated as an addition, increasing the Inventory Account.
  • Exact match (Real FS = Theoretical FS): No difference recognized.

🔑 Important: Regular cycle counts (periodic extra-accounting inventories covering parts of stock) help identify and manage these differences 35.

🔑 Important: Inventory valuation methods are crucial for accurate cost of goods sold and ending inventory reporting, impacting profitability and financial statements.

3. Allocation of indirect costs and cost centers

3.1 Understanding cost centers and homogeneous sections

Companies divide their operations into homogeneous sections. These are accounting divisions for grouping indirect costs.

They typically represent real departments or services within the company. Each section should have a similar nature, and its activity must be measurable.

The cost per unit of activity for a section is calculated by dividing its total cost by the number of activity units.

🔑 Important: Homogeneous sections ensure indirect costs are traceable to production or service areas.

3.1.1 Types of homogeneous sections

Sections are categorized based on their role in the production process.

Section TypeRole in ProductionExamples
Main sectionsDirectly involved in the company's production.Procurement, production, distribution.
Auxiliary sectionsProvide global support, not directly in production.Maintenance, administration, finance.

3.2 Allocating indirect costs

Allocation keys are used to distribute indirect costs to different sections. These keys are percentages representing how a cost is divided.

They must be regularly checked and updated.

3.2.1 Primary allocation

This step assigns indirect costs to various cost centers. These centers can be main or auxiliary sections.

Allocation keys determine the proportion of each cost assigned to each section.

📝 Example: A company allocates personnel expenses. If the allocation key for a section is 10%, it receives 10% of the total personnel expenses.

The primary allocation process sums up the allocated indirect costs for each section.

Cost ElementAmount (in 1000 DH)Maintenance (%)Procurement (%)Production (%)Distribution (%)
Non-stocked purchases11615155812
Other external expenses6010106020
Personnel expenses3010205020
Taxes and duties121050-40
Financial expenses2050--50
Operating allowances4040104010
Total27853.639.4134.2850.72

3.2.2 Secondary allocation

This step reallocates the costs of auxiliary sections to the main sections. Two main methods exist: hierarchical allocation and reciprocal services allocation.

3.2.2.1 Hierarchical allocation

In this method, auxiliary sections are allocated in a specific order. Once an auxiliary section's costs are distributed, it is considered closed and does not receive costs from other auxiliary sections.

🔑 Important: The order of allocation matters in hierarchical methods, impacting the final cost of main sections.

Example of hierarchical allocation:

  1. Transportation costs (30, 50) are allocated based on keys.
  2. Energy costs are then allocated, receiving a portion from transportation .
  3. Maintenance costs are allocated last, receiving from transportation and energy .

3.2.2.2 Reciprocal services allocation

This method accounts for situations where auxiliary sections provide services to each other. It uses a system of equations to determine the true cost of each auxiliary section after considering all mutual service exchanges.

🔑 Important: Reciprocal allocation provides a more accurate cost distribution when services are complex and interchanged between support departments.

The costs of auxiliary sections are determined using simultaneous equations.

Let EE be the total cost of the Energy section and AA be the total cost of the Administration section.

E=Initial cost of E+(% of A to E)×AE = \text{Initial cost of } E + (\% \text{ of } A \text{ to } E) \times A A=Initial cost of A+(% of E to A)×EA = \text{Initial cost of } A + (\% \text{ of } E \text{ to } A) \times E

For instance, if Energy receives 20% from Administration and Administration receives 10% from Energy: E=6000+0.2AE = 6000 + 0.2A A=29000+0.1EA = 29000 + 0.1E

Solving these equations yields the adjusted costs for auxiliary sections, which are then allocated to main sections.

📝 Example: In an industrial enterprise, after solving for reciprocal services:

  • Transport: 30 DH
  • Energy: 20 DH
  • Administration: 40 DH

These are then distributed to main sections like Purchases, Works, and Distribution.

3.2.3 Application examples of secondary allocation

The document provides several examples demonstrating secondary allocation, both hierarchical and reciprocal. These examples illustrate how costs from auxiliary sections (e.g., maintenance, administration) are systematically distributed to principal or main sections (e.g., purchases, sales, production).

🔑 Important: Application examples showcase practical scenarios of secondary allocation, helping to solidify understanding of the methods.

One application shows a maintenance section distributing its costs (20% to administration, 30% to purchases, 50% to sales). The administration section then distributes its costs proportionally to maintenance, purchases, and sales.

Another example details how administration costs (25% to production, 75% to sales) and maintenance costs (35% to production, 65% to sales) are allocated. A third example details the reciprocal allocation between personnel management and building management, demonstrating how each influences the other's final cost before distributing to main sections.

🔑 Important: The core principle is to ensure all indirect costs ultimately reside in the main production or service cost centers.

4. Cost of goods sold and manufacturing issues

4.1 The operating cycle and cost calculation

  • The operating cycle follows costs through procurement, manufacturing, and distribution.
  • The goal is to match cost of goods sold with sales revenue to find profit.

4.1.1 Phases of cost calculation

PhaseActivityCost TypeFormula
ProcurementPurchasePurchase cost / Direct materialsPurchase Price + Purchase Expenses
ManufacturingManufacturing of productsProduction cost / TotalCost of Raw Materials + Direct Labor + Production Expenses
DistributionSale of productsCost of goods sold / Cost of salesCost of Products Sold + Distribution Expenses
  • Purchase cost includes the purchase price and expenses for the procurement department.
  • Production cost covers materials consumed, direct labor, and production overhead.
  • Cost of goods sold adds selling and distribution overhead to the cost of products sold.
  • Gross Margin is calculated as Revenue minus Cost of Goods Sold.

4.2 Cost of goods sold calculation

  • Cost of goods sold accounts for the expenses incurred to produce and sell goods.
  • This calculation is crucial for determining a company's profitability.

📝 Example: ABC Company's January 2022 costs.

  • Raw Material Purchases: 6,000 kg @ 5.50 Moroccan Dirhams/kg.
  • Production: 1,200 units, each needing 1.5 kg RM.
  • Direct Labor: 60 hours @ 50 Moroccan Dirhams/hour.
  • Sales: 450 units @ 60 Moroccan Dirhams/unit.
  • Overheads: Various administrative, maintenance, procurement, production, and selling costs.

4.2.1 Application: Calculating costs

This section details the application of cost accounting principles to a specific company scenario, requiring the calculation of purchase cost, production cost, cost of goods sold, and gross margin. The overhead allocation uses a distribution based on percentages across different departments.

  • Purchase Cost:

    • Total RM Purchased: 6000 kg×5.50 Moroccan Dirhams/kg=33000 Moroccan Dirhams6000 \text{ kg} \times 5.50 \text{ Moroccan Dirhams/kg} = 33000 \text{ Moroccan Dirhams}
    • Procurement Overhead Allocation: 30% of 6000 Moroccan Dirhams = 1800 Moroccan Dirhams
    • Total Purchase Cost: 33000 + 1800 = 34800 Moroccan Dirhams
  • Production Cost:

    • Raw Materials Consumed: 1200 units×1.5 kg/unit×5.50 Moroccan Dirhams/kg=9900 Moroccan Dirhams1200 \text{ units} \times 1.5 \text{ kg/unit} \times 5.50 \text{ Moroccan Dirhams/kg} = 9900 \text{ Moroccan Dirhams}
    • Direct Labor Cost: 60 hours×50 Moroccan Dirhams/hour=3000 Moroccan Dirhams60 \text{ hours} \times 50 \text{ Moroccan Dirhams/hour} = 3000 \text{ Moroccan Dirhams}
    • Production Overhead Allocation: 30% of 5000 Moroccan Dirhams = 1500 Moroccan Dirhams
    • Total Production Cost: 9900 + 3000 + 1500 = 14400 Moroccan Dirhams
  • Cost of Goods Sold:

    • Cost of Products Sold: 14400 Moroccan Dirhams (assuming all produced units are sold in this simple example)
    • Selling Overhead Allocation: 30% of 4500 Moroccan Dirhams = 1350 Moroccan Dirhams
    • Total Cost of Goods Sold: 14400 + 1350 = 15750 Moroccan Dirhams
  • Gross Margin:

    • Total Revenue: 450 units×60 Moroccan Dirhams/unit=27000 Moroccan Dirhams450 \text{ units} \times 60 \text{ Moroccan Dirhams/unit} = 27000 \text{ Moroccan Dirhams}
    • Gross Margin: 27000 - 15750 = 11250 Moroccan Dirhams

🔑 Important: The allocation of overheads is a key step in determining accurate production and selling costs.

4.3 Manufacturing issues

Manufacturing processes often produce items that are not fully finished at period end. These require special accounting treatment.

4.3.1 Work in progress (WIP)

  • Work in progress refers to partially completed goods at the end of an accounting period.
  • Its valuation impacts the cost of goods sold and the value of inventory.

🔑 Important: Production cost for a period equals direct expenses + indirect expenses + initial WIP inventory - final WIP inventory.

  • WIP Valuation Methods:
    • Detailed valuation: Uses specific cost data for WIP.
    • Valuation at predetermined costs: Estimates consumed resources based on expected costs.
    • Valuation by equivalence: Uses a ratio to compare WIP to finished products.

📝 Example 1: Evaluating WIP using equivalent finished products.

  • Finished units: 10,800.
  • Unfinished units: 300 (one-quarter finished).
  • Period costs: 2,117,500 dirhams.
  • Equivalent finished products: 10800+(300/4)=1087510800 + (300/4) = 10875.
  • Cost per finished unit: 2117500/10875=194.712117500 / 10875 = 194.71 dirhams.
  • Cost per WIP unit: 194.71/4=48.68194.71 / 4 = 48.68 dirhams.
  • Total WIP value: 300×48.68=14603300 \times 48.68 = 14603 dirhams.

📝 Example 2: Evaluating WIP using predetermined costs.

  • Company DFR, January: Total production charges 322,806.43 MAD.
  • Initial WIP: 120 units. Final WIP: 100 units.
  • Predetermined unit costs: Materials 278.72, Labor 186.95, Workshop 1 (13.60), Workshop 2 (27.20).
  • WIP completion stages vary (e.g., Final WIP is 50% complete for materials, 30% for labor).
  • Initial WIP cost: 120 units ×\times [(100% ×\times 278.72) + (70% ×\times 186.95) + (70% ×\times 13.60) + (0% ×\times 27.20)] = 50,292.6 dirhams.
  • Final WIP cost: 100 units ×\times [(50% ×\times 278.72) + (30% ×\times 186.95) + (30% ×\times 13.60) + (0% ×\times 27.20)] = 19,952.5 dirhams.
  • Cost of production of completed "PAl": 322,806.43 (period costs) + 50,292.6 (initial WIP) - 19,952.5 (final WIP) = 353,146.53 dirhams.

4.3.2 Residual products

  • Residual products include waste and scrap from manufacturing.
  • Their accounting depends on whether they are usable or not.
ScenarioTreatmentImpact on Main Product Cost
Non-usable waste/scrapCost remains in main product; disposal costs added.Increases
Usable waste/scrap soldProfit reduces main product cost or adds to revenue.Decreases
Usable waste/scrap reusedValued at market price or fixed price; subtracted from source product cost, added to using product cost.Varies

4.3.3 By-products

  • By-products have commercial value but are secondary to the main product.

  • Their cost is difficult to determine directly due to simultaneous production.

  • By-product Costing Methods:

    • Sharing production costs: Arbitrarily divides costs based on criteria or distribution keys.
    • Evaluation based on market: Cost = selling price - margin - distribution costs - processing costs.

4.3.4 Intermediate products

  • Intermediate products are finished at one stage but enter another production phase.
  • They are characterized by storage between sequential production steps.

🔑 Important: Understanding manufacturing issues like WIP, by-products, and intermediate products is essential for accurate cost allocation and inventory valuation.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also