Skip to content
Inmobiliaria CerVel
Buying Guide · 8 min read

Capital Gains Tax in Mexico: What Sellers Actually Owe

By Inmobiliaria CerVel ·

Illustration about capital gains tax in Mexico when selling a property, showing a home, a deed and a notary calculating the tax

Capital gains tax in Mexico is charged under the income tax law (Impuesto Sobre la Renta, or ISR) when you sell a property, and the notary handling the sale calculates and pays it on your behalf before you ever see the proceeds. How much you owe turns on one question that most articles skip: whether you are a tax resident of Mexico or a non-resident. The two are taxed under entirely different chapters of the law, with different rates and different exemptions.

This guide covers the sell-side tax specifically. If you want the whole ownership picture — the annual predial, the acquisition tax at closing, and rental income — that is our companion guide to property taxes in Mexico. Here we go into the one that lands when you sell.

Every rule below comes from the Income Tax Law (Ley del Impuesto Sobre la Renta) as published by Mexico’s Chamber of Deputies. Rates and thresholds are set in law and do change, and how they apply to your sale depends on facts we cannot see from here — so treat this as a map, and confirm the calculation with a Mexican accountant and your notary before you sign anything.

Who pays what: the residency split

Mexican income tax law treats two groups differently, and it is the single most consequential distinction for a foreign owner:

  • Tax residents of Mexico are taxed under Title IV of the law. Their gain is calculated after deductions and taxed on a progressive scale, and a primary-residence exemption exists.
  • Non-residents — people whose tax residency is outside Mexico, even if they own a home here — are taxed under Title V, which applies to income from a Mexican source. It has its own rates, and no equivalent primary-residence exemption.

Note that tax residency is not the same thing as your immigration status. Holding a residency visa and being a tax resident are separate determinations, and getting that classification right is the first thing to settle with an accountant — not after the deed is signed.

Capital gains tax in Mexico for non-residents

For a non-resident selling real estate located in Mexico, Article 160 of the Income Tax Law sets out two routes, and the seller can choose:

  1. 25% of the total sale price, with no deductions at all. The tax is applied to the gross amount received. Nothing is subtracted — not your purchase price, not your renovations.
  2. 35% of the gain. The alternative is to apply the top marginal rate of the annual tax table in Article 152 — currently 35% — to the gain itself, calculated with the deductions the law allows.

The two options exist because they favor different sales. On a property that has appreciated modestly, 25% of the whole price can easily exceed 35% of a small gain. On a property held for decades with a large gain, the flat 25% of gross may be the cheaper route. This is arithmetic, not judgment: your notary and accountant should run both and take the lower number.

One practical detail that surprises people: to take the 35%-of-gain option, the law generally contemplates having a representative in Mexico — but Article 160 expressly states that no representative in the country is required when the sale is recorded in a public deed (escritura pública), which is how a normal property sale in Mexico is done. In other words, the option is usually available to you through the ordinary notarial process.

Capital gains tax for tax residents of Mexico

If you are a tax resident, the sale is taxed under Title IV, and Article 126 governs the provisional payment the notary makes at closing. The mechanism is unusual and worth understanding, because it works in a seller’s favor:

  • The gain is divided by the number of years between acquisition and sale, capped at 20 years.
  • The progressive tariff is applied to that annualized slice.
  • The result is then multiplied back by the same number of years to produce the provisional payment.

Spreading the gain across the years you held the property keeps it from being pushed entirely into the top bracket in a single year. The notary calculates this under their own responsibility, states it in the deed, and pays it to the tax authority within 15 days of the signing. It is a provisional payment: the sale still belongs in your annual return, where the final figure is settled.

The primary-residence exemption

