CM2A Consulting
    Tax16 November 20269 min readCM2A Consulting

    Paying a foreign service provider from Morocco: 10% withholding tax and self-assessed VAT

    A Moroccan company that pays a non-resident service provider withholds 10% of the amount excluding VAT and pays it over within the month following payment. It also declares the 20% VAT on the provider's behalf and deducts it on the same return.

    Background

    Moroccan businesses buy many services abroad: software development, remote maintenance, hosting, consulting. The service provider often has neither a subsidiary nor an office in Morocco. The General Tax Code (Code général des impôts, CGI) then makes the Moroccan client responsible for collecting two taxes: the corporate income tax (impôt sur les sociétés, IS) owed by the provider, by way of withholding tax (retenue à la source), and the value added tax (VAT) due on the service.

    A client that pays the invoice in full, without withholding anything, remains liable for the sums not paid over, with penalties. This article describes the two obligations and quantifies them on an invoice for IT services.

    What the law says

    Payments covered (Art. 4-III and 15). Withholding tax applies to gross income paid, made available or credited to the account of non-resident individuals or legal entities. Article 15 sets out the list: royalties for copyright and licences, remuneration for the supply of scientific or technical information and for study work carried out in Morocco or abroad, technical assistance, equipment rental, interest, commissions and fees. Its last paragraph (Art. 15-X) covers remuneration for services of any kind used in Morocco or supplied by non-resident persons. IT services fall within this scope. Crediting to an account includes crediting to a current account agreed in writing between the parties (Art. 4).

    In an answer published in its question-and-answer collection on IS, the Directorate General of Taxes (Direction générale des impôts, DGI) applies the 10% withholding to equipment repairs carried out abroad, at the time the invoice is settled.

    Rate and base (Art. 19-IV-B). The rate is 10% of the amount of gross income, excluding VAT.

    Person who withholds (Art. 160). The taxpayer who pays the non-resident, or who takes part in the payment, makes the withholding on behalf of the Treasury. Where the non-resident is paid by a non-resident third party, the tax remains due by the client business in Morocco (Art. 160-II).

    Payment to the Treasury (Art. 171). The withholding is paid over within the month following that of the payment, of making available or of crediting to the account. The client pays it to the tax collector (receveur de l'administration fiscale) of the place of its tax domicile, registered office or principal establishment, with a payment slip (bordereau-avis).

    Return (Art. 154). At the same time as its tax return on taxable income, the client files a return of payments made to non-residents. It states the nature and amount of the payments, taxable or exempt, the amount of the withholdings and the identity of the beneficiaries. A company files its tax return on taxable income within the three months following the year-end (Art. 20-I).

    Tax treaty. The 10% rate is the domestic law rate. A double taxation treaty may cap it or exclude taxation in Morocco; it never creates the tax. Each treaty has its own numbering and definitions. Example: the treaty between Morocco and Spain, signed on 10 July 1978 and in force since 16 May 1985 according to the DGI table of treaties:

    • the profits of a Spanish enterprise are taxable only in Spain, unless it carries on business in Morocco through a permanent establishment (Art. 7 of the treaty);
    • royalties may be taxed in Morocco up to 5% for copyright in literary, artistic or scientific works, and up to 10% for the other royalties covered, which include remuneration for technical or economic studies (Art. 12 of the treaty).

    An IT service falls under one article or the other depending on its content. An exchange of letters of 2015 between the two administrations specifies the meaning of the expression "technical or economic studies". The classification is made contract by contract, and another treaty may lead to a different result.

    VAT (Art. 88, 99 and 115). A service is deemed to be supplied in Morocco when it is exploited or used there. It is also deemed supplied in Morocco when a non-resident with no establishment in Morocco provides it remotely, in dematerialised form, to a client established in Morocco (Art. 88-2°). The standard rate is 20% (Art. 99-A). The non-resident must accredit with the tax administration a representative domiciled in Morocco (Art. 115). Failing that, its client established in Morocco declares and pays the tax:

    • if the client carries on an activity liable to VAT, it reports the amount of the transaction excluding tax on its own return, calculates the tax due and deducts it at the same time (Art. 115);
    • if the client carries on an activity outside the scope of VAT, it withholds the tax at source on each payment and pays it to the tax collector within the month following that of the payment (Art. 117-III).

    Worked example

    A Moroccan limited liability company (société à responsabilité limitée, SARL), registered for VAT, closes its financial year on 31 December. It commissions a company established in Spain, with no establishment or accredited representative in Morocco, to develop a module of its management software. The work is done remotely. The invoice amounts to 200,000 dirhams excluding tax. The SARL settles it on 10 March 2026.

    IS withholding tax:

    • base: 200,000 dirhams, excluding VAT;
    • withholding: 200,000 × 10% = 20,000 dirhams;
    • transfer to the provider: 180,000 dirhams;
    • payment to the tax collector: during April 2026, by 30 April 2026 at the latest.

    VAT:

    • tax due: 200,000 × 20% = 40,000 dirhams;
    • the SARL reports 200,000 dirhams excluding tax on its VAT return, with 40,000 dirhams of tax due;
    • it deducts 40,000 dirhams on the same return (Art. 115): the net effect on its cash position is nil.

    Total cost for the SARL: 180,000 dirhams paid to the provider and 20,000 dirhams paid to the Treasury, that is 200,000 dirhams. The SARL reports the payment and the withholding on the Article 154 return, filed with its tax return on taxable income for the 2026 financial year, by 31 March 2027 at the latest. The 2027 Finance Act may change this rule.

    Three variations change the result:

    • if the payment remunerated the use of copyright in a literary, artistic or scientific work, Article 12 of the Morocco-Spain treaty would cap the withholding at 5%, that is 10,000 dirhams;
    • if the service fell within the business profits of Article 7 of the treaty, with no permanent establishment in Morocco, the withholding would not be due; the SARL must then be able to justify the classification and the provider's Spanish residence;
    • if the SARL carried on an activity outside the scope of VAT, it would withhold 40,000 dirhams of VAT and pay it by 30 April 2026 at the latest (Art. 117-III), without the deduction provided for by Article 115.

    Penalties and risks

    • Failure to withhold or to pay over (Art. 198). A client that has not spontaneously paid over, within the time limits, the sums for which it is responsible is personally liable for them, whether or not the withholding was made. These sums are increased by the penalty and surcharges of Article 208.
    • Late payment (Art. 208-I). For taxes withheld at source and for VAT withheld under Article 117, the penalty is 20% in the event of failure to pay or late payment. A surcharge of 5% is added for the first month of delay and of 0.50% per additional month or part of a month. In the worked example, a withholding of 20,000 dirhams paid on 31 August 2026, four months late, bears a penalty of 4,000 dirhams and a surcharge of 6.5%, that is 1,300 dirhams.
    • Return of payments (Art. 195). The surcharge is 5% for filing no more than 30 days late, or for a late corrective return giving rise to additional tax. It is 15% beyond 30 days and 20% in the event of failure to file or of an incomplete or insufficient return. It is calculated on the tax withheld at source, with a minimum of 500 dirhams.
    • Self-assessed VAT (Art. 184). Omitting the transaction from the VAT return exposes the client to the surcharges of 5%, 15% or 20% applicable to turnover returns, with a minimum of 500 dirhams. Where the missing items have no impact on the tax base or on its collection, a fine of 500 dirhams applies.

    Key takeaways

    • 10%: rate of withholding tax on gross income, excluding VAT, paid to non-residents (Art. 19-IV-B).
    • Following month: the withholding is paid over within the month following the payment, the making available or the crediting to the account (Art. 171).
    • 20%: VAT due on services used in Morocco, declared and deducted by the VAT-registered client when the provider has no accredited representative (Art. 115).
    • Tax treaty: it caps or excludes the withholding depending on the classification of the payment; it does not create the tax.
    • Penalty of 20% for late payment of a withholding, plus a surcharge of 5% then of 0.50% per month (Art. 208-I).

    CM2A advice

    Before signing with a foreign service provider, the Moroccan client classifies the payment: service, royalty or technical study. It checks whether a treaty exists with the provider's State of residence and reads the applicable article. It asks for a tax residence certificate before the first payment. It sets in the contract a price stipulated before withholding tax. Its accounting department, in-house or entrusted to an outside firm, records each payment abroad in a tracking table, which is used for the monthly payment and the annual return. CM2A Consulting assists businesses with the analysis of international contracts, the application of tax treaties and the preparation of withholding tax returns.

    Sources: CGI 2026, Art. 4-III, 15, 19-IV-B, 20-I, 88, 99-A, 115, 117-III, 154, 160, 171, 184, 195, 198, 208-I; tax treaty between Morocco and Spain of 10 July 1978, Art. 7 and 12; DGI question-and-answer collection on IS. General information up to date as at 16 November 2026; it does not replace advice tailored to your situation.

    Did you find this article useful?