Section 121 primary residence exclusion capital gains exemption
Back to Education
Tax Strategy

Section 121 Primary Residence Exclusion: Capital Gains Exemption Guide

How homeowners can exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains on the sale of a primary residence under IRC Section 121.

Thomas Wall
By Thomas WallPartner at Anchor1031

Key Takeaway

Section 121 of the Internal Revenue Code is designed to allow eligible homeowners to potentially exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains when selling a primary residence. Unlike a 1031 exchange, which defers taxes, the Section 121 exclusion may allow qualifying gain to be excluded from federal income tax — generally without the need to reinvest proceeds. The key requirements are owning and using the property as a principal residence for at least two of the five years before the sale.

This article is for educational purposes only and does not constitute tax or legal advice. Tax laws are complex and subject to change. Consult a qualified tax professional for advice specific to your situation.

What Is the Section 121 Capital Gains Exemption?

Section 121 of the Internal Revenue Code is designed to allow eligible homeowners to exclude a significant portion of capital gains when selling a primary residence. Single filers may exclude up to $250,000 of gain, and married couples filing jointly may exclude up to $500,000. The gain that falls within these limits is generally not subject to federal income tax.

This provision traces back to the Taxpayer Relief Act of 1997, which took effect on May 6, 1997. Before that date, homeowners relied on two less flexible mechanisms. Section 1034 allowed sellers to defer capital gains by rolling the proceeds into a replacement home of equal or greater value, requiring taxpayers to track basis adjustments across multiple sales over a lifetime. A separate provision offered a one-time exclusion of up to $125,000, but only to taxpayers age 55 or older. The 1997 law replaced both rules with the current Section 121 framework, which removed age restrictions, increased the exclusion amounts, and allowed repeated use.

For real estate investors who own a primary residence alongside investment properties, this capital gains exemption is widely regarded as one of the more significant tax provisions in the Internal Revenue Code. Understanding how it works, and how it interacts with other provisions like the 1031 exchange, can be important for sound tax planning. For a broader view of available strategies, see our real estate tax strategies guide.

The Section 121 exclusion is sometimes confused with the old “one-time capital gains exemption for seniors,” which no longer exists. The current provision is available to homeowners of any age who meet the eligibility requirements described below. It applies broadly to capital gains on a home sale, regardless of the seller’s age or whether it is their first time using the exclusion.

The 2-of-5-Year Eligibility Tests

Qualifying for the Section 121 exclusion generally requires meeting three tests, commonly known as the 2 out of 5 year rule. Each test is measured against the five-year period ending on the date of sale. A taxpayer who satisfies all three may potentially claim the primary residence capital gains exclusion on the gain from that sale.

The Ownership Test. The taxpayer is generally required to have owned the property for at least two of the five years preceding the sale. The two years do not need to be consecutive. For married couples filing jointly, only one spouse typically needs to satisfy the ownership test.

The Use Test. The taxpayer is generally required to have used the property as a principal residence for at least two of the five years preceding the sale. This amounts to 730 days, which can be accumulated in separate intervals rather than one continuous stretch. For married couples filing jointly, both spouses are generally required to independently meet the use test to potentially claim the full $500,000 exclusion. If only one spouse meets the use test, the couple is generally limited to the $250,000 individual exclusion amount.

The Look-Back Test. Under current law, a taxpayer generally may not claim a Section 121 exclusion if the exclusion was used on the sale of another home within the two years immediately preceding the current sale. This is designed to prevent repeated use of the exclusion on multiple sales in rapid succession.

One important clarification: the ownership and use periods do not need to overlap. A taxpayer could own a property for the first two years of the five-year window, then rent it out, and later move back in for the final two years. Both the ownership and use tests would be satisfied despite the gap.

The IRS applies several factors to determine whether a property qualifies as a principal residence. These include voter registration address, the address used on tax returns, mailing address, the location of banks and other financial institutions used by the taxpayer, and proximity to the taxpayer’s place of employment. The property where the taxpayer spends the majority of time during the year generally qualifies as the principal residence.

How the $250,000 / $500,000 Exclusion Works

