Capital Gains Tax on Your Maryland Home Sale: What You Actually Owe
Most homeowners in Central Maryland assume that when they sell, the money hits their account and that's the end of the story. For the majority of primary residence sales, that assumption holds up fine. For a growing number of sellers, especially after years of real appreciation across Howard, Baltimore, Carroll, and Frederick counties, it doesn't.
I've sat across the table from sellers who had no idea a tax bill was coming until we ran the numbers together. Some were investors who'd never lived in the property. Others had lived in it, but not long enough, or the gain was simply larger than they expected. In every one of those cases, bringing in a CPA before closing, not after, changed the outcome. People who assumed they'd lose a chunk of their proceeds to the IRS walked away having legitimately kept far more of it, because there was still time to plan.
Here's what capital gains tax on a home sale actually looks like in Maryland, who qualifies for the big exclusion, who doesn't, and why the timing of that CPA conversation matters as much as the strategy itself.
The Exclusion Most Sellers Are Counting On
Federal law lets most homeowners exclude a large chunk of profit from tax entirely when they sell a primary residence. A single filer can exclude up to $250,000 in gain. A married couple filing jointly can exclude up to $500,000.
To qualify, you generally need to have owned the home and lived in it as your primary residence for at least two of the five years before the sale. Those two years don't have to be consecutive. You can typically use this exclusion once every two years, not just once in a lifetime.
For most sellers in Central Maryland trading up, downsizing, or relocating out of state, this exclusion covers the entire gain and the sale is effectively tax-free at the federal level. That's the scenario most homeowners have in mind when they picture selling their house.
Where Sellers Actually Get Caught Off Guard
The exclusion doesn't cover everyone, and it doesn't cover every dollar. A few situations come up constantly.
Investment and rental properties don't qualify for the primary residence exclusion at all, unless the owner lived there as their main home for the required period. An investor selling a rental in Dundalk or Middle River is generally looking at the full gain being taxable, and if the property was ever depreciated on a tax return, there's an additional wrinkle: depreciation recapture, taxed separately and often at a higher rate than the standard long-term capital gains rate.
Second homes and vacation properties run into the same issue. If you never lived there as your primary residence, the exclusion doesn't apply.
Sellers who've lived in a home for less than two of the last five years, because of a job relocation, a life change, or simply moving faster than planned, may only qualify for a partial exclusion, or none at all, depending on the circumstances.
And even sellers who check every box on the primary residence exclusion can still owe something if the gain itself is larger than the $250,000 or $500,000 cap. In parts of Howard County and Baltimore County where appreciation has been strong over a long hold, that's becoming a real conversation rather than a hypothetical one.
How the Gain Is Actually Calculated
The taxable gain isn't simply your sale price. It's your sale price, minus your selling costs, minus your adjusted basis.
Your adjusted basis starts with what you originally paid for the home, then adds the cost of capital improvements you made over the years, a new roof, an addition, a major kitchen renovation, not routine repairs or maintenance. That basis adjustment is exactly the kind of detail a CPA will ask for, and it's why keeping records of major improvement costs over the years actually matters at the closing table, not just while you're living there.
Maryland's Own Layer on Top of Federal Tax
Maryland doesn't have a separate capital gains tax rate the way some people expect. Instead, capital gains are treated as ordinary income at the state level and taxed under Maryland's regular income tax brackets, plus the local county piggyback tax on top of that. That means the same gain that gets favorable federal long-term capital gains treatment can still add up at the state and county level, and the total bill depends heavily on your overall income picture for the year you sell.
Higher earners should also be aware of the federal Net Investment Income Tax, an additional 3.8% that can apply to investment gains, including certain real estate gains, above specific income thresholds.
Why the CPA Conversation Belongs Before You List
This is the part sellers consistently underestimate: capital gains planning is far more powerful before a sale closes than after. Once the deed transfers and the tax year ends, most of the flexibility is gone.
A CPA can confirm whether you actually qualify for the full exclusion, help document capital improvements that increase your basis and reduce your taxable gain, and, for investors, talk through options like a 1031 exchange that can defer tax entirely if the proceeds go into another investment property. None of that works retroactively. It has to happen while there's still time to structure the transaction correctly.
I'm not a CPA or a tax attorney, and nothing here is tax advice for your specific situation. What I can tell you, from sitting through this conversation with sellers more than once, is that the ones who loop in a CPA while they're still deciding when to list consistently keep more of their proceeds than the ones who wait until after the fact to ask what they owe.
A Practical Starting Point
If you're planning to sell in Central Maryland and you're not sure where you stand, a few questions are worth answering early. How long have you owned and lived in the property as your primary residence? Was it ever rented out or used as an investment property, even briefly? What have you actually spent on capital improvements over the years, and do you have records? And is your expected gain likely to land under or over the $250,000 or $500,000 exclusion threshold for your filing status?
Answering those questions with a CPA before you list gives you real options. Answering them after closing usually just tells you what you already owe.
If you're weighing when to sell and want to talk through the timing and the numbers together, send me a message or give me a call. I can't give you the tax answer, but I can help you build the right team and the right timeline around it.

