Mexico Invest Free shortlist
Research guide

ISR Exemption for Mexico Property Sales: 5-Year Rule Guide

Mexico ISR principal residence exemption: five-year rule, tax residency requirements, and why most foreign sellers cannot rely on it.

By Mexico Invest Editorial · Updated June 14, 2026 · 15 min read

Quick answer: Mexico’s ISR (Impuesto Sobre la Renta, income tax) applies to capital gains on real estate sales, but the law provides an exemption for primary residences that can significantly reduce or eliminate tax on the sale of a home where the seller actually lived. Understanding this exemption, who qualifies, what limits apply, and what documentation is required, is essential for anyone selling Mexico property and for buyers who anticipate selling eventually.

This guide covers the mechanics of the ISR primary residence exemption, the five-year frequency rule, cost basis documentation, and the differences between resident and non-resident tax treatment on property sales. For the non-resident seller tax structure, see Mexico Capital Gains Tax for Foreign Sellers. For the role of CFDI receipts in reducing your taxable gain, see CFDI Cost Basis Mexico.


ISR on Mexico real estate sales: the basic framework

Mexico’s Income Tax Law (Ley del Impuesto Sobre la Renta, or Ley del ISR) treats gains on real estate sales as taxable income. At the time of the notarized closing (escrituración), the notario público calculates and withholds the applicable ISR on behalf of the seller.

The notario’s ISR calculation follows a prescribed methodology:

  1. Sale price (precio de enajenación) from the closing escritura
  2. Minus deductible cost basis (costo comprobado de adquisición)
  3. Minus deductible improvements (mejoras comprobadas con CFDI)
  4. Minus notario and closing cost deductions where applicable
  5. Equals taxable gain (ganancia)
  6. Apply applicable ISR rate or withholding structure
  7. Minus applicable exemption if qualifying conditions are met

The result is the ISR withheld at closing. This is a provisional withholding, sellers can file an ISR tax return to adjust the amount if the actual calculation differs from the notario’s provisional figure.

Regiones-Puerto-Maya-Folletos-Digitales-2023 — Isr Exemption 5 Year Rule

Regiones-Riviera-Yucatán-Folletos-Digitales-2023 — Isr Exemption 5 Year Rule


The primary residence exemption: what the law allows

Article 93 of Mexico’s Ley del ISR provides an exemption from ISR for gains on the sale of a casa habitación (primary residence). The exemption conditions:

Condition 1: Property must qualify as primary residence. The property being sold must have served as the taxpayer’s actual principal place of residence. Investment properties, vacation rentals, and secondary residences do not qualify, even if owned by a Mexican tax resident.

Condition 2: Exemption is capped in UDIs. The exemption applies to the first portion of the gain, measured in Unidades de Inversión (UDIs). The UDI is an inflation-adjusted unit maintained by Banco de México. The exemption cap is set in the Ley del ISR. Gains above the UDI cap are subject to ISR at applicable rates.

Condition 3: Once every five years. The primary residence exemption can be used by the same taxpayer no more than once in any five-year period. This frequency limitation prevents the exemption from being used on a rapid succession of property flips.

Condition 4: RFC and primary residence documentation. To receive the exemption at closing, the seller must present their RFC (tax ID) and documentation demonstrating primary residence status.


Understanding UDI caps: approximate values

The UDI is Mexico’s inflation-tracking unit of account, with its value published daily by Banco de México. The ISR primary residence exemption limit is defined in UDIs and adjusts with the UDI value over time.

Reference periodApproximate UDI capApproximate MXN value
Historical baseline700,000 UDIsVaries with inflation
Current value (2026 guidance)Confirm with contadorCheck Banco de México daily rate

The practical implication: for a high-value coastal property in Riviera Maya with a substantial gain, the UDI exemption covers a portion of the gain. Gains exceeding the cap are taxed at the seller’s applicable ISR rate (which scales with income levels). For modest primary residences with smaller gains, the exemption may cover the entire gain.

Because UDI values change daily and the cap may be adjusted by legislation, confirm the current applicable cap with a Mexican contador at the time of your sale planning.


The five-year rule in practice

The once-every-five-years frequency limit means that if you claimed the primary residence exemption on a Mexico property sale in 2022, your next eligible sale under the same exemption cannot be before 2027. The five-year clock runs from the date of the previous exempt sale.

Practical implications:

ScenarioISR treatment
Sale of primary residence, first use of exemption, within UDI capExempt from ISR up to the cap
Sale of primary residence, first use, gain exceeds UDI capExemption on first UDI cap amount; ISR on excess
Sale within 5 years of previous exempt saleNo exemption available for this sale
Sale of investment/rental property (not primary residence)No primary residence exemption applies
Sale by non-resident (regardless of how long owned)Withholding structure, not this exemption

