Foreign exchange gains and losses: corporate tax in Morocco

Salaheddine YatimAbdelhakim Soudi

Salaheddine Yatim, Abdelhakim Soudi

Upsilon Consulting

Share
Foreign exchange gains and losses: corporate tax in Morocco

In brief: In Morocco, foreign exchange gains are taxable and losses deductible (Art. 9-I-B-2° and 10-II-B of the CGI 2026), even when unrealised: conversion differences count in the year they are recorded. Realised gains enter the minimum contribution base at their gross amount, at 0.25%.

The starting point is the one set out in the guide to foreign-currency transactions: a foreign-currency transaction is converted at the spot rate on the transaction date. The tax treatment then departs from accounting prudence. The unrealised gain, which the accounts do not book as income, is taxed in the year it is recorded. For the minimum contribution, realised foreign exchange gains are included at their gross amount, while liability conversion differences are excluded.

What the CGI 2026 says

Foreign exchange gains: taxable financial income

The law provides that taxable income includes “financial income consisting of: 1°- income from equity securities…; 2°- foreign exchange gains” (Art. 9-I-B of the CGI 2026). The wording of items 1° and 2° is the original one: no finance law has amended it.

The same article covers the unrealised gain. Liability conversion differences (écarts de conversion-passif) “relating to increases in receivables and decreases in debts denominated in foreign currencies” are valued at the close of each financial year at the latest exchange rate. The differences recorded “are taxable in the financial year in which they are recorded” (Art. 9-I-B-2°).

Foreign exchange losses: a deductible financial expense

Article 10-II of the CGI lists, under B, “foreign exchange losses” among deductible financial expenses. The same paragraph sets a valuation requirement: “Debts and receivables denominated in foreign currencies must be valued at the close of each financial year at the latest exchange rate” (Art. 10-II-B).

It finally covers the unrealised loss. Asset conversion differences (écarts de conversion-actif), “relating to decreases in receivables and increases in debts”, recorded following this valuation, “are deductible from the income of the financial year in which they are recorded” (Art. 10-II-B).

The minimum contribution base

The minimum contribution base includes, excluding VAT, “the financial income referred to in Article 9 (I-B-1°-2° and 3°)” (Art. 144-I-B of the CGI 2026). Foreign exchange gains (9-I-B-2°) are therefore included. Item 4° of the same article, “financial write-backs and expense transfers”, is not referred to.

The standard rate is 0.25%, with a minimum of 3,000 dirhams for companies subject to corporate tax (IS) (Art. 144-I-D); the calculation is detailed in the article on the minimum contribution 2026.

ItemCorporate tax (IS) treatmentMinimum contribution baseCGI 2026 article
Realised foreign exchange gainTaxable financial incomeIncluded (gross amount)9-I-B-2°; 144-I-B
Realised foreign exchange lossDeductible financial expenseNo effect (the base only counts income)10-II-B
Liability conversion difference (unrealised gain)Taxable in the year it is recordedExcluded (circular note 717, volume 3, p. 3)9-I-B-2°
Asset conversion difference (unrealised loss)Deductible in the year it is recordedNo effect10-II-B
Financial write-backs and expense transfersFinancial incomeNot referred to9-I-B-4°; 144-I-B

Key takeaways:

  • In Morocco, foreign exchange gains are financial income subject to corporate tax (IS) (Art. 9-I-B-2° of the CGI 2026).
  • The liability conversion difference is taxable and the asset conversion difference deductible in the financial year in which they are recorded (Art. 9-I-B-2° and 10-II-B).
  • Foreign exchange gains are included in the minimum contribution base, whose standard rate is 0.25% in 2026 (Art. 144-I-B and 144-I-D).

What the tax administration specifies

The reference doctrine is circular note no. 717 of April 2011 (volume 1 for corporate tax, volume 3 for the minimum contribution). The circular notes on the finance laws 2011 to 2026 deal neither with foreign exchange gains and losses nor with conversion differences: the 2011 doctrine has not been amended.

Settlements and liability conversion differences (circular note 717, volume 1, p. 108)

The administration specifies that settlements of foreign-currency receivables and debts “are compared with historical values and give rise to the recording of foreign exchange losses and gains”. The realised gain or loss is therefore measured against the original rate, not against the rate at the last year-end.

For the liability conversion difference, the note states that it is recorded in the balance sheet and taxable in the financial year in which it is recorded. For tax purposes, it is captured “off the books in the statement reconciling net accounting income (RNC) to net taxable income (RNF)”. The mechanics of this statement are detailed in the article on moving from accounting income to taxable income.

