Which states, and why Florida is not one of them
The state section covers California, Texas, New Jersey, New York and Illinois, the five states Pew Research Center lists for their large Indian populations: about 960,000 in California, 570,000 in Texas, 440,000 in New Jersey, 390,000 in New York and 270,000 in Illinois (Pew Research Center, Indians in the U.S. ↗). Each was checked against that state's own revenue department and property-tax agency pages. Florida is left out on purpose. We have not yet checked Florida's homestead rules against Florida's own statute and county pages. We do not publish a state's rules we have not verified. If you own a home in Florida, the federal sections of this guide still apply in full; for the state layer, go to Florida's own sources until we add it.
The rules in brief
If you lived in the home for at least the two full years before you moved out, the latest the sale can close and still receive the full home-sale exclusion is three years after the day you moved out, provided you also owned the home for two of the five years before the sale and did not use the exclusion on another home sale in the two years before this one (section 121(b)(3)); section 3 sets out these conditions and the joint-return rules. How many years you lived there before that makes no difference: only the time you lived there inside the five years before the sale counts. The date comes earlier if you had gaps, and it moves only if you move back in or fall under one of the exceptions the law names (section 3). Renting the home out after you move out does not, by itself, cost you the exclusion, although depreciation for the rental years is still taxed when you sell (section 4).
Once you are a nonresident alien for US tax, rent you receive is generally taxed at 30 percent of the amount received, with no deductions, unless a lower treaty rate applies or you attach an election statement to your return. Whoever pays you the rent, including a private tenant, is required to withhold that 30 percent unless the rent is effectively connected income (through that election, or because the renting is itself a US trade or business) and you have given them Form W-8ECI first (section 7).
When you sell as a nonresident, the buyer must generally withhold 15 percent of the amount realized at closing, even if you owe no tax at all. On your side, only an IRS withholding certificate held before the closing date lowers that. If you have applied by the closing date but do not yet hold one, the 15 percent is still withheld, and the buyer pays the IRS that amount or the lower amount the IRS decides, 20 days after its decision. Lower rates also exist that depend on the buyer, not on you (section 9).
Each of those sentences carries conditions. The rest of this guide sets them out.
1. Two decisions, with different dates
Renting the home out looks reversible. For tax it is not, and the two dates that follow from it differ. Your three-year date in section 3 runs from the day the home stops being your main home, whether or not it is rented yet. Depreciation begins when the property is placed in service as a rental (IRS Publication 527, 2025 ↗, "When does depreciation begin and end?"). Neither consequence disappears because you later change your mind.
It is also easy to assume that you remain a US taxpayer. You may not. An H-1B or L-1 holder who leaves becomes a nonresident alien once the tests in section 2 are no longer met; a green-card holder stays a US resident for tax until the status is rescinded or its abandonment is determined (a determination you can start yourself by filing Form I-407, or a letter with the card enclosed, with USCIS or a consular officer, and which USCIS or a consular officer can also start), or until the holder claims treaty residence in another country and notifies the IRS (section 2; that ends income-tax residency, but the FBAR continues while you hold the card, section 11). The sections on rent and on selling are written for both.
2. Who you are for US tax, and when that changes
Much of what follows depends on whether you are a US resident or a nonresident alien in the year in question.
For the year you leave, the default is that you are a US resident to 31 December (Reg. §301.7701(b)-4 ↗). You can end residency earlier, on your last day present in the US if you were resident by days of presence, or on the first day you are no longer a green-card holder, but only if, for the rest of that year, your tax home is abroad and you have a closer connection to that country, you are not a US resident at any time in the following year, and you file a signed statement with the IRS (IRC §7701(b) ↗; Pub 519, 2025 edition ↗, chapter 1).
A green-card holder stays a US resident for tax until the status is rescinded, or abandonment is determined (by filing Form I-407 or a letter with the card enclosed, with USCIS or a consular officer), or until treaty residence in another country is claimed and notified. The IRS says you remain a resident alien until you have proof that the abandonment letter was received (Pub 519, chapter 1).
If you qualify for an earlier termination date, your departure year is a "dual-status" year: you are taxed as a resident on worldwide income up to that date, and as a nonresident alien after it (Reg. §1.871-13 ↗; Pub 519, chapter 6). You file Form 1040-NR marked "Dual Status Return" with a statement of the resident-period income, you cannot take the standard deduction, you generally cannot file jointly (Pub 519 points to one exception, choosing resident status, in chapter 1), and for tax year 2025 you cannot e-file it (Pub 519, chapter 6).
One date to watch: if you had wages subject to withholding in the year you leave, the dual-status return is due 15 April, not the 15 June date that applies to nonresidents with no such wages (IRC §6072(c) ↗; Pub 519, chapter 6).
3. The full exclusion, and the date it runs out
You can exclude gain on the sale of your home only if, in the five years ending on the date of sale, you both owned the home and lived in it as your main home for periods adding up to at least two years, meaning 24 full months or 730 days. The owning and the living-in do not have to be the same two years (IRC §121(a) ↗; Reg. §1.121-1 ↗). Short absences such as vacations count as living there, even if you let the home while away; a one-year sabbatical abroad did not count in the regulation's own Example 4.
The amounts are $250,000 of gain, or $500,000 on a joint return if (1) either spouse owned the home for the two years, (2) both spouses lived in it for the two years, and (3) neither spouse used the exclusion on another home in the two years before this sale (§121(b)). Section 121 contains no inflation adjustment; the figures change only if Congress amends the statute. A joint return is not allowed if either spouse is a nonresident alien at any time in the year (IRC §6013(a)(1); Pub 519, 2025, chapter 5), and Pub 519's only exception is for a nonresident married to a US citizen or resident. So a couple who have both become nonresident aliens before the sale cannot use the $500,000 joint limit: each spouse files a separate Form 1040-NR and can exclude up to $250,000 of their own gain, if that spouse meets the tests personally (§121(b)(1)).
The three-year date is set by the sale date, not the listing or the contract. The test looks back five years from the day the sale closes and counts only the time you lived in the home inside that window. If you lived there continuously up to the day you moved out, the latest closing date that still gives you the full exclusion is therefore three years after you moved out, however long you lived there before. The regulation's own examples show it. One owner who had lived in his house since 1986 moved out in January 1998, rented it, and sold in April 2000, two years and two and a half months later: exclusion allowed. Another had lived in hers from 1986 to the end of 1997, more than a decade, moved out in January 1998 and sold in July 2001, three and a half years later: exclusion lost (Reg. §1.121-1(c)(4) ↗, Examples 1 and 2).
Three years is the latest date, not a guarantee. It comes earlier if there were gaps in your living there during the five years, or if you lived there less than two full years before moving out: work backwards from 730 days of use. It moves later if you move back in, which creates new use, if you serve in one of the four kinds of government service named below, or, for a taxpayer who becomes incapable of self-care and lived in the home for at least one year of the five-year window, for time spent in a licensed care facility while still owning it (§121(d)(7)). After the date has passed, the only route left is a partial exclusion for a qualifying reason, also below. "Date of sale" is the date in box 1 of Form 1099-S or, without one, the earlier of the title transfer and the shift of the burdens and benefits of ownership (Pub 523, 2025 edition ↗). Count the days.
Nothing pauses that clock for a private-sector posting abroad. The law lets members of the uniformed services, the Foreign Service, the intelligence community and the Peace Corps suspend the five-year period while on qualified official extended duty (§121(d)(9), (d)(12)). It names no one else.
If you are married and only one spouse lived in the home for the two years, the couple's limit is that spouse's $250,000 plus whatever the other spouse could claim alone (§121(b)(2)(B)). The other spouse counts the years either of you owned the home, but must meet the two-year living-in test personally (Pub 523). A spouse who lived there less than two years may get a fraction of $250,000 only if the sale is for a qualifying reason, covered in the next paragraph.
If you have to sell before the two years are up, you may still exclude a fraction of $250,000 or $500,000 when the sale is because of a change in your place of employment, your health, or unforeseen circumstances (§121(c)). The regulation treats a sale as being for a change in place of employment if (1) the change in place of employment (yours or a spouse's, co-owner's or household member's, including a transfer within the same employer) happened while you owned and lived in the home and (2) the new workplace is at least 50 miles farther from the home than the old one or, if there was no old workplace, at least 50 miles from the home (Reg. §1.121-3 ↗). The regulation places no geographic limit on where the new workplace is; its own Example 2 treats a 3-year posting to Germany as a change in place of employment within the safe harbor. 'Employment' here includes continuing with the same employer, and a spouse's or co-owner's change of workplace counts as well. A move abroad without a new place of employment (yours, your spouse's, a co-owner's or a household member's) does not meet the employment reason at all, inside or outside the safe harbor; it could qualify only as a sale for health or unforeseen circumstances, which the regulation defines separately. The fraction is your months (or days) of ownership-and-use in the five-year window, whichever is shorter (or, if shorter, the time since a prior sale on which you used the exclusion), over 24 months (730 days).
You do not lose the exclusion by becoming a nonresident. Section 121 does not ask whether you are a US resident when you sell; it asks whether you owned and lived in the home for two of the five years before the sale. The IRS's guide for aliens lists the main-home exclusion among the items a nonresident alien can exclude (Pub 519, chapter 3), and points to Pub 523 for the conditions. The IRS says this exclusion does not apply if you are subject to the expatriation tax rules (Pub 519, chapter 3). Its guidance on those rules, Notice 2009-85, does not address the point, and section 877A(a)(2)(A) requires gain on the deemed sale to be taken into account 'notwithstanding any other provision' of the tax code. If you may be a covered expatriate (section 10), get advice before counting on the exclusion.
4. What renting does that you cannot undo
Renting after you move out does not, by itself, reduce the exclusion. The law excludes from "nonqualified use" any part of the five-year window that falls after the last day the home was your main home (IRC §121(b)(5) ↗; Pub 523, "Exceptions"). The nonqualified-use reduction applies to time after 2008 when the home was not your main home and that came before you last lived in it, for example a home you bought as a rental and later moved into. That is the opposite of your situation.
Depreciation is the part that stays. Any depreciation on the home for periods after 6 May 1997, both the depreciation you claimed as a landlord and the depreciation you were entitled to claim, comes out of the exclusion (§121(d)(6)) and is taxed as "unrecaptured section 1250 gain", for which the rate is up to 25 percent (IRC §1(h)(1)(E) ↗). Pub 523 puts it on line 5a of Worksheet 2. Your cost basis comes down by not less than the depreciation allowable whether or not you claimed it (IRC §1016(a)(2) ↗), so skipping depreciation "to avoid recapture" loses you the deduction without removing the basis reduction. One qualification the IRS publication does not mention: where you can prove that the amount actually allowed was less than the amount allowable, the statute counts the amount allowed (IRC §1250(b)(3) ↗).
5. The day you become a nonresident: the 30 percent rule
Unless you make the election in section 6 (or the rental is otherwise effectively connected with a US trade or business), rent paid to you as a nonresident alien is taxed at 30 percent of the amount received, with no deductions, or at a lower rate where a tax treaty provides one. The tax is on the rent received, not on the profit (IRC §871(a)(1) ↗; Reg. §1.871-7 ↗; Pub 519, 2025 edition ↗, chapter 4). For an owner who is resident in India, the US-India tax treaty does not lower this rate: its article on income from real property lets the US tax rent from a US home and sets no reduced rate for it (US-India Income Tax Convention, Article 6 ↗). Do not expect the treaty itself to reduce the 30 percent. There is no deduction for mortgage interest, property tax, management fees, repairs or depreciation. On a house whose rent barely covers the mortgage, 30 percent of the gross is more than the profit.
Rent for the nonresident part of a dual-status year that is not effectively connected is taxed the same way (Pub 519, chapter 6).
6. The election that changes the basis of tax
You can elect to have all your income from US real property held to produce income taxed like a US resident's business income: on the net amount after expenses, at the graduated rates (IRC §871(d) ↗; Reg. §1.871-10 ↗). The election covers all such property, not one property or one type of income; the regulation's own example is rent from a former personal residence.
The election matters for the rent. The regulation also lists gains from selling the property among the income an election covers (Reg. §1.871-10(b)(1)). For an ordinary sale of a US real property interest, though, IRC §897 already treats the gain as effectively connected with a US business (IRC §897(a)(1) ↗), so you do not need the election for that gain to be taxed on the net amount (section 9).
You make the election by attaching a statement to your Form 1040-NR for the first year of the election, or to an amended return for that year filed within the time for claiming a refund. The regulation lists five categories of property information (Reg. §1.871-10(d)(1)(ii)), but Pub 519 asks for nine items (the Form 1040-NR instructions fold the location into the list, giving eight), so follow the Pub 519 list (Pub 519, 2025 edition ↗, chapter 4, "Making the choice"):
1. That you are making the choice.
2. Whether the choice is under section 871(d) or a tax treaty.
3. A complete list of all your real property, or interests in real property, in the United States.
4. The extent of your ownership in each property.
5. The location of each property.
6. A description of any major improvements.
7. The dates you owned each property.
8. Your income from each property.
9. Details of any earlier choices and revocations of the real property income choice.
Schedule OI of Form 1040-NR has a box for the election (Instructions for Form 1040-NR, 2025 ↗); the regulation requires the statement, and we found nothing saying that the box or a net-basis return substitutes for it. Attach the statement.
Once made, the election stays in force for every later year, including years with no rental income. You can undo it without IRS consent only within the time for claiming a refund for the first election year (Pub 519: Form 1040-X within three years of filing or two years of payment, whichever is later); after that, revoking it needs the IRS's written consent, requested within 75 days after the end of the first year you want it to stop, and you cannot re-elect for five years without consent (§871(d)(2); Reg. §1.871-10(d)).
If you make the election, depreciation on the rented home is a deduction you take each year (Reg. §1.871-10(c)(2)), and it reduces the home's basis, so it increases the gain taxed at up to 25 percent when you sell (section 4). Whether the election can be made for the nonresident part of a departure year is not addressed in any text we read; ask before you rely on it.
7. Your tenant, and the form that stops the withholding
Whoever pays you the rent, whether a property manager or the tenant personally, is a withholding agent: the statute says "all persons ... (including lessees ... of real ... property)" (IRC §1441(a) ↗) and the IRS says a withholding agent "may be an individual" (Pub 515, 2026 edition ↗). They must withhold 30 percent of each payment unless, before paying, they hold your Form W-8ECI with your taxpayer identification number, stating that the rent is effectively connected income (Reg. §1.1441-4 ↗; Pub 515).
If they do not withhold and you do not pay, both of you are liable for the tax; if you pay, they remain liable for interest and penalties (IRC §1461 ↗; Pub 515). A private tenant who has never heard of any of this is exposed the moment you become a nonresident. Give them the form before the first payment after your status changes.
8. The return, and the deadline that costs you every deduction
As a nonresident alien you get deductions and credits only by filing a true and accurate Form 1040-NR (IRC §874(a) ↗). The regulation adds a deadline: the return must be filed within 16 months of its due date, which is 15 June for a calendar-year filer with no wages subject to withholding and 15 April if you have such wages. If you skipped the previous year's return, the deadline is the earlier of those 16 months and the date the IRS mails you a notice that the return has not been filed (Reg. §1.874-1 ↗; Pub 519, chapter 7). The 16 months run from the due date set by section 6072 (15 April or 15 June), which the regulation cites without reference to extensions.
Miss it and the rent is taxed on the gross with no depreciation, mortgage interest, repairs or property tax, unless the IRS grants a waiver for reasonable good-faith failure, which it will not do for someone who knew a return was due and chose not to file (Reg. §1.874-1(b)(2)). The statute itself sets no deadline; the 16 months is the regulation's. We record both rather than blend them.
9. Selling from abroad: the 15 percent, and the certificate
When a nonresident alien sells a US home, the gain is taxed as if it were effectively connected with a US trade or business (IRC §897(a) ↗): on the gain, at the section 1 rates, or under section 55 if that gives a higher figure, and not under the 30-percent-of-gross rule. The FIRPTA regulations themselves provide for a nonresident seller to claim the home-sale exclusion when applying for reduced withholding (Reg. §1.1445-3(b)(5) ↗).
The buyer must withhold 15 percent of the amount realized (IRC §1445(a) ↗), which is the cash paid, plus the value of any other property, plus any mortgage the buyer takes over or the property stays subject to (Reg. §1.1445-1 ↗). It is not 15 percent of the gain. On a $700,000 house with a $500,000 mortgage, $105,000 is withheld from proceeds of $200,000 unless a certificate is in hand or the buyer-based 10 percent rate below applies ($70,000). The rate was 10 percent for dispositions before 17 February 2016 (Instructions for Form 8288 ↗, Rev. January 2026).
Two lower bands exist, and both depend on the buyer, not on you. If an individual buyer has definite plans to live at the property (or to have a family member live there) for at least half the days it is used in each of the first two years, then there is no withholding if the amount realized is $300,000 or less (§1445(b)(5); Reg. §1.1445-2 ↗), and 10 percent instead of 15 if it is more than $300,000 and not more than $1,000,000 (§1445(c)(4)). The buyer decides whether to rely on this, and the buyer carries the liability if the plans do not hold. You cannot claim it for them.
Qualifying for the exclusion does not stop the withholding. Withholding is on the amount realized, not on gain, and the regulations say that a seller claiming the section 121 exclusion cannot use the seller's-notice route that other nonrecognition cases use; the buyer is excused "only upon the timely application for and receipt of a withholding certificate" (Reg. §1.1445-2(d)(2)(iv)). The exclusion and the withholding are two separate systems.
Apart from the buyer-based bands above, having less than 15 percent withheld needs an IRS withholding certificate, applied for on Form 8288-B ↗ (Rev. December 2025). The application must reach the IRS at P.O. Box 409101, Ogden, UT 84409, or be mailed there under the postmark rule, on the day of the sale or earlier (Reg. §1.1445-1(c)(2)); an application without a specific or estimated transfer date is rejected as incomplete (Form 8288-B). Before closing, give the buyer written notice with your name, address, TIN, a description of the property and the date you applied (Reg. §1.1445-1(c)(2)(i)(B)). The regulation, Form 8288-B and the IRS's FIRPTA withholding-certificates page (read 10 October 2026) all treat the day of the sale as in time; the IRS page describes the notice to the buyer as given 'on the day of or the day prior to the transfer'. Apply earlier anyway, because a pending application does not reduce what is withheld.
If the application is pending at closing, the buyer still withholds the 15 percent but does not send it to the IRS until 20 days after the IRS mails its decision, and then sends the amount withheld or the lower amount the IRS has determined (Reg. §1.1445-1(c)(2); Pub 515). Apart from those bands, only a certificate received before closing lets the buyer withhold less or nothing (Reg. §1.1445-2(d)(2)(iv); §1.1445-3(a)). The IRS says it will act not later than the 90th day after it has all the information it needs, with notice by day 45 in complicated cases (Reg. §1.1445-3(a)); its forms say "normally". Do not set a closing date around a certificate you do not yet hold.
If you apply late, the buyer must pay the withholding to the IRS within 20 days of closing (Reg. §1.1445-1(c)(1)). You can then apply for a certificate and an early refund together (Reg. §1.1445-3(g), paid without interest) or claim it on your 1040-NR.
Getting the money back starts with the buyer, who files Form 8288 with the withheld money and two copies of Form 8288-A within 20 days of closing. The IRS stamps Copy B and mails it to you, not the buyer. If your TIN is missing, it holds Copy B, writes asking for the TIN, and sends Copy B once you provide it (Pub 515). You recover the withholding either on your Form 1040-NR for the year of sale, entering it on line 25f and attaching Copy B to the front (Instructions for Form 1040-NR), or, if you hold a certificate showing less was due, by an early-refund application before the return is due. If Copy B never arrives, you may attach closing documents and a statement instead (Reg. §1.1445-1(f)(3)). Withholding does not settle the tax and does not excuse the return.
If you were issued a Social Security number while working in the US, that is your taxpayer identification number for Form 8288-B, Form 8288-A and Form 1040-NR. Do not apply for an ITIN: the IRS will not issue one to a person who has an SSN, and tells you to keep using the SSN even after you lose work authorization (Instructions for Form W-7 ↗, Rev. December 2024). A co-owning spouse who never had an SSN does need an ITIN, applied for on Form W-7 with the 8288-B attached. The IRS will not issue a withholding certificate without the seller's identifying number (Reg. §1.1445-3(a)), and it denies an application that does not give the identifying numbers of all parties to the sale (Reg. §1.1445-3(b)(2); Form 8288-B instructions).
10. Green-card holders: one paragraph, and a separate guide
Three questions are easy to run together. They are separate, and they are answered in this order.
1. When does your US tax residency end? For a green-card holder, resident status ends when it is rescinded or its abandonment is determined (for example, when you file Form I-407, or a letter with the card enclosed, with USCIS or a consular officer), or when you claim treaty residence elsewhere and notify the IRS. If you are not a US resident at any time in the following year, tax residency then ends on 31 December of that year, or on that day if you meet the early-termination conditions in section 2. This is the date from which sections 5 to 9 apply.
2. Are you a long-term resident? You are one if you held the green card in at least 8 of the 15 tax years ending with the year you stop being a lawful permanent resident (IRC §877(e)(2) ↗). Years in which you were treated as a resident of another country under a treaty, without waiving its benefits, do not count toward the 8 (§877(e)(2)). Claiming treaty residence in another country, without waiving the treaty's benefits, and notifying the IRS also counts as ceasing to be a lawful permanent resident for these rules, so for a long-term resident it can itself bring in the expatriation rules (§7701(b)(6); §877(e)(1); §877A(g)(2)(B)).
3. Are you a covered expatriate? A long-term resident whose residency ends is a covered expatriate if any one of three tests is met: average annual net income tax for the five prior years above $211,000 for a 2026 expatriation (Rev. Proc. 2025-32 ↗; $206,000 for 2025, Pub 519), net worth of $2,000,000 or more (not indexed), or failure to certify five years of tax compliance on Form 8854 (§877A(g)(1), applying the tests in §877(a)(2)).
Covered expatriates are generally treated as if they had sold their property for fair market value on the day before expatriation (IRC §877A ↗), subject to separate rules and exceptions for certain assets and accounts. That can include the house. Under section 877A(a)(3), the total gain from that deemed sale is reduced by a separate exit-tax exclusion amount, $910,000 for 2026 (Rev. Proc. 2025-32). It is not the $250,000 or $500,000 home-sale exclusion in section 3: it applies to the deemed-sale gain on all your property together, and it does not raise or lower the home-sale figures. Whether the home-sale exclusion can apply to a covered expatriate at all is the separate question in section 3. If you are a long-term resident whose residency ends, the initial Form 8854 filing requirement applies whether or not you turn out to meet the covered-expatriate tests (Pub 519, chapter 4). The income-tax figure is adjusted every year. This guide stops here.
11. Where you live changes the answer
The federal rules above apply everywhere. The state layer changes the money and the paperwork. We checked five states against their own revenue and property-tax agency pages; Florida is not among them, for the reason given at the top of this guide. If your state is not here, the federal part still applies and your state's rules need their own check.
California. A nonresident is taxed on rent from real property in California and on the sale of California real property, on Form 540NR ↗. Form 593 withholding applies to sales of California property unless the sales price is $100,000 or less, one of the form's exemptions is certified, or another listed exception applies, and none of the 2026 exemptions turns on the seller's residency. The withholding is 3 1/3 percent of the sales price, or an elective calculation of 12.3 percent of the gain, and exemptions are certified on Form 593 ↗ (2026 instructions). Two exemption lines matter, and they are separate. On line 1, the property qualifies as your principal residence under the federal two-of-five test; on line 2, the property was last used as your principal residence. Line 2 is not available once the last use was a rental. The homeowners' exemption ↗ is $7,000 of assessed value; you must tell the assessor by 10 December of the fiscal year in which the exemption first ends, or face an escape assessment with a penalty of 25 percent of the escaped value (BOE Rule 135 ↗). Landlord rules: California Courts self-help ↗.
Texas. There is no state or local income tax (Comptroller, A Field Guide to the Taxes of Texas ↗, December 2025), and its constitution bars the legislature from taxing an individual's net income or capital gains, including a tax on the sale of a capital asset payable by the seller (Tex. Const. art. VIII, §24-a, added 5 Nov 2019; §24-b, added 4 Nov 2025). The state layer for a Texas home is property tax, below. The residence homestead exemption survives a temporary absence only if you do not establish a different principal residence and the absence is for less than two years with intent to return, or is caused by military service or residence in a health or aging facility (Tax Code §11.13(l)). You must notify the appraisal district in writing before 1 May after your entitlement ends (§11.43(g)); the chief appraiser must add back the exempted value for any of the five preceding years in which the exemption was erroneously allowed (§11.43(i)), and a false application carries Penal Code §37.10 penalties. The school-district exemption is $140,000 (Comptroller exemptions page ↗). Landlord rules: Texas Attorney General ↗.
New Jersey. Nonresidents file NJ-1040NR ↗ if gross income from everywhere exceeds $10,000 (single) or $20,000 (joint); gain on New Jersey property is taxable. At closing, a nonresident seller pays an estimated tax ↗ at New Jersey's highest rate (10.75 percent, per the Division's GIT/REP FAQ, read 10 October 2026) on the gain, with a minimum of 2 percent of the consideration whether or not there is a gain, and the deed cannot be recorded without the GIT/REP form and payment. Part-year residents count as nonresidents (GIT/REP-3 instructions). The principal-residence exemption on GIT/REP-3 (box 2) is for property 'used exclusively as a principal residence as defined in' section 121; the Division's bulletin TB-57(R) treats a seller who meets section 121's principal-residence requirement and time period as eligible to check it, and the form's instructions and the bulletin (revised 15 June 2026) allow the box even if the gain exceeds the federal exclusion, with tax on the excess paid with the NJ-1040NR (an estimated payment on Form NJ-1040-ES after recording is optional). The Division's GIT/REP FAQ page (updated 28 September 2026) says the opposite: a seller who cannot exclude the whole gain does not qualify for the exemption, so ask the Division which view applies to your sale. Whether a home rented out after you moved out still counts as 'used exclusively as a principal residence' is not addressed in the form or the bulletin; ask the Division before closing. If the 2 percent was paid, it is recovered on the NJ-1040NR or by Form A-3128 (TB-57(R)). New Jersey's benefit is ANCHOR ↗, is for residents whose New Jersey home is their main home, and is based on residency in the benefit year; if the Division filed for you and you are not eligible for the listed property, the page set a deadline for telling it, 15 September 2026 for the 2025 benefit, which has now passed, so check the page for the next benefit year's rules. Landlord rules: NJ DCA ↗.
New York. Nonresidents with New York source income must file IT-203 ↗ if their New York adjusted gross income (federal amount column) is more than the New York standard deduction (Tax Department page, updated 30 November 2023). Gain on New York real property is taxed to nonresidents (2026 IT-2663 instructions). At closing, a nonresident seller pays estimated tax on the gain on Form IT-2663 ↗ (2026 instructions), and the deed is not recorded without it. The full exemption is for property that "qualifies in total as the principal residence" under the federal rule; a house that fails the two-of-five test does not qualify. If only part of the property qualified as your principal residence, such as a two-family house with one unit rented out, estimated tax is due on the gain allocable to the part that did not (2026 IT-2663 instructions). Estimated payments made with IT-2663 cannot be refunded before the return is filed. STAR ↗ requires the property to be your primary residence, and the penalties ↗ for claiming a property as your residence when it was not include 6 years' disqualification and, for the exemption, a penalty tax and repayment of up to 6 years. Landlord rules: NY Attorney General ↗.
Illinois. Nonresidents file IL-1040 with Schedule NR ↗; the page says a nonresident files with Schedule NR if they have enough 'taxable income from Illinois sources' to owe tax, and that a nonresident alien must file Form IL-1040, attaching the federal Form 1040-NR, if their income is taxed under federal law; ask a preparer how your rent and gain are allocated. The Department of Revenue's filing-requirements page describes nonresidents filing Form IL-1040 with Schedule NR; it says nothing about withholding at closing. Plan for the tax on the Illinois return, and ask a preparer whether estimated payments are due. The General Homestead Exemption ↗ is up to $10,000 in Cook County, $8,000 in the counties next to Cook County and $6,000 elsewhere, for property occupied by its owner as a principal dwelling place (Department of Revenue, read 9 October 2026). A home you have moved out of and rented no longer meets that condition. Tell your county assessor when you stop living there, and ask what notice it requires and what it charges on an exemption received in error; this guide does not set out the county rules, because a current text of the Illinois statute could not be confirmed. Landlord rules: Illinois Attorney General ↗.
Your lender. The Fannie Mae/Freddie Mac uniform instrument (the California version, Form 3005, was read for this guide) says you must occupy the property as your principal residence within 60 days of signing and continue to occupy it for at least one year, "unless Lender otherwise agrees in writing, which consent will not be unreasonably withheld, or unless extenuating circumstances exist that are beyond Borrower's control" (Uniform Instrument Form 3005 ↗, covenant 6, 07/2021 rev. 05/26). Misrepresenting your occupancy or intended occupancy during the loan application is a default (covenant 8). Leaving within that first year and renting the house is a breach unless one of the two exceptions applies. After the first year the uniform instrument imposes no occupancy covenant; whether your servicer requires notice when the home becomes a rental depends on your note and security instrument, so read them and ask your servicer. FHA, VA and non-conforming loans are not covered here.
Your insurance. The Texas Department of Insurance says "most homeowners insurance won't cover damage to a rental property, or it might limit what it pays for" (TDI, Renting out your home ↗), and its home insurance guide lists losses while the house is vacant "for the number of days specified by your policy" among standard exclusions (TDI, Home insurance guide ↗). California's insurance department lists losses to a house vacant for 60 days or more among standard exclusions (CDI guide ↗). The Texas Department of Insurance says to consider landlord insurance, which is 'mainly for traditional, long-term leases'; the NAIC describes the dwelling fire form, which covers only the dwelling (NAIC ↗). Read the vacancy clause before you leave the house empty between tenants.
Your bank accounts. Two separate reports continue for the year you leave. If you were a resident alien under the tax residency rules for the year you leave, the FBAR rules treat you as a 'United States person' (31 CFR 1010.350(b)(2)); the regulation does not say whether that covers the whole calendar year or only the resident part, so ask a preparer. The FBAR is filed with FinCEN (not with your return) if your foreign accounts together exceeded $10,000 at any time in the calendar year, due 15 April with an automatic extension to 15 October (31 CFR 1010.350 ↗; IRS, FBAR ↗). A green-card holder who becomes a nonresident for income tax by claiming treaty residence must still file the FBAR while the card is held (FinCEN, 76 FR 10234, 24 Feb 2011). Form 8938 is a separate test: a resident alien for any part of the year files it with the return for that year, covering only the resident part of the year, and only if the assets exceed the threshold for your filing status and where you live (Reg. §1.6038D-2 ↗; Instructions for Form 8938, Rev. Nov 2021). Our guide NRI Tax 101 has the thresholds and the India-side rules.
12. The five questions
1. How long will you be gone, on an honest estimate? If the sale can close by your three-year date (section 3), renting does not by itself make you fail the two-of-five-year test, although the depreciation rules in section 4 still apply. If it cannot, the full exclusion is gone, a partial one survives only for the reasons the law names, and the decision is then mostly about cash and effort rather than tax.
2. How much gain is in the house? A small gain makes the exclusion a minor factor. A large one makes the three-year date the whole decision.
3. Will you be a nonresident alien next year, and will you attach the election? Without it, the figure is generally 30 percent of the rent, not of the profit.
4. Can you get a withholding certificate in hand before closing? If not, and the buyer-based rates in section 9 do not apply, plan on 15 percent of the amount realized being withheld at closing; if you applied by the closing date, the 15 percent is still withheld, and the buyer pays the IRS that amount or the lower amount the IRS sets; tax paid over beyond what you owe comes back through your 1040-NR, or earlier through an early-refund application once you hold a certificate.
5. Can you run a rental from abroad? Price the manager, the vacancy clause, the state return and the lender's covenant before you decide that it is passive.
13. Two families, worked through
The figures below are illustrations, not data.
The Raos leave in July 2026 and rent, planning to sell about two and a half years later. They bought in 2021, lived there until July 2026, and rent it from August. They intend to sell in early 2029. The last day of principal-residence use is July 2026, so the latest closing date that keeps the full exclusion is July 2029; a spring 2029 closing is inside it. They hold H-1B visas, not green cards, and become nonresident aliens on their departure date because they file the termination statement and have their tax home in India and a closer connection to India for the rest of the year, and are not US residents at any time in 2027; their 2026 return is dual-status, due 15 April 2027 because they had wages. They attach the election statement to their first return as nonresident aliens so that the rent is taxed on the net (whether that can be the dual-status 2026 return is not settled in the texts we read; see section 6), give the tenant a W-8ECI before the first post-departure rent, and file every 1040-NR inside the 16-month limit. Before the 2029 closing they apply for a withholding certificate on Form 8288-B showing that the exclusion covers the gain, and notify the buyer in writing. Depreciation for the rental years is taxed at up to 25 percent on sale; the rest of the gain is excluded, up to $250,000 for each spouse, because as nonresident aliens in 2029 they file separate returns (section 3).
The Mehtas leave for good and cannot decide. Same dates, but they do not expect to return and would sell "whenever the market is good". If that is later than July 2029, the full exclusion is gone and, unless a partial exclusion applies, the whole gain is taxed as a nonresident's effectively connected gain. Their choice is therefore between selling by July 2029 and accepting the tax on the full gain, rather than between selling and renting. Seeing that, they list in 2028.
14. Before you decide: a checklist
1. What is the last day this home was my main home, and what is the date three years after it? Were there gaps in the five years that make my date earlier? Have I owned the home for two of the five years before the sale, and used no exclusion on another home in the two years before it?
2. Adding up every period I lived here as my main home, separate periods included, do the five years before my planned closing date contain two years (24 full months or 730 days)? If not, what is the last closing date that does?
3. Am I married, and do we both meet the two-year living-in test? If either of us is a nonresident alien in the year of sale, can we file jointly at all (section 3)?
4. Will I be a nonresident alien next year? Will I file the residency-termination statement this year?
5. Is my departure-year return due 15 April or 15 June?
6. Have I written the election statement, with all nine items on the IRS list, to attach to the 1040-NR (or amended return) for the first year of the election?
7. If I am electing (or my renting is itself a US trade or business), does my tenant or manager hold my Form W-8ECI, with my TIN, before the first payment after I become a nonresident?
8. Is every 1040-NR filed within 16 months of its due date?
9. Have I applied for the withholding certificate early enough to hold it before closing, and told the buyer in writing?
10. Does the buyer have my TIN so that Copy B of Form 8288-A can reach me?
11. Am I within one year of moving in under my mortgage? If so, does the lender agree in writing?
12. What does my state or county require when the home stops being my principal residence (a notice, a cancellation, giving up a benefit, or something else), and by what date?
13. Have I asked my insurer about landlord cover, and read the vacancy clause?
14. If I hold a green card, have I checked the 8-of-15-years test before giving it up?
15. Sentences to distrust
"Every year you rent it out costs you a slice of the exclusion." Not for a home you lived in and then rented. Nonqualified use is time before you last lived there, not after (§121(b)(5)).
"You have about three years." You have a latest date: three years from the last day you lived there, and earlier if you had gaps. Check that the five years before the closing date contain two years of living there.
"Once you're a nonresident, you lose the exclusion." Section 121 has no residency condition, and the IRS lists it among what a nonresident alien can exclude.
"Just report the net rent on the 1040-NR." The election is a statement with nine items on the current IRS list. Without it, the rule is generally 30 percent of the gross.
"The tenant doesn't need to withhold; they're just an individual." The statute names lessees, and the IRS says a withholding agent may be an individual.
"No gain, no withholding." The 15 percent is on the amount realized. The exclusion does not switch it off. On your side, only a certificate received before closing does; the lower rates in section 9 depend on the buyer.
"I've applied for the certificate, so nothing is withheld at closing." A pending application delays the buyer's payment to the IRS. It does not reduce what is withheld.
"My old homestead exemption just lapses." Do not count on it. California expects you to tell the assessor by 10 December of the fiscal year the exemption first ends, with a penalty of 25 percent of the escaped value if you do not. Texas expects written notice before 1 May and must add back up to five years of exempted value. New York's STAR requires the property to be your primary residence and penalizes a claim on a property that was not. Illinois limits its homestead exemption to a home the owner occupies, so tell your county assessor when that stops. New Jersey's ANCHOR expects you, if the Division filed for you, to tell it if you are not eligible for the listed property. The rules, dates and consequences differ; read your state's paragraph in section 11.
FAQ
Can I keep the exclusion if I rent the house while I am abroad? Yes, if the sale closes by your three-year date: three years after the last day you lived there, or earlier if you had gaps, with two years of living there in the five years before the sale, and provided you meet the ownership and once-every-two-years conditions in section 3. The rental period after you move out is not nonqualified use. Depreciation for the rental years is still taxed when you sell (section 4).
What if I sell one month after the three years? The full exclusion is gone, unless you moved back in or an exception in section 3 applies. A partial exclusion may survive if the sale is for a change of employment, health or unforeseen circumstances; the regulation's own example treats a posting abroad to a new place of employment as one; a move abroad without a new job is not a change in place of employment at all, and could qualify only as a sale for health or unforeseen circumstances. The clock pauses only for the four named kinds of government service; time in a licensed care facility can count as living there for someone incapable of self-care (section 3).
I have become a nonresident. What happens to the rent? It is generally taxed at 30 percent of the amount received, with no deductions, unless a lower treaty rate applies (the US-India treaty sets none for rent from US property) or you attach the election statement to your 1040-NR. Your tenant or manager must withhold that 30 percent unless the rent is effectively connected (through the election, or because the renting is itself a US trade or business) and they hold your W-8ECI (section 7).
Is the election worth making? It is what lets you deduct mortgage interest, property tax, management and depreciation. It covers all your US real property and stays in force. You can undo it without IRS consent only within the refund window for the first election year; after that, revoking it needs consent.
Will the buyer withhold 15 percent even if I owe no tax? Generally, yes. The exclusion does not stop withholding. On your side, only a withholding certificate received before closing does; a pending application delays when the buyer pays the money over, and the buyer then sends the amount withheld or the lower amount the IRS sets. Lower rates that depend on the buyer are in section 9.
Do I need an ITIN? Not if you have an SSN. The IRS will not issue an ITIN to someone who has an SSN and says to keep using it. A co-owning spouse without an SSN needs one.
Does my state matter? Yes. Texas has no income tax. California withholds at closing; New Jersey and New York instead require an estimated-tax payment at closing, which is a different mechanism. Each state also handles the homestead benefit differently, with different dates and consequences (section 11).
I have a green card. Can I just hand it in? If you have held it in at least 8 of the 15 tax years ending with the year you stop being a lawful permanent resident, you are a long-term resident for the expatriation rules, and ending your residency brings those rules in, starting with Form 8854. If you also meet a covered-expatriate test, special exit-tax rules can apply to your assets, including the house. Read section 10 before you file anything.
The decision in brief
Renting out the home you are leaving is less reversible than it looks. The full exclusion survives at most until your three-year date, and earlier if you had gaps, and only if you also meet the ownership and once-every-two-years conditions in section 3. On the federal side, keeping the rest working means attaching one statement, handing your tenant one form, filing one return on time each year, and applying for one certificate before you sell. Miss the date and the full exclusion is gone; miss the statement and the tax is on the gross rent; miss the certificate and, unless a buyer-based rate applies, 15 percent of the amount realized is withheld at closing.
Work out your three-year date before you decide anything else. Then decide.

