Taxstra Logo
State Tax Guide

Maryland Capital Gains Tax, Explained

Ordinary-income brackets, a mandatory county tax on top, and a new 2% surcharge for gains over $350,000 of income. Here's the actual two-layer, three-layer math.

A guide by Taxstra Tax & Accounting — CPA-led tax strategy for business owners

Quick Answer

Maryland taxes capital gains as ordinary income, no long-term discount, at state brackets running 2% to 5.75% (5.75% starts at $300,001 of taxable income for joint filers, $250,001 for single filers), with new 6.25% and 6.5% brackets layered on for income above $500,000/$600,000 and $1,000,000/$1,200,000. On top of that, every Maryland resident owes a mandatory county piggyback tax, generally 2.25% to 3.2% depending on where you live. A $150,000 gain taxed at the 5.75% top standard bracket plus a 3.2% county rate costs roughly $13,425 in combined state and local tax, before the federal side. High earners also need to check the 2025 capital gains surcharge below. Stack the federal 0/15/20% brackets and the 3.8% NIIT on top, then run your own numbers in our capital gains tax calculator.

The Two-Layer System: State Brackets Plus the County Piggyback Tax

Maryland has no separate capital gains schedule. Every dollar of gain, stock, crypto, a rental, a business, lands on your Maryland return as ordinary income and climbs the same bracket ladder as your salary. What makes Maryland unusual is that the state number is only half the bill.

Every Maryland resident's county of residence, plus Baltimore City, also imposes its own local "piggyback" income tax, a percentage add-on collected on the same state return, not a separate filing. It is mandatory. There's no opting out while you live in Maryland, and it applies to the same Maryland taxable income that includes your capital gain. Rates are generally in the 2.25% to 3.2% range, and 2025 legislation raised the maximum a county may charge to 3.3%, with a few counties already at or near that ceiling.

LayerTypical rateApplies to
MD state bracket (standard)2% - 5.75%All MD taxable income, gains included
MD state bracket (2025 new tiers)6.25% / 6.5%Income above $500K-$600K / $1M-$1.2M
County/Baltimore City piggyback~2.25% - 3.2% (up to 3.3%)Same MD taxable income, varies by county
2025 capital gains surcharge2%Net capital gains, if federal AGI > $350,000

Worked example: a Maryland resident in a 3.2% piggyback county sells an asset for a $150,000 long-term gain, with total income landing in the top standard 5.75% state bracket. State tax: $150,000 x 5.75% = $8,625. County tax: $150,000 x 3.2% = $4,800. Combined state and local: $13,425, an effective 8.95% rate, before any federal tax or the surcharge discussed next. Move that same sale to a lower-piggyback county and the local slice drops; move it to Dorchester or another county near the 3.3% cap and it rises slightly.

Key Insight

Your county of residence is a real planning variable

Because the piggyback tax is set annually by each county and applies to your full Maryland taxable income, not just wages, where you're domiciled on December 31 of a big-gain year is worth checking, not assuming. The spread between the lowest and highest county rates is roughly a full percentage point on the entire gain.

The 2025 Capital Gains Surcharge: 2% Over $350,000

Maryland's 2025 Budget Reconciliation and Financing Act added something no other state on this site has: a standalone surcharge that applies specifically to capital gains, separate from the ordinary income brackets above. Starting with tax year 2025, if your federal adjusted gross income for the year exceeds $350,000, an additional 2% applies to your net capital gains, on top of the regular state bracket and the county piggyback tax.

A few features are worth knowing before you assume it applies:

  • It's triggered by total federal AGI, not just the gain. Wages, business income, and the gain itself all count toward the $350,000 threshold. A moderate-income household with one large one-time sale can cross the line for that year alone.
  • Primary residence sales are exempt up to $1.5 million of sale price, subject to the usual eligibility rules, so most home sales stay outside the surcharge entirely even if they land above the federal Section 121 exclusion.
  • Retirement account gains and certain Section 179 business property are carved out, along with a handful of narrower categories (farm livestock sales, conservation easement land, and nonprofit affordable-housing transfers, per published legislative summaries).
  • It stacks, it doesn't replace. The surcharge is additive to the 5.75%/6.25%/6.5% state brackets and the county piggyback tax, not a substitute rate.
Watch Out

A one-time sale can trip this even for a modest-income household

Because the $350,000 test uses total AGI for the year, a household that never comes close to that income from wages can still land there the year they sell a rental, a business interest, or a large stock position. Model the surcharge before you close, not after, especially if the sale is large relative to your normal income.

Stacking the Federal Side on Top

None of the Maryland math above changes how the IRS treats the same sale. A long-term gain still gets the federal 0%, 15%, or 20% rate, and higher earners still layer on the 3.8% Net Investment Income Tax above the federal MAGI thresholds. Holding period is entirely a federal concept; Maryland taxes a ten-year gain and a ten-day gain identically.

