ISR on Selling a Home in Mexico: What You Pay and How to Be Exempt
Guide to ISR (income tax) on selling a home in Mexico: how it's calculated, when the primary-residence exemption applies, the UDIS cap, residency requirements, and why the notary withholds the tax. Avoid surprises when you sell.

When you sell a home at a profit, the tax authority can charge you Impuesto Sobre la Renta (ISR, income tax) on that gain. The good news is that the sale of your primary residence (casa habitación) can be exempt if you meet certain requirements. In this guide we explain how ISR is calculated, when the exemption applies, the UDIS cap, and why the notary public (notario público) is the one who withholds and remits the tax.
Who pays ISR on a sale?
ISR on the sale of real estate is paid by the seller, since the seller is the one who earns the gain. It is not calculated on the total sale price, but on the profit: the difference between what you received when selling and what it cost you to acquire the property (adjusted and with deductions). The buyer, for their part, pays the ISAI (property acquisition tax) and the closing costs for the escrituras (deed).
Key idea
ISR taxes your gain, not the sale price. If you sell without a real gain (or even at a loss after adjusting your cost basis), the tax due can be very low or zero.
How the taxable gain is calculated
The calculation is done by the notary based on the ISR Law (Ley del ISR). In broad terms, the procedure considers:
- Sale price minus the acquisition cost, adjusted for inflation
- Subtraction of authorized deductions (improvements, commissions, appraisals, certain prior notary expenses)
- The gain is divided by the number of years you owned the property in order to apply the tax rate, preventing a single tax year from absorbing the entire amount
- Federal ISR is determined and, where applicable, a payment to the state government
The result depends heavily on how many years you owned the property and how well documented your improvements and investments are. Keeping invoices is key.
The primary-residence exemption
The law allows the gain on the sale of your primary residence (casa habitación) to be exempt if you meet the requirements. It is the most relevant benefit for most families.
General requirements for the exemption:
- The property must be your primary residence (casa habitación) (where you live)
- Prove that you have lived in the property, with documents in your name (for example, proof of address, account statements, or ID)
- You must not have used this exemption in the previous three years
- The transaction must be formalized before a notary public
Be careful
The primary-residence exemption can normally be used only once every three years. If you sold another primary residence with the exemption within that period, you likely won't be able to apply it again. Confirm with your notary or accountant before signing.
The UDIS cap and the excess amount
The primary-residence exemption is not unlimited: it applies up to a cap expressed in UDIS (Unidades de Inversión, inflation-indexed investment units). Above that limit, the portion of the gain that exceeds it does pay ISR. The cap's value in pesos varies because the UDIS value changes daily with inflation, so it's best to verify the current figure at the time of sale.
How the cap works
- The exemption covers the gain up to a certain number of UDIS
- If your gain exceeds that limit, the excess is taxable
- The cap's value in pesos depends on the daily value of the UDIS
- For high-value properties, it is common for a portion to be subject to ISR
Don't confuse UDIS with UMA: for this exemption, the benchmark is the UDIS. Since the exact figure is updated regularly, avoid taking a fixed number from the internet; ask the notary for the formal calculation.
Why the notary withholds
In transactions formalized before a notary, the notary calculates, withholds, and remits the ISR on the seller's behalf. This means the corresponding tax is deducted from the sale price and the notary pays it to the SAT (Mexico's tax authority), giving you the receipt. This mechanism provides certainty and, in most cases, spares the seller from having to remit the tax on their own.
Deductions that reduce ISR
Keep records of:
- Acquisition cost documented in the prior escritura (deed)
- Improvements and additions backed by invoices
- Brokerage commissions paid
- Appraisals and certain notary expenses from the original purchase
The better you document your cost and your investments, the lower your taxable gain will be. If you plan to sell your property, get this documentation in order ahead of time.
Frequently asked questions
Is ISR always paid when selling a home?
Not necessarily. If the property is your primary residence and you meet the requirements, the gain can be exempt up to the UDIS cap. Outside that scenario—land, second properties, or the excess above the cap—ISR is paid on the gain.
Does the exemption apply to land or an investment home?
The exemption is designed for the primary residence. Undeveloped land and properties that are not your usual home generally don't qualify, so their gain is taxable.
How do I prove it's my primary residence?
With documents in your name that show the property's address: utility bills, bank account statements, or a voter ID (credencial de elector), among others. The notary will tell you which documents are accepted to prove it.
Can I reduce ISR with the improvements I made?
Yes, as long as you have invoices to back them up. Documented improvements increase your proven cost basis and therefore reduce the taxable gain. Without invoices, they are hard to deduct.
Planning to sell? Start by knowing the value
Before setting a price and estimating your ISR, be clear on how much your property is worth today. List your property and use our calculator to start from a realistic number.
Listings
Recent properties
For saleMX$1,440,000
Land
Land for Sale in Residencial Lomas del Dorado
Boca del Río, Veracruz
For saleMX$3,900,000
House
House for Sale in Las Lomas, Riviera Veracruzana | 3 Bedrooms with Private Bathrooms
Alvarado, Veracruz
For saleMX$10,900,000
Land
Attention Investors
Puerto Vallarta, Jalisco
Keep reading
Related articles
How Much Does It Cost to Build a House in Mexico in 2026?
Cost-per-m² ranges for building a house in Mexico in 2026 by finish level, what shell and finished construction include, and timelines.
Inmobiliaria32 Team
ISR on Selling Your Home: When You're Exempt in Mexico
When the ISR exemption on the sale of a primary residence applies in Mexico, what requirements the SAT sets, and when you'll have to pay the tax.
Carlos Mendoza
How Much Does It Cost to Deed a House in Mexico? Breakdown
How much does it cost to formalize a home purchase with a deed (escritura) in Mexico? Here is the full breakdown of taxes, notary fees, registration and certificates, with a real calculation example so you can budget without surprises.
Inmobiliaria32 Team
How Long Does It Take to Sell a House in Mexico?
How long does it take to sell a house in Mexico? Discover approximate average timeframes.
Inmobiliaria32 Team
Legal and paperwork
Keep learning before you decide
102 guides on legal and paperwork, and thousands of properties listed across Mexico.