The Section 121 exclusion operates by reducing the taxable capital gains on a home sale on a dollar-for-dollar basis, up to the applicable limit. Understanding how to calculate the gain is the first step.

Calculating the gain. Start with the sale price and subtract selling expenses (commissions, transfer taxes, and other closing costs) to arrive at the amount realized. Then subtract the adjusted basis, which is the original purchase price plus the cost of qualifying capital improvements made during ownership. The difference is the capital gain.

Applying the exclusion. The exclusion reduces the taxable portion of that gain. Any gain within the exclusion limit is generally not subject to federal income tax. Any gain above the limit may be subject to federal capital gains tax at rates of up to 20%, depending on the taxpayer’s income bracket. High-income taxpayers may also potentially owe the 3.8% net investment income tax (NIIT) if their modified adjusted gross income exceeds $250,000 (married filing jointly) or $200,000 (single filers). For more on how capital gains on a home sale or investment property are taxed, see how to avoid capital gains tax on rental property.

Section 121 Exclusion Examples (Hypothetical)

The following examples are hypothetical illustrations. Actual results depend on individual circumstances.

Example 1. A married couple sells their primary residence for $750,000. Their adjusted basis is $350,000. The capital gain is $400,000. Because this falls under the $500,000 married filing jointly limit, the entire gain would generally be excluded and no federal capital gains tax would be owed in this hypothetical scenario.

Example 2. A single filer sells for $650,000 with an adjusted basis of $250,000, producing a $400,000 gain. The Section 121 exclusion covers $250,000, leaving $150,000 subject to capital gains tax.

Example 3. A married couple sells for $1,200,000 with an adjusted basis of $500,000. The $700,000 gain exceeds the $500,000 exclusion by $200,000. That $200,000 is taxable at the applicable capital gains rate.

Frequency of use. There is no lifetime limit on the number of times a taxpayer may claim the Section 121 exclusion under current law. The only general restriction is the two-year look-back: a taxpayer generally may not claim the exclusion if it was used on a different home sale within the prior two years.

Depreciation recapture. Any depreciation deductions claimed on the property after May 6, 1997 (for example, during a period of rental use) are generally subject to recapture and may be taxed at a rate of up to 25%. Depreciation recapture is generally not eligible for exclusion under Section 121. This is a common point of confusion for homeowners who previously rented out their property.

Partial Exclusion: When You Don’t Meet the Full Requirements

Taxpayers who sell before satisfying the full two-year ownership or use requirement may potentially qualify for a prorated partial exclusion under IRC Section 121(c). This generally applies when the sale is driven by specific qualifying events.

Qualifying reasons for a partial exclusion include a change in the taxpayer’s place of employment (such as a job transfer or new position that requires relocation), health reasons (a move recommended by a physician), and unforeseen circumstances. The IRS defines unforeseen circumstances broadly, encompassing events such as divorce or legal separation, death of a household member, loss of employment that made the taxpayer eligible for unemployment compensation, damage to the property from a natural disaster or other casualty, and multiple births from the same pregnancy resulting in the need for a larger home.

The IRS has established safe harbors for the employment and health categories. For employment changes, the new workplace is generally required to be at least 50 miles farther from the home than the old workplace was. For health moves, documentation from a physician is typically expected. However, even without meeting a safe harbor, a taxpayer may still potentially qualify if they can demonstrate that the primary reason for the sale was one of the qualifying categories.

Calculating the partial exclusion. The formula divides the number of qualifying months of ownership or use (whichever is shorter) by 24, then multiplies the result by the maximum exclusion amount.

For example, in a hypothetical scenario, a single taxpayer who lived in the home for 12 months before relocating for a new job would calculate: 12 divided by 24, multiplied by $250,000. The resulting partial exclusion would be $125,000.

Military service exception. Members of the uniformed services, the Foreign Service, and the intelligence community receive an additional accommodation. These taxpayers may elect to suspend the running of the five-year test period during any period of qualified official extended duty, for up to 10 additional years. This effectively extends the look-back window from 5 years to as many as 15 years, making it easier for service members to meet the use requirement after deployments or reassignments.

