img

Property Capital Gains Tax in Morocco (TPI): 2026 Guide

Property Capital Gains Tax in Morocco (TPI): 2026 Guide

If you sell an apartment, villa or plot in Casablanca, Morocco, the profit you make is taxed. Moroccans still call this tax the TPI (taxe sur les profits immobiliers), although it is now formally part of income tax as “profit foncier”. The rules apply in the same way whether you live in Morocco, are a Moroccan abroad (MRE) or a foreign owner.

This guide explains how the tax is calculated in 2026, which sales are exempt, what you can deduct, and how to avoid surprises at the notary’s office.

Quick answer: In Morocco, the gain on a property sale is taxed at 20% of the net profit, with a minimum contribution of 3% of the sale price if that is higher. A home that has been your main residence for at least 5 years is generally exempt (with a 3% minimum only on the part of the price above 4,000,000 MAD). The return and payment are due within 30 days of the sale. Always confirm your figures with your notary.

What is the TPI and who pays it?

The TPI is the tax on the profit made when a property located in Morocco changes hands for a price. It covers apartments, villas, commercial premises and land, as well as certain shares in real estate companies. The seller pays it, not the buyer. Buyers have their own costs (registration duties, land registry fees, notary fees), which we cover in our guide to the cost of buying property in Morocco.

It does not matter where you live. A Canadian, French or Gulf-based owner selling a Casablanca apartment is taxed in Morocco on that gain, because the property is located in Morocco. Your country of residence may then also look at the gain under its own rules and any tax treaty with Morocco, which is a question for your home tax adviser.

How the gain is calculated

The taxable profit is, in simple terms, the sale price minus the updated cost of the property. The steps are:

  1. Sale price: the price written in the deed, minus any costs the seller paid to sell (for example an agency commission that you can document).
  2. Acquisition price: what you paid, as shown in your purchase deed.
  3. Acquisition costs: a flat 15% of the purchase price, unless you can prove higher actual costs (registration duties, land registry fees, notary fees).
  4. Investment expenses: construction, extension, renovation or improvement work, if backed by proper invoices. Routine maintenance does not count.
  5. Indexation: the total of points 2 to 4 is multiplied by an official revaluation coefficient for the year of acquisition, published by the tax administration (DGI), to reflect inflation.

Net profit = sale price − (acquisition price + costs + works) × coefficient. The tax is then 20% of that net profit, but never less than 3% of the sale price. The 3% minimum applies even if you made no gain or a loss, which surprises many sellers.

The 20% rate vs the 3% minimum: which one applies?

Because you pay whichever is higher, the minimum matters most when the gain is small. A seller who bought recently, or who bought at the top of the market, often ends up paying the 3% minimum. A long-term owner who bought cheaply years ago will usually pay 20% of a large gain.

SituationWhat usually appliesWhy
Large gain over many years20% of net profit20% of the gain exceeds 3% of the price
Small gain or recent purchase3% of sale price20% of a small gain is below the minimum
Sale at a loss3% of sale priceThe minimum applies even without a profit
Main residence held 5+ yearsExempt (3% only above 4M MAD)Main-residence exemption
Total sales ≤ 140,000 MAD in the yearExemptSmall-sale exemption

The main exemptions

Your main residence for at least 5 years

The most important exemption covers a property that has been your main residence for at least five years at the date of sale. It must not have been rented out or used for business during that period. The exemption extends to the land around the house up to five times the built area, and it can be used once in a five-year period. If the property has been vacated, the sale generally needs to happen within a year. If the price exceeds 4,000,000 MAD, a 3% contribution applies to the part of the price above that threshold.

An investment apartment you rented out, or a holiday home used a few weeks a year, does not qualify. Many MRE owners assume their family flat in Casablanca counts as a main residence; whether it does depends on the facts, so discuss it with your notary before signing.

Small sales

Sales whose total value does not exceed 140,000 MAD in a calendar year are exempt.

Family transfers and inheritance