Documentation the notario needs to confirm the five-year eligibility:

The notario may request a sworn declaration (declaración bajo protesta de decir verdad) that you have not used the primary residence exemption in the prior five years. False declaration creates legal liability.


Non-resident seller treatment: a different structure

Foreign buyers who do not establish Mexican tax residency and sell their property at a future date face a different ISR structure: withholding at closing calculated as the lower of two options:

Option 1: 25% of the gross sale price (without deducting cost basis or expenses)

Option 2: 35% of the net gain (sale price minus deductible cost basis and improvement costs)

The notario calculates both and withholds the lower amount. The seller may then file a Mexican income tax return to adjust if the correct figure differs.

MethodCalculationWhen it tends to be lower
25% of grossSale price × 25%When gross sale price is low relative to gain
35% of net gain(Sale price − cost basis − improvements) × 35%When gain is large relative to price (low cost basis)

Non-residents can also utilize applicable tax treaty provisions between Mexico and their home country to avoid double taxation on the same gain. The US-Mexico tax treaty is particularly relevant for American sellers.

For a comprehensive treatment of non-resident seller obligations, see Mexico Capital Gains Tax for Foreign Sellers and How to Sell Mexico Property From Abroad.


Cost basis and the role of CFDIs

Your deductible cost basis is the single most important factor in reducing ISR on a property sale, whether you are a resident claiming the primary residence exemption or a non-resident subject to withholding.

The deductible cost basis includes:

  • Original purchase price as established in your closing escritura
  • Notario and closing costs documented at purchase
  • Improvement costs documented with CFDI tax receipts from registered contractors

The CFDI (Comprobante Fiscal Digital por Internet) is Mexico’s mandatory electronic tax receipt system. Improvement costs documented with valid CFDIs are deductible from your taxable gain; improvements without CFDIs are generally not deductible. For a full explanation of how to collect and maintain CFDIs for cost basis purposes, read CFDI Cost Basis Mexico.

The practical math: if you purchased a property for USD 300,000 and have USD 50,000 in CFDI-documented improvements, your deductible basis is USD 350,000. Selling for USD 500,000 yields a USD 150,000 gain, not a USD 200,000 gain. ISR applies to the USD 150,000 (with applicable exemptions reducing this further for qualifying residents).


What happens if documentation is missing at closing

If you arrive at closing without complete documentation, no RFC, missing primary residence proof, or absent CFDI records for improvements, the notario will withhold ISR at standard rates without applying exemptions or deduction adjustments. This is the baseline, not a penalty. The notario is legally required to withhold unless documentation proves otherwise.

Post-closing adjustments are possible through SAT refund processes, but they are time-consuming. Preparing documentation in advance of closing is far more efficient.

Missing documentConsequence at closing
No RFCNotario cannot compute personalized ISR; uses generic rates
No primary residence proofPrimary residence exemption cannot be applied
No CFDI for improvementsImprovement costs not deductible from gain
No prior exemption historyMay need sworn declaration (declaración) of five-year eligibility

Planning timeline before sale

Selling a Mexico property with optimal ISR treatment benefits from planning 6 to 12 months before the transaction:

TimeframeAction
12 months before saleEngage a Mexican contador to model ISR scenarios
6–12 monthsCompile and organize all improvement CFDIs from ownership period
3–6 monthsConfirm RFC is active and linked to correct address
2–3 monthsPrepare proof of primary residence documentation
1 monthShare documentation package with transaction attorney
ClosingDeliver complete package to notario; review withholding calculation
Post-closingFile ISR adjustment return if withholding differs from correct amount

Comparing resident vs. non-resident tax positions

FactorMexican tax residentNon-resident
Primary residence exemption availableYes (with conditions)No
ISR withholding method at closingResident rate on net gain with deductionsLower of 25% gross or 35% net
CFDI deductions for improvementsYesYes (for 35% net option)
Tax treaty benefitsMay apply (consult)Typically applicable
RFC required at closingYesRecommended; required for 35% net option
Post-closing SAT return optionYesYes

Risks and common misconceptions

Misconception 1: “I’ve owned it for five years so I’m exempt.” The five-year rule is a frequency limit, not a holding period requirement for qualification. Owning for five years does not trigger the exemption, it prevents the exemption from being used more than once in a five-year period. Primary residence use is still required.

Misconception 2: “As a foreigner, I don’t owe Mexican tax.” Mexico taxes gains on property located in Mexico regardless of the seller’s nationality or residence status. Non-residents pay a withholding that may differ from resident rates, but the obligation exists.

Misconception 3: “The notario will figure it out.” The notario applies the default withholding unless you provide documentation. They are not your tax advisor and do not proactively seek exemptions on your behalf.

