2026 state guide
How Maryland taxes capital gains
Both short-term and long-term gains are taxed at Maryland’s ordinary income tax rates. The gain is stacked on top of your other taxable income, so each slice of it is taxed at the rate of the bracket it lands in.
| Rate | Taxable income |
|---|---|
| 2% | Up to $1,000 |
| 3% | $1,000 – $2,000 |
| 4% | $2,000 – $3,000 |
| 4.75% | $3,000 – $100,000 |
| 5% | $100,000 – $125,000 |
| 5.25% | $125,000 – $150,000 |
| 5.5% | $150,000 – $250,000 |
| 5.75% | $250,000 – $500,000 |
| 6.25% | $500,000 – $1,000,000 |
| 6.5% | Over $1,000,000 |
| Rate | Taxable income |
|---|---|
| 2% | Up to $1,000 |
| 3% | $1,000 – $2,000 |
| 4% | $2,000 – $3,000 |
| 4.75% | $3,000 – $150,000 |
| 5% | $150,000 – $175,000 |
| 5.25% | $175,000 – $225,000 |
| 5.5% | $225,000 – $300,000 |
| 5.75% | $300,000 – $600,000 |
| 6.25% | $600,000 – $1,200,000 |
| 6.5% | Over $1,200,000 |
Maryland adds a 2% capital gains surtax on the entire gain once your income, including the gain, exceeds $350,000.
Head-of-household filers get their own schedule; this calculator applies the single schedule to married-filing-separately filers. Maryland taxes dividends as ordinary income at up to 6.5%, without the special rules it applies to long-term capital gains.
Official source: Maryland state tax agency. Federal rates come from IRS Rev. Proc. 2025-32 and IRC §1411.
Maryland capital gains tax: worked examples
Each example below is calculated with the same 2026 engine as the calculator, using federal long-term rates, the 3.8% NIIT and Maryland’s rules. Example 1 matches the calculator's starting inputs; Examples 2 and 3 show larger, long-term sales.
Example 1: $50,000 stock gain, long-term vs. short-term
A single filer earning $100,000 of taxable income sells shares for a $50,000 gain ($50,000 cost basis, $100,000 sale price). What they pay in Maryland if they held the shares more than a year versus one year or less:
| Line item | Long-termheld > 1 yr | Short-termheld ≤ 1 yr |
|---|---|---|
| Federal tax | $7,500 | $11,886 |
| Net Investment Income Tax (3.8%) | $0 | $0 |
| Maryland tax | $2,563 | $2,563 |
| Total tax | $10,063 | $14,449 |
| Net take-home profit | $39,938 | $35,552 |
- Long-term: the $50,000 gain is stacked on $100,000 of taxable income and taxed at federal long-term rates (15% on $50,000).
- Short-term: the same gain is taxed like wages at federal ordinary rates (22% on $5,700 and 24% on $44,300).
- No NIIT: income plus gain ($150,000) is below the $200,000 single-filer threshold.
- Effective state rate on the gain: 5.13% long-term vs. 5.13% short-term.
- Holding past one year saves $4,386 in total tax.
Example 2: $250,000 long-term gain, married filing jointly
A married couple filing jointly with $150,000 of other taxable income sells long-held shares for a $250,000 profit ($100,000 cost basis, $350,000 sale price).
| Federal capital gains tax | $37,500 |
|---|---|
| Net Investment Income Tax (3.8%) | $5,700 |
| Maryland tax | $18,750 |
| Total tax | $61,950 |
| Effective total rate | 24.78% |
| Effective state rate on the gain | 7.50% |
| After-tax profit | $188,050 |
- Federal: the $250,000 gain is stacked on $150,000 of taxable income and taxed at long-term rates (15% on $250,000), for $37,500.
- NIIT: income plus gain is $400,000, above the $250,000 married filing jointly threshold, so 3.8% applies to $150,000: $5,700.
- Maryland: taxed 5% on $25,000, 5.25% on $50,000, 5.5% on $75,000, and 5.75% on $100,000; plus $5,000 (capital gains surtax: 2% on the full gain when income exceeds $350,000), for $18,750.
- Sold short-term instead, the same gain would cost $83,222 in total tax ($18,750 of it state tax), so holding past one year saves $21,272.
Example 3: $1.5 million long-term gain, married filing jointly
A married couple filing jointly with $200,000 of other taxable income sells a concentrated, long-held stock position for a $1,500,000 profit ($500,000 cost basis, $2,000,000 sale price).
| Federal capital gains tax | $279,315 |
|---|---|
| Net Investment Income Tax (3.8%) | $55,100 |
| Maryland tax | $122,688 |
| Total tax | $457,103 |
| Effective total rate | 30.47% |
| Effective state rate on the gain | 8.18% |
| After-tax profit | $1,042,898 |
- Federal: the $1,500,000 gain is stacked on $200,000 of taxable income and taxed at long-term rates (15% on $413,700 and 20% on $1,086,300), for $279,315.
- NIIT: income plus gain is $1,700,000, above the $250,000 married filing jointly threshold, so 3.8% applies to $1,450,000: $55,100.
- Maryland: taxed 5.25% on $25,000, 5.5% on $75,000, 5.75% on $300,000, 6.25% on $600,000, and 6.5% on $500,000; plus $30,000 (capital gains surtax: 2% on the full gain when income exceeds $350,000), for $122,688.
- Sold short-term instead, the same gain would cost $695,528 in total tax ($122,688 of it state tax), so holding past one year saves $238,426.
Maryland vs. neighboring states
How Maryland compares with the states it borders, using the same worked examples.
| State | Treatment | Top long-term rate | State tax: $50K gain, single | State tax: $1.5M gain, joint |
|---|---|---|---|---|
| Maryland (this page) | Ordinary Income + Capital Gains Surtax | 8.5% | $2,563 | $122,688 |
| Delaware | Ordinary Income | 6.6% | $3,300 | $99,000 |
| District of Columbia | Ordinary Income | 10.75% | $4,250 | $151,375 |
| Pennsylvania | Flat Income Tax | 3.07% | $1,535 | $46,050 |
| Virginia | Ordinary Income | 5.75% | $2,875 | $86,250 |
| West Virginia | Ordinary Income | 4.58% | $2,290 | $68,700 |
On a $50,000 long-term gain for a single filer with $100,000 of other taxable income (Example 1), Pennsylvania and West Virginia would take less in state tax than Maryland. State tax is owed to the state where you live when you sell, so the comparison matters only if you are actually changing residency. See capital gains tax rates for all 50 states + DC.
Maryland capital gains tax FAQ
Does Maryland tax long-term stock capital gains in 2026 and 2027?
Yes. Maryland taxes gains as ordinary income at up to 6.5%, plus a 2% capital gains surtax when income exceeds $350,000; county income taxes are not included. Long-term and short-term gains are taxed alike, with a top rate of 8.5% including surtax. In 2026, a $50,000 long-term gain for a single filer with $100,000 of other taxable income owes $2,563 in Maryland tax. Maryland's rules are unchanged for 2027 under current law.
What is the combined federal and Maryland capital gains tax rate?
Adding the top marginal rates, long-term gains face up to 32.3% (20% federal + 3.8% NIIT + 8.5% Maryland) and short-term gains up to 49.3% (37% + 3.8% + 8.5%). Most investors pay far less than the top rates: on a $50,000 long-term gain for a single filer with $100,000 of other taxable income, the combined effective rate is 20.13% ($7,500 federal, $0 NIIT and $2,563 Maryland tax).
Are short-term and long-term gains taxed differently in Maryland?
No. Maryland taxes short-term and long-term gains at the same rates. Holding more than a year still lowers your federal tax.
How much Maryland tax would I owe on a $50,000 stock gain?
For a single filer with $100,000 of other taxable income and a $50,000 long-term gain, Maryland tax is $2,563 (5.13% of the gain). Adding $7,500 federal tax and $0 NIIT brings the total to $10,063, leaving $39,938 after tax.
How can Maryland investors legally reduce taxes on stock sales?
Hold shares for more than a year: long-term gains get federal rates of 0%, 15% or 20% instead of up to 37%. Harvest losses: realized losses offset gains dollar for dollar, and up to $3,000 of excess loss a year reduces other income on your federal return (see our tax-loss harvesting simulator). Trade inside tax-advantaged accounts such as a 401(k), traditional IRA or Roth IRA, where sales are not taxed when they happen. Donate appreciated long-term shares to charity instead of cash to avoid capital gains tax on the appreciation. Maryland’s 2% capital gains surtax applies above $350,000 a year, so spreading a very large sale over more than one tax year can reduce or avoid it.
Does Maryland tax dividends?
Maryland taxes dividends as ordinary income at up to 6.5%, without the special rules it applies to long-term capital gains.
Is there extra Maryland tax on very large gains?
Yes. Maryland adds a 2% capital gains surtax on the entire gain once your income, including the gain, exceeds $350,000. On a $1.5 million long-term gain for a married couple with $200,000 of other taxable income, total Maryland tax is $122,688, including $30,000 of surtax.
For the full federal picture (bracket stacking, the NIIT and ways to reduce the tax), read the 2026 stock capital gains tax guide.