Do You Pay Capital Gains Tax When You Sell Your House in Maryland? (2026 Guide)

Do You Pay Capital Gains Tax When You Sell Your House in Maryland?

Most Maryland homeowners who sell their primary residence pay no capital gains tax at all. The IRS lets single filers exclude up to $250,000 of profit, and married couples filing jointly up to $500,000, as long as you owned and lived in the home for at least 2 of the last 5 years. Above those thresholds, or if you’re a nonresident seller, different rules apply — and they’re worth understanding before you sell.

If you’re planning to sell your Maryland home fast — whether for cash or through a traditional listing — knowing your tax exposure ahead of time helps you avoid a surprise at closing. Here’s what actually applies in 2026.

How the Home Sale Tax Exclusion Works

The IRS home sale exclusion (IRC Section 121) is the main reason most sellers owe nothing:

  • Single filers: exclude up to $250,000 of gain
  • Married filing jointly: exclude up to $500,000 of gain

To qualify, you generally need to pass two tests during the 5 years before your sale:

  1. Ownership test — you owned the home for at least 24 months (2 years)
  2. Use test — you lived in it as your primary residence for at least 24 months (2 years)

These two-year periods don’t have to be the same continuous stretch, but both must fall within the 5-year window before closing. (Source: IRS Topic No. 701, Sale of Your Home, and IRS Publication 523)

Example: If you and your spouse bought a Maryland home for $300,000 and sell it today for $700,000, your $400,000 gain falls entirely under the $500,000 married-filing-jointly exclusion. You’d owe no federal capital gains tax on the sale, assuming you meet the ownership and use tests.

Who Doesn’t Qualify for the Full Exclusion?

You may owe capital gains tax if:

  • Your gain exceeds the exclusion limit ($250,000 single / $500,000 married)
  • You haven’t lived in the home for 2 of the last 5 years — common with inherited homes, rental properties, or homes you moved out of before selling
  • You’ve already used the exclusion on another home sale within the past 2 years
  • You’re a nonresident seller (see below)

If any of these apply to you, a tax professional or CPA can walk through your specific numbers. This article is general information, not tax advice.

Maryland’s Nonresident Withholding Tax

If you don’t live in Maryland but you’re selling Maryland real estate, the state requires withholding at closing, collected in advance against your eventual tax liability:

  • Nonresident individuals: 8.75%
  • Nonresident entities (LLCs, corporations, trusts): 8.25%

(Effective July 1, 2025, per the Maryland Comptroller’s official tax alert)

This withholding is calculated on the total sale price, not just your profit, and is remitted directly at closing. It’s not necessarily your final tax bill — you reconcile the actual amount owed when you file your Maryland tax return, and any overpayment is refunded. But it does reduce your cash at closing, which catches out-of-state sellers off guard if they aren’t prepared for it.

This applies to people who inherited a Maryland property while living elsewhere, relocated out of state and kept a Maryland rental, or moved for work and are selling a home they no longer occupy.

Capital Gains vs. Selling Costs: What Actually Affects Your Bottom Line

FactorTraditional Listed SaleCash Sale to a Direct Buyer
Capital gains exposureSame tax rules apply either waySame tax rules apply either way
Agent commissionsTypically paid by sellerNone
Closing costsSeller-paid costs vary by contractTypically covered by buyer
Repair costs before saleOften required to be competitiveNone — sold as-is
Time on market43+ days on average in Maryland (2026)As little as 7 days
Nonresident withholdingApplies equally to both pathsApplies equally to both paths

(Maryland days-on-market figure: Redfin Maryland Housing Market Data, August 2026)

Capital gains tax rules don’t change based on how you sell — but your net proceeds do. Skipping commissions, repairs, and months of carrying costs (mortgage, taxes, insurance, utilities) can meaningfully offset a lower cash offer, especially on a home that would need work to sell at full retail price. If you’re comparing paths, our guide to selling a house as-is in Maryland covers the Disclaimer Statement route in detail.

Situations Where This Comes Up Most

  • Inherited homes. Heirs often haven’t lived in the property, so the personal-residence exclusion may not apply — though inherited property usually gets a stepped-up cost basis, which can significantly reduce taxable gain. See our guide to selling an inherited house for more.
  • Rental and investment properties. Landlords selling a property they never occupied as a primary residence don’t qualify for the Section 121 exclusion and may also face depreciation recapture.
  • Divorce sales. Splitting ownership and residency history can affect which spouse qualifies for how much exclusion. See our guide to selling a house during divorce.
  • Relocating out of state. If you move before selling, you may trigger nonresident withholding even though you lived in the home for years.

How to Reduce Your Tax Exposure

  • Track your cost basis. Home improvements (not repairs) generally increase your basis and reduce taxable gain — keep receipts.
  • Confirm your ownership and use test timeline before listing, especially if you moved out before selling.
  • Talk to a CPA or tax attorney before closing if your gain is close to or above the exclusion limit, or if you’re selling as a nonresident.
  • Ask your title company about withholding in advance if you’re selling Maryland property from out of state, so there are no surprises at the closing table.

Frequently Asked Questions

Do I have to pay capital gains tax when I sell my house in Maryland?

Most owner-occupants don’t, thanks to the federal exclusion of up to $250,000 (single) or $500,000 (married filing jointly) on gains from a primary residence, as long as you meet the ownership and use tests.

What is the capital gains tax rate on a home sale in Maryland?

It depends on your total taxable income and how long you owned the property, since gains are taxed at federal long-term or short-term capital gains rates (plus applicable Maryland state income tax) once they exceed your exclusion. There isn’t a single flat “Maryland capital gains rate” separate from your regular income tax bracket.

Does selling my house for cash change how much tax I owe?

No. The IRS exclusion and Maryland withholding rules apply the same way whether you sell to a cash buyer or list traditionally. What changes is your net proceeds, since a cash sale typically avoids commissions, repair costs, and carrying costs.

What if I’m selling a Maryland home but I live out of state now?

Maryland requires withholding at closing — 8.75% for nonresident individuals, 8.25% for nonresident entities — calculated on the total sale price. This is reconciled against your actual tax liability when you file.

Do I owe capital gains tax on an inherited house in Maryland?

Often less than you’d expect, because inherited property typically receives a stepped-up cost basis equal to its value at the time of the original owner’s death. This can significantly reduce or eliminate taxable gain, but your specific situation should be confirmed with a tax professional.

Is this article tax or legal advice?

No. This is general information for educational purposes. Every situation is different — consult a CPA, tax attorney, or the IRS directly for guidance specific to your sale.

Ready to Sell? Get a No-Obligation Cash Offer

If you’re weighing your options for selling a Maryland home — whether it’s inherited, a rental, or your primary residence — we can give you a fair, no-obligation cash offer in as little as 24-48 hours. No repairs, no commissions, no showings, and you choose your closing date. Get My Cash Offer or call 443-830-3677.

Know someone who needs to sell? Refer them to us and earn $500 when their sale closes. Learn more or start a referral.