Misconception 4: “Cash sales are not taxed.” Mexico’s notarios are required to report transactions and withhold ISR regardless of the payment method. The ISR obligation follows the transaction, not the payment instrument.


Summary: the exemption has real value with the right preparation

Mexico’s primary residence ISR exemption can substantially reduce capital gains tax for qualifying Mexican tax residents selling their primary home. The five-year frequency limit prevents overuse. Documentation, RFC, primary residence proof, CFDI improvement records, delivered at closing is what makes the exemption operational.

Non-residents follow a different withholding structure but have their own optimization levers through cost basis documentation and tax treaty provisions.

For tax ID setup before closing, see Getting an RFC Tax ID as a Non-Resident. For understanding the full Mexico property tax landscape, start with Mexico Property Taxes Explained.


Frequently Asked Questions

Mexico's Income Tax Law provides a capital gains exemption for the sale of a primary residence. Mexican residents who sell their primary residence may be able to exempt a portion of the capital gain from ISR, subject to monetary limits in UDIs and frequency requirements. The exemption applies specifically to Mexican tax residents selling their primary home, not all property sales. Consult a qualified Mexican tax accountant for your specific situation.

The ISR primary residence exemption can generally be applied only once every five years per taxpayer. This prevents the exemption from being used as a repeated optimization tool across multiple property flips. The five-year clock runs from the date of the previous exempt sale, not from the purchase date of the current property.

Non-residents generally cannot claim the primary residence ISR exemption. Non-residents selling Mexico property typically pay a withholding calculated either as 25% of the gross sale price or 35% of the net gain, whichever is lower, with the notario withholding the lower amount. A tax treaty between your home country and Mexico may affect your ultimate tax liability.

To claim the primary residence exemption at closing, you typically present to the notario: proof of RFC (tax ID), proof that the property was your primary residence (utility bills, credencial de elector, or CURP linked to the address), and CFDI invoices for improvements made during ownership to establish cost basis. Missing documentation results in ISR withholding at full rates.

Foreign nationals who qualify as Mexican tax residents, generally those who have lived in Mexico for more than 183 days in a calendar year, can potentially claim the primary residence exemption. Mexican tax residency is a legal status determined by SAT criteria, not solely by visa category. Consult a Mexican tax attorney regarding your specific eligibility.

If you qualified for the primary residence exemption but the notario withheld ISR anyway, you can file for a refund through SAT after closing. This requires complete documentation of primary residence use, RFC, CFDI records, and the calculation showing the gain was within the exemption limit. Preparing documentation before closing avoids this scenario.


Buyer scenarios and decision framework

ProfileTypical budgetWhat to verify firstRealistic outcome
US cash buyer$200K–$400KFideicomiso quote, HOA STR rules, escrow wire path30–90 day resale closing in Quintana Roo
Canadian investor$250K–$500KSAT rental registration, PM fee band 25–35%Net yield often 3–5% after HOA and management
Remote closerAnyApostille/POA chain, notario timeline, FX policyClosing without travel if documents are clean
Yield-focused buyer$180K–$280KOccupancy stress at 50%, not developer 75%Cash flow rarely matches gross marketing sheets

Use this framework to stress-test assumptions before deposit. Indicative 2026 benchmarks only.


Red flags checklist before you wire funds

Red flagWhy it mattersAction
Last-minute wire changeClassic BEC fraud patternStop and call notario on verified number
No escritura chain reviewTitle defects surface at saleIndependent notario search before deposit
STR promised but not in HOA minutesBuilding can block rentalsWritten HOA confirmation
Ejido-adjacent lot without conversion proofForeign ownership riskFull ejido exit documentation
Missing CFDI on improvementsZero cost basis at ISR saleRegister invoices with SAT early

Local market context and due diligence notes

Foreign buyers often underestimate how much municipality rules differ inside Quintana Roo. Predial notices, STR registration, and HOA enforcement can change between adjacent blocks even when headline prices look similar. Before you treat a listing as comparable, confirm the same ownership structure (fideicomiso vs direct escritura), the same HOA fee band, and whether the unit is legally rentable on platforms you plan to use.

A practical walk-through: request the last 12 months of HOA minutes, verify the seller’s escritura chain with an independent notario, and model two occupancy cases (50% and 65%) with realistic nightly rates from your property manager, not the developer deck. If numbers only work at peak season, treat the deal as speculative. Indicative 2026 benchmarks only; verify current official rules and bank policies before wiring funds.

Free · Independent advisory

Get a Mexico property shortlist

Tell us your budget and market (Riviera Maya, Los Cabos, Puerto Vallarta). We reply within one business day with options matched to your goals.