Foreign exchange hedging (circular note 717, volume 1, p. 108-109)

With a hedging contract concluded with a credit institution or an organisation, which guarantees a fixed rate, the subscription costs of the contract are deductible, “since they are incurred in the interest of the company”. And, as the rate is guaranteed, “no conversion difference is recorded”.

Foreign exchange losses and asset conversion differences (circular note 717, volume 1, p. 166)

A settlement that increases the debt or reduces the receivable compared with the amounts recorded, “due to currency fluctuation”, gives rise to a deductible foreign exchange loss. Asset conversion differences recorded at year-end are deductible “in determining the income of the financial year in which they are recorded”.

Imports: the DUM rate (circular note 717, volume 1, p. 128)

Import companies may determine the cost of imported goods at the exchange rate on the date the single goods declaration (DUM) is filed, and then book the foreign exchange loss or gain in the income statement.

Minimum contribution: liability conversion differences excluded (circular note 717, volume 3, p. 2-3)

The administration specifies that foreign exchange gains are included in the base under Article 9-I-B-2°. It adds: “N.B.: Liability conversion differences are not included in the minimum contribution base.” Article 144-I-B of the CGI 2026 keeps the same structure and cross-references as the text discussed in 2011: the position remains transposable.

Key takeaways:

  • According to circular note 717 (volume 1, p. 108), the realised foreign exchange gain or loss is calculated against historical value, and the liability conversion difference is added back off the books, from RNC to RNF.
  • With a hedge at a guaranteed rate, no conversion difference is recorded and the contract costs are deductible (circular note 717, volume 1, p. 108-109).
  • Liability conversion differences are excluded from the minimum contribution base (circular note 717, volume 3, p. 3); the circular notes on the finance laws 2011 to 2026 changed nothing.

Cases settled by the DGI

Reply no. 123 of 04/03/2005: the spot rate, never the average rate

Question. May a company record its export sales at its bank’s average buying/selling rate, for IT reasons?

Reply. In a reply dated 04/03/2005 (collection of corporate tax questions 2000-2005, p. 24), the DGI refused. Transactions are converted at the spot rate on the transaction date, that is “the invoice date in general, the date the parties agreed, or the payment date for advances”. For exports, the company may use the rate on the date of transfer of ownership, and then book the foreign exchange loss or gain.

At year-end, receivables and debts are valued at the latest rate, “by correcting the initial entry”, and conversion differences are taken into account in taxable income. If the receivable arises and is settled in the same financial year, the differences are “deductible losses or taxable foreign exchange gains”. Booking at the bank’s average buying/selling rate “cannot be accepted for tax purposes”.

Scope and 2026 transposition. The reply predates the CGI (it referred to Article 5 of Law no. 24-86). The year-end rule now appears in Articles 9-I-B-2° and 10-II-B of the CGI 2026, and the spot-rate principle has not changed: the reasoning is transposable.

Key takeaways:

  • In its reply no. 123 of 04/03/2005, the DGI rejected the average buying/selling rate: a foreign-currency transaction is converted at the spot rate on the transaction date.

Application in 2026: worked example

A company subject to corporate tax (IS), with a calendar financial year, outside any minimum contribution exemption period, invoices EUR 100,000 to a foreign customer. The exchange rates below are calculation assumptions, not published rates:

  • invoice issued on 15/10/2026 at a rate of 10.80 MAD/EUR;
  • year-end rate at 31/12/2026: 11.00;
  • collection on 20/02/2027 at a rate of 10.90.

Settlement: neutralising the difference already taxed

Neither the CGI nor circular note 717 (p. 108 and 166) describes the settlement year. Yet the liability conversion difference is taxed in the year it is recorded (Art. 9-I-B-2°), and the realised gain is then booked against historical value (circular note 717, volume 1, p. 108). Without correction, the same rise in the rate would be taxed twice. The liability conversion difference taxed in year N is therefore deducted off the books in year N+1, when the gain is booked on settlement. Over the whole transaction, the taxable gain equals the actual gain.

