Background
An individual who sells a flat, land or shares in a real estate company realises a real estate gain (profit foncier). The General Tax Code (Code général des impôts, CGI) subjects it to personal income tax (IR), outside any business activity.
The tax is declared and paid within 30 days of the disposal. The seller must therefore know the acquisition cost and any entitlement to an exemption before signing. A calculation error leads to a reassessment and to surcharges.
What the law says
Taxable transactions (Art. 61-II). These are the sale of property located in Morocco or of real property rights, expropriation, contribution to a company, exchange, partition with a balancing payment (soulte) and transfer free of charge. To these is added the disposal of company securities of predominantly real estate companies not listed on the stock exchange.
Calculation of the gain (Art. 65). The net gain equals the disposal price, reduced by the disposal costs, less the acquisition price increased by:
- the acquisition costs, assessed at a flat rate of 15% of the acquisition price, unless the seller substantiates a higher amount;
- substantiated investment expenditure: construction, extension, renovation, improvement;
- the interest on loans taken out for the acquisition or the investment.
The cost obtained in this way is revalued by the coefficient for the year of acquisition, calculated by the administration.
Rate and minimum. The net gain is taxed at 20% (Art. 73-II-F-6°). This levy is final. The tax may not be less than 3% of the disposal price, even where there is no gain (Art. 144-II-1°).
Exemptions (Art. 63).
| Case | Conditions |
|---|---|
| Small disposals (II-A) | Total value of the disposals of the calendar year not exceeding 140,000 DH |
| Main residence (II-B) | Occupied for at least 5 years on the day of the disposal; dwelling neither let nor used for business purposes; only one exemption during those 5 years |
| Social housing (II-D) | Main residence for at least 4 years on the day of the disposal |
| Undivided agricultural rights (II-C) | Agricultural property located outside urban perimeters, disposal between co-heirs |
| Transfers free of charge (III) | In particular between ascendants and descendants, between spouses, between brothers and sisters |
For the main residence, the seller has one year at most after the dwelling is vacated to dispose of it. The land on which the building stands is exempt up to a limit of 5 times the covered area. If the disposal price exceeds 4,000,000 DH, a minimum of 3% remains due on the portion above this amount (Art. 144-II-2°).
Return and payment. The seller submits the return to the collector of the tax administration within 30 days of the disposal, with the supporting documents for the costs and the expenditure. The seller pays the tax within the same time limit (Art. 83-I and 173-I).
Prior opinion (Art. 234 quinquies). The seller may request the opinion of the administration within 30 days of the preliminary sale agreement (compromis de vente). The reply, given within 60 days, serves as a certificate of tax computation or of exemption for 6 months. A seller who declares and pays on this basis is exempt from audit in respect of the real estate gain.
Provisional payment (Art. 173-I). Without a certificate or without a request for an opinion, the seller pays on a provisional basis the difference between the tax declared and 5% of the disposal price, except for a transaction exempted by Article 63. This payment is refunded automatically if the administration does not start a reassessment (Art. 241 bis-II-C).
Worked example
An individual sells in 2026, for 1,500,000 DH, a flat acquired for 800,000 DH and let to a tenant. The substantiated disposal costs amount to 30,000 DH. The revaluation coefficient is assumed to be 1.10; the actual coefficient is the one that the administration calculates for the year of acquisition.
- Flat-rate acquisition costs: 800,000 × 15% = 120,000 DH.
- Acquisition cost: 800,000 + 120,000 = 920,000 DH.
- Revalued cost: 920,000 × 1.10 = 1,012,000 DH.
- Net gain: (1,500,000 − 30,000) − 1,012,000 = 458,000 DH.
- Tax at the rate of 20%: 458,000 × 20% = 91,600 DH.
- Minimum tax (cotisation minimale): 1,500,000 × 3% = 45,000 DH.
The tax due is 91,600 DH, the higher of the two amounts. It exceeds 5% of the disposal price, that is 75,000 DH: no provisional payment is added.
Penalties and risks
- Late or missing return. The surcharge is 5% for a delay of up to 30 days, 15% beyond that and 20% in the event of ex officio assessment, with a minimum of 500 DH (Art. 184).
- Late payment. The penalty of 10% is reduced to 5% if the delay does not exceed 30 days. A surcharge of 5% is added for the first month, then 0.50% per additional month or part of a month (Art. 208-I).
- Reassessment. The inspector notifies the reassessed base within 90 days of the filing of the return (Art. 224). The surcharge is 20%, raised to 100% in the event of concealment in the sale price (Art. 186). In an ex officio assessment, for lack of information, the base is the disposal price reduced by 20% (Art. 65).
- Limitation period. It runs until 31 December of the fourth year following the year in which the disposal was disclosed to the administration (Art. 232-I).
Key takeaways
- 20%: final rate applied to the net gain.
- 3%: minimum taxation, calculated on the disposal price.
- 5 years: period of occupation required for the exemption of the main residence; 4 years for social housing.
- 140,000 DH: annual value of disposals up to which the gain is exempt.
- 4,000,000 DH: price above which the exempt main residence bears 3% on the excess.
- 30 days: time limit for the return and the payment after the disposal.
CM2A advice
Before the preliminary sale agreement, the seller gathers the deed of acquisition, the invoices for works and the interest statements for the loans. The seller works out 20% of the net gain and 3% of the disposal price, and takes the higher amount. A seller who aims for the exemption of the main residence checks the period of occupation, the absence of letting and the date on which the dwelling was vacated. The seller files the request for a prior opinion within 30 days of the preliminary sale agreement. CM2A Consulting supports sellers in the calculation of the gain and the preparation of the real estate gain return.
Sources: CGI 2026, Art. 61, 63, 65, 73, 83, 144, 173, 184, 186, 208, 224, 232, 234 quinquies and 241 bis. General information up to date as at 10 November 2026; it does not replace advice tailored to your situation.
