Capital Gains Tax When Selling Property in Mexico
Disclosure: This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you. Read our full disclosure.
Selling your dream home in the Mexican highlands or a beachfront villa in Tulum should be a moment of triumph, yet many expats find themselves paralyzed when the notary hands over the initial tax estimate. I remember sitting in a sun-drenched office in San Miguel, staring at a figure that felt like a punch to the gut because I hadn't prepared for the ISR. This guide solves that mystery by breaking down how Capital Gains Tax works so you can protect your investment.
Understanding Capital Gains Tax ISR in Mexico
The first thing you need to realize is that in Mexico, Capital Gains Tax is not a separate entity but is part of the broader Income Tax system, known locally as Impuesto Sobre la Renta (ISR). When you sell a property, the government views the profit you make as a form of income. Unlike some countries where you might have a year to settle your tax bill, the Mexican system is immediate and integrated into the closing process.
In Mexico, the Notario Publico plays a role far beyond that of a simple notary in the United States or Canada. They are federally appointed officials who act as tax collectors for the state. When you sit down at the closing table, the Notario is legally obligated to calculate, withhold, and remit the ISR directly to the Mexican tax authorities (SAT). This means you won’t see the full sale price hit your bank account only to pay taxes later; the tax is taken right off the top.
The complexity of Taxes in Mexico for Expats: A Complete Guide to Income Tax and More often surprises newcomers because the calculation isn't a flat percentage for everyone. It involves a sliding scale that can go up to 35% of the net profit. However, the "profit" isn't just the difference between what you paid and what you sold it for. It is adjusted for inflation and adjusted for any documented improvements you’ve made over the years. Understanding this early is the difference between a successful exit and a financial disaster.
The Role of the Notario Publico
The Notario is the central figure in your real estate transaction. They are responsible for verifying the chain of title, ensuring the property is free of liens, and most importantly for this discussion, determining your tax liability. Because the Notario is personally liable for any under-collection of taxes, they tend to be extremely conservative. They will demand perfect documentation for every deduction you claim.
Expats sometimes get into heated arguments with their Notarios because they wanted to deduct a kitchen remodel they paid for in cash. Without a "factura" (a formal electronic invoice), the Notario simply cannot and will not include that expense in your cost basis. This is why keeping meticulous records from day one is essential for anyone Managing Your Money in Mexico: Budgeting, Saving, and Currency Tips.
Net Gain vs Gross Sale Price
There are two primary ways the tax can be calculated, and the Notario will usually apply the one that is most applicable to your residency status. For non-residents, the tax can sometimes be a flat 25% of the total sale price with no deductions allowed. For residents, it is typically a calculation of up to 35% of the net gain (profit).
Calculating the net gain involves taking the original purchase price, adjusting it for inflation using the National Consumer Price Index (INPC), and then subtracting that from the final sale price. From there, you subtract allowed deductions like real estate commissions and closing costs. If you are working with a firm like Taxes for Expats, they can help you understand how this Mexican tax payment reflects on your home country’s tax return to avoid paying twice on the same profit.
How Capital Gains Tax is Calculated for Expats
The calculation of ISR is where the "veteran expat" experience really matters. The Mexican government distinguishes heavily between those who are tax residents and those who are merely visitors. If you are selling a vacation home and you only have a tourist permit, you are in a much tougher spot than someone who has gone through the process of Mexico Temporary Resident Visa: Comprehensive Guide for Expats (2026 Update).
For residents, the tax rate is progressive. The profit is divided by the number of years you owned the property (up to a certain limit), and the tax is calculated on that annual portion and then multiplied back out. It sounds convoluted because it is. This method is designed to prevent "bracket creep" where a large one-time profit pushes you into the highest tax bracket unfairly.
Resident vs Non-Resident Tax Rates
If you cannot prove tax residency in Mexico, the default tax rate is often 25% of the gross sale price. Think about that for a second. If you sell a house for $500,000 USD, the government wants $125,000 USD, regardless of whether you actually made a profit. This is a catastrophic outcome for most sellers.
To be treated as a resident for tax purposes, you generally need a residency card and a Mexican Tax ID, or RFC. We often point people toward the guide on How to Get an RFC in Mexico because, without that little number, you are legally considered a non-resident in the eyes of the SAT, even if you’ve lived here for a decade. The Notario will ask for your RFC and proof that your "center of vital interests" is in Mexico, which usually means your primary home is here.
Deductible Expenses to Lower Your Tax Bill
The goal for any savvy seller is to increase the "cost basis"—the amount the government thinks you spent on the house. The higher your cost basis, the lower your taxable profit. You can deduct several key items, but only if you have the correct paperwork.
- Real Estate Commissions: Usually 6% to 8% of the sale price. To deduct this, your broker must provide a CFDI (electronic invoice).
- Notary Fees: What you paid the Notario when you bought the property is deductible now.
- Capital Improvements: This includes additions, new pools, or major structural changes. Standard maintenance like painting or fixing a leak is generally not deductible.
- Property Taxes: You can often deduct the Property Tax (Predial) in Mexico that you paid during your ownership.
| Deduction Type | Requirement for Eligibility | Impact on ISR |
|---|---|---|
| Original Purchase Price | Must be recorded in the Public Registry | High (Baseline) |
| Commissions | Must have a formal CFDI factura | Moderate |
| Construction/Remodel | Must have facturas and a construction permit | Significant |
| Notary Closing Costs | Must have the original deed (escritura) | Low to Moderate |
| Inflation Adjustment | Calculated by the Notario via INPC | High (Reduces gain) |
Qualifying for the Capital Gains Tax Exemption
This is the "holy grail" of Mexican real estate. Under Article 155 of the Mexican Income Tax Law, you may be eligible to exempt a significant portion of your capital gains if the property was your primary residence. As of 2026, the exemption limit is 700,000 UDIs (Investment Units), which fluctuates but generally hovers around 5.5 to 6 million Mexican Pesos.
If your profit is below this amount, you pay zero ISR. If your profit exceeds this amount, you only pay tax on the portion above the limit. However, you can only claim this exemption once every three years. If you sold another primary residence two years ago, you are out of luck this time.
The Primary Residence Rule
To claim the exemption, you must prove to the Notario that you actually lived in the house. The Notario is the sole judge of whether your proof is sufficient. Traditionally, they require at least three to six months of utility bills (CFE for electricity or Telmex for landline phones) or bank statements, all of which must be in your name and include your RFC.
Many expats lose this exemption because their utility bills were still in the name of the previous owner or a "trust" name. If you are planning to sell in the next year, go to the CFE office tomorrow and make sure the bill is in your legal name as it appears on your residency card. This is a critical step in Settling in Mexico: Step-by-Step Guide to Your First 30 Days as an Expat that people often overlook until it's too late.
Necessary Documentation Facturas and RFC
I cannot stress the importance of the RFC enough. In the past, Notarios were more relaxed, but in today’s digital-first Mexico, no RFC means no exemption. The SAT uses the RFC to track the one-exemption-every-three-years rule. If you don't have one, the Notario’s software literally won't let them check the box for the exemption.
Furthermore, if you did a massive renovation, you need the "Terminación de Obra" (Completion of Work) from the local municipality. This document, paired with your facturas, proves to the SAT that the money you spent actually went into the value of the home. If you are unsure if your documents are up to snuff, consulting with Taxes for Expats can provide a bird's eye view of how these documents will be viewed by both Mexican and your home country's authorities.
The Importance of Accurate Cost Basis
When you buy a property in Mexico, there is sometimes a temptation—often suggested by less-than-reputable agents—to record a lower purchase price on the deed to save the buyer on acquisition taxes. Never, under any circumstances, agree to this if you are the buyer. Why? Because that purchase price becomes your cost basis when you eventually sell.
If you buy a house for $400,000 but only record $200,000 on the deed, when you sell it for $500,000 years later, the government thinks you made a $300,000 profit instead of a $100,000 profit. You will pay far more in ISR later than you saved in acquisition taxes now. This is a common trap discussed in Property and Capital Gains Tax in Mexico: A Guide for Foreigners.
Why the Purchase Price on Your Title Matters
The original deed, or escritura, is your most valuable financial document. It lists the purchase price in pesos. Because the peso fluctuates against the dollar or CAD, your "profit" can look very different in different currencies. However, for Mexican tax purposes, only the peso value matters.
The Notario will apply the INPC (inflation index) to your original peso purchase price. If inflation was high during your ownership, your "adjusted" cost basis will rise significantly, which is a good thing. It reduces the paper profit that the government can tax. This is why having a solid understanding of Banking in Mexico: Complete Guide for Foreigners is helpful for tracking these original wire transfers and documents.
Reporting Capital Improvements and Renovations
If you added a second story or a guesthouse, you must have the facturas for materials and labor. In Mexico, labor facturas are tricky because they often involve paying social security (IMSS) for the workers. If you didn't pay the IMSS and get the proper "liberación" (release) from the IMSS office, the Notario may refuse to deduct the labor costs of your renovation.
This is why we always tell people Building a Home in Mexico: What Expats Need to Consider to hire a project manager who understands the "paper trail." A pile of receipts from a local hardware store is useless; you need the XML and PDF files that constitute a legal Mexican factura. Without them, that $50,000 USD kitchen is a gift to the Mexican tax office.
Handling the Financial Logistics After the Sale
Once the sale is finalized and the Notario has taken their cut for the ISR, you’ll be left with a significant amount of pesos in a Mexican bank account. For most expats, the next step is moving that money back to their home country or into a more stable currency account. This is where you can lose another 3% to 5% if you aren't careful with exchange rates.
Mexican banks are notorious for offering terrible "retail" exchange rates to their customers. If you simply ask your Mexican bank to wire USD to your US bank, they will convert the pesos at a rate that favors them heavily.
Moving Funds Abroad After the Sale
To keep more of your hard-earned equity, I highly recommend using a service like Wise. By using Wise, you can often get a mid-market exchange rate that is significantly better than what BBVA or Santander will offer. You would transfer the pesos from your Mexican bank to a Wise Mexican account via a SPEI transfer (which is usually free and instant), convert it within the app, and then send it to your home country.
On a $300,000 USD sale, using Wise instead of a traditional bank wire could save you enough money to buy a small car. It’s one of those Money-Saving Tips: How Expats Can Cut Costs Living in Mexico that separates the pros from the novices. Just be aware that for very large transfers, you will need to provide the "escritura" to the transfer service to prove the source of funds, as part of global anti-money laundering regulations.
Double Taxation and International Reporting
One of the biggest fears for Americans and Canadians is paying tax in Mexico and then having to pay again at home. Fortunately, Mexico has tax treaties with most major nations to prevent this. When you pay ISR in Mexico, the Notario provides you with a tax receipt. You can then use this as a Foreign Tax Credit on your US or Canadian tax return.
This is where a specialized firm like Taxes for Expats becomes invaluable. They understand the interplay between the Mexican Notario’s receipt and the IRS Form 1116. They ensure that the "exit tax" you paid in Mexico offsets what you owe in the US. Remember, even if you owe $0 in the US due to credits, you still have to report the sale and the foreign bank account (FBAR/FATCA) if the balance exceeded certain thresholds.
Common Pitfalls and Expert Tips
The most common mistake I see is "waiting until the sale" to think about taxes. In Mexico, your tax strategy starts the day you buy the property. If you didn't get a factura for your closing costs when you bought, you can't deduct them when you sell. If you didn't get your RFC when you arrived, you might lose the primary residence exemption.
Another pitfall is the "valuation" trap. Sometimes, a buyer might ask you to report a lower sale price to help them out. While this might seem like a "Mexican way" of doing things, the SAT has become incredibly efficient at spotting properties sold below market value. If the reported price is too low, the SAT can trigger an audit of both the buyer and the seller. Stick to the real numbers; it’s not worth the legal risk.
Avoiding Under-the-Table Valuation Requests
If a buyer or their agent suggests paying a portion of the price "outside of escrow" or in cash to "save on taxes," walk away. Not only is this illegal, but the Notarios are now required to report any suspicious valuations. If the Notario suspects the price is artificially low, they may order an independent appraisal, and you will be stuck paying tax on the appraised value anyway, regardless of what the "official" contract says.
Integrity in your financial dealings is part of being a good neighbor and a successful expat. We discuss this further in our guide on Mexican Etiquette and Customs: Do's and Don'ts for New Expats. Maintaining a clean paper trail ensures that your transition out of the country is as smooth as your arrival.
Working with Professional Accountants and Lawyers
Don't rely solely on your real estate agent for tax advice. While many are knowledgeable, their primary goal is to close the deal. An independent accountant (Contador) or a lawyer can provide an unbiased "pre-calculation" of your ISR months before you even list the property. This allows you to set your asking price with a clear understanding of what your "walk-away" number will be.
Getting a second opinion is a standard practice for veteran expats. Whether it's regarding Do You Need an Immigration Lawyer for Mexico? DIY vs Professional Help or a tax specialist, having a professional in your corner who isn't commission-based is the best way to protect your net worth.
Disclaimer Regarding Capital Gains Tax
This guide is for informational purposes only and does not constitute legal, financial, or tax advice. Mexican tax laws, UDI values, and Notario requirements are subject to frequent changes. Always consult with a certified Mexican accountant (Contador Publico) or a qualified tax attorney before making any decisions related to property sales or tax filings in Mexico. Be aware that tax residency rules can be complex and may vary based on your individual circumstances and international tax treaties.