TaxesSellingCapital Gains

Capital gains exemption on your Mexican home: how the primary-residence rule works

Living Real Estate Guide · Legal Desk · July 9, 2026

When you sell a property in Mexico for more than you paid, the profit is generally subject to ISR (Impuesto Sobre la Renta, Mexico’s income tax) on the capital gain. But there is a valuable relief that many sellers, especially foreign owners, do not know they can claim: an exemption for the sale of your primary residence (casa habitación). Used correctly, it can wipe out the tax on a large slice of your gain, or all of it. Used carelessly, it can be denied at the notary’s desk on closing day, leaving you with a bill you did not budget for.

This guide explains who qualifies, the cap that limits the exemption, the paperwork that proves it, and how often you can use it, with numbers so you can see how it plays out.

The exemption in one sentence

If the home you are selling is genuinely your primary residence, Mexican tax law lets you exempt the capital gain up to a ceiling measured in UDIS (Unidades de Inversión, an inflation-indexed unit of account). The exempt ceiling is commonly cited as roughly 700,000 UDIS. Because a UDI is worth a little over 8 MXN in recent periods, that ceiling translates to something on the order of $5.9 million MXN, or very roughly $340,000 USD at an exchange rate near 17.4 MXN/USD. The exact peso figure moves with the UDI value, so treat that as an estimate, not a fixed number.

The key subtlety: the cap applies to the gain being exempted expressed in UDIS, and the mechanics are handled by the notary. Any gain above the ceiling is taxable at the applicable ISR rate.

Who qualifies: the residency test

The relief exists to protect people selling the home they actually live in, not investors flipping units. To claim it you generally must be able to show that the property was your habitual residence. Two conditions matter most.

  • You must be a tax resident of Mexico (residente fiscal) or otherwise able to satisfy the notary’s requirements for the exemption. Non-residents face a different, and usually less favorable, treatment.
  • The property must be your casa habitación, meaning your real home, not a pure rental or a second property you rarely occupied.

For foreign owners this residency point is the common stumbling block. Owning a home is not the same as being resident in it for tax purposes, and the exemption is built around residence, not ownership.

Proving it: the documents the notary will want

The notary (notario público) closing your sale is the one who decides, on the spot, whether you get the exemption. They apply the law conservatively because they can be held responsible for taxes they fail to withhold. So the exemption stands or falls on your proof of residence (comprobantes de domicilio). Expect to provide items such as:

  • Your CURP (Clave Única de Registro de Población, Mexico’s unique population ID) and tax identification (RFC), which the notary uses to identify you and check your exemption history.
  • Utility bills, bank statements, or similar documents in your name at the property address, typically covering a required look-back period.
  • A voter ID or immigration document showing the address, where applicable.

The recurring theme: the paper trail must show you, personally, living at that address. Bills in a spouse’s name, a company name, or a different address weaken the claim. Gather these documents months before you plan to sell, not the week of closing, because you cannot manufacture a residence history after the fact.

The once-every-three-years limit

You cannot use this exemption on back-to-back sales indefinitely. The law restricts the primary-residence exemption to once within a three-year window. The notary checks this against your tax record when you sign. If you claimed it on a sale two years ago, you will generally not be allowed to claim it again now, and the full gain becomes taxable.

This is why timing matters for owners who move frequently. If you expect to sell two homes within a short span, plan which sale should carry the exemption, because it is usually the larger gain that benefits most from being sheltered.

A worked example

Suppose you bought your home for $3,000,000 MXN, made $500,000 MXN of documented improvements (with proper invoices, facturas), and are now selling for $7,000,000 MXN.

  • Step 1 — establish your cost base. Purchase $3,000,000 MXN plus improvements $500,000 MXN, both indexed for inflation, plus deductible acquisition costs. For simplicity say the indexed base lands near $4,000,000 MXN.
  • Step 2 — compute the raw gain. Sale $7,000,000 MXN minus base $4,000,000 MXN = $3,000,000 MXN gain.
  • Step 3 — apply the exemption. If your qualifying gain sits under the roughly $5.9M MXN UDIS ceiling, the entire $3,000,000 MXN gain can be exempt, and your ISR on the sale is $0 on that portion.
  • Step 4 — the over-the-cap case. If instead your gain were $8,000,000 MXN, only the portion up to the ceiling is exempt; the excess of roughly $2.1M MXN would be taxable, with ISR applied at the rates the notary calculates.

The exact indexing (actualización) and rate math are done by the notary using official inflation factors, so your real figures will differ, but the shape is what matters: the exemption can eliminate tax on a substantial gain.

Why documented improvements matter

Notice how the improvements raised the cost base and shrank the gain. Only expenses backed by valid facturas with your tax details count. Cash paid to an unregistered contractor, with no invoice, generally cannot be deducted. Over years of ownership this can be the difference between a modest taxable gain and a large one, so keep every construction and renovation invoice from the day you buy.

Bottom line: a seller’s checklist

The primary-residence exemption is one of the most generous reliefs in Mexican real estate, but it is unforgiving about proof and timing. Before you list:

  • Confirm you meet the tax residency requirement and that the home is genuinely your casa habitación.
  • Assemble comprobantes de domicilio in your own name at the address, covering the required look-back period.
  • Have your CURP and RFC in order, and check you have not used the exemption within the last three years.
  • Keep every factura for improvements to raise your cost base and reduce the taxable gain.
  • Estimate your gain against the ~700,000 UDIS ceiling to see whether any portion will be taxable.

The peso value of the UDIS cap, the indexing factors, and residency rules change over time and can vary in how they are applied, so use these numbers to plan and confirm your specific case with the notary handling the sale and a qualified tax advisor (contador) well before closing.

← Back to all articles