You bought a home in the United States, lived in it, and then moved to Spain. Now you are selling it, and shortly before closing the escrow officer says the buyer may have to hold back 15% of the price for the IRS. That is FIRPTA withholding, and it surprises many sellers.
Three things are easy to confuse: the FIRPTA withholding at closing, the actual U.S. tax on your gain, and any tax you may owe in Spain.
Who is subject to FIRPTA withholding
FIRPTA, the Foreign Investment in Real Property Tax Act, requires the buyer to withhold part of the price when the seller is a “foreign person,” meaning a nonresident alien or a foreign entity. The test is your U.S. tax status, not where you live.
A U.S. citizen living in Spain is generally not a foreign person. You sign a certification of non-foreign status, often called a FIRPTA affidavit, and the buyer does not withhold. Green card holders need a closer look.
If you are a nonresident alien, the buyer generally has to withhold.
How much is withheld
The buyer withholds on the amount realized (the sale price plus any debt assumed), not on your profit. The general rate is 15%. It is 10% if the price is between $300,001 and $1 million and the buyer will live in the home, and there is none at $300,000 or less with the same buyer use.
The buyer pays the withheld amount to the IRS, generally within 20 days after closing, and can be liable if it fails to withhold.
The home sale exclusion can help foreign sellers too. The home sale exclusion in Internal Revenue Code §121 is not only for U.S. residents. According to the IRS, nonresident aliens may qualify too.
-
Up to $250,000 of gain can be excluded by an individual who meets the requirements.
-
Up to $500,000 is possible only for married couples who file a joint return. In general, both spouses must meet the use requirement, while it is enough that one meets the ownership requirement, and the other requirements must also be met.
-
Nonresident aliens who file Form 1040-NR generally have an individual limit of $250,000. If two foreign spouses co-own the home, each may be able to exclude up to $250,000 of his or her own share of the gain, provided each meets the requirements individually. It is not an automatic $500,000 joint exclusion.
-
The basic test: you owned the home and used it as your main home for at least two of the five years before the sale.
Someone who moved to Spain can still meet the test if the sale falls within that window.
The exclusion reduces the taxable gain. It does not automatically switch off FIRPTA withholding: the buyer generally still withholds on the full price unless the IRS authorizes a lower amount.
Suppose you bought a home in 2018 for $500,000, lived in it until you moved to Spain in 2024, and sell it in 2026 for $700,000. After selling costs, your gain is about $180,000, which the exclusion may cover. The buyer, however, generally still withholds 15% of $700,000, or $105,000, at closing. That withholding is a prepayment, not necessarily your final tax. If it exceeds what you actually owe, you can claim the excess back, but only after the IRS processes your return or application.
Reducing the withholding, or getting it back
Before closing: a withholding certificate. You or the buyer can ask the IRS for a FIRPTA withholding certificate on Form 8288-B, to reduce or eliminate the withholding when your tax is expected to be lower. The IRS normally acts within 90 days of a complete application, which can be longer than the time to closing, so plan early.
If the application is filed by closing but the IRS has not yet ruled, the buyer generally still has to withhold. The deadline to send the money to the IRS then runs from the date the IRS mails its decision, so the funds are usually held until then. Agree with escrow beforehand how this will work.
After closing: a refund. You file a U.S. tax return for the year of the sale (Form 1040-NR for nonresident aliens), attach the stamped Form 8288-A, report the gain and the exclusion, and claim the excess as a refund.
Tax in Spain
If you are a Spanish tax resident, you report your worldwide gains in Spain, including the sale of a home in the United States, on your annual return (Modelo 100). Spain calculates the gain under its own rules and in euros, so the figure can differ from the U.S. one.
The §121 exclusion is a U.S. rule and does not carry over. Spain has its own relief for the sale of a main home, such as the reinvestment exemption when the proceeds go into a new main home in Spain. The Spanish tax authorities have accepted that a main home abroad is not excluded for that reason alone, but strict conditions apply, including that it was your main residence within the two years before the sale.
Under the U.S.–Spain tax treaty, the country where the real estate is located, here the United States, has the right to tax the gain. Spain can still tax you as a resident, and it generally relieves the overlap through a credit for the U.S. tax paid on the same gain, within limits. The result depends on your facts, including your citizenship and how each country computes the gain, so model both returns before you close.
U.S. filings that continue after you move
Moving to Spain does not necessarily end U.S. filing duties. Depending on your situation, these may apply:
-
Form 1040, if you meet the U.S. filing requirements for the year.
-
FBAR (FinCEN Form 114) if your foreign accounts exceed $10,000 combined at any time in the year. Selling a U.S. home does not trigger it by itself, but a Spanish account receiving the proceeds counts toward the total.
-
FATCA/Form 8938 if your foreign financial assets exceed the reporting thresholds.
-
Form 8621 if you hold Spanish mutual funds or ETFs, which are generally PFICs for U.S. purposes.



