Capital Gains Tax on Selling Your Home in DC, MD, and VA: The Section 121 Exclusion Explained
If you're selling a home you've lived in for years, you probably won't owe federal taxes on the profit. A provision called the Section 121 exclusion can shield up to $250,000 for single filers and $500,000 for married couples — but the rules matter, the limits haven't changed since 1997, and DC, Maryland, and Virginia each add their own layer.
This article is a general educational resource, not tax or legal advice. Consult a CPA or tax attorney before making decisions about your home sale.
You've owned your home for years. Maybe you bought in Bethesda or Spring Valley when prices were a fraction of what they are now. Renovations are done, the market is strong, and you're ready to sell. Then someone mentions capital gains tax — and suddenly the number that felt like pure profit has a federal claim on it.
The good news: most homeowners who sell a primary residence in our market owe nothing on the gain. The provision that makes this possible is Section 121 of the Internal Revenue Code — a rule that excludes up to $250,000 of profit from taxable income for single filers, or up to $500,000 for married couples filing jointly. It's not a deferral (that's a 1031 exchange). It's an exclusion. The gain simply doesn't count as income.
But the exclusion has requirements, limits, and complications — especially in the DC metro area, where long holding periods and significant appreciation mean more sellers are bumping up against the thresholds than ever before. And if your gain exceeds the federal exclusion, DC, Maryland, and Virginia each tax capital gains as ordinary income, with rates that can push the combined bill well above 30%.
This article walks through who qualifies, how the math works, what's different in each jurisdiction, and what might change if Congress updates the limits for the first time in nearly 30 years.
Here's how the Section 121 exclusion works — and what sellers in DC, Maryland, and Virginia need to know.
What Is the Section 121 Home Sale Exclusion?
Section 121 is the part of the federal tax code that lets homeowners exclude a significant portion of the profit from selling their primary residence. If you meet the qualifying tests, the first $250,000 of gain (or $500,000 for married couples filing jointly) is completely excluded from your taxable income. Not deducted. Not deferred. Excluded — as if the gain never happened.
The provision was established by the Taxpayer Relief Act of 1997, replacing two older rules: a one-time $125,000 exclusion for homeowners over 55, and a rollover provision that required you to buy a more expensive replacement home within two years. Section 121 simplified both into a single, repeatable benefit with no age requirement and no reinvestment obligation.
Unlike the old rules, you don't have to buy another home to claim the exclusion. You can sell, pocket the proceeds, rent an apartment, move across the country, or do whatever you want with the money. The only requirements are about how long you owned and lived in the property.
One critical detail: the $250,000 and $500,000 limits have never been adjusted for inflation. They've been fixed since 1997. In nearly three decades, the median home price in the U.S. has more than doubled. In high-appreciation markets like Northwest DC, Bethesda, and Potomac, it's not uncommon for long-time homeowners to have gains that approach or exceed the exclusion — a situation that was rare when the law was written.
Section 121 covers your primary residence. If you own investment or rental property, the applicable provision is Section 1031, which allows tax-deferred exchanges into like-kind property. The two provisions serve different purposes and cannot be used interchangeably.
Do You Qualify? The Ownership and Use Tests
To claim the full exclusion, you must pass three tests. All three are evaluated against the five-year period ending on the date of the sale.
The Ownership Test. You must have owned the home for at least two years (24 months or 730 days) during the five years leading up to the sale. For married couples filing jointly, only one spouse needs to meet this test.
The Use Test. You must have lived in the home as your primary residence for at least two of those five years. The two years don't have to be consecutive — the IRS allows you to aggregate your time. You could live in the home for 12 months, rent it out for two years, move back in for 12 months, and still qualify. Both spouses must individually meet the use test to claim the $500,000 joint exclusion.
The Look-Back Test. You cannot have used the Section 121 exclusion on the sale of another home within the two years before this sale. This limits the benefit to once every two years — but there's no lifetime cap. You can use it repeatedly throughout your life.
The IRS determines your primary residence based on facts and circumstances: where you vote, where your driver's license is registered, where your mail is delivered, which address appears on your tax returns, and where you spend the majority of your time. If you own multiple homes, only one qualifies as your primary residence at any given time.
What if you don't meet the full two years? You may qualify for a partial exclusion if the sale was driven by a change in employment (generally 50+ miles), a health condition, or unforeseen circumstances such as divorce, death of a spouse, job loss, or natural disaster. The partial exclusion is calculated proportionally — if you lived in the home for 12 of the required 24 months, you can exclude up to half the maximum amount.
If you acquired the property through a 1031 exchange, a special rule applies: you must hold it for at least five years before the Section 121 exclusion becomes available on any portion of the gain. This prevents investors from quickly converting exchange property into a tax-free personal residence sale.
How to Calculate Capital Gains on Your Home Sale
Your taxable gain isn't simply the sale price minus what you paid. The IRS uses a specific formula, and every step matters because each one either raises or lowers the number the exclusion is applied against.
Step 1: Calculate your amount realized. Start with the sale price, then subtract your selling expenses: agent compensation, title insurance, transfer taxes, escrow fees, and any other closing costs you paid. The result is your amount realized.
Step 2: Calculate your adjusted basis. Start with what you originally paid for the home, including purchase closing costs. Then add the cost of any capital improvements — a new roof, a kitchen renovation, an addition, HVAC replacement, permanent landscaping. These raise your basis and reduce your taxable gain. Routine maintenance (painting, fixing a leaky faucet) does not count. Subtract any depreciation you claimed if you ever used part of the home for business or rental.
Step 3: Subtract basis from amount realized. The difference is your capital gain.
Step 4: Apply the Section 121 exclusion. If the gain is below $250,000 (single) or $500,000 (married filing jointly) and you meet the qualifying tests, the entire gain is excluded. If the gain exceeds the exclusion, only the excess is taxable.
Worked example. A married couple selling a home in Chevy Chase DC:
Keep records of every capital improvement: contracts, invoices, permits, before-and-after photos. If the IRS questions your basis, documentation is your only defense. Start a file when you buy the home, not when you decide to sell.
How to Avoid Capital Gains Tax When Selling Your Home
For the vast majority of primary residence sellers in the DC metro area, the Section 121 exclusion handles everything. But the strategies that protect you aren't complicated — they just require awareness and timing.
Meet the two-out-of-five-year tests. This is the foundation. If you've owned and lived in the home for at least two of the five years before the sale, and you haven't used the exclusion on another property in the prior two years, you qualify for the full amount. Everything else is secondary to this.
Document your capital improvements. Every dollar you spent on qualifying improvements — a new roof, a kitchen renovation, a finished basement, a permanent fence, new windows — raises your adjusted basis and reduces your taxable gain. On a home you've owned for 15 or 20 years, those improvements can add up to $100,000 or more in basis adjustments. That directly reduces the gain the exclusion needs to cover.
Don't overlook selling costs. Agent compensation, title insurance, transfer and recordation taxes, escrow fees, staging, and settlement attorney fees all reduce your amount realized. In the DC metro, these selling costs typically run 6% to 8% of the sale price.
Watch your timing. If you're approaching but haven't yet hit the two-year residency mark, waiting a few months can be the difference between a fully excluded gain and a fully taxable one. This is especially relevant for homeowners who relocated for work and are renting the property out — the clock is ticking on the five-year window.
If you have to sell early, know the partial exclusion rules. A job relocation, a health issue, or an unforeseen circumstance can qualify you for a proportional share of the exclusion even if you haven't met the full two years. The IRS is fairly specific about what counts — Publication 523 lists the qualifying circumstances.
One common misconception: you do not need to buy another home to claim the exclusion. The old rollover provision (pre-1997) required reinvestment. Section 121 does not. You can sell, take the proceeds, and do whatever you want with them.
Capital Gains Tax Rules in DC, Maryland, and Virginia
Capital Gains at 4%–10.75%
DC taxes capital gains as ordinary income across seven brackets. A seller with $150,000 in taxable gain above the federal exclusion would owe DC income tax on the full amount at their marginal rate. Combined with federal capital gains (15% or 20%) and the 3.8% NIIT for higher earners, the total effective rate on excess gain can approach 35%–40%.
The seller typically pays the DC deed transfer tax (1.1% under $400K, 1.45% at $400K+). Transfer taxes are a transaction cost — they reduce your amount realized, which helps your capital gains math.
Progressive rates · No state exclusion beyond federalUp to 6.50% + County Tax + 2% Surtax
Maryland's 2025 Budget Reconciliation Act added two new top brackets (6.25% and 6.50%) and a permanent 2% capital gains surtax for taxpayers with federal AGI above $350,000. However, the surtax excludes capital gains from the sale of a primary residence sold for under $1,500,000. Combined state + county rates can still approach 10%+ for high earners.
Montgomery County adds its own county income tax on top of the state rate. Maryland state transfer tax is 0.5%, with additional county transfer and recordation taxes varying by jurisdiction.
2025 surtax · County variance · Primary residence carve-out under $1.5MCapital Gains Up to 5.75%
Virginia taxes capital gains as ordinary income with a top rate of 5.75% that kicks in at just $17,000 of taxable income. Any meaningful real estate gain hits the top bracket immediately. On $120,000 of taxable gain above the federal exclusion, the Virginia tax alone is roughly $6,900.
Virginia's grantor's tax ($0.50 per $500, effectively 0.1%) is among the lowest transfer costs in the region. No separate state 1031 or 121 forms are required.
Top rate at $17K · Low transfer costs · Federal conformitySituations That Complicate the Exclusion
The basic rules are straightforward, but real life isn't always basic. These are the situations where the exclusion gets more complex — and where a CPA earns their fee.
If you used part of your home as a home office or for rental income, the tax treatment depends on whether the business space was within the dwelling unit (a spare bedroom you used as an office) or separate from it (a detached garage converted to a studio).
For business use within the home, the full gain still qualifies for the Section 121 exclusion — but any depreciation you claimed (or should have claimed) is subject to recapture at up to 25%, even if the rest of the gain is excluded. For a separate structure, you must allocate the gain between the residential and non-residential portions, and the non-residential portion does not qualify for exclusion.
If you received the home in a divorce (under Section 1041), you can count your ex-spouse's period of ownership toward the ownership test. If your ex-spouse continues to live in the home under the terms of a divorce decree or separation agreement, that time counts toward your use test even though you're not physically living there. This can be critical for meeting the two-year requirement after a separation.
A surviving spouse who has not remarried can sell the home and claim the full $500,000 exclusion — but only if the sale occurs within two years of the spouse's death and both spouses met the use test. After that two-year window, the surviving spouse reverts to the $250,000 single-filer limit. The deceased spouse's ownership and use periods count toward the surviving spouse's tests.
If you or your spouse is on qualified official extended duty (at a duty station 50+ miles from home, or living in government housing under orders), you can suspend the five-year test period for up to 10 years. This means the lookback window effectively extends to 15 years, giving you much more flexibility on when you sell. This provision is especially relevant in the DC metro area given the concentration of military and government personnel.
If the property was used as a rental or second home before you moved in, gain attributable to those non-qualified use periods is not excludable. This rule, added by the Housing Assistance Tax Act of 2008, allocates gain proportionally. If you owned the home for 10 years, rented it for 4, and lived in it for 6, roughly 40% of the gain is non-qualified and taxable. However, time after the last period of qualified use (the period between moving out and selling) does not count as non-qualified use.
If you inherited the home and moved into it as your primary residence, you can use the Section 121 exclusion once you've met the ownership and use tests. The basis is typically the fair market value at the date of the decedent's death (stepped-up basis), which significantly reduces or eliminates the gain in many cases. But you still need to live in it for two of the five years before selling to claim the exclusion on any remaining gain.
Section 121 vs. Section 1031: Which One Applies to You?
These two provisions come up in almost every conversation about selling property, and they serve fundamentally different purposes. The short version: Section 121 is for homes you live in, Section 1031 is for properties you invest in.
| Section 121 | Section 1031 | |
|---|---|---|
| Property type | Primary residence | Investment or business property |
| Tax benefit | Exclusion — gain is tax-free | Deferral — tax is postponed |
| Limit | $250K single / $500K joint | No dollar limit |
| Reinvestment required? | No | Yes — like-kind property |
| How often? | Every 2 years | Unlimited |
| Key requirement | 2-of-5-year ownership & use test | 45-day ID / 180-day closing |
| At death | N/A — exclusion already used | Stepped-up basis eliminates deferred gain |
In some situations, both can apply. An investor who converts a rental property into a primary residence (or vice versa) may eventually access both provisions — but the rules around conversion are strict, and the IRS examines intent and holding periods closely. If this scenario applies to you, it warrants a conversation with a tax professional before you list.
For a comprehensive breakdown of 1031 exchange rules, deadlines, and DC-area considerations, see our full guide: 1031 Exchange Explained: Rules, Deadlines, and What DC-Area Investors Need to Know.
The More Homes on the Market Act: What Could Change
The $250,000 and $500,000 exclusion limits were set in 1997. They have never been adjusted for inflation, indexed to home prices, or updated in any way. In nearly 30 years, the median U.S. home price has more than doubled, and in high-cost markets like the DC metro area, appreciation has been far greater.
In 2025, bipartisan lawmakers introduced the More Homes on the Market Act (H.R. 1340 in the House, S. 3332 in the Senate) with over 86 cosponsors. The bill would double the exclusion limits to $500,000 for single filers and $1,000,000 for married couples, and index both amounts to inflation going forward.
The rationale: the National Association of Realtors estimates that 29 million homeowners (roughly 34%) already have enough equity to exceed the $250,000 cap, and over 8 million could exceed $500,000. The concern is that the tax exposure discourages long-time homeowners from selling, tightening inventory in an already supply-constrained market.
Not everyone agrees the bill would move the needle. A Brookings Institution analysis found that 95% of all households — and 90% of those over 65 — would owe no capital gains tax on a home sale under current law, because their gains already fall below the existing thresholds. The expanded exclusion would primarily benefit higher-income, higher-wealth households, and would likely do little to change selling behavior broadly.
As of April 2026, the bill has been referred to the Ways and Means Committee and has not advanced to a vote. Separately, some lawmakers have proposed indexing capital gains to inflation through executive action, which would not require Congressional approval.
The practical takeaway: plan around current law. If the limits increase, that's a welcome development. But don't delay a sale that makes sense now based on legislation that hasn't passed.
FAQ — Capital Gains Tax on Home Sale in DC MD and VA
Most primary residence sellers don't. If your profit is under $250,000 (single) or $500,000 (married filing jointly) and you meet the ownership, use, and look-back tests, the gain is excluded from federal income tax entirely. You may still owe state taxes if your gain exceeds the federal exclusion.
At least 2 of the 5 years before the sale, as your primary residence. The 2 years don't have to be consecutive. If you can't meet the full 2 years but sold due to a job change, health reason, or unforeseen circumstance, you may qualify for a partial exclusion.
Yes. You can use it every 2 years. There's no lifetime limit. Each time you sell a primary residence that meets the tests, you can claim the exclusion again.
If your gain exceeds the federal exclusion, yes. DC taxes capital gains as ordinary income (up to 10.75%), Maryland up to 6.50% plus county income tax plus a 2% surtax for high earners, and Virginia at up to 5.75%. All three jurisdictions conform to the federal Section 121 exclusion, so any gain within the exclusion is also excluded at the state level.
If the business use was within the dwelling unit (like a home office in a spare room), the full gain still qualifies for exclusion. But any depreciation you previously claimed is subject to recapture at up to 25%, even if the rest is excluded. For a separate structure used for business, you must allocate the gain and only the residential portion qualifies.
Section 121 excludes gain on your primary residence (tax-free up to the limit, no reinvestment required). A 1031 exchange defers gain on investment property (tax postponed, must reinvest in like-kind property). They serve different purposes. See our full 1031 exchange guide for details.
The More Homes on the Market Act (H.R. 1340 / S. 3332) would double them to $500,000 / $1,000,000 and index to inflation. It has bipartisan support but hasn't passed as of April 2026. Plan around current law.
If you receive a Form 1099-S (Proceeds from Real Estate Transactions), you must report the sale on your return even if the gain is fully excluded. You report on Schedule D (Form 1040) and Form 8949. If you don't receive a 1099-S and the gain is fully excludable, you generally don't need to report it — but keeping records is still advisable. See IRS Publication 523 for details.
Important: This Is an Educational Explainer, Not Tax Advice
We wrote this article to help home sellers in the DC metro area understand how the Section 121 exclusion works at a conceptual level, and we did our best to research current rules, rates, and regulations. But tax law is complex, jurisdiction-specific, and subject to change. Our interpretation of the material may be incomplete or incorrect.
Before making any decisions about your home sale, consult a CPA experienced with real estate transactions and/or a tax attorney. Nothing in this article should be relied upon as a substitute for professional advice tailored to your specific situation.
Sources & Further Reading
- IRS Publication 523 — Selling Your Home — Official IRS guidance on the Section 121 exclusion, eligibility, and reporting
- IRS Topic No. 701 — Sale of Your Home — Quick-reference overview of the $250K/$500K exclusion
- 26 U.S. Code § 121 — Full statutory text of the exclusion provision
- H.R. 1340 — More Homes on the Market Act — Proposed legislation to double exclusion limits
- Brookings — Will Expanding the Capital Gains Exclusion Unlock Housing Supply? — Policy analysis of the proposed changes
- DC Office of Tax and Revenue — Income Tax Rates
- Maryland Comptroller — Tax Rates
- Virginia Department of Taxation