Updated October 2026
Selling property in Mexico involves more than agreeing on a price and signing at the closing table. For foreign owners in particular, one of the most important issues to understand before a sale is the potential Mexican income tax payable on the transaction.
What is commonly referred to as capital gains tax on the sale of Mexican real estate is generally calculated under Mexico's Income Tax Law, or Ley del Impuesto sobre la Renta (ISR).
The amount due can vary significantly depending on several factors, including the seller's tax residency, the original acquisition cost, documented improvements, the selling price and whether the property qualifies as the seller's principal residence.
For that reason, sellers should review their likely tax position before the transaction reaches closing.
MexLaw's Real Estate Legal Services team assists foreign property owners throughout the sale process, including document review, notary coordination and preparation for closing.
Do You Pay Capital Gains Tax When Selling Property in Mexico?
Potentially, yes.
Mexico taxes gains arising from the sale of real estate located in Mexico. This applies even when the seller is a foreign national.
However, there is no single capital-gains percentage that applies to every property sale.
The calculation can depend on:
- whether the seller is a Mexican tax resident or a nonresident for tax purposes;
- the property's original documented acquisition cost;
- qualifying construction, improvements or expansions;
- certain taxes, fees and commissions connected with the property;
- the selling price;
- the number of years the property has been owned;
- whether the property qualifies as the seller's principal residence; and
- the documentation available to support deductions or an exemption.
This is why two owners selling properties for the same price can face very different tax results.
Mexican Immigration Residency and Tax Residency Are Not the Same Thing
This distinction is particularly important for foreign property owners.
Having Temporary Residency or Permanent Residency in Mexico does not automatically make someone a Mexican tax resident.
Mexican tax residence is determined under Mexico's fiscal rules. Factors can include where the individual maintains a home and, where homes exist in more than one country, where the individual's center of vital interests is located.
Nationality is also not the determining factor.
A foreign national can potentially be a Mexican tax resident, while someone holding a Mexican immigration card may still need to establish whether they satisfy the fiscal definition of tax residence.
This becomes especially important when considering the principal-residence exemption discussed below.
Before relying on an exemption or particular tax treatment, foreign sellers should confirm their tax residency status, not simply their immigration status.
How Is the Gain Calculated for a Mexican Tax Resident?
For an individual subject to the Mexican resident rules, the taxable gain is generally not simply the difference between the original purchase price and the selling price.
Mexican tax law permits certain qualifying amounts to be deducted when calculating the gain.
These may include:
- the documented acquisition cost of the property;
- qualifying construction, improvements and expansions;
- certain notarial expenses;
- taxes and duties associated with the acquisition or sale;
- appraisal expenses; and
- qualifying real-estate commissions.
Certain amounts are also subject to statutory updating rules.
The resulting gain is then calculated according to the procedures established by the Mexican Income Tax Law.
Because the calculation takes into account several variables, sellers should avoid estimating the tax simply by applying a percentage to their perceived profit.
How Are Nonresident Foreign Sellers Taxed?
Different rules can apply when the owner is not a Mexican tax resident.
Under the Mexican Income Tax Law, income from selling real estate located in Mexico is considered Mexican-source income.
For a nonresident seller, the general rule can result in tax equal to 25% of the gross sale proceeds, without deductions. Alternatively, in certain circumstances, the tax may be calculated at 35% of the profit earned.
That does not necessarily mean every nonresident property transaction will ultimately use that method.
Mexican law provides this alternative gain-based mechanism when the statutory requirements are satisfied. These requirements can include having a qualifying representative in Mexico and documenting the transaction in a public deed.
The difference between these methods can be substantial.
Foreign owners should therefore have their individual situation reviewed before committing to assumptions about the amount of tax that will be payable.
Can the Sale of Your Principal Residence Be Tax Exempt?
Mexican tax law provides an important exemption for the sale of a qualifying principal residence, or casa habitación.
When the requirements are satisfied, income from the sale of the taxpayer's principal residence may be exempt up to a value of 700,000 UDIS (Unidades de Inversión).
UDIS are inflation-adjusted units whose peso value changes over time. For that reason, sellers should use the applicable UDI value at the time of the transaction rather than relying on a fixed peso or U.S.-dollar figure from an older article.
The transfer must also be formalized before an authorized notary or other qualifying public official.
If the consideration exceeds the 700,000 UDI limit, the exemption is not necessarily lost entirely. Mexican law provides a calculation for the taxable portion exceeding the exemption threshold.
Can Foreign Owners Claim the Principal-Residence Exemption?
Potentially, but being a foreign owner or holding a Mexican resident card is not enough by itself.
For a foreign individual selling a home in Mexico, current SAT rules specifically require the person to establish Mexican tax residency in order to rely on the principal-residence exemption.
However, proving tax residency in Mexico is not the only requirement. The seller must also demonstrate, through the documentation required under the applicable tax provisions, that the property being sold actually constituted the seller’s primary residence.
The seller may need to make declarations regarding Mexican tax residency and provide supporting fiscal documentation to the notary.
If the seller is not considered a Mexican tax resident under the applicable fiscal rules, the principal-residence exemption generally will not apply in the same way.
This is an area where foreign property owners should obtain advice before the closing process is advanced, particularly where they divide their time between Mexico and another country.
Is There a Three-Year Residence Requirement?
This is an area where older information about Mexican property sales can be misleading.
The law does not simply say that a seller must have lived in the property for three years before selling it.
Instead, the three-year rule relates to how often the taxpayer can use the principal-residence exemption.
To qualify, the taxpayer generally must not have used the principal-residence sale exemption on another property during the three years immediately preceding the sale.
Whether the property itself qualifies as the taxpayer's principal residence must be established separately through the documentation required by the tax rules.
What Documents Can Prove the Property Is Your Principal Residence?
When claiming the principal-residence exemption, the seller must establish that the property actually served as their home.
Mexican regulations identify several types of documentation that may be used, provided the address corresponds to the property being sold.
Examples include:
- Mexican voter identification, where applicable;
- qualifying electricity bills;
- fixed-line telephone bills; and
- account statements issued by financial institutions or certain commercial or credit-card institutions.
Depending on the document, it may be in the name of the taxpayer, the taxpayer's spouse or qualifying direct relatives.
The notary handling the transaction reviews the documentation used to establish the exemption.
Foreign sellers should therefore not wait until the final days before closing to determine whether they have adequate proof.
What Expenses and Improvements May Reduce the Taxable Gain?
Good record keeping can make a significant difference when calculating the taxable gain.
Depending on the seller's applicable tax regime and documentation, qualifying deductions may include:
Construction, Improvements and Expansions
Qualifying investments made in construction, improvements or additions to the property may potentially reduce the taxable gain.
Routine maintenance is treated differently and should not automatically be assumed to qualify.
Notarial Expenses, Taxes and Duties
Certain documented notarial expenses, taxes and legal charges associated with acquiring or selling the property may qualify under the Income Tax Law.
Appraisal Expenses
Qualifying appraisal costs associated with the property may also form part of the permitted deductions.
Real-Estate Commissions
Documented commissions connected with the acquisition or sale may also be deductible where the applicable requirements are satisfied.
For qualifying expenses and improvements to be deductible, the seller must have a properly issued invoice (CFDI) and the supporting documentation required under the applicable tax rules.
Why Facturas and Purchase Records Matter
One of the biggest problems property owners encounter when preparing to sell is missing documentation.
A seller may know that substantial money was spent renovating or improving a property, but tax authorities and the notary cannot necessarily rely on an owner's estimate.
Where Mexican tax rules require formal documentation, sellers should be prepared to produce the appropriate records, which may include:
- the original purchase deed;
- invoices or CFDIs;
- construction and improvement records;
- receipts for qualifying taxes and rights;
- notarial documentation;
- appraisal documents; and
- documented real-estate commissions.
This is particularly important for owners who have held Mexican property for many years.
If you are considering selling, collecting the relevant documentation before a buyer is found can make the transaction significantly easier.
What if You Bought the Property in U.S. or Canadian Dollars?
Many foreign buyers think of the value of their Mexican property in U.S. or Canadian dollars.
Mexican tax calculations, however, are performed in Mexican pesos.
Mexican fiscal rules establish how foreign-currency amounts are converted for tax purposes, including the use of applicable exchange rates published by Banco de México where required.
This can sometimes create a result that looks very different from the seller's perceived gain when viewed purely in U.S. dollars or Canadian dollars.
For example, changes in the peso exchange rate between the original acquisition and the eventual sale can affect the Mexican-peso figures used in the tax calculation.
For that reason, sellers should avoid relying on a simple calculation such as:
Sale price in USD – original purchase price in USD = taxable gain
That is not necessarily how the Mexican tax calculation will work.
What Is the Notary's Role in the Tax Calculation?
The Mexican Notary Public plays a central role in most formal real-estate sales.
For transactions documented in a public deed, the notary generally has responsibilities that include:
- reviewing the transaction documents;
- determining the applicable provisional ISR calculation;
- calculating the tax under the applicable rules;
- withholding or collecting the required amount;
- remitting the tax to the authorities; and
- providing the seller with documentation regarding the calculation and payment.
The notary also reviews the documentation presented when a seller seeks to claim the principal-residence exemption.
This is another reason why tax and legal preparation should begin well before closing.
The notary should not be receiving important residency, exemption or improvement documentation for the first time on the day the deed is scheduled to be signed.
Can an RFC or CURP Affect the Capital Gains Tax Calculation?
Having an RFC or CURP does help because it allows the seller's taxes to be calculated as if they were a Mexican citizen. However, possessing either number does not by itself determine:
- Mexican tax residency;
- eligibility for the principal-residence exemption;
- whether a seller qualifies for deductions; or
- the amount of tax due.
Similarly, having Temporary or Permanent Residency does not automatically establish the seller's tax treatment.
The complete circumstances must be reviewed.
When Should You Review the Tax Consequences of a Sale?
Ideally, before listing the property or entering into a binding sale agreement.
An early review gives the seller time to:
- confirm their tax-residency position;
- locate the original acquisition deed;
- collect invoices and supporting documentation;
- identify qualifying improvements;
- determine whether a principal-residence exemption may be available;
- address inconsistencies in names or ownership documents;
- coordinate with the notary; and
- obtain a realistic estimate of the expected net proceeds from the transaction.
Understanding the likely tax position can also affect negotiations.
The amount a seller receives after taxes and closing costs is often more important than the headline sale price.
Frequently Asked Questions
Do foreigners pay capital gains tax when selling property in Mexico?
Potentially, yes. Mexican real estate produces Mexican-source income when sold, and different tax rules can apply depending on whether the seller is a Mexican tax resident or a nonresident.
Is the capital gains tax always 35%?
No.
There is no universal 35% capital-gains tax that applies to every Mexican property sale.
The applicable calculation depends on the seller's tax status and the relevant provisions of the Mexican Income Tax Law.
For many nonresident sellers, the statutory starting point is a 25% tax on gross sale proceeds without deductions. In certain circumstances, an alternative calculation of 35% of the profit earned may apply when the legal requirements are satisfied.
Does Permanent Residency mean I am automatically a Mexican tax resident?
No.
Immigration residency and tax residency are different legal concepts. Holding a Temporary or Permanent Resident Card does not by itself determine Mexican tax residence.
Is there a capital-gains exemption for my home?
There may be.
A qualifying Mexican tax resident selling their principal residence may potentially use the exemption of up to 700,000 UDIS, subject to the statutory requirements and documentation.
Do I have to live in the property for three years?
There is not a simple rule requiring three years of physical residence before every exempt sale.
The three-year restriction generally concerns whether the taxpayer has already used the principal-residence exemption on another sale during the preceding three years.
The property must separately qualify and be documented as the taxpayer's principal residence.
Can renovation expenses reduce my taxable gain?
Certain documented construction, improvements and expansions may potentially be deductible. Routine maintenance does not automatically receive the same treatment.
Proper invoices and supporting documentation are important.
What if I no longer have invoices for improvements?
The treatment will depend on the available documentation and applicable tax rules. Sellers should not assume undocumented expenditures can simply be added to the property's tax basis.
This is one of the reasons to review the file well before closing.
Does the notary calculate the tax?
In a property sale formalized through a public deed, the notary has important responsibilities for calculating and remitting the applicable provisional ISR and documenting the transaction.
The seller should nevertheless review the expected calculation in advance rather than waiting until closing.
Should I calculate my gain in U.S. dollars?
Not for Mexican tax purposes.
Mexican taxes are determined in Mexican pesos, and applicable fiscal exchange-rate rules govern the treatment of foreign-currency amounts.
Planning to Sell Property in Mexico?
The tax consequences of selling Mexican real estate should be evaluated as part of the transaction—not after a buyer has already been found.
Foreign property owners can face very different results depending on their tax residency, ownership history, documentation, improvements and eligibility for an exemption.
MexLaw's Real Estate Legal Services team can assist sellers with reviewing their transaction, organizing the legal documentation, coordinating with the Notary Public and preparing for a smooth closing.
MexLaw can also assist with Closing Services for real-estate transactions in Mexico.
If you are considering selling property in Mexico, contact MexLaw before the transaction reaches closing so that the legal, documentary and tax issues can be identified early.
Official Sources
Ley del Impuesto sobre la Renta — Articles 93, 120, 121, 126 and 160
Mexican federal income-tax provisions governing property-sale exemptions, calculation of gains, permitted deductions, notarial tax obligations and taxation of Mexican real estate sold by nonresidents.
Servicio de Administración Tributaria (SAT) — Resolución Miscelánea Fiscal 2026, Rule 3.11.3
Current rules concerning how foreign individuals selling a principal residence establish Mexican tax residency for purposes of the home-sale exemption.
Reglamento de la Ley del Impuesto sobre la Renta — Article 155
Rules identifying documentation that may be used to establish that a property is the taxpayer's principal residence.
Servicio de Administración Tributaria (SAT) — Régimen de Enajenación de Bienes
Official guidance regarding the sale of property, the 700,000 UDI principal-residence exemption and related tax obligations.
Código Fiscal de la Federación — Articles 9 and 20
Federal rules regarding Mexican tax residence and the treatment of foreign currency for tax purposes.
