Skip to content

General education, not advice for your situation.

Carry Forward Learning Search the site

Selling Your Home

Selling Your Home: who qualifies and which home counts

Same facts. Pro adds the full authority stack under each answer.

How do I know which home is my main home?

If you only have one, that's it. With two or more, the IRS looks at the facts, and the biggest one is where you spend most of your time: the home you use the majority of the time is ordinarily the main one. Other clues include the address on your tax return, driver's license and car registration, where you vote and bank, where you work, and where your family lives. If you switch between two homes for longer stretches, each can be your main home for the years you lived in it, but you can't count the same period for both.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-1
  2. Case Farah v. Commissioner, T.C. Memo. 2007-369
  3. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-1(b)(2) lists the factors and (b)(4) Examples 1 and 2: seven months in New York and five in Florida makes New York the principal residence; two years in Virginia, two in Maine and back to Virginia treats each as the principal residence for the years it was used. In Farah v. Commissioner, T.C. Memo. 2007-369, the court weighed those factors and held a second house was the couple's principal residence for the years they actually lived there, even though their returns, licenses and registrations kept the old address.

Does time away from home break the use test?

Short trips and seasonal absences, like vacations, count as time you lived there, even if you rent the home out while you're gone. A long absence, like a year abroad, doesn't count.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-1
  2. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-1(c)(2)(i): occupancy is required, but short temporary absences count as use even if accompanied by rental. Example 4 (a one-year sabbatical abroad) and Example 5 (two-month summers) mark the line.

How often can I use the exclusion?

As often as you like, as long as you didn't use it on another home sold in the 2 years before this sale. It's not a once-in-a-lifetime break. An earlier sale where you excluded no gain (a loss, for example, or a sale where you chose not to use the exclusion) doesn't start the clock.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Regulation Treas. Reg. § 1.121-2
  3. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(b)(3) and Reg. 1.121-2(b). The statute asks whether the earlier sale was one to which section 121 'applied'. Reg. 1.121-2(b)(1) answers it: the bar is a sale within the 2-year period 'for which gain was excluded under section 121'. Pub. 523 agrees (the look-back is met if you sold another home in the period 'but didn't take an exclusion of the gain'). Sales before May 7, 1997 are disregarded under 1.121-2(b)(1).

When can a married couple exclude the larger amount?

When you file a joint return for the year of the sale and three things are true: at least one of you meets the ownership test, both of you meet the use test, and neither of you used the exclusion on another sale in the last 2 years. Then the cap is $500,000. If you file separately instead, each of you can exclude up to $250,000 of the gain on your own share, if you each meet the tests.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Regulation Treas. Reg. § 1.121-2
  3. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(b)(2)(A) and Reg. 1.121-2(a)(3)(i). Only the ownership test can be satisfied by one spouse; the use test is individual. For joint owners who file separate returns, Reg. 1.121-2(a)(2) applies, and Pub. 523's Worksheet 1 lists the single and married-filing-separately rows together.

What if only one of us meets the use test?

Then you can't use the $500,000 cap, but you don't lose everything. On a joint return you add up what each spouse would get as if unmarried: the spouse who qualifies gets $250,000, and the other gets zero, unless an early-sale reason earns that spouse a reduced amount.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Regulation Treas. Reg. § 1.121-2
Section 121(b)(2)(B) and Reg. 1.121-2(a)(3)(ii) and Example 4. For this purpose each spouse is treated as owning the property for any period either spouse owned it, but use is still tested separately.

What if I own the home with someone I'm not married to?

Each owner who meets the tests can exclude up to $250,000 of the gain that belongs to them. The gain is split by ownership share, so two equal owners each get their own cap.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-2
  2. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-2(a)(4) Example 1: unmarried co-owners with equal interests each exclude half of the gain. Pub. 523, Worksheet 2 tells multiple owners to apply their percentage of ownership.

Does it matter if my home is in a trust or an LLC?

Often it doesn't. If you're treated as the owner of a trust for income tax purposes, like a typical revocable living trust, you're treated as the owner of the house. The same goes for a single-owner LLC that's ignored for tax purposes.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-1
Reg. 1.121-1(c)(3)(i) (grantor trusts, sections 671 through 679) and (c)(3)(ii) (single-owner eligible entities disregarded under 301.7701-3). Farah shows the contrast: a multi-owner family partnership is not disregarded, and the taxpayers failed to prove they owned the lot it held.

I moved into a nursing home. Can I still get the exclusion?

Yes, in many cases. If you lived in the home at least 1 year in the 5 years before the sale and then became physically or mentally unable to care for yourself, time in a licensed care facility counts toward the use test.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Regulation Treas. Reg. § 1.121-1
  3. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(d)(7) and Reg. 1.121-1(c)(2)(ii). The facility must be licensed by a State or political subdivision to care for a person in the taxpayer's condition. Ownership must still be met.

Can I sell the empty lot next to my house and exclude that gain too?

Sometimes. The lot has to be next to your home, you have to have used it as part of your home, and you have to sell the house itself within 2 years before or after the lot. The two sales share one cap.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-1
  2. Case Wickersham v. Commissioner, T.C. Memo. 2011-178
  3. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-1(b)(3). If the lot sells in an earlier year than the house, the gain is reported as taxable until the house sells, and then an amended return can claim the exclusion within the refund period (Example 3). See also Wickersham, T.C. Memo. 2011-178, where a residential easement sale qualified because the rest of the property sold within two years.

More questions

Where the numbers come from

Checked

Every figure above comes from the source listed here, with the date we checked it and the date it is due for a re-check.

  • Home sale: incapacity minimum residence years
    IRC 121(d)(7) checked 2026-10-19, review by 2027-01-19
  • Home sale: ownership use test years
    IRC 121(a) checked 2026-10-19, review by 2027-01-19
  • Home sale: repeat sale lookback years
    IRC 121(b)(3) checked 2026-10-19, review by 2027-01-19
  • Home sale: vacant land window years
    Treas. Reg. 1.121-1(b)(3)(i)(C) checked 2026-10-19, review by 2027-01-19
  • Home sale exclusion: maximum gain excluded
    26 U.S.C. sec. 121(b) checked 2026-09-24, review by 2027-01-22