Can You Sell Your Overseas Home Tax-Free? The Main-Residence Capital Gains Exemption Explained
Published on: June 18, 2026
"My main home is exempt from capital gains tax." It is one of the most reassuring sentences in property, and one of the most dangerous when you cross a border. The main-residence exemption is real and often valuable, but it is a national relief with national rules, and it does not travel with you automatically. Sell a home abroad and you can find yourself inside two tax systems at once: the country where the property sits, and the country where you are tax resident, each with its own idea of what counts as your "main home" and whether your gain is sheltered.
This guide explains how the main-residence capital gains exemption works in several major systems, why "tax-free at home" rarely means "tax-free everywhere," and what cross-border sellers should check before they sign.
This guide is general information, not tax advice. Capital gains rules, rates, thresholds and exemptions differ by country and change frequently, and the result depends entirely on your residence, the property and the timing. Confirm your position with a qualified tax adviser in the relevant countries before selling. We are not tax advisers.
The two-country problem
When you sell a property, two questions arise. Does the country where the property is located tax the gain? And does the country where you are tax resident tax it too, perhaps on your worldwide gains? For a purely domestic sale these collapse into one question. For an international owner they do not, and the main-residence exemption may apply in one country and not the other.
Most double-tax treaties give the country where the property sits the first right to tax the gain, with your home country then giving relief (often a credit for the foreign tax) to prevent the same gain being fully taxed twice. But a credit is not the same as an exemption: if your home country's tax on the gain is higher than the foreign tax, you may still owe the difference at home, even where a domestic-only sale would have been exempt. This is the core reason "my main home is tax-free" can be a costly half-truth across borders.
United States: the Section 121 exclusion, including on a foreign home
US tax persons (citizens and green-card holders) are taxed on worldwide income, which means the sale of a home abroad can be a US taxable event, but the main-home relief, the Section 121 exclusion, can apply even to a property located in another country.
As of writing in 2026, the headline rules are:
- The exclusion shelters up to $250,000 of gain for single filers and $500,000 for married couples filing jointly. These amounts were set in 1997 and have not been adjusted for inflation since.
- You must meet both an ownership test and a use test: you must have owned the home and used it as your principal residence for periods totalling at least two of the five years before the sale. The two years need not be continuous.
- It applies to one main home at a time, can generally be used only once every two years, and applies to a foreign principal residence for a US person, not just a US one.
- Gain above the exclusion is taxed at federal long-term capital gains rates (commonly 0, 15 or 20 percent depending on income). Depreciation you claimed (for example on a period of rental) is generally not covered and is taxed separately.
- Currency matters: the gain is computed in US dollars using exchange rates at purchase and sale, so a currency swing can create a US taxable gain even when the local-currency price barely moved. State tax may also apply.
So a US person selling a qualifying foreign main home may shelter a substantial gain, but the cap, the tests, the currency mechanics and any foreign tax all need to be run through together, ideally with a US cross-border tax adviser.
United Kingdom: Private Residence Relief
For UK tax residents, the equivalent is Private Residence Relief (PRR), which can fully exempt the gain on a property that has been your only or main residence throughout your ownership.
As of writing in 2026, key features include:
- If the property was your only or main residence for the whole period of ownership, the gain is typically fully relieved.
- If it was your main home for only part of the time, relief is apportioned between the period it qualified and the total ownership period, with the gain split accordingly.
- The final nine months of ownership generally qualify for relief even if you were not living there at the time, provided the property was at some point your only or main residence (this final-period exemption was reduced from 18 months in April 2020; longer periods can apply in limited cases such as disability or moving into care).
- Where you own more than one home, only one can be your main residence at a time, and a formal nomination may be relevant within set time limits.
- Periods of letting or exclusive business use can reduce relief, and lettings relief has been significantly restricted since April 2020.
- Special rules apply to non-UK residents disposing of UK property and to nominating a home located in a country where you are not tax resident.
Any gain not covered by PRR may be charged to UK capital gains tax (residential-property rates as of writing are 18 percent and 24 percent depending on your income band), after the annual exempt amount. PRR is generous but, again, not automatic across borders, and the interaction with a property abroad and any foreign tax needs care.
Spain: reinvestment relief and the over-65 exemption
Spain offers two well-known reliefs on the sale of a main home (vivienda habitual), but with an important limitation: as of writing in 2026 they are generally available to Spanish tax residents, not to non-residents (though EU/EEA residents may, in some cases, access certain reliefs under non-discrimination principles, which is a nuanced area for professional advice).
- Reinvestment exemption: a Spanish tax resident who sells a qualifying main home and reinvests the proceeds in a new main home within two years may, if all conditions are met, obtain full exemption (a partial reinvestment generally gives a proportional exemption). The intention to reinvest generally has to be declared on the relevant tax return.
- Over-65 exemption: a Spanish tax resident aged 65 or over who sells their habitual residence (which generally must have been their main home for at least the three years before the sale) may, subject to meeting the conditions, qualify for full exemption with no reinvestment requirement. Separately, those over 65 can, in some cases, shelter gains on other assets by reinvesting (up to a capped amount) into a qualifying life annuity within six months.
For residents, savings-income capital gains are taxed on a progressive scale (as of writing, rising in bands from 19 percent to 30 percent); non-residents generally pay a flat rate (commonly 19 percent for EU/EEA and 24 percent otherwise), with a 3 percent withholding taken at the sale and reconciled afterwards. Spain also has a separate local land-value tax (plusvalia municipal) on property sales, distinct from capital gains tax. Tax authority rulings have confirmed that the over-65 main-home exemption does not extend to non-residents, so residence status is decisive here.
France: the main-residence exemption
For French tax residents, the gain on the sale of the residence principale (the home that is your actual main and habitual residence at the time of sale) is, broadly, exempt from French capital gains tax, subject to conditions and to the property genuinely qualifying as the main residence. As always, the detail (what qualifies, timing around moving out, and treatment of any dependencies) matters, and the position for non-residents and for second homes is different and more complex. This is one to confirm with a French tax adviser (notaire or fiscal adviser) for your specific facts.
Why the exemptions do not simply combine
The trap for international sellers is assuming that an exemption in one country protects them everywhere. It usually does not, for a few reasons:
- Residence drives everything. Several of these reliefs (Spain's, France's, the UK's PRR for the period of residence) depend on being tax resident there. If you have moved, or are resident elsewhere, the relief you are counting on may not apply.
- Worldwide taxation can pull the gain back in. A US person, for instance, may face US tax on a foreign-home sale even where the local country exempts it, with Section 121 and foreign tax credits then doing the heavy lifting, sometimes incompletely.
- A treaty credit is not an exemption. Where the property's country taxes first and your home country credits that tax, you can still owe a top-up at home if your home rate is higher.
- Definitions differ. "Main home," qualifying periods, and what counts as residence are defined differently in each system, so the same property can be your exempt main home in one country and a taxable asset in another.
Before you sell: a checklist for cross-border owners
- Establish your tax residence at the time of the planned sale, with advice, since it determines which reliefs you can use.
- Map both sides: does the property's country tax the gain, and does your country of residence tax it on worldwide gains, and how does the treaty allocate and relieve it?
- Check eligibility for the main-home relief in each relevant country: the tests, qualifying periods, and any reinvestment, age or nomination conditions.
- Mind the timing. Reinvestment windows, age thresholds, final-period rules and residence changes can each move the result; selling a few months earlier or later can matter.
- Keep records: purchase and sale documents, improvement invoices, and evidence of occupation as a main residence, all of which support both relief and accurate gain calculations.
- Get coordinated advice across both countries before signing, not after.
This guide sits alongside our wider tax work on capital gains tax on overseas property, on how to sell property abroad and plan the exit, on double-tax treaties, and on the tax residency certificate that unlocks treaty relief.
Frequently asked questions
If my home country exempts my main home, am I safe selling it from abroad?
Not necessarily. The exemption is a national relief. If you are tax resident elsewhere, or your nationality (as with US persons) brings worldwide taxation, another country may still tax the gain. Check both sides before you sell.
Does the US exclusion really apply to a home outside the US?
Yes, for a US person it can apply to a foreign principal residence, subject to the same ownership and use tests and the $250,000 / $500,000 caps as of writing. Currency movements, depreciation and state tax can still create a bill, so take advice.
Can a non-resident use Spain's over-65 or reinvestment exemption?
Generally no for the over-65 main-home exemption, which has been confirmed to apply to residents only; EU/EEA residents may access certain reliefs under non-discrimination principles in some cases. This is nuanced and fact-specific, so confirm with a Spanish tax adviser.
What is the difference between a credit and an exemption across borders?
An exemption removes the tax in that country. A credit lets your home country offset foreign tax already paid against your home liability, but if your home tax is higher, you may still owe the difference. That is why a foreign exemption does not always make a sale fully tax-free.
A final word
The main-residence exemption can save a cross-border seller a great deal, but only if it is matched to the right country, the right residence, and the right timing, and only if the second tax system is accounted for rather than ignored. The expensive mistakes come from assuming a single, borderless rule. The reliable outcomes come from mapping both countries before you sell.
JanusHermes is a cross-border property information and listing platform. We help international owners understand the questions that shape a sale, but we are not tax advisers and we do not provide tax advice. For your specific situation, a qualified tax adviser in each relevant country is the right person to confirm your residence, your reliefs and your timing. Explore listings and country-level intelligence across 50+ markets on JanusHermes.
Disclaimer. This article is provided for general educational purposes only and does not constitute tax, legal, or financial advice, nor does it create any professional or advisory relationship. Capital gains rules, rates, thresholds, exemptions and the treatment of residents and non-residents differ significantly by country and change frequently; the figures and reliefs described here (including US Section 121, UK Private Residence Relief, and Spanish and French reliefs) were believed accurate as of writing in 2026 but may since have changed, and your circumstances may produce a different result. Nothing here should be relied upon for any specific situation. Always obtain advice from a suitably qualified, independent tax adviser in the relevant jurisdictions before selling. JanusHermes is a property information and listing platform, not a tax or advisory firm, and accepts no liability for any action taken in reliance on this content.
A note on the numbers: where no source is named, the market figures in this article (prices, yields, costs) are indicative estimates compiled from publicly available market data and industry reporting at the time of writing. Markets move and rules change, so treat them as a starting point and verify current figures with official sources before acting on them.