- Real estate capital gain is the difference between the sale price (net of selling costs) and the acquisition price increased by acquisition costs (15% flat rate) and capital expenditure, revalued using an official indexation coefficient (CGI, Art. 65).
- Tax is 20% of the net taxable gain, subject to a minimum tax of 3% of the sale price, even if no gain is made (Art. 73-II-F-6° and 144-II).
- Exemptions: total annual disposals under MAD 140,000, main residence occupied for at least 5 years (3% minimum applies above MAD 4 million), transfers between close relatives, etc. (Art. 63).
- The tax return must be filed with payment within 30 days of the sale (Art. 83); the notary collects the tax upon signing the deed.
Selling a flat, a plot of land or commercial premises can trigger a significant tax liability for an individual seller: personal income tax (IR) on real estate capital gains. Its calculation follows precise rules under the General Tax Code (CGI) that work in favour of sellers who keep their supporting documents. Below is how it works, complete with worked examples.
Scope of application (Art. 61-II)
Real estate capital gains arise on:
- the sale of immovable property located in Morocco or real property rights;
- expropriation in the public interest or de facto expropriation;
- any transfer of ownership pursuant to a court ruling;
- the contribution to a company of immovable property or real property rights;
- the disposal of shares or units in tax-transparent real estate companies or unlisted real estate-predominant companies (whose gross assets consist of at least 50% real estate);
- exchanges (treated as a double sale), partitions with balancing payments, and gratuitous transfers;
- the transfer of a property from private wealth to the business assets of a sole proprietor at a value exceeding its original cost.
Exemptions (Art. 63)
| Case | Condition |
|---|---|
| Small disposals | Total value of property disposals during the calendar year ≤ MAD 140,000 |
| Main residence | Property occupied as the owner’s main residence for at least 5 years at the date of sale; once only during that period; one-year grace period after the home becomes vacant; extends to surrounding land up to 5 times the built-up area; property not let out or used for business purposes |
| Social housing | Main residence for at least 4 years |
| Moroccans living abroad (MRE) | A home kept as a residence in Morocco, or occupied free of charge by a spouse, ascendants or first-degree descendants, qualifies as a main residence |
| Undivided agricultural rights | Disposals of undivided rights in agricultural land outside urban boundaries between co-heirs |
| Gratuitous transfers | Between ascendants and descendants, spouses, siblings, under kafala (legal guardianship), or to public-utility associations |
Calculating the capital gain (Art. 65)
Net taxable gain = Sale price net of selling costs − Revalued acquisition price
Sale price: sale price or estimated value declared or accepted, less selling costs (advertising, brokerage fees, deed costs borne by the seller, substantiated eviction indemnities).
Acquisition price: purchase price, increased by:
- acquisition costs, valued at a flat rate of 15% of the purchase price, unless a higher actual amount is substantiated (contract fees, registration duties, land registry fees, brokerage, notarial deeds);
- substantiated capital expenditure (land development, construction, extension, renovation, improvement);
- interest paid to finance the acquisition (bank loans, Mourabaha, Ijara Mountahia Bitamlik).
The acquisition price thus increased is revalued using a coefficient based on the cost-of-living index, published according to the year of acquisition (3% per year prior to 1946). For an inherited property, the acquisition price is the market value at the date of death recorded in the heirs’ inventory or declared.
Tax rate and minimum tax
- 20% rate on the net taxable gain (Art. 73-II-F-6°).
- Minimum tax of 3% of the sale price, even where no gain is made (Art. 144-II-1°).
- For the main residence exemption: minimum tax of 3% on the portion of the sale price exceeding MAD 4,000,000 (Art. 144-II-2°).
Worked example
An owner purchased an apartment (not a main residence) in 2012 for MAD 1,200,000. They sell it in 2026 for MAD 2,000,000, incurring MAD 20,000 in brokerage fees. They paid for MAD 100,000 of substantiated renovation work in 2016. Revaluation coefficient for the year of acquisition: 1.20 (illustrative figure; the official coefficient is published annually).
| Item | Calculation | Amount (MAD) |
|---|---|---|
| Sale price | 2,000,000 | |
| − Selling costs | −20,000 | |
| Net sale price | 1,980,000 | |
| Acquisition price | 1,200,000 | |
| + Acquisition costs (15% flat rate) | 15% × 1,200,000 | 180,000 |
| + Capital expenditure | 100,000 | |
| Adjusted acquisition price | 1,480,000 | |
| × Coefficient | × 1.20 | 1,776,000 |
| Net taxable gain | 1,980,000 − 1,776,000 | 204,000 |
| Tax at 20% | 20% × 204,000 | 40,800 |
| Minimum 3% of sale price | 3% × 2,000,000 | 60,000 |
| Tax due (higher amount) | 60,000 |
Here, the 3% minimum tax prevails: the seller pays MAD 60,000. Even if the renovation costs had been higher or higher actual acquisition costs had been substantiated, the taxable gain would be lower, but the minimum tax would still be payable.
Filing and payment (Art. 83)
- Tax return submitted against a receipt to the tax collector within 30 days of the sale, together with payment of the tax.
- It must be accompanied by all supporting documents for acquisition costs and capital expenditure.
- Where the deed is executed by a notary, the notary collects the tax and files the return (Art. 173).
- In the case of expropriation or a court ruling, the deadline runs from receipt of the proceeds.
- For company contributions under the Article 161 bis regime: 60 days.
A second example: sale at an apparent loss
An owner bought premises in 2008 for MAD 1,500,000 and sells them in 2026 for MAD 1,800,000. After revaluing the acquisition price (15% flat-rate costs and an illustrative coefficient of 1.40), the comparison is as follows:
| Item | Calculation | Amount (MAD) |
|---|---|---|
| Net sale price | (no selling costs) | 1,800,000 |
| Acquisition price | 1,500,000 | |
| + Acquisition costs (15%) | 225,000 | |
| Adjusted acquisition price | 1,725,000 | |
| × Coefficient | × 1.40 | 2,415,000 |
| Result | 1,800,000 − 2,415,000 | −615,000 (no gain) |
| Tax at 20% | 0 | |
| Minimum 3% of sale price | 3% × 1,800,000 | 54,000 |
Even without a profit, the 3% minimum contribution on the sale price is due (CGI, Art. 144-II-1°). For low-margin sales, it therefore acts as the effective tax.
Main residence exemption: the timeline to respect
The exemption requires occupation for five years at the date of sale. Take an owner who occupies their home from 1 September 2020 to 31 January 2026, and sells it on 15 March 2026 after leaving it vacant in February and March.
| Stage | Date | Note |
|---|---|---|
| Start of occupation | 1 September 2020 | Evidence: water and electricity bills, residence certificate |
| End of occupation | 31 January 2026 | Move-out |
| Sale | 15 March 2026 | Less than one year vacant: the one-year grace period preserves the exemption |
| Length of occupation at sale | 5 years and 5 months | Exceeds 5 years |
If the home had been let out after the owner moved out, it would have lost its status as a main residence. Keep evidence of occupation throughout ownership (utility bills, certificates): these provide proof in the event of a tax audit.
For a main residence sold for more than MAD 4,000,000, the exemption does not remove the 3% minimum tax on the portion of the price above MAD 4,000,000: on a sale at MAD 5,500,000, this minimum equals 3% × 1,500,000 = MAD 45,000.
Seller’s checklist
| Question | Reason |
|---|---|
| Are total disposals for the year below MAD 140,000? | Small-disposal exemption |
| Has the property been the main residence for over five years and not let out? | Exemption subject to conditions |
| Do I have receipts for all actual acquisition costs? | The 15% flat rate may be lower |
| Do I have invoices for renovation or building work? | Capital expenditure increases the acquisition price |
| When did the property enter my estate (deed, inheritance)? | Determines the revaluation coefficient |
| Will the notary collect the tax? | 30-day deadline and payment |
| Did the buyer declare the same price? | Risk of reassessment to market value |
Property received by inheritance
For an inherited property, the acquisition price is the property’s market value at the date of death, recorded in the heirs’ inventory or declared. That value serves as the tax base. Because the starting price is often low (a value declared many years ago), the gain is higher: it is advisable to keep the certificate of inheritance, the partition deed and any valuation prepared at the time.
Reassessment risks
The tax authority may compare declared prices with market prices for comparable properties. A sale price clearly below market value exposes the seller to a tax reassessment. To protect yourself:
- Declare the true price of the transaction, as agreed in the deed.
- Keep an independent valuation (surveyor, estate agent) if the price is below standard benchmarks, documenting the reasons (condition of the property, repairs needed, quick sale).
- Never conceal an off-deed payment or discount: in an audit, a discrepancy between the declared price and the price actually received worsens the position.
- Gather all documents before signing, as filing deadlines are tight (30 days).
Step-by-step order for a sale
- Before listing the property: gather the purchase deed, invoices for building/renovation work and proof of occupation.
- Before signing the preliminary contract: simulate the tax (net gain, 20%, 3% minimum) to set a realistic net sale price.
- At completion: make sure the notary calculates the tax using the supporting documents provided.
- Within 30 days: verify that the return has been filed and payment made.
- After the sale: archive the full file (deed, tax return, payment receipt) for ten years.
Documents to keep
- Original acquisition deed (purchase price, duties, land registry fees).
- Invoices for works, equipment and extensions, with building permits where applicable.
- Loan interest statements.
- Proof of occupation as a main residence (utility contracts, proof of address) for the exemption.
- Partition deeds or inventory for inherited properties.
Common pitfalls
- Failing to substantiate actual acquisition costs when they exceed 15%.
- Omitting capital expenditure or claiming it without invoices.
- Declaring a price below market value: reassessment with a 20% surcharge, or 100% in cases of concealment (see penalties).
- Letting out a property before sale: it loses its main residence status.
- Splitting disposals artificially to stay below MAD 140,000 without economic substance.
Quick reference: key figures for property sales
| Benchmark | Value |
|---|---|
| Tax rate on net taxable gain | 20% |
| Minimum tax | 3% of the sale price |
| Flat-rate acquisition costs | 15% of the acquisition price |
| Small-disposal exemption | Annual total ≤ MAD 140,000 |
| Main residence | Occupation for at least 5 years |
| Filing and payment deadline | 30 days |
| Minimum tax on main residence | 3% on the portion of the price above MAD 4,000,000 |
Five habits to adopt:
- Gather supporting documents for acquisition and works before listing the property.
- Simulate the tax before setting your target net price.
- Keep proof of occupation to support the main residence exemption.
- Do not let out the property just before selling if claiming the exemption.
- Declare the real price: under-declaring exposes you to reassessment and surcharges.
Special cases and borderline situations
The property is held in undivided co-ownership. Each co-owner declares and pays their share of the gain according to their ownership share and personal circumstances (such as main residence exemption).
The property was acquired by gift. The acquisition price retained and the applicable rules depend on the nature of the transfer; gather the deed of gift, the declared value and related fees.
Only part of a plot of land is sold. Calculate the acquisition price pro rata to the area and buildings; document the allocation method.
The seller is a Moroccan living abroad (MRE). The main residence exemption is assessed under the specific rules for MRE; retain proof of occupation and residence status.
The sale involves stage payments. The gain is taxed in the year of disposal; deferred payment does not defer taxation, unless a specific statutory provision applies.
Frequently asked questions
Which transactions count as ‘disposals’?
Sales, expropriations, transfers under a court ruling, contributions to a company, disposals of shares or units in unlisted real estate-predominant companies (where real estate makes up at least 50% of gross assets), exchanges, partitions with balancing payments, gratuitous transfers, and transfers of property from private wealth to business assets at a value above acquisition cost.
How does the main residence exemption work?
The gain made on the sale of a property used as the owner’s main residence for at least five years at the date of sale is exempt, once during that period, with a one-year grace period after the property becomes vacant. The exemption covers surrounding land up to five times the built-up area. A 3% minimum tax applies to the portion of the sale price exceeding MAD 4,000,000.
What happens if I sell at a loss?
There is no taxable gain, but the minimum tax of 3% of the sale price remains due unless an exemption applies. The loss cannot be offset against other income.
What if the tax authority considers the price too low?
The declared price is subject to reassessment if it does not appear to reflect market value at the date of sale (Art. 65 and 224). In the event of an ex officio assessment without supporting evidence, the tax base is the sale price less 20%.
- CGI 2026, Art. 61 — definition of real estate capital gains
- CGI 2026, Art. 63 — exemptions
- CGI 2026, Art. 65 — determination of taxable real estate capital gain
- CGI 2026, Art. 73-II-F-6° and 144-II — 20% rate and 3% minimum tax
- CGI 2026, Art. 83 — filing of real estate capital gains
This article presents general rules as at the date shown; it does not replace an analysis of your situation. The French version of the texts prevails.
Article written from the official texts and the firm’s engagement practice. It shows its publication date and, where applicable, its last review.