Maryland state capital gains tax — how does it work alongside federal?

Sold some shares this year that I'd held for about 18 months, so long-term federally. I know federal long-term rates depend on income and you report everything on Form 8949 and Schedule D. What I can't figure out is how Maryland state capital gains tax works on top of that. Does Maryland have its own preferential rate for long-term gains, or does it just tax them as ordinary income at the state level? My broker sent a 1099-B and I've started entering the trades, but I don't know what to expect on the Maryland return. I've searched the state's site but the guidance is scattered. Trying to understand whether the federal long-term treatment carries over to Maryland or if I'll owe the full state rate on the whole gain.

32 comments

Maryland does not have a separate preferential rate for long-term capital gains the way federal does. The state taxes capital gains as ordinary income, so whatever net gain flows through from your federal return gets added into your Maryland taxable income and taxed at the regular Maryland income tax rates. There is no Maryland equivalent of the 0%, 15%, or 20% federal long-term brackets.

Naomi N.

Author

Bummer, I was hoping the state would give some break on gains held over a year. So the long-term treatment only helps me federally, not at the state level?

Exactly. The federal Schedule D calculation still matters because Maryland starts with your federal adjusted gross income, which already reflects your net capital gain. But Maryland applies no separate preferential rate on top of that.

To add some structure: Maryland's income tax uses a graduated rate schedule you can find in the Maryland 502 instructions. The state also has a local income tax added on top, and that local piece varies by county. So your effective Maryland rate on the gain depends on both the state rate and your county's local rate. Neither treats long-term gains differently.

The county piece catches people off guard. I live in Montgomery County and my combined state-plus-local rate is noticeably higher than just the state rate alone.

Naomi N.

Author

Good to know about the local piece. I'll check the 502 instructions for the full rate table.

Form 8949 and Schedule D are purely federal forms. Maryland doesn't have you refill out your trade-by-trade detail — it picks up from your federal AGI. So you don't re-enter each 1099-B line on the Maryland return, just the net result that already flowed through.

This is correct. Maryland Form 502 starts at federal AGI. Capital gain income is already baked into that number, so you don't re-report individual transactions.

Before touching any state numbers I ran my 1099-B and my draft federal Schedule D through taxr.ai, and it flagged which trades were short-term vs. long-term, checked that the proceeds and cost basis columns matched what my broker reported in box 1d and 1e, and then laid out what the net gain number would look like flowing into Maryland versus what the federal preferential rate had already saved me. Really made the two-layer calculation clear. For anyone dealing with a lot of trades, having that side-by-side laid out per document was useful before I touched the state return.

Naomi N.

Author

That side-by-side approach is exactly what I need. I'll give it a look before I start the state form.

One thing that matters for your Maryland return: if you have capital losses that offset gains federally, that net figure is what Maryland sees too. If your net capital gain is zero because losses wiped it out, Maryland doesn't tax a gain either. But Maryland also won't let you deduct more than federal does on losses — the Schedule D cap applies at the federal level first.

Naomi N.

Author

In my case the gains outweigh losses, so I'll owe on the net. But useful to know losses pass through the same way.

Maryland does have one thing people miss: a subtraction for income received from U.S. obligations. That's not a capital gains preference but if any of your gain came from certain federal bonds or similar instruments there might be a subtraction on Form 502SU. Probably not relevant for typical stock trades but worth knowing.

For what it's worth, the federal holding period still matters a lot even if Maryland doesn't honor it separately. If you'd held those shares 12 months or less the federal rate would have been much higher, so the federal savings are real even if Maryland takes its full bite.

Yep, the holding period math still pays off. Maryland just doesn't add to that benefit.

Are you tracking your cost basis carefully across the 1099-B? If your broker didn't report basis to the IRS (box B on the 8949 rather than box A), you need to supply the correct basis yourself in column (e) of Form 8949. Maryland picks up the net, so an error there flows into the state return too.

Naomi N.

Author

Mine are all covered securities so basis is in box 1e and reported to the IRS. I'll still double-check the numbers match what I paid.

Good. If there were any adjustments — wash sale codes, for example — make sure those are reflected before the net number leaves Schedule D.

Publication 550 covers the federal capital gains rules in detail, including holding periods and wash sales. Maryland's own 502 booklet is the companion piece. Reading both side by side helped me understand what Maryland does and doesn't inherit from federal.

Does Maryland conform to the federal wash sale rules? Like if I have a wash sale disallowed loss on the 1099-B, does that carry into the Maryland calculation the same way?

Maryland generally starts from federal AGI so the wash sale disallowance already affects that number. The disallowed loss is added to your cost basis of the new shares federally per the wash sale rules in Publication 550, and Maryland sees the adjusted net. Maryland does not have its own separate wash sale calculation layered on top.

Makes sense. So the disallowed loss hurts me the same way on the state return because it hurt the federal AGI first.

I had a year with both RSU vesting and stock sales and the interaction between ordinary income from RSUs and capital gains was messy. I gave Taxr my W-2, my 1099-B, and my draft 502 and it went through each line to show where the RSU income appeared (already in box 1 of the W-2) and what the separate capital gain from shares sold after vest added on top. Helped me see the Maryland taxable income buildup clearly before I filed.

Naomi N.

Author

RSUs are on my radar for next year so that's a helpful heads-up about how they layer with capital gains on the state return.

Schedule D line 16 is your net capital gain or loss. That feeds into Form 1040 line 7a, and from there it's part of the AGI Maryland picks up. If line 16 shows a net loss, the deductible amount is limited — check Topic no. 409 and the Schedule D instructions for the loss cap and carryover rules.

If your gains are large enough that you're unsure about Maryland estimated tax obligations or whether you underpaid, the Maryland 502UP instructions cover that. Underpayment of estimated tax can add to what you owe when you file, separate from the tax on the gain itself.

Naomi N.

Author

I don't pay estimated taxes right now. I'll check 502UP to see if I should have been.

I dropped my federal 8949 and state 502 draft into Taxr and asked it to list every place the capital gain number appeared across both returns and confirm the figures were consistent. It went column by column on the 8949, traced the net to Schedule D line 16, then showed where that number fed into the 502. Found one spot where I'd entered a subtraction on the state form that didn't match the federal net. Worth doing that cross-check before you send anything.

Naomi N.

Author

Cross-checking across both returns is exactly where I'd make an error. Good reminder to trace the number all the way through.

To bring it back to the original question: Maryland taxes your capital gains as ordinary income at the state and local rates. No preferential rate. The long-term federal preference still matters because it lowers what shows up in federal AGI — but Maryland doesn't add any extra benefit beyond that.

If the gains are substantial, it's worth running through the Maryland 502 with a CPA or enrolled agent who knows the state forms, especially if you have both short-term and long-term lots from multiple brokers. The federal side might be clean but the state conformity pieces can have surprises.

Naomi N.

Author

Noted. Mine is fairly straightforward but I'll keep that in mind if it gets more complicated.