Special Situations: Multi-Unit and Mixed-Use Properties

Multi-Unit and Mixed-Use Properties

When a property serves both as a primary residence and as a rental or business space, the gain is generally required to be allocated between the two uses. The residential portion may potentially qualify for the Section 121 exclusion, while the rental or business portion may be subject to capital gains tax and depreciation recapture. The allocation is typically based on square footage or fair market value of each portion.

Converting Investment Property to a Primary Residence

Real estate investors sometimes consider converting an investment property into a primary residence to access the Section 121 exclusion. The general approach involves moving into the property, using it as a principal residence for at least two of the five years before the sale, and then potentially claiming the exclusion on all or part of the qualifying gain.

This approach can work, but several important limitations apply.

The Five-Year Rule for 1031 Exchange Properties

If the property was originally acquired through a 1031 exchange, the taxpayer is generally required to own it for at least five years before the Section 121 exclusion becomes available. This rule, found in IRC Section 121(d)(10), prevents investors from quickly cycling 1031 exchange properties into primary residences to convert deferred gains into excluded gains.

Non-Qualified Use Periods

Under IRC Section 121(b)(5), gains allocable to periods of “non-qualified use” are generally not eligible for exclusion. Non-qualified use refers to any period during ownership when the property was not used as the taxpayer’s principal residence, with one important exception: time after the last date the property was used as a principal residence does not generally count as non-qualified use.

The allocation uses a straightforward formula: total gain multiplied by the ratio of non-qualified use months to total ownership months. For example, in a hypothetical scenario where a property was owned for 96 months and used as a rental for the first 72 months before conversion to a primary residence, the non-qualified use ratio would be 72/96 (75%). That percentage of the total gain would be ineligible for the Section 121 exclusion. Only non-qualified use periods occurring after January 1, 2009 are counted under this rule, per the Housing and Economic Recovery Act of 2008.

Depreciation recapture still applies. Regardless of the Section 121 exclusion, any depreciation deductions taken after May 6, 1997 are generally subject to recapture and may be taxed at up to 25%. This recapture is generally not eligible for exclusion under Section 121.

Combining Section 121 with a 1031 exchange. In some cases, an investor may potentially be able to use the Section 121 exclusion to reduce a portion of the taxable gain and then use a 1031 exchange to defer the remaining gain attributable to the non-residential portion of the property. This is a complex strategy that requires careful planning and professional guidance. For more detail, read about using a 1031 exchange with a primary residence.

Section 121 vs 1031 Exchange: Key Differences

Both Section 121 and the 1031 exchange offer significant tax benefits for property owners, but they serve different purposes and apply to different types of properties. The following comparison highlights the key distinctions.

FeatureSection 121 Exclusion1031 Exchange
Property typePrimary residence onlyInvestment or business property only
Tax benefitMay potentially exclude qualifying gain from federal income taxDefers gain (tax-deferred)
Maximum benefit$250,000 (single) / $500,000 (married)No dollar limit
Holding requirement2 of 5 years as primary residenceHeld for investment or business use
Replacement property requiredNoYes, generally required to acquire like-kind property
Timeline pressureNone45-day identification + 180-day closing
FrequencyOnce every 2 yearsUnlimited
Depreciation recaptureGenerally subject to recapture (not eligible for exclusion)Deferred along with capital gains
Common use caseHomeowners selling a primary residenceInvestors redeploying into new properties

Section 121 is generally more straightforward: a qualifying homeowner may potentially sell a primary residence and exclude the gain up to the applicable limit, with no requirement to reinvest the proceeds. The 1031 exchange requires reinvesting into another qualifying property within strict timelines, but offers the advantage of unlimited deferral with no cap on the gain amount.

These two provisions can be combined under specific circumstances, as discussed in the section on converting investment property to a primary residence. For investors evaluating their options, the decision often comes down to whether the priority is potential exclusion of a limited amount of gain from federal income tax (Section 121) or indefinite deferral on an unlimited amount (1031 exchange). Many investors benefit from understanding both tools as part of a broader real estate tax strategy. For a comprehensive overview of the exchange process, see the complete guide to 1031 exchanges.

