Capital gains tax in Mexico when you sell a house
Mexico has no separate capital gains tax. The gain on selling a house is income under the income tax law, which counts as income the price obtained for the property, including any part paid on credit, and when the sale is signed in a public deed, the notary calculates the tax and pays it within fifteen days of the signing.
This guide is written for an owner who already holds the house and may one day sell it from abroad. It explains the mechanism the law sets: how the gain is measured, what changes for a seller who is not a Mexican tax resident, what the home exemption asks, who withholds at closing, and which papers make the arithmetic possible. It gives no figure for any particular house and it is not tax advice. The calculation for a real sale is the notary's, and what your own country asks of the same sale is a question for your accountant there.
Is there a capital gains tax in Mexico on a house?
Not under that name. The tax is the income tax, the ISR, and the sale of a house falls in its chapter on income from the transfer of property. The law takes the price received, subtracts the deductions it allows, and taxes what remains: the difference between the income and the deductions is the gain.
For a seller who is a Mexican tax resident, the tax is settled twice. A provisional payment is made for each sale, calculated on the gain divided by the number of years between purchase and sale, up to 20, and the gain then enters the annual return, where the provisional payments are credited. Alongside it the law requires a payment of 5% of the gain to the state where the property stands, which is credited against the federal provisional payment for the same sale.
Not every change of owner is a sale for this purpose. Transfers by death or by gift are not counted as income from the transfer of property. The question returns the day an inherited house is sold, and the law answers it with the cost and the acquisition date of the person the house came from.
A house held through a bank trust is no exception. When what changes hands is the beneficiary's rights in the trust rather than the title, the law still requires the provisional payment on the same terms as a sale. How the trust itself works is set out in fideicomiso in English.
How is the gain calculated?
The gain is the price received minus the deductions that article 121 of the income tax law allows a seller to take:
The cost of the house is then split in two. The land is separated from the construction, and where the two cannot be separated, the land is taken as 20% of the total cost. The construction loses 3% of its cost for each year owned, never falling below 20% of the original figure, and what remains is updated for inflation from the month of purchase to the month before the sale. The land is updated without any reduction.
The result is not taxed as if it were earned in a single year. For a resident seller the gain is divided by the years of ownership, with a ceiling of 20; that share is added to the income of the year of the sale, and the remainder is taxed at a rate the seller can calculate on the year of the sale or as an average of the last five years.
A loss is possible too. When the deductions exceed the price, the law lets a resident seller set the loss against certain other income in the same year or in the three following, under rules of its own.
What changes for a non-resident seller?
Almost everything. A seller who is not a Mexican tax resident is taxed under a different title of the law, and article 160 sets the default plainly: 25% of the total income obtained, without any deduction. The law names the buyer as the one who withholds it when the buyer is a Mexican resident; otherwise the seller files within fifteen days of receiving the income.
There is an alternative, and for a sale signed in a public deed it needs no representative in Mexico. The seller can opt to pay the top rate of the annual tariff for individuals on the gain, with the gain worked out under the same chapter that governs residents, losses excluded. The notary calculates it, records it in the deed and pays it.
What does not travel is the home exemption. The SAT's rules for 2026 say so directly: when the seller of a home is not a tax resident of Mexico, the exemption does not apply, and the notary calculates and pays the tax under article 160.
The two regimes side by side, as the law and the SAT's 2026 rules write them:
| Point | Resident seller | Non-resident seller |
|---|---|---|
| Where the law places the sale | Title IV, articles 119 to 128, on the transfer of property | Title V, article 160 |
| What is taxed | The gain, after the deductions of article 121 | The total price, without deductions; by option, the gain |
| Rate | A provisional payment on the gain spread over up to 20 years, plus 5% of the gain to the state, credited against it | 25% of the price, or by option the top rate of the annual tariff for individuals on the gain |
| Home exemption | Up to 700,000 UDIs of the price, with conditions | Not applicable |
| At a sale in a public deed | The notary calculates and pays within 15 days of signing | The notary calculates, records the tax in the deed and pays within 15 days of signing |
When does the casa-habitación exemption apply?
When three conditions meet. The house is the seller's own home; the price does not exceed seven hundred thousand investment units, the UDIs; and the sale is formalized before a notary or another official with notarial powers. Above that ceiling the exemption does not disappear: the gain is calculated on the excess, with the deductions reduced in the same proportion.
It can be used once every three years. The exemption applies only if the seller did not sell another home under the same exemption in the three years before, and the seller states this under oath before the notary. The notary checks with the SAT and reports the sale, with the price and any tax withheld.
For a foreign national, residence is not assumed from the house. Under the SAT's 2026 rules a foreign seller is presumed resident only when the deed records a sworn statement of tax residence in Mexico, a tax address or an address for notices that cannot be the house being sold, and an RFC or a CURP, and when a certificate of tax residence or the tax identification card is attached to the appendix of the deed.
The exemption also has a condition that comes due months later. A resident whose total income for the year, exempt income included, exceeds 500,000 pesos must report all of it, the exempt sale included, in the April annual return, and the law withdraws the exemption when a seller who was obliged to report the sale did not.
Who withholds the tax at closing?
The notary. In a sale recorded in a public deed, notaries and other officials with notarial powers calculate the tax under their own responsibility and pay it at the authorized offices, with the provisional payment due within fifteen days of the signing. The same notary calculates and pays the 5% due to the state, on the same deadline.
The seller receives two things in return: a tax receipt recording the sale and the tax withheld and paid, and the calculation itself. The SAT's rules list what that document must contain at a minimum, including the land and construction costs, historical and updated, the acquisition dates, and each deduction with its date and amount, along with the tax and the method used to calculate it.
For a non-resident seller the role is the same and the base changes. Under article 160 the notary calculates the tax, records it in the deed and pays it within fifteen days, and files a return for every such sale even when no tax is due. What a Mexican notary does beyond the tax is set out in the guide to the notary public in Mexico.
Which papers make the calculation possible years later?
Every number in the calculation comes from the past, and the law's word for the first of them is the proven cost of acquisition. The notary's calculation then asks for the acquisition dates of the land and of the construction, by day, month and year. What cannot be shown cannot be deducted.
None of these papers is created at the sale. They are made the year the house is bought and the years it is improved, and the purchase deed is where they start: what follows that signature is set out in the guide to buying a house in Mexico as an American. The annual municipal tax on the house keeps a separate file with its own receipts, covered in the guide to property tax in Mexico.
In a house this office administers, every expense of the property is invoiced and filed in the month it happens, as part of rental tax compliance, and the improvement file a future sale will ask for is kept the same way.
Is there a capital gains tax in Mexico?
Not as a separate tax: the gain on selling a house is taxed as income under the income tax law. In a sale signed in a public deed, the notary calculates the provisional tax and pays it within fifteen days of the signing.
What is the capital gains tax in Mexico for non-residents?
Article 160 of the income tax law sets 25% of the total sale price, without deductions. By option, and with no representative needed when the sale is in a public deed, the seller can instead pay the top rate of the annual tariff for individuals on the gain.
Can a foreigner use the home-sale exemption in Mexico?
Only as a Mexican tax resident: the SAT's 2026 rules presume a foreign seller resident when the deed records a sworn statement, a tax address other than the house, and an RFC or CURP, with a residence certificate or tax identification card attached. A seller who is not a tax resident of Mexico cannot use the exemption.
Who pays the tax when a house is sold in Mexico?
The seller owes it; in a sale before a notary, the notary calculates it under the notary's own responsibility and pays it within fifteen days of the signing. The seller receives a tax receipt for the tax withheld and a document with the calculation behind it.
What if I cannot prove what I paid for the house?
The law deducts the proven cost of acquisition, so what cannot be proven cannot be deducted. For real estate it does set a floor: the updated acquisition cost is taken as at least 10% of the sale amount.