Gifts between parents and children, spouses, and brothers and sisters are not subject to the TPI (registration duties may still apply). Selling to a family member, however, is taxable like any other sale. If you sell a property you inherited, the acquisition value used is the property’s market value at the date of death, so keep a proper valuation. Our guide to inheriting property in Morocco explains the steps before you can sell.

Economic and social housing

Specific rules apply to social housing used as a main residence for at least four years, and to homes bought with the state’s direct housing aid, which come with their own resale conditions. See our guide to Morocco’s housing aid in 2026.

Worked example

Consider an owner who bought an apartment in Casablanca for 1,200,000 MAD and sells it several years later for 1,700,000 MAD. The property was rented out, so no main-residence exemption applies. The coefficient below is illustrative only; the real one depends on the year of purchase.

ItemAmount (MAD)
Sale price1,700,000
Purchase price1,200,000
Flat acquisition costs (15%)180,000
Documented renovation works100,000
Subtotal1,480,000
Illustrative coefficient 1.051,554,000
Net profit146,000
20% of net profit29,200
3% minimum of sale price51,000
Tax payable (higher of the two)51,000

In this example, the minimum contribution is higher, so the seller pays 51,000 MAD. With a lower purchase price, the 20% calculation would take over. You can run your own scenarios with the property calculators on calculatrices.pro and then ask your notary to confirm.

Filing and paying: the 30-day rule

The seller must file a return and pay the tax within 30 days of the sale. In practice, Casablanca notaries usually handle the declaration, and they commonly retain the estimated tax from the sale proceeds before paying you the balance. The legal obligation, however, stays with the seller, so check that the declaration was filed and ask for proof of payment.

Late filing and late payment carry penalties and surcharges, so do not treat the deadline lightly, especially if you are abroad. If you will not be in Casablanca for the signing, a properly drafted power of attorney lets a trusted person sign and follow up for you.

Non-residents: repatriating the sale proceeds

Foreign owners and MRE who financed their purchase with funds brought from abroad can generally transfer the sale proceeds, including the capital gain, back abroad once the tax has been paid. The bank will ask for the sale deed, proof that taxes were settled and proof that the original investment was financed in foreign currency. Our guide to transferring money to buy property in Morocco explains which documents to keep from day one.

How to reduce the tax legally

  • Keep every invoice for works that improve the property. Without invoices, they cannot be deducted.
  • Keep your purchase file: deed, registration receipts, land registry fees and notary invoice. If actual costs exceed 15%, they can be used instead of the flat rate.
  • Check the main-residence rules before renting the property out if you plan to sell it as your home later.
  • Time the sale: an owner close to the five-year threshold for a main residence may gain by waiting.
  • Price realistically: the tax administration can review a declared price that looks far below market value. Our step-by-step selling guide covers pricing.

Frequently asked questions

Do foreigners pay the same capital gains tax in Morocco?

Yes. The TPI rules are the same for Moroccan residents, MRE and foreign owners. What differs is how your country of residence treats the gain afterwards.

Is the 3% minimum due if I sell at a loss?

Generally yes. The 3% minimum contribution applies even when there is no gain, unless the sale is exempt (for example a main residence held for five years or more).

Who files the TPI return, me or the notary?

The obligation belongs to the seller, but in practice the notary usually prepares the declaration and pays the tax from the sale funds. Ask for a copy of the receipt.

Can I deduct my mortgage interest?

Mortgage interest is not one of the standard deductions for the TPI. The deductible items are the purchase price, acquisition costs and documented improvement works, revalued by the official coefficient.

Is inherited property exempt when I sell it?

No. The sale is taxable, but the starting value is the property’s market value at the date of death, which often reduces the taxable gain.

Conclusion

The property capital gains tax in Morocco is simple in principle, 20% of the gain or 3% of the price, but exemptions, coefficients and documentation make a real difference to what you pay. Prepare your purchase file early, confirm the calculation with your notary, and plan the transfer of funds if you live abroad. This article is general information, not legal or tax advice.

Planning to sell an apartment or villa in Casablanca, Morocco? Contact Casablanca Estate to value your property, find a buyer or list it with us.