Refresher on the Home-Sale Gain Exclusion Tax Break

Ashley M. Stern - CPA, CGFM®

Ashley joined PKS in 2007 as an intern and became full time upon finishing her MBA in 2009. She is originally from Salisbury and loves living on the Eastern Shore. Outside of work, Ashley enjoys spending time with her family and friends. Ashley and her family enjoy going to the beach, the zoo, and spending time at Salisbury University.

In many areas, residential real estate markets have surged, and some are still surging. In these sellers’ markets, big home-sale gains are likely. That’s great news if you’re a seller — but will you owe taxes on the profit?

If you sell your principal residence for a large profit, you can potentially exclude tax (pay no federal income tax) on a certain amount of profit. Here are the basics of how to take advantage of this tax-saving opportunity.

Gain Exclusion Qualification Rules

Single taxpayers can exclude home-sale gains up to $250,000, and married joint-filing couples can exclude up to $500,000. However, you must pass the following tests to be eligible:

1. Ownership test. You must have owned the property for at least two years during the five-year period ending on the sale date. Two years means periods aggregating 24 months or 730 days.

2. Use test. You must have used the property as your principal residence for at least two years during the same five-year period. (See “What Counts as a Principal Residence?” at right.)

Periods of ownership and use don’t need to overlap. For example, you could rent a home and use it as your principal residence for Years 1 and 2, and then buy it and rent it out to others for Years 3 and 4. If you then sell the property in Year 5, you’d pass both the ownership and use tests and qualify for the gain exclusion privilege.

Important: To qualify for the larger $500,000 joint-filer exclusion, at least one spouse must pass the ownership test and both spouses must pass the use test.

Anti-Recycling Rule

There’s another qualification rule for the home-sale gain exclusion privilege: It’s generally available only if you haven’t excluded a gain from any earlier sale occurring within the two-year period ending on the date of the later sale. In other words, the gain exclusion privilege generally can’t be “recycled” until two years have passed since you used it last. For married couples, the larger $500,000 joint-filer exclusion is only available when neither spouse excluded a gain from an earlier sale within the two-year period.

For example, suppose you sold your previous principal residence on July 1, 2020, and excluded the gain. Before selling that home, you purchased another property and began using it as your new principal residence on January 1, 2020 (six months earlier). You plan to sell the second principal residence for a big profit in March 2022, mistakenly assuming you’ll qualify for the gain exclusion break on that sale, too.

Why is that assumption wrong? While you’d pass the ownership and use tests, the March 2022 sale date would run afoul of the anti-recycling rule, because it’s within two years of the July 2020 sale. Therefore, you’d be ineligible to exclude any gain from the 2022 sale. However, if you can wait until July 2022 to sell your current principal residence, you can claim the gain exclusion break for that sale.

Alternatively, if you can’t wait that long to sell your current principal residence and the profit from that sale is bigger than the profit from the 2020 sale, you can amend your 2020 tax return. On the amended 2020 return, you could forego the gain exclusion break and, instead, report the profit from the 2020 sale as a taxable gain. Then you can claim the gain exclusion break for the more-profitable 2022 sale.

Net Investment Income Tax

Does the 3.8% net investment income tax (NIIT) apply to home sales? If you sell your main home, and you qualify to exclude up to $250,000/$500,000 of gain, the excluded gain isn’t subject to the NIIT.

However, gain that exceeds the exclusion limit is subject to the tax if your income is over a certain amount. The NIIT applies only if your modified adjusted gross income (MAGI) exceeds:

  • $250,000 for married taxpayers filing jointly and surviving spouses,
  • $125,000 for married taxpayers filing separately, and
  • $200,000 for unmarried taxpayers and heads of household.

Gain from the sale of a vacation home or other second residence, which doesn’t qualify for the exclusion, is also subject to the NIIT.

Contact a Pro

For many homeowners these days, the federal home-sale gain exclusion deal is one of the most valuable personal income tax breaks on the books. But there are numerous rules and restrictions. Your tax professional can help you cash in. As with any major financial transaction, you should consider the federal income tax consequences before closing on a home sale.


PKS & Company, P. A. is a full service accounting firm with offices in Salisbury, Ocean City and Lewes that provides traditional accounting services as well as specialized services in the areas of retirement plan audits and administration, medical practice consulting, estate and trust services, fraud and forensic services and payroll services and offers financial planning and investments through PKS Investment Advisors, LLC.

© Copyright 2021. All rights reserved.
Brought to you by: PKS & Company, P.A.

Get Updates From PKS & Company, P.A.

Enter your email address to get our monthly newsletter and important updates regarding financial advice, tax code changes and more. 





Important Things to Know about 529 College Savings Account Withdrawals

Have you set up Section 529 college savings plans for your children or grandchildren? The major advantage of 529 plans is that qualified withdrawals a
Read Full Article



Elder Scams: Don’t Take the Bait

Today, virtually everyone is vulnerable to fraud schemes, from teenagers searching social media to middle-aged people making online purchases and s
Read Full Article



New Requirements for Long-Term, Part-Time Employees

For years, 401(k) plans have been able to follow the ERISA statutory provision that permits excluding employees who work less than 1,000 hours per y
Read Full Article