Guides

Capital Gains Tax When Selling Your Home

Mar 16, 2026

Capital Gains Tax When Selling Your Home

Selling a primary residence is subject to a different set of tax rules than selling investment property. Most homeowners who sell their primary residence in the Washington DC metro area owe no federal capital gains tax at all, because Section 121 of the Internal Revenue Code excludes a substantial amount of gain from taxation. Understanding how this exclusion works, and how it differs from the 1031 exchange rules that apply to rental and investment property, helps homeowners plan a sale with confidence.

The Section 121 Exclusion

A single filer may exclude up to $250,000 of gain from the sale of a primary residence, and a married couple filing jointly may exclude up to $500,000, provided both spouses meet the ownership and use tests. Gain above these thresholds is taxed at standard long-term capital gains rates if the home was owned for more than one year.

The Ownership and Use Tests

To qualify for the exclusion, the seller generally must have owned and used the home as a primary residence for at least two of the five years preceding the sale. The two years do not need to be continuous, which can help a homeowner who rented out the property for a period before selling, as long as the combined qualifying use still totals two years within the five-year window.

  • Ownership test: the seller owned the home for at least two of the five years before the sale
  • Use test: the seller used the home as a primary residence for at least two of the five years before the sale
  • Frequency limit: the exclusion generally applies only once every two years for the same taxpayer
  • Partial exclusion: a reduced exclusion may be available for a sale prompted by a change in employment, health, or unforeseen circumstances even if the full two-year test is not met

This Is Not the Same as a 1031 Exchange

Section 121 applies to a personal residence. Section 1031 applies to property held for investment or business use. The two provisions serve different purposes and generally cannot both apply to the same sale of the same property in the same way, because a personal residence is not like-kind investment property under Section 1031, and investment property does not qualify for the Section 121 exclusion. A homeowner selling a house they have always lived in should look to Section 121, not a 1031 exchange.

Converted Property: When a Home Becomes a Rental

Some DC metro homeowners convert a primary residence into a rental property before selling, often when relocating for work to Northern Virginia or Maryland while keeping the District property as an income producer. In this situation, a portion of the gain may still qualify for the Section 121 exclusion if the two-of-five-year use test is met, while the remaining gain attributable to the rental period, along with any depreciation claimed, is treated as investment gain that may be eligible for a 1031 exchange instead. Combining the two provisions on a single property requires careful allocation and should be reviewed with a tax advisor before the sale closes.

District of Columbia Tax on Gain Above the Exclusion

Any gain that exceeds the federal exclusion amount is subject to both federal capital gains tax and District of Columbia income tax, since the District taxes capital gains as ordinary income under its graduated brackets, reaching 10.75 percent for taxable income above $1,000,000. A homeowner selling a highly appreciated property in a neighborhood such as Georgetown or Chevy Chase should confirm whether the sale price is likely to exceed the exclusion amount well before listing the property.

Documentation to Keep for the Sale

Homeowners should retain records of the original purchase price, closing costs, and any capital improvements made over the years, since these figures increase the adjusted basis and reduce the taxable gain. Improvements that add value, prolong the useful life of the home, or adapt it to new uses generally qualify, while routine repairs and maintenance generally do not.

Maryland and Virginia Homeowners

The Section 121 exclusion is a federal provision and applies the same way regardless of whether the home is located in the District, Maryland, or Virginia. Both Maryland and Virginia generally follow the federal exclusion for state income tax purposes, though any gain above the federal exclusion amount is still subject to state tax under each jurisdiction graduated bracket system.

Frequently Asked Questions

Can a homeowner use the Section 121 exclusion more than once?

Generally the exclusion applies once every two years for the same taxpayer. A homeowner who used the exclusion on a prior sale within the last two years generally cannot use it again on a new sale until that two-year period has passed.

Does selling a primary residence ever involve a qualified intermediary?

No. A qualified intermediary is required for a 1031 exchange of investment property. A primary residence sale relying on the Section 121 exclusion does not use a qualified intermediary or the 1031 exchange process.

What happens if the gain on a home sale exceeds the exclusion amount?

The gain above the exclusion threshold is taxed as long-term capital gain at the federal level, provided the home was owned for more than one year, and is also subject to District, Maryland, or Virginia income tax depending on where the property is located.

This article provides educational content only. It does not constitute tax, legal, or investment advice. Section 1031 defers federal income tax on qualifying real property and does not remove Washington DC transfer or recordation tax obligations. Consult a qualified tax advisor or attorney before acting on any exchange timeline.

Need tailored 1031 exchange guidance?

We cover transfer taxes, replacement property sourcing, and compliance for the Washington DC region.

Contact the Team