The exemption everyone asks about is in Article 93, section XIX, and it applies to a taxpayer’s casa habitación — their home. Its conditions are specific:

  • The sale price must not exceed 700,000 UDIs. The UDI (unidad de inversión) is an inflation-indexed unit published by the Bank of Mexico, so the peso ceiling moves; check the current UDI value on the day rather than relying on a figure printed in an article.
  • The sale must be formalized before a notary or equivalent public official.
  • You must not have used this same exemption on another home during the three years immediately before the sale, and you must declare that under oath before the notary.
  • If the price exceeds the cap, the excess is not simply lost: the gain and tax on the excess are calculated proportionally, and the notary handles the provisional payment on that part.
  • For this purpose, “home” includes the land up to a maximum of three times the built area.

The notary is also required to check your declaration against the tax authority’s records. This is not a box to tick casually — it is a sworn statement, verified.

And the point that matters most for our readers: this exemption sits in the chapter that governs individuals who are tax residents of Mexico. The non-resident chapter has no equivalent. If you are counting on it, confirm your tax residency status first.

What actually reduces the tax: your paperwork

Whichever route applies, the gain is only as low as your documentation allows. Two habits do more for your eventual tax bill than any clever structure:

  • Declare the real value in the deed. A purchase recorded below the true price lowers your acquisition tax today and inflates your taxable gain later by exactly the amount you hid. It is the most expensive false economy in Mexican real estate.
  • Keep official invoices for improvements. Renovations reduce the gain only when they are supported by proper facturas issued to you, with your tax details. Cash paid to a contractor without an invoice is, for tax purposes, money you never spent. Start that file the day you buy, not the month you sell — our step-by-step buying guide covers the documents worth keeping from the start.

Do you also owe tax at home?

Probably a filing, at minimum. US citizens are taxed on worldwide income, which means a Mexican property sale generally belongs on a US return too, with foreign tax credit mechanisms usually available to prevent the same gain being taxed twice in full. The details — cost basis in dollars, exchange-rate treatment, reporting obligations — are a US question, not a Mexican one.

The practical move is to have your Mexican accountant and your US tax professional speaking to each other before the sale, not after. Nothing about this is exotic; it just falls between two systems, and things that fall between systems are the ones people get wrong.

Frequently asked questions

What is the capital gains tax rate in Mexico? For non-residents, either 25% of the gross sale price with no deductions, or 35% of the gain — the seller chooses. For tax residents, the gain is taxed on the progressive scale, with the provisional payment annualized over the holding period, capped at 20 years.

How is capital gains tax in Mexico paid? The notary handling the sale calculates it under their own responsibility, records it in the deed, withholds it from the proceeds, and pays it to the tax authority within 15 days of signing.

Can I avoid capital gains tax in Mexico? There is one lawful exemption for individuals: the primary-residence exemption, limited to 700,000 UDIs, formalized before a notary, and usable only once every three years. It sits in the chapter that applies to tax residents of Mexico. Beyond that, what legitimately reduces the bill is documentation — a truthful declared purchase price and properly invoiced improvements.

Is capital gains tax in Mexico different for non-residents? Yes, substantially. Non-residents are taxed under a different title of the law, with the 25%-of-gross or 35%-of-gain choice, and without the primary-residence exemption available to tax residents.

In short

Capital gains tax in Mexico is collected by the notary at the moment of sale. Non-residents choose between 25% of the gross price with no deductions and 35% of the gain; tax residents are taxed progressively, with the gain annualized over the holding period up to 20 years. The primary-residence exemption — 700,000 UDIs, once every three years, sworn before the notary — belongs to the tax-resident chapter. And nothing reduces the bill as reliably as a truthfully declared purchase price and invoiced improvements. Confirm the specifics with a Mexican accountant before you sign, because rates and thresholds are set in law and do change.

If you are weighing a sale in Querétaro or San Miguel de Allende and want a clear read on the net proceeds before you list, our sell your property service starts exactly there — and if you are buying rather than selling, talk to us and we will make sure the paperwork you start with is the paperwork you will want when the time comes.

Found this useful? Add Inmobiliaria CerVel as a preferred source and you'll see our news more often in your Google Search.

Add as a preferred source on Google