Reporting Requirements and Common Mistakes

Understanding the reporting obligations for a home sale is important, even when the full gain may potentially qualify for the capital gains exclusion under Section 121.

When Reporting Is Not Required

If the entire gain from the sale qualifies for exclusion under Section 121 and the taxpayer did not receive a Form 1099-S (Proceeds From Real Estate Transactions), reporting the sale on a federal tax return is generally not required under current IRS guidance — though individual circumstances may vary.

When Reporting Is Required

A taxpayer is generally required to report the sale if they received a Form 1099-S, if any portion of the gain exceeds the exclusion amount, or if depreciation recapture applies. The sale is typically reported on Form 8949 (Sales and Other Dispositions of Capital Assets) and Schedule D of Form 1040. Even when the full gain may be excluded, receiving a Form 1099-S generally triggers a reporting obligation.

Automatic Disqualification

Under IRC Section 121(d)(10), selling a property that was acquired through a 1031 exchange within the preceding five years generally disqualifies the taxpayer from claiming the Section 121 exclusion.

Common Mistakes Investors Should Avoid

  • Assuming the exclusion applies to rental or investment property without first converting it to a primary residence and meeting the use test
  • Forgetting that depreciation recapture cannot be excluded under Section 121
  • Failing to maintain records of capital improvements that increase the property’s adjusted basis
  • Attempting to claim the exclusion more than once within a two-year period
  • Miscounting the days of residency needed to satisfy the 2-of-5-year requirement

Maximizing the Section 121 Benefit

The Section 121 primary residence exclusion is commonly cited as one of the more significant tax provisions available to property owners. Under current law, up to $250,000 in capital gains (or $500,000 for married couples filing jointly) may potentially be excluded from federal income tax when a qualifying homeowner sells a principal residence.

Key factors generally worth understanding include: satisfying the ownership and use tests, maintaining thorough records of improvements and basis adjustments, the partial exclusion rules for unexpected life changes, and how Section 121 interacts with 1031 exchanges and other real estate tax strategies. A qualified tax professional can help evaluate which factors apply to a specific situation.

For investors who hold both a primary residence and investment properties, these two provisions work together as complementary tools. Section 121 addresses the personal residence; the 1031 exchange addresses the investment portfolio. Understanding both can be important for informed decision-making.

Investors who may qualify for both a Section 121 exclusion and a 1031 exchange should work with a qualified tax professional to evaluate how these provisions interact. Anchor1031 has completed over 300 1031 transactions and can help with the exchange side — connecting you with pre-vetted replacement properties through our DST marketplace. Schedule a consultation to discuss the 1031 exchange component of your strategy.

Consult a qualified tax professional before making any decisions based on the information in this article. Tax laws are complex and individual circumstances vary.

Frequently Asked Questions

Can you get a partial exclusion if you lived in your home less than 2 years?

Yes, taxpayers who sell before meeting the full two-year ownership or use requirement may potentially qualify for a prorated partial exclusion under IRC Section 121(c). The sale is generally required to be driven by a qualifying event such as a job relocation, health reasons, or unforeseen circumstances like divorce or natural disaster. The partial exclusion is calculated by dividing the number of qualifying months by 24, then multiplying by the maximum exclusion amount ($250,000 for single filers or $500,000 for married filing jointly). As a hypothetical example, a single filer who lived in the home for 12 months before relocating for a new job might potentially claim a $125,000 partial exclusion — actual results vary based on individual circumstances. Consult a qualified CPA to determine whether a specific situation qualifies.

How many times can you use the Section 121 exclusion?

There is no lifetime limit on the number of times a taxpayer can claim the Section 121 exclusion. The only restriction is the two-year look-back test: a taxpayer generally may not claim the exclusion if it was used on a different home sale within the prior two years. This means a homeowner who meets the ownership and use tests could potentially use the exclusion every two years over a lifetime. However, each sale is generally required to independently satisfy all three eligibility tests (ownership, use, and look-back). Consult a qualified tax professional to confirm eligibility before relying on repeated use of the exclusion.

How does Section 121 interact with a 1031 exchange?

