How to Calculate Your Taxable Gain When Selling Your Home
ISR on a home sale is calculated on your taxable gain, not the full sale price. We explain how it's determined and which deductions apply.
When selling a property in Mexico, many people assume the tax is calculated on the total sale price, but in reality the taxable gain on a home sale is the true basis for the ISR (income tax): the difference between what you receive from the sale and the inflation-adjusted acquisition cost, plus the permitted deductions. Understanding this calculation well helps you anticipate how much the notary public (notario público) will withhold at the time the deed is executed (escrituración) and plan the sale with greater financial certainty. It also lets you identify early which documents to gather in order to legally reduce the tax you owe.
Important notice
This article is for informational purposes only. Figures and conditions may vary depending on the bank, state, or time of contracting; confirm up-to-date information with the relevant institution or a certified advisor.
The basic calculation formula
In general terms, the taxable gain results from subtracting from the sale price the documented acquisition cost, adjusted for inflation using factors published by the tax authority (SAT), plus any improvements made to the property and the notary fees paid at the time of purchase. The notary public who formalizes the deed is the one who performs this calculation and determines whether ISR withholding applies or whether an exemption applies, such as the primary residence exemption (casa habitación) under certain requirements. Having the original invoices for the purchase and for any renovations is key to reducing the taxable base, since without supporting documents the calculation may end up using only the sale price as a reference, which unfairly increases the tax owed.
What can reduce your gain
There are authorized deductions that lower the taxable gain and, therefore, the tax you pay. Gathering the documentation for each of them before your appointment with the notary speeds up the process and prevents you from paying more than necessary. Among the most relevant are:
- The original acquisition cost, adjusted for inflation according to the official factors.
- Notary commissions and fees paid at the original purchase of the property.
- Improvements, expansions, and renovations backed by a valid invoice.
- Real estate commissions paid for brokering the current sale.
- The partial or total exemption for a primary residence, if you meet the corresponding requirements.
- Appraisal costs and certificates required to formalize the transaction.
The primary residence exemption
One of the most important tools for reducing or eliminating ISR on the sale of a property is the primary residence exemption (casa habitación), which applies when the property has been your main home. To access this benefit, the notary usually requires proof of address, official identification, and, in some cases, proof that you have not recently sold another primary residence using this exemption. The exact limit and conditions of the exemption may vary, so it is advisable to confirm them directly with the notary before signing, especially if the transaction value is high or if you have changed addresses several times in recent years.
| Item | Effect on the calculation |
|---|---|
| Adjusted acquisition cost | Reduces the taxable gain |
| Invoices for property improvements | Reduces the taxable gain |
| Primary residence exemption | Can eliminate the ISR owed |
Frequently asked questions
Is ISR paid on the total sale price?
No, it is calculated on the taxable gain, that is, the difference between the sale price and the adjusted acquisition cost, minus the deductions permitted by law.
Can I be exempt from paying ISR when I sell my home?
Yes, if the property is your primary residence and you meet certain requirements, you can qualify for a partial or total exemption, although it is best to confirm the exact conditions with the notary.
What happens if I don't have the invoices from the original purchase?
Without supporting documents, the notary may have fewer elements to reduce the taxable gain, which usually results in a higher tax. That is why it is important to keep all documentation from the time of purchase.
Estimate your closing costs before selling your property.
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
RFC and Constancia de Situación Fiscal When Buying a Home
Why the notary asks for your RFC and Constancia de Situación Fiscal at closing, how to get it from the SAT, and what the homoclave and tax regime are.
María Elena Rodríguez
International Power of Attorney to Sell Your Home in Mexico
How an international power of attorney to sell a house works: where to get one, what legalization or apostille requirements apply, and which powers it must include.
María Elena Rodríguez
Selling a Home With an Active Fovissste Loan
Selling a home with an active Fovissste loan requires paying off or transferring the loan before the deed is signed.
Carlos Mendoza
How to Sell Your Home While Still Living in It
Selling a home while living in it is normal and works well with good organization, flexible showings and, if needed, extra time after closing.
Carlos Mendoza
Selling your property
Keep learning before you decide
35 guides on selling your property, and thousands of properties listed across Mexico.

