Skip to content
EN

Selling company shares in Morocco: how is the gain taxed?

An individual shareholder who sells shares in an unlisted company makes a gain on movable capital. The General Tax Code sets how it is calculated, its rate and a short timetable for filing and payment.

Which regime applies?

Net gains from the sale of equity securities fall under gains on movable capital (Article 66). An important exception: shares in a real estate-dominated company — whose assets consist of at least 50% real estate — follow the real estate gains regime (Article 61), covered on the real estate taxation page.

If the seller is a company, the gain forms part of its taxable profit for corporate income tax.

Calculating the gain

The gain is the difference between the sale price, net of costs, and the acquisition price increased by acquisition costs. For securities of the same type acquired on different dates, the acquisition price used is the weighted average cost. Losses may be set off against gains of the same type made in the following four years (Article 70).

Rates and exemption threshold

  • 20% for gains on unlisted shares and other equity securities, 15% for listed shares (Article 73);
  • exemption where the annual amount of sales does not exceed 30,000 dirhams (Article 68);
  • exemption for gifts of shares between ascendants and descendants, between spouses and between brothers and sisters (Article 68).

Filing and payment

The tax is paid within thirty days of the sale (Article 173), and the seller files an annual return of gains before 1 April of the following year (Article 84).

Registration duties

Sales of shares in unlisted companies are subject to registration (Article 127). The CGI provides an exemption from duties for these sales, under the conditions of its Article 129, except for shares in real estate-dominated companies, subject to a 5% duty (Article 133).

Before negotiating the price

The taxation of the sale also depends on what precedes it: distribution of dividends, contribution, restructuring. These options are best compared before signing: see the tax advice page.

Getting advice on your situation

This article presents general rules. For a specific case, see the corporate taxation page or consult the firm.

Published on 23 November 2026. Texts cited: General Tax Code, 2026 edition published by the Directorate General of Taxes (Articles 61, 66, 68, 70, 73, 84, 127, 129, 133 and 173).

A question about your case?

Present your request using the form below or write to the firm on WhatsApp to arrange a meeting at the firm, in central Casablanca. No documents are sent through the form.

Contact the firm on WhatsApp

Contact and appointments

Your request

This form needs JavaScript to be sent. You can contact the firm directly on WhatsApp.

Contact the firm on WhatsApp
WhatsApp Appointment