Section 121 and 1031 exchanges serve different purposes but can sometimes be combined. If a property was acquired through a 1031 exchange, the taxpayer is generally required to own it for at least five years before the Section 121 exclusion may become available under IRC Section 121(d)(10). For properties that served as both a primary residence and an investment, an investor may potentially be able to use Section 121 to reduce a portion of the taxable gain and then use a 1031 exchange to defer the remaining gain attributable to the non-residential portion. This is a complex strategy that requires careful planning, and gains allocable to non-qualified use periods are generally not eligible for exclusion under Section 121. Consult a qualified tax professional before attempting to combine these two provisions.

Summary: The Section 121 Exclusion at a Glance

Section 121 may potentially allow eligible homeowners to exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains on the sale of a qualifying primary residence from federal income tax. The key requirements generally include owning and using the home as a principal residence for at least two of the five years before the sale, and not having claimed the exclusion on another home within the prior two years.

For real estate investors, Section 121 and the 1031 exchange serve as complementary tools: one addresses the personal residence, the other addresses the investment portfolio. Understanding both provisions can be valuable for informed tax planning.

Thomas Wall

About the Author

Thomas Wall, Partner

Thomas Wall is a Partner at Anchor1031, where he specializes in educating clients about 1031 exchanges, private real estate offerings, and REITs. With nearly a decade of experience in alternative investments and real estate, Mr. Wall has helped investors through hundreds of 1031 exchanges, placing over $230M of equity into real estate.

Related Articles

Complete Guide to 1031 Exchanges

Everything investors need to know about using a 1031 exchange to defer capital gains taxes on investment property sales.

How to Avoid Capital Gains Tax on Rental Property

Six legal strategies investors use to defer or reduce capital gains taxes when selling rental or investment property.

Real Estate Tax Strategies Guide

A comprehensive overview of tax strategies available to real estate investors, including Section 121, 1031 exchanges, and more.

Ready to Explore Your Options?

Whether you are selling a primary residence, an investment property, or both, our team can help you understand the tax strategies available to you.

Disclosure

Tax Complexity and Investment Risk

Tax laws and regulations, including but not limited to Internal Revenue Code Section 1031, bonus depreciation rules, cost segregation studies, and other tax strategies, contain complex concepts that may vary depending on individual circumstances. Tax consequences related to real estate investments, depreciation benefits, and other tax strategies discussed herein may vary significantly based on each investor's specific situation and current tax legislation. Anchor1031, LLC and Great Point Capital, LLC make no representation or warranty of any kind with respect to the tax consequences of your investment or that the IRS will not challenge any such treatment. You should consult with and rely on your own tax advisor about all tax aspects with respect to your particular circumstances. Please note that Anchor1031 and Great Point Capital, LLC do not provide tax advice.

Anchor1031

The information contained in this article is for general educational purposes only and does not constitute legal, tax, investment, or financial advice. This content is not a recommendation or offer to buy or sell securities. The content is provided as general information and should not be relied upon as a substitute for professional consultation with qualified legal, tax, or financial advisors.

Tax laws, regulations, and IRS guidance regarding 1031 exchanges, opportunity zone investments, and related real estate strategies are complex and subject to change. Information herein may include forward-looking statements, hypothetical information, calculations, or financial estimates that are inherently uncertain. Past performance is never indicative of future performance. The information presented may not reflect the most current legal developments, regulatory changes, or interpretations. Individual circumstances vary significantly, and strategies that may be appropriate for one investor may not be suitable for another.

All real estate investments, including 1031 exchanges and opportunity zone investments, are speculative and involve substantial risk. There can be no assurance that any investor will not suffer significant losses, and a loss of part or all of the principal value may occur. Before making any investment decisions or implementing any 1031 exchange strategies, readers should consult with their own qualified legal, tax, and financial professionals who can provide advice tailored to their specific circumstances. Prospective investors should not proceed unless they can readily bear the consequences of potential losses.

While the author is a partner at Anchor1031, the views expressed are educational in nature and do not guarantee any particular outcome or create any obligations on behalf of the firm or author. Neither Anchor1031 nor the author assumes any liability for actions taken based on the information provided herein.