Skip to content
SaleGain

Section 121 Home Sale Exclusion Calculator

Enter months of ownership and main-home use in the five-year look-back ending on the sale date. See a worksheet-style maximum exclusion and checklist — not a finding that you qualify.

Educational estimate. Defaults are examples. Surviving-spouse and military suspension details are not fully automated — see Publication 523. This tool never concludes that you qualify.

What Section 121 generally does

IRC Section 121 lets many homeowners exclude gain on the sale of a main home up to $250,000, or $500,000 on a joint return when both spouses meet the use test and other joint rules in Publication 523. The classic tests ask whether you owned the home for at least two years and used it as your main home for at least two years during the five-year period ending on the date of sale. This calculator restates those month counts as a worksheet and shows a maximum exclusion figure from your inputs.

How this worksheet treats partial exclusion

If ownership or use is under 24 months, or you claim a prior exclusion inside the two-year look-back, Publication 523 describes a reduced maximum: the full cap multiplied by qualifying months divided by 24. Qualifying months are generally the shorter of ownership or use during the relevant period, capped at 24. A reduced maximum only applies when you have a qualifying reason such as a change in place of employment, health, or unforeseen circumstances as the IRS defines them. SaleGain does not evaluate your reason; it only multiplies the numbers you enter.

Worked example

Suppose a single filer owned for 36 months and used the home as a main home for 12 months in the look-back, with no prior exclusion. The tool shows a partial path with 12 qualifying months and a $125,000 maximum ($250,000 × 12/24). Whether any exclusion is available still depends on meeting a Pub 523 exception and on the rest of the return. A joint path with 24/24 months and no prior exclusion shows a $500,000 maximum under the simplified inputs.

What we deliberately leave out

Military or Foreign Service suspensions of the five-year period, deceased-spouse ownership tacking, divorce transfers and reduced exclusions for periods of nonqualified use are summarized in guides and in Publication 523 rather than hard-coded as silent defaults. Use the taxable gain calculator after you have a gain and a maximum exclusion, and read the ownership and use tests guide.

Scope and limitations

SaleGain publishes federal Section 121 worksheet arithmetic for learning. We are not a preparer, CPA, attorney, broker or the IRS. Month counts and caps on this page never constitute a finding that you qualify. Military suspensions, surviving-spouse timing and trust title need Publication 523 directly.

Filing status and the dollar caps

The $250,000 and $500,000 figures are statutory ceilings under Section 121 as described in Publication 523, not automatic refunds. Married filing separately generally uses the $250,000 path per spouse for that spouse’s interest. Confirm the Publication 523 edition that matches your labelled tax year before relying on the caps shown here.

Frequently asked questions

Does a green checklist mean I qualify?

No. It only restates your month counts and the arithmetic cap. Qualification depends on Pub 523 rules applied to your facts by you or a professional.

Which tax year should I enter?

Use the year of the sale for labelling. The $250,000 / $500,000 statutory caps shown here are the longstanding Section 121 dollar limits described in Publication 523; confirm the edition that matches your filing year.

Sources and further reading