StepCalculationAmountTax treatmentLegal basis
Invoicing (15/10/2026)100,000 × 10.80MAD 1,080,000Turnover, included in the 2026 minimum contribution baseReply no. 123; Art. 144-I-B
Year-end 2026100,000 × (11.00 − 10.80)Liability conversion difference + MAD 20,000Not booked as income; MAD 20,000 added back off the books to 2026 taxable income; excluded from the 2026 minimum contribution baseArt. 9-I-B-2°; NC 717 V1 p. 108; NC 717 V3 p. 3
Collection (20/02/2027)100,000 × (10.90 − 10.80)Realised foreign exchange gain + MAD 10,000Taxable financial income; included gross in the 2027 minimum contribution base (10,000 × 0.25% = MAD 25 of minimum contribution)Art. 9-I-B-2°; NC 717 V1 p. 108; Art. 144-I-B and 144-I-D
Neutralisation 2027Difference already taxed in 2026Off-book deduction − MAD 20,000Avoids taxing the same rise in the rate twiceConsequence of Art. 9-I-B-2° (taxation in the financial year in which it is recorded) and of NC 717, V1 p. 108 (gain measured against historical value); no text describes this deduction
Total taxable 2026-202720,000 + 10,000 − 20,000+ MAD 10,000Equal to the actual gain: 100,000 × (10.90 − 10.80)—

The 2027 taxable income therefore carries − MAD 10,000 for the transaction: this is the fall in the rate between year-end (11.00) and collection (10.90).

Variant: asset conversion difference at year-end

Assumption: the year-end rate at 31/12/2026 is 10.60, and collection still takes place on 20/02/2027 at 10.90.

The asset conversion difference of 100,000 × (10.60 − 10.80) = − MAD 20,000 is deductible from 2026 income (Art. 10-II-B; circular note 717, volume 1, p. 166). The loss is deducted only once: the provision for foreign exchange loss that the accounts set up on the same difference is not added to an off-book deduction of that difference. The example deducts the difference off the books and adds back the provision, then, on settlement, adds back the difference and deducts the provision write-back; no text describes this settlement, which follows from the deduction of the difference solely in the financial year in which it is recorded. In the example, deducting the provision itself, with no other adjustment, gives the same result in each of the two financial years.

Financial yearEntries and adjustmentsNet effect on taxable income
2026 (year-end)Provision booked as an expense (− 20,000); provision added back, as a duplicate (+ 20,000); asset conversion difference deducted, Art. 10-II-B (− 20,000)− MAD 20,000
2027 (collection)Realised gain 100,000 × (10.90 − 10.80) (+ 10,000); provision written back as income (+ 20,000), deducted because the provision was not deducted (− 20,000); asset conversion difference added back (+ 20,000)+ MAD 30,000
Total 2026-2027− 20,000 + 30,000+ MAD 10,000 (actual gain)

The asset conversion difference has no effect on the minimum contribution base, which only counts income. The realised gain of MAD 10,000 enters it at its gross amount in 2027 (Art. 144-I-B).

Variant: settlement in the same financial year

Assumption: the invoice is collected on 15/12/2026 at a rate of 10.90. No conversion difference is recorded at year-end. The realised gain of MAD 10,000 is taxable in 2026 and enters the 2026 minimum contribution base at its gross amount (reply no. 123; Art. 144-I-B).

Variant: forward hedge

With a forward contract at a guaranteed rate, no conversion difference is recorded and the contract costs are deductible (circular note 717, volume 1, p. 108-109).

Key takeaways:

  • The liability conversion difference taxed in year N is deducted off the books in year N+1, on settlement, so that the total taxable gain equals the actual gain; no text describes this deduction, which follows from the taxation of the difference in the financial year in which it is recorded (Art. 9-I-B-2°) and from the measurement of the realised gain against historical value (circular note 717, volume 1, p. 108).
  • The unrealised loss is deducted only once: when the asset conversion difference is deducted off the books in year N (Art. 10-II-B), the provision for foreign exchange loss set up on the same difference is added back, and the difference is added back on settlement; no text describes this settlement, which follows from the deduction of the difference in the financial year in which it is recorded (Art. 10-II-B).
  • A realised foreign exchange gain of MAD 10,000 represents MAD 25 of minimum contribution at the 0.25% rate (Art. 144-I-B and 144-I-D).

