Home Sale Capital Gains Exclusion
The home sale capital gains exclusion (Internal Revenue Code Section 121) permits homeowners who have owned and lived in a primary residence for at least two of the prior five years to exclude up to $250,000 of capital gain from federal income tax, or $500,000 for married couples filing jointly.
For the tax deduction on interest paid during ownership, see Mortgage Interest Deduction.
How the exclusion works and who qualifies
The exclusion is extraordinarily broad. Any taxpayer—whether a first-time buyer or a seasoned investor in their personal residence—can claim it once every two years. A married couple who have lived together in the home and file jointly can exclude $500,000; married individuals filing separately can exclude $250,000 each (though only if they meet the ownership and use tests separately). Single filers and unmarried taxpayers get $250,000.
To qualify, the taxpayer must satisfy two tests simultaneously: they must have owned the home for at least two of the five years before the sale, and they must have used it as their principal residence for at least two of those five years. These tests do not require the two years to be consecutive. A homeowner who buys a house, rents it out for one year, moves back in for two years, and then sells still qualifies, because the two-year use requirement is met within the five-year window.
The exclusion applies to the realized gain, calculated as the sale price minus the cost basis minus allowable selling costs. Cost basis is the original purchase price plus the cost of major capital improvements (a new roof, HVAC system, or addition), minus depreciation taken on the property if it was ever rented out or used as a business. Selling costs—realtor commissions, title insurance, legal fees—reduce the proceeds and thus the gain. For most homeowners, the gain is the sale price minus the purchase price, adjusted for improvements.
The two-year frequency rule
The exclusion can be claimed once every two years per individual. A homeowner who sells a house at a $300,000 gain, excludes all of it, and buys another house cannot claim the exclusion again until two years have passed. This prevents taxpayers from serial home sales that would otherwise mushroom into multiple quarter-million-dollar exclusions.
However, a narrow exception exists for homeowners who change jobs or experience unforeseen circumstances. If a taxpayer sells after owning and living in a home for less than two years due to a job relocation, health crisis, or other unforeseen event, the exclusion can be claimed proportionally. A taxpayer who owns and uses a home for one year before a qualifying event (such as a military relocation) can exclude $125,000 (half of the $250,000 limit for single filers), even though they fall short of the full two-year test. The specific unforeseen circumstances are defined in the tax code and interpreted by the IRS; relocation for a job change generally qualifies, while an ordinary desire to move does not.
Contrast with investment property and the depreciation recapture rule
The exclusion applies only to primary residences. A homeowner who rents out part of a home (such as an accessory dwelling unit or a room) may jeopardize part or all of the exclusion, depending on the proportion rented and the period of rental. A second home, rental property, or investment real estate does not qualify; all gain is taxable.
A complication arises when a homeowner has claimed depreciation deductions (losses taken against rental income) on part or all of the property. Under depreciation recapture, the homeowner must recapture (restate as taxable income) all depreciation previously deducted when the property is sold. The Section 121 exclusion does not protect depreciation recapture; that portion of the gain is taxed separately, often at the 25% recapture rate. A homeowner who rented a house for three years and then lived in it for two years before selling would lose most or all of the exclusion for the rental period because depreciation recapture and partial loss of the exclusion would apply.
Wealth-building and the capital gains advantage
The exclusion is among the most valuable and widely used tax provisions in the code. For a homeowner who buys a house for $400,000 and sells it thirty years later for $1,200,000, the $800,000 gain is entirely excluded from federal tax (assuming single filer status and no depreciation recapture). The comparable investor in the stock market who realized the same $800,000 gain would owe capital gains tax on the entire amount—potentially $120,000 or more at 15% or 20% rates, depending on tax bracket.
This disparity has made homeownership an exceptionally tax-advantaged wealth-building tool, especially in appreciating markets. Economists sometimes point to the exclusion as a policy that encourages home buying and equity accumulation, while others note that it primarily benefits high-income earners in high-appreciation markets and provides little benefit to homeowners in stagnant or declining markets.
Interaction with other tax rules
The exclusion applies to ordinary capital gains, but not to taxes assessed at the state level. Many states impose capital gains taxes or include home sale gains in ordinary income taxation; the Section 121 exclusion applies to federal tax only. A homeowner in California or New York State excluding $500,000 of federal gain must still pay state tax on the gain, reducing the net benefit.
The exclusion also does not interact with the mortgage interest deduction, which reduces taxable income during ownership years. Both benefits stand independently: the homeowner deducts mortgage interest annually while living in the home, and then excludes capital gains when selling.
Recent changes and legislative landscape
The Section 121 exclusion has been substantially unchanged since 1997, though various legislative proposals have floated from time to time. Some policymakers have proposed raising the thresholds (e.g., to $750,000 or $1,000,000 for high-income earners), while others have suggested means-testing or partial phase-outs for wealthy sellers. The current code shows no sunset or expiration date, suggesting permanence, though future Congresses could alter it. In the meantime, the exclusion remains one of the few unambiguous tax gifts to middle-class and upper-middle-class homeowners.
See also
Closely related
- Mortgage Interest Deduction — federal tax deduction for interest on up to $750,000 of qualifying home debt
- Property Tax Assessment — local valuation of homes for annual property tax calculation
- Debt-to-Income Ratio in Mortgage Lending — lender assessment of borrower repayment capacity
- Cost Basis — original purchase price plus improvements, used to calculate capital gain on sale
- Capital Gains Tax (Investor) — federal tax on profits from selling assets
- Depreciation Recapture (Investor) — restatement of claimed depreciation as taxable income upon asset sale
Wider context
- Fixed-Rate Mortgage (Personal) — standard home loan with a constant interest rate
- Residential Real Estate — dwellings occupied as primary homes or investment properties
- Marginal Tax Rate (Investor) — the tax rate applied to the next dollar of income
- Long-Term Capital Gains Tax — preferential tax rate on assets held over one year
- Budgeting Methods — systematic approaches to planning income and expense allocation