CM2A Consulting
    Accounting16 November 20269 min readCM2A Consulting

    Year-end inventory valuation in Morocco: weighted average cost, FIFO, market value and impairment

    The CGI values inventories at cost price or at market value (cours du jour) if lower. Law 9-88 allows 2 methods, weighted average cost or FIFO, and requires a provision for any non-permanent fall in value, deductible under conditions.

    Background

    At year-end, the company counts and values its inventories. Closing inventory flows straight into profit. For goods for resale and materials, it reduces the cost of purchases consumed (Art. 10-I-A). For manufactured products, an increase is added to income through the change in inventories of products (Art. 9-I-A-2°). Each extra dirham of closing inventory is therefore an extra dirham of profit, and the tax inspector checks this item first.

    Two texts apply. Law No. 9-88 on the accounting obligations of traders (loi relative aux obligations comptables des commerçants) sets the accounting rules. The General Tax Code (Code général des impôts, CGI) 2026 sets the profit subject to corporate income tax (impôt sur les sociétés, IS). This note covers inventories only: bookkeeping and provisions for doubtful debts are dealt with in our dedicated notes.

    What the law says

    Physical count (Law 9-88, Art. 5; CGI, Art. 145-II). The trader draws up an inventory of assets and liabilities at least once per financial year, at its end. The CGI also requires, at each year-end, detailed inventories, in quantities and values, of goods, sundry products, packaging and consumable materials bought for resale or for the business. The physical count gives the quantities; the valuation method gives the values.

    Entry value (Law 9-88, Art. 14). An item enters the accounts at its acquisition cost if acquired for consideration, at its current value if acquired free of charge, and at its production cost if produced by the business. Circular note No. 717 (NC 717) of the Directorate General of Taxes (Direction générale des impôts, DGI) defines the cost price of inventories as their actual cost.

    Tax rule (Art. 8-I). Inventories are valued at cost price or at market value (cours du jour) if the latter is lower. Work in progress is valued at cost price, with no comparison with market value. Taxpayers subject to personal income tax (impôt sur le revenu, IR) under the simplified net income regime (résultat net simplifié) apply the same rule (Art. 38-II).

    Permitted methods (Law 9-88, Art. 14). Fungible goods, that is interchangeable goods, are valued using one of the two methods in the methods table. The law names no other.

    MethodValuation of issuesClosing inventory
    Weighted average unit cost (coût moyen unitaire pondéré, CMUP)Average cost of the units available, computed after each receipt or over the storage period (NC 717)At average cost
    First in, first out (FIFO)Cost of the oldest unitsAt the cost of the latest purchases

    Small traders (Law 9-88, Art. 1 and 14). Individuals whose annual turnover does not exceed 2 million dirhams, other than insurance agents, may value their inventories in a simplified way: by estimating the purchase or production cost, or on the basis of the selling price less the margin applied.

    Market value (NC 717). For raw materials and supplies, the market reference is most often the current purchase price, plus current incidental purchase costs. For finished products, it is the probable selling price, less the costs still to be incurred to make the sale. For products in progress, it is the probable selling price as a finished product, less in particular distribution costs.

    Impairment (Law 9-88, Art. 14 and 16; CGI, Art. 10-I-F-2°). At the inventory date, the business compares the current value of each item with its entry value. Only the loss in value is recorded; if it is not permanent, it takes the form of a provision for impairment (provision pour dépréciation). The inventory stays at its entry cost and the provision is deducted from it (NC 717). Necessary provisions are made even when there is no profit. For tax purposes, the provision is deductible if the loss is clearly specified as to its nature and its amount can be estimated approximately. When it becomes unnecessary in a later financial year, it is added back to the profit of that year. Under the simplified net income regime, provisions are excluded from the profit calculation (Art. 38-II).

    Consistency of methods (Law 9-88, Art. 13 and 15). The presentation of the financial statements and the valuation methods do not change from one financial year to the next. Any change is described and justified in the statement of additional information (état des informations complémentaires, ETIC). The opening balance sheet repeats the closing balance sheet of the previous year. The CGI contains no specific provision on a change of inventory valuation method: in our reading of Articles 8-I and 10-I-A, the effect of the change goes through the profit of the year of the change, via closing inventory.

    Return (Art. 20-I). The company files its corporate tax return within three months following the close of the financial year.

    Case study

    A trading company closes its financial year on 31 December 2026. It sells a single item, at 180 dirhams excluding tax per unit. Movements for the year:

    DateTransactionQuantityUnit cost (dirhams)
    1 JanuaryOpening inventory1,000100
    10 MarchPurchase1,000120
    15 MaySale1,200not applicable
    20 SeptemberPurchase1,200130
    25 NovemberSale1,000not applicable

    The physical count on 31 December finds 1,000 units. Sales: 2,200 × 180 = 396,000 dirhams.

    FIFO method.

    • Sale of 15 May: 1,000 × 100 + 200 × 120 = 124,000 dirhams.
    • Sale of 25 November: 800 × 120 + 200 × 130 = 122,000 dirhams.
    • Closing inventory: 1,000 × 130 = 130,000 dirhams.

    CMUP method, after each receipt.

    • Average cost after the purchase of 10 March: (100,000 + 120,000) / 2,000 = 110 dirhams. Sale of 15 May: 1,200 × 110 = 132,000 dirhams.
    • Average cost after the purchase of 20 September: (800 × 110 + 156,000) / 2,000 = 122 dirhams. Sale of 25 November: 1,000 × 122 = 122,000 dirhams.
    • Closing inventory: 1,000 × 122 = 122,000 dirhams.
    Item (dirhams)FIFOCMUP
    Sales396,000396,000
    Cost of sales246,000254,000
    Gross margin150,000142,000
    Closing inventory130,000122,000

    Purchase prices are rising: the FIFO method gives a closing inventory and a margin that are 8,000 dirhams higher. For a company whose net profit is below 100 million dirhams, the IS rate is 20% for the financial year opened on 1 January 2026 (Art. 19-I-A). The tax difference is 8,000 × 20% = 1,600 dirhams. It reverses when these units are sold, since closing inventory for 2026 becomes opening inventory for 2027.

    Impairment. In December 2026, the supplier launches a new model. The probable selling price falls to 125 dirhams and the costs still to be incurred to sell are estimated at 5 dirhams per unit. Market value: 125 − 5 = 120 dirhams, i.e. 120,000 dirhams for 1,000 units.

    • FIFO: provision of 130,000 − 120,000 = 10,000 dirhams.
    • CMUP: provision of 122,000 − 120,000 = 2,000 dirhams.

    After the provision, both methods give the same margin, 140,000 dirhams, and the same net inventory, 120,000 dirhams. The provision is deductible if the company keeps proof of the new price: the supplier's price list, sales invoices from January 2027. If the price recovers in 2027, the provision that has become unnecessary is reversed to profit for 2027 (Art. 10-I-F-2°), subject to the 2027 finance law.

    Penalties and risks

    • No inventory (Art. 213-I). The absence of the inventories required by Article 145 is a serious irregularity. Where it undermines the probative value of the accounts and leads to understated profit, or prevents the accounts from supporting the declared results, the administration determines the tax base from the information available to it. The administration may also refuse accounts not kept in the form required by Law 9-88 (Law 9-88, Art. 23).
    • Reassessment (Art. 186-A and B). The surcharge is 20% of the tax reassessed or, for a loss-making result, of the amount added back, until the loss is absorbed. It rises to 100% where bad faith is established. Example: closing inventory understated by 10,000 dirhams leads to an IS reassessment of 2,000 dirhams at the 20% rate and a surcharge of 400 dirhams.
    • Late payment (Art. 208-I). Penalty of 10%, reduced to 5% if the delay does not exceed 30 days, and surcharge of 5% for the first month then 0.50% per additional month or part of a month.
    • Irregular provision (Art. 10-I-F-2°). An unjustified provision is added back to the profit of the year in which it was wrongly recorded in the accounts. In 2022, the National Tax Appeals Commission (Commission nationale du recours fiscal, CNRF) upheld the add-back of a provision for inventory impairment that the company did not support with probative invoices.

    Key takeaways

    • Cost price or market value if lower: tax rule of Article 8-I; work in progress at cost price.
    • 2 methods for fungible goods: CMUP or FIFO (Law 9-88, Art. 14).
    • Provision for any non-permanent fall in value, deductible if the loss is specified and measurable (Art. 10-I-F-2°).
    • Consistency: a change of method is described and justified in the ETIC (Law 9-88, Art. 13).
    • Detailed inventories in quantities and values at each year-end (Art. 145-II); their absence is a serious irregularity (Art. 213-I).

    CM2A advice

    The manager sets the physical count as close as possible to year-end and cuts off receipts and issues at the count date. He separates goods held on behalf of third parties, which do not form part of inventory. He chooses a method, describes it in the ETIC and keeps it from one year to the next. For each impaired item, he keeps a file: quantities, entry cost, probable selling price, remaining selling costs and dated documents. Before any change of method, he quantifies the effect on profit and drafts the justification. CM2A Consulting supports businesses in organising the inventory count, calculating cost prices and reviewing inventory provisions.

    Sources: CGI 2026, Art. 8-I, 9-I-A-2°, 10-I-A and 10-I-F-2°, 19-I-A, 20-I, 38-II, 145-II, 186-A and B, 208-I, 213-I; Law 9-88, Art. 1, 5, 13, 14, 15, 16 and 23; DGI circular note No. 717; CNRF decision of 2022. General information up to date as of 16 November 2026; it does not replace advice tailored to your situation.

    Did you find this article useful?