Timing before you arriveArticle 5 of 6 · 9 min read
Selling a home abroad: before or after becoming Spanish resident
Explains how the timing of selling a home in your origin country affects which country taxes the gain, and which Spanish reliefs still help. For people planning a move to Spain who own a home abroad.
Key rules
- Tax year: The gain is taxed in the year the deed is signed, not when the money arrives.
- Foreign exemptions: Spain gives a credit for foreign tax paid but does not apply your home country's exemption.
- Over-65 relief: The over-65 exemption needs Spanish tax residence in the year of sale and a home that still counts as your main home.
- Currency: Spain converts purchase and sale values to euros at the ECB rate on each date, so exchange movements can create gain.
Timing decides who taxes the gain
Once you are Spanish tax resident, Spain taxes your worldwide gains under Spanish rules. If you sell before you become resident, your origin country's rules apply. Selling after you arrive usually means Spain taxes the gain, and your home country may tax it too. The deed date, not the day the money moves, decides the tax year. The warning and the timing process below cover this.
What relief survives if you sell after arriving
Your home country's exemption does not cut your Spanish tax. Spain does not apply a foreign exemption. It gives a credit for foreign tax you actually paid on the same gain. Keep proof of any tax paid abroad.
Your origin country may still exempt or tax the gain on its own side. Examples:
- UK: private residence relief covers the final 9 months of ownership. Non-residents are taxed on UK residential property gains.
- US: the main-home exclusion needs 2 years of use in the 5 years before the sale. It can survive about 3 years after you leave. Spain still taxes the gain, with a credit for US tax.
- Germany: the speculation tax does not apply after 10 years of ownership, or if you used the home as your main home in the year of sale and the two years before.
- Netherlands: the home falls in box 3 or is taxed as non-resident box 1 income. Get a separate review.
Reinvestment relief: limited reach
Spain exempts the gain if a resident sells their main home (vivienda habitual) and puts the whole proceeds into a new main home within two years. The home sold must have been your main home for at least three continuous years. The law does not limit this to Spanish homes, so a foreign home can in principle qualify. But you must be Spanish resident at the time of sale, and the foreign home must have been your main home for three continuous years. Gains built up before you became resident are normally still counted over the full holding period. Foreign homes are decided case by case, so ask a tax adviser before relying on it.
Over-65 exemption: the more reliable route
If you are 65 or over and Spanish tax resident in the year of sale, the gain on selling your main home is exempt without reinvesting. The catch: after you move, your main home is in Spain, so a foreign home rarely qualifies. It can qualify if it was your main home until shortly before the sale and had at least 3 years of continuous residence. Whether a foreign home counts is a question of fact, so take advice first.
How Spain calculates the gain
Spain works in euros. Convert the purchase value and the sale value at the ECB rate on each transaction date. Spain gives no inflation adjustment for individuals. You can deduct purchase tax, notary, registry and agency fees, improvements, and your selling costs. The gain includes any currency movement, so a weaker currency can create a taxable gain even if the price in local currency did not rise.
Choosing your timing
- If you sell before becoming resident, check your home country's tax and its rules for the sale.
- If you sell after, expect Spanish tax on the full gain, with credit for foreign tax, and little relief unless you are 65 or over or qualify under the rules above.
- If you cannot control the date, the decision below helps you choose how to complete the sale.
Completing a home sale before leaving, after arriving or through a representative
How do you want to complete the sale of your home?
-
Complete before you leave: Fits if you can sign the deed before you become a Spanish resident. The sale is taxed under the rules of the country where you are resident on the deed date.
-
Complete after you arrive in Spain: Fits if the deed must wait until you are in Spain. If you meet the residence tests that year, the gain is taxed in Spain with your worldwide income. If completion slips past 31 December, the gain moves to the next tax year, so ask a tax adviser before changing the date.
-
Complete through a representative with a power of attorney: Fits if you cannot be at the notary. The deed date, not your presence, sets the tax year. The power of attorney must name the agent, identify the property, and give express powers to sell, set the price and terms, receive the price, sign the deed and corrections, pay taxes and costs, and cancel mortgages. From abroad, sign it before a local notary with an apostille and a sworn translation into Spanish, or at a Spanish consulate, which skips those two steps. The agent has wide powers, and notary, apostille and translation fees apply.
The sale is taxed in the year the deed is signed, so choose the option that puts the deed in the year you want. If the completion date slips, agree a written extension and check the tax year and residence status before you move the date.
Locking in the timing of a home sale
-
Know which date counts: a sale is taxed in the year the deed is signed before the notary, not the year of the offer, the deposit (arras) or the transfer of the money: before you start
-
Confirm in writing the deed date and notary, the deposit amount and type of arras, the buyer's conditions such as mortgage approval and the long-stop date, and the penalties for delay or withdrawal: before you accept an offer
-
Confirm in writing who pays plusvalía (the local tax on the land's increase in value) and other costs, the key handover date, any mortgage or debts on the home, the energy certificate and the payment method: before you accept an offer
-
Negotiate the terms that move timing: the deed date, the type of arras, a paid extension option, a long-stop date, a penalty for delay, and a rent-back or deferred possession period. Have a lawyer draft them, as each only works as written: while agreeing the contract
-
If the sale plan or date is still unknown, keep a record of your days in each country, collect purchase and sale documents, avoid irreversible steps, and ask a tax adviser before you fix your move date. If the date is known, set the deed date in the contract to fall in the tax year you want: at the decision point
-
If completion slips past 31 December, the gain falls into the next tax year, and if you have arrived by then it may be taxed in Spain as a resident. Agree a written extension or new completion date, check which year and residence status will apply, and speak to a tax adviser before moving the date. If the buyer defaults you keep the deposit; if you default under penitential arras you return double, unless the contract says otherwise: if completion slips across year-end or your move date
Checklist
-
Work out how many continuous years the foreign home was your main home before you left.
-
Check whether you will be 65 or over and Spanish tax resident in the year of sale, which opens the over-65 exemption.
-
Ask a tax adviser whether the foreign home can still count as your main home for Spanish purposes, since your main home is now in Spain.
-
Check your origin country's own rule for the sale, such as the UK final 9 months of relief or the US 2-years-in-5 use test.
-
Keep proof of any foreign tax you pay on the sale, so you can claim a credit in Spain.
-
Collect the purchase and sale documents, including purchase tax, notary, registry, agency fees and improvement invoices, to reduce the gain.
-
Note the ECB exchange rate on the purchase date and on the sale date, and convert both values into euros.
Sale dates, money transfers and the tax year
-
Several events in your move year can change your tax: A home sale, a sale of shares or funds, large transfers, income changes, pension lump sums and foreign assets can all affect tax or reporting. The result depends on your residence date, where the asset is and any tax treaty. Spain taxes the whole calendar year once you are resident. List these events before you fix your move date and ask a tax adviser how each one is treated.
-
The deed date decides the tax year, not the day the money moves: Tax follows the deed date. If the deed is signed before you become resident, the non-resident or previous-country rules apply. After arrival, the gain is taxed in Spain with your worldwide income. Moving the money earlier or later does not change the year. Banks may ask for the deed and tax paperwork as proof of source, and large transfers can be reported. Keep the deed, bank statements and tax filings together, and send the money only once you know which year the sale falls in.
-
Owning property abroad adds reporting once you are resident: You report foreign assets if any category is worth more than €50,000 at 31 December, filed between 1 January and 31 March. A second home abroad that is not rented can also be taxed on an imputed income, rental income is taxed in full with a credit for foreign tax, and foreign property counts for wealth tax. Values are converted to euros at the relevant date. Ask a tax adviser how your property abroad will be reported before you send money.
-
Sale date still unknown: If you do not know when the sale will complete, you cannot know which year it falls in. Get personal tax advice before sending money if you have a home sale, shares, a large unrealised gain, a pension lump sum or a close call on the 183 days. Meanwhile, keep a record of your days in each country, gather purchase and sale documents, avoid irreversible sales or withdrawals, and keep your ties to your current country documented until the date is fixed.
Frequently asked questions
Can I use Spain's reinvestment relief when I sell a foreign main home?
Possibly, but only if the foreign home was your main home for at least 3 continuous years and you are Spanish tax resident when you sell. You must also put the whole proceeds into a new main home within 2 years. Foreign homes are judged case by case, so get advice first.
Does the over-65 exemption work for a foreign home I sell after moving to Spain?
Rarely, because your main home is now in Spain. It can work if you are 65 or over, Spanish tax resident in the year of sale, and the foreign home was your main home until shortly before the sale after at least 3 years of continuous living there. You do not need to reinvest the money.
Does my home country's main-home exemption still cut my Spanish tax?
No, Spain taxes your worldwide gain under its own rules and does not apply a foreign exemption. Your home country may still exempt or tax the gain, and Spain gives a credit for foreign tax you actually paid. For example, the US rule needs 2 years of use in the 5 years before sale.
Which exchange rate does Spain use for the gain on a home bought in another currency?
Spain converts the purchase value and the sale value into euros, each at the ECB reference rate on the date of that transaction. Any currency movement therefore ends up inside your gain. Spain does not adjust the gain for inflation.
More in Timing before you arrive
Need certainty before you act?
For important relocation decisions, speak with a qualified human specialist.
Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.