Section 121 Exclusion Married Filing Jointly, Explained
If you're married and selling a primary residence, the honest answer is: you can exclude up to $500,000 of gain from federal tax if both spouses meet the "use" test (2 of 5 years lived in the home), at least one spouse meets the "ownership" test (2 of 5 years on the deed), and neither has claimed the exclusion on another sale in the past 2 years.
That's it. Okoniq Property Hub keeps the ownership dates, marriage dates, and improvement records that back the claim. Here's each requirement in plain language.
Do both spouses have to be on the deed?
No — and this trips up a lot of couples. Only one spouse needs to meet the ownership test. If the house was originally in one spouse's name from before the marriage and was never re-titled, the couple can still claim the full $500,000 exclusion, provided the other requirements are met.
The use test, however, applies to both spouses. Both must have lived in the home as their principal residence for at least 24 months of the 5 years before sale. See the general Section 121 rules for any home sale for the basic framework this builds on.
Does the 2-year rule mean 24 consecutive months?
No. The 24 months can be any combination — a total, not a streak. A couple who lived in the home for 18 months, moved out for a year for a job, and came back for another 8 months would still meet the 24-month test.
The 24 months also do not have to overlap with the ownership months. One spouse could have owned the home for 3 years while both lived there for 2 — that's fine.
What if one spouse dies before the sale?
There's a special surviving-spouse rule: if you sell within 2 years of your spouse's death and you haven't remarried, you can still claim the full $500,000 exclusion (not $250,000), as long as the couple would have qualified had the sale happened before the death.
Additionally, the deceased spouse's share of the home typically gets a stepped-up basis to fair-market value at date of death — which often reduces taxable gain further. Our stepped-up basis explained with a real example walks through the numbers.
What about a divorce?
A few things change:
- If the home is transferred between spouses as part of the divorce, the transfer itself isn't a taxable event and the receiving spouse takes the other's basis.
- If one spouse continues to live in the home under a divorce decree while the other has moved out, the non-resident spouse can still count the resident spouse's occupancy toward their use test.
- Once divorced, each ex-spouse falls back to the $250,000 single-filer cap on future sales.
Keep ownership and filing records together
The Section 121 election is only as good as your paperwork: deed history, marriage certificate, dates you actually lived in the home, and receipts for improvements that raise basis. Okoniq Property Hub stores those alongside every other homeowner record so a sale doesn't become a scavenger hunt. See also the Taxes & Accounting hub and the IRS Publication 523 worked examples.
Frequently asked questions
Do both spouses have to have lived there together?
Yes. Both spouses must have used the home as their principal residence for at least 24 of the last 60 months, but those months don't have to be at the same time.
Can we take a $250K exclusion each and get $500K anyway?
Not on the same home. Section 121 gives you either $250K (single or MFJ with one qualifying spouse) or $500K (MFJ with both qualifying). You can't stack two $250K exclusions on one property.
If we sold a previous home last year, can we do it again this year?
No. The exclusion has a 2-year lookback: neither spouse can have claimed Section 121 in the 2 years before the current sale. This prevents flipping.
Not tax advice. Marriage, divorce, and death interact with Section 121 in ways that reward careful timing — confirm specifics with a licensed CPA before closing. Okoniq Property Hub helps homeowners keep the paperwork straight. Get started free.
Keep reading
Get free property tips by email
New guides on taxes, rent, and maintenance — a couple times a month. No spam, unsubscribe anytime.
Prefer to dive in? Get started free →