Put the full stack together for a top-bracket Maryland seller who also crosses the surcharge threshold: roughly 5.75% to 6.5% state, plus up to 3.3% county, plus 2% surcharge, plus 20% federal, plus 3.8% NIIT. That combined figure can approach the high 30s as a percentage of the gain, among the higher all-in state-plus-federal combinations in the country for a large one-time sale. The gap between a rushed, unplanned closing and one modeled a quarter in advance is frequently five figures on a mid-six-figure gain.

Taxstra CPA Tip

A big Maryland gain usually means a same-quarter estimated payment

Maryland expects estimated payments in the quarter a large gain is realized, and so does the IRS. A Q4 closing typically means a January estimated payment on both returns. The safe-harbor math and the underpayment-penalty check are covered in our estimated tax payments guide.

Related: estimated tax payments guide · underpayment penalty calculator.

Selling Maryland Real Estate: Recapture and Nonresident Withholding

A rental sale in Maryland has the same federal layering as anywhere else: depreciation claimed over the years comes back as recapture at up to 25% federally, and the rest of the gain gets long-term treatment. Maryland doesn't have a separate recapture rate; the whole gain, recapture included, is state and county ordinary income, and it counts toward the $350,000 surcharge threshold discussed above.

The angle that's specific to Maryland is nonresident withholding. If you sell Maryland real property and you're not a Maryland resident, the title company withholds tax at closing as a prepayment toward your eventual Maryland liability, reported on Form MW506NRS. For individual, estate, and trust sellers that rate is 8.75% as of 2026 (business entities withhold at a different rate), calculated against the gain or a statutory formula, not simply against the full sale price. It isn't an extra tax on top of what you'd otherwise owe; it's cash held back and reconciled when you file your Maryland nonresident return, and sellers who can show the withholding would overshoot their real liability can apply for an exemption certificate before closing.

Watch Out

Nonresident sellers: file for the exemption before closing, not after

The default withholding formula is often larger than the actual tax due, especially on a property with a modest gain or a partial exclusion. Requesting the exemption certificate ahead of settlement keeps more cash in your pocket at closing instead of waiting months for a refund after filing.

And a 1031 exchange works the same way here as federally: gain deferred on the federal return generally stays out of your Maryland income for the year of the exchange too, since Maryland starts from your federal numbers.

Working in DC or Virginia but Selling as a Maryland Resident

A large share of Maryland's population lives in the DC suburbs and works across the Potomac or in the District itself. Wage reciprocity agreements in the DC-Maryland-Virginia area mostly settle where your paycheck is taxed. They generally don't extend to investment income. Capital gains on stock, crypto, and most intangibles are taxed by your state of residence on the date you sell, not by where you commute for work.

In practice that means a Maryland resident who works in downtown DC still owes the full Maryland stack, state bracket, county piggyback, and the surcharge if applicable, on a stock or business sale, with no offset just because the salary was earned across the border. The one exception that runs the other way is real estate: Maryland-situated property stays Maryland-source income regardless of where the seller lives when the deal closes.

For households genuinely weighing a move across the river before a large sale, see the general framing in our Virginia capital gains guide. A residency change has to be real, documented, and in place well before the transaction, not a paperwork exercise timed to the closing date.

Maryland Capital Gains FAQs

Maryland taxes capital gains as ordinary income, stacked with two layers most states don't have. First, state brackets run from 2% up to 5.75% (5.75% starts at $300,001 of taxable income for joint filers, $250,001 for single filers), with new 6.25% and 6.5% brackets added in 2025 for income above $500,000/$600,000 and $1,000,000/$1,200,000. Second, every Maryland resident also owes a mandatory county 'piggyback' income tax on top, generally 2.25% to 3.2% (a few counties up to 3.3%) depending where you live. A mid-size gain in a high-piggyback county can face close to 9% combined state and local tax before federal tax even applies.

Selling into a Maryland gain near the surcharge line?

We model the state bracket, your county's piggyback rate, the 2025 surcharge, and the federal stack together, before the deal locks. Nationwide remote firm with deep multi-state practice.

Limited Availability

Find Out What You're Overpaying in Taxes

Book a free 30-minute call to walk through your situation. We'll tell you exactly how our CPA-led team can help — and whether we're the right fit.

Learn how our CPA-led team can help
30 minutes — no fluff, just answers
Zero obligation, zero pressure
Or Call (217) 788-0750
0+
Tax Returns Filed
0+
Years Experience
0%
CPA-Led Service
0min
Free Consultation

What to Expect on the Call

1
We learn about your business and tax situation
2
We explain which services fit your needs
3
You get honest answers — no hard sell