Points to watch

  • Average rate prohibited. Neither the bank’s average buying/selling rate nor an IT constraint justifies any rate other than the spot rate on the transaction date (reply no. 123 of 04/03/2005).
  • Gross gains in the minimum contribution base. Foreign exchange gains are included with no offsetting against foreign exchange losses: the base consists of the amount of the income items referred to in Article 144-I-B (circular note 717, volume 3, p. 2). Financial write-backs (Art. 9-I-B-4°) are not referred to in Article 144-I-B.
  • Exclusion from the minimum contribution does not mean exemption. The liability conversion difference is excluded from the minimum contribution base (circular note 717, volume 3, p. 3), but it remains subject to corporate tax (IS) (Art. 9-I-B-2°).
  • Double deduction of the asset conversion difference. A provision for foreign exchange loss booked as an expense plus an off-book deduction of the same difference would count the loss twice. See also the general conditions for deductible provisions.
  • Double taxation of the liability conversion difference. Without a deduction in the settlement year, the example would tax MAD 30,000 for an actual gain of MAD 10,000.
  • Hotel exemption. According to the administration, foreign exchange gains are not eligible for the exemption of hotel companies, which is limited to the part of the taxable base corresponding to the turnover generated in foreign currency duly repatriated directly by them or on their behalf through travel agencies (Art. 6-II-B-5° of the CGI 2026; circular note 717, volume 1, p. 45). The reduced rate of 17.50% cited in 2011 is no longer in force; only the principle remains valid.
  • Points not settled by the texts. The reference rate to use (Bank Al-Maghrib, the company’s bank, buying or selling rate) is not specified, apart from the ban on the average rate. Differences on financing debts and long-term receivables follow the general rule: Articles 9-I-B-2° and 10-II-B cover all debts and receivables denominated in foreign currencies, regardless of maturity; the tax texts do not, however, address the spreading of the unrealised loss that the general accounting standards code allows on an exceptional basis for transactions affecting several financial years. The interaction with an exemption or a reduced rate is addressed only for hotel companies (circular note 717, volume 1, p. 45, which also referred to the reduced rate of 17.50% then in force).

Key takeaways:

  • A provision for foreign exchange loss covering an asset conversion difference already deducted (Art. 10-II-B of the CGI 2026) is not deducted a second time: it is added back.
  • The liability conversion difference, excluded from the minimum contribution base (circular note 717, volume 3, p. 3), remains subject to corporate tax (IS) (Art. 9-I-B-2° of the CGI 2026).

READ ALSO:

Frequently asked questions

Is an unrealised foreign exchange gain subject to corporate tax (IS) in Morocco?

Yes. The liability conversion difference recorded at year-end at the latest rate is taxable in the year it is recorded (Art. 9-I-B-2° of the CGI). Since it is not booked as income, it is added back off the books to taxable income (circular note 717, volume 1, p. 108).

Is an unrealised foreign exchange loss deductible?

Yes. The asset conversion difference is deductible from the income of the financial year in which it is recorded (Art. 10-II-B of the CGI; circular note 717, volume 1, p. 166). The deduction applies only once: a provision for foreign exchange loss covering the same difference is not deducted on top.

Which exchange rate should be used to record a foreign-currency invoice?

The spot rate on the transaction date: usually the invoice date, or the date the parties agreed, or the payment date for advances. The bank's average buying/selling rate is not accepted for tax purposes (DGI reply no. 123 of 04/03/2005).

Are foreign exchange gains included in the minimum contribution base?

Yes, at their gross amount: the minimum contribution base consists of the amount of the income items referred to in Article 144-I-B, foreign exchange gains among them (Art. 9-I-B-2°); foreign exchange losses, which are expenses, are not deducted from it (Art. 144-I-B of the CGI; circular note 717, volume 3, p. 2). The standard minimum contribution rate is 0.25% in 2026 (Art. 144-I-D).

Are liability conversion differences included in the minimum contribution base?

No. The tax administration excludes them from the minimum contribution base (circular note 717, volume 3, p. 3, N.B.). They nevertheless remain subject to corporate tax (IS) in the financial year in which they are recorded (Art. 9-I-B-2° of the CGI).

Upsilon

Consulting

An independent firm, hands-on expertise

Upsilon Consulting is a chartered accounting, audit and tax advisory firm, statutory auditor registered with the Moroccan Institute of Chartered Accountants. Our team of 40 professionals has been supporting Moroccan and multinational companies since 2011. Our multidisciplinary approach and client proximity allow us to support you with rigour and responsiveness.

OEC Members Technical expertise Multidisciplinary approach Client proximity

Let's talk about your project

For a question about your situation, write to us. Our experts respond within 24h.

Newsletter

Stay ahead of tax & regulatory changes

Get our expert analyses, practical guides and regulatory alerts delivered to your inbox. Join 500+ professionals who trust us.

No spam. Unsubscribe in one click.

They trust us

PfizerAlstomDrägerCFAO MotorsCDG CapitalBourse de Casablanca