Tax Calculator

Paycheck Tax Calculator

All states
Maryland flag2026Rank #44

Maryland Capital Gains Tax

9.5% long-term · 9.5% short-term · Taxed as ordinary income.

By Sammy S. · Founder · AuthorUpdated for 2026

Maryland capital gains tax snapshot

State tax up to 6.5% plus average local tax (~3%), for a modeled top near 9.5%. The comparison model includes Maryland's typical local add-on from the income-tax engine. Actual county rates vary.

Long-term top effective

9.5%

Low-to-high rank #44

Short-term top effective

9.5%

State treatment applies

Ordinary top rate

9.5%

Statutory baseline

State treatment

Taxed as ordinary income

See rules below

Compare Maryland with another state

Compare any two states

Long- and short-term rates, tax treatment, and scenario estimates.

Short-term vs long-term gains in Maryland

Short-term gains

9.5%

Assets generally held one year or less are modeled under the state's applicable short-term or ordinary-income rules.

Long-term gains

9.5%

Taxed as ordinary income. The rate reflects modeled exclusions, preferential caps, excise treatment, and listed surcharges.

Maryland capital gains tax examples

Single-filer examples show incremental state tax, federal tax, NIIT, and total modeled tax. They are estimates, not tax-return calculations.

$50k long-term gain · $80k other taxable income

State tax
$3,936.13
Federal + NIIT
$7,500
Total tax
$11,436.13
Effective state
7.87%

$250k long-term gain · $100k other taxable income

State tax
$21,257
Federal + NIIT
$43,200
Total tax
$64,457
Effective state
8.5%

$50k short-term gain · $80k other taxable income

State tax
$3,936.13
Federal + NIIT
$11,486
Total tax
$15,422.13
Effective state
7.87%

$1.5M long-term gain · $150k other taxable income

State tax
$138,305.63
Federal + NIIT
$335,325
Total tax
$473,630.63
Effective state
9.22%
Calculate your sale

Personal estimate

What changes your Maryland capital gains tax bill?

Maryland generally includes capital gains in ordinary taxable income. The incremental bill depends on the brackets already occupied by other income.

Adjusted cost basis

A higher documented basis produces a smaller taxable gain. Include eligible purchase costs, reinvested distributions, improvements, and prior adjustments.

Holding period

Federal treatment changes after one year. Maryland's state treatment is shown separately for short- and long-term gains above.

Other taxable income

Other income determines federal bracket stacking and where the gain enters Maryland's ordinary brackets. It can also trigger NIIT.

Capital losses

Current-year and carried-forward capital losses can offset gains under federal rules. State conformity and the treatment of state-only adjustments should be checked.

Asset and transaction type

Home sales, rental property, collectibles, qualified small-business stock, installment sales, and business assets can follow special rules.

Residency and sourcing

A Maryland resident may be taxed differently from a nonresident with Maryland-source gain. Domicile, sale date, asset location, and business activity can control.

Worked Maryland capital gains example

This example follows a single filer with a $250,000 long-term gain and $100,000 of other taxable income. It shows why the state headline rate and the final effective rate are not always the same.

Calculation flow

  1. 1.Taxable gain: $250,000 after the example's assumed basis and loss adjustments.
  2. 2.Income stacking: the gain sits above $100,000 of other taxable income for federal and progressive state calculations.
  3. 3.Maryland treatment: State tax up to 6.5% plus average local tax (~3%), for a modeled top near 9.5%.
  4. 4.NIIT test: modeled MAGI exceeds the $200,000 single-filer threshold, so part of the gain is exposed to 3.8% NIIT.

Modeled result

State tax
$21,257
Federal capital gains tax
$37,500
Federal NIIT
$5,700
Combined modeled tax
$64,457

This is an educational comparison, not a return calculation. Filing status, deductions, local taxes, asset exceptions, and MAGI adjustments can change the result.

How different assets are treated in Maryland

The table rates describe general capital gains. Before applying them, determine whether the transaction has a federal exclusion, recapture component, or a Maryland-specific exemption.

Stocks, funds, and crypto

Maryland's general taxed as ordinary income applies after basis, holding period, and qualifying state adjustments are determined.

Primary residence

Federal law may exclude up to $250,000 of gain for eligible single filers or $500,000 for many joint filers who satisfy ownership and use tests. Confirm whether the state follows the federal exclusion.

Rental and business property

Depreciation recapture may be taxed as ordinary income or at special federal rates before the remaining gain receives capital treatment. A business sale may allocate price across several asset classes.

Before reporting a gain in Maryland

Reconcile the tax lots

Match sale proceeds to the shares or units sold. FIFO defaults can produce a different gain than specific identification.

Gather basis evidence

Save confirmations, transfer statements, reinvestment records, improvement invoices, and inheritance or gift basis documents.

Check estimated-tax deadlines

A large gain may create a quarterly federal and state payment even when wage withholding normally covers your return.

Review residency evidence

If you moved into or out of Maryland, document domicile, dates, asset location, and allocation. A move after the sale generally cannot change the completed transaction's sourcing.

Separate federal and state adjustments

Maryland may begin with federal income but apply its own additions, subtractions, exclusions, credits, or loss carryforwards.

Use the official return instructions

Confirm the current Maryland forms and instructions before filing, especially when the gain involves real estate, a business, nonresident sourcing, or a special exclusion.

How to read the Maryland figures

Top rate

A high-income comparison benchmark; progressive brackets may produce a lower effective rate.

Taxable gain

Sale proceeds minus adjusted basis, selling costs, exclusions, and eligible loss offsets.

Other income

Federal and progressive state brackets stack gains on top of other taxable income.

Not modeled

Every local tax, residency allocation, credit, loss carryforward, and asset-specific exception.

State rule: The comparison model includes Maryland's typical local add-on from the income-tax engine. Actual county rates vary.

Maryland capital gains tax FAQs

State tax up to 6.5% plus average local tax (~3%), for a modeled top near 9.5%. The comparison model includes Maryland's typical local add-on from the income-tax engine. Actual county rates vary.

The modeled top long-term effective state rate is 9.5% (rank #44, where #1 is lowest).

Maryland taxes capital gains as ordinary income with no long-term rate preference.

In the single-filer model with $80,000 of other taxable income, estimated state tax is about $3,936.13 (7.87% of the gain).

About $21,257 of state tax in the modeled single-filer scenario with $100,000 of other taxable income.

About $3,936.13 of state tax in the modeled single-filer scenario with $80,000 of other taxable income.

Federal long-term and short-term brackets are the same nationwide. State of residence does not change IRS capital gains rates, though it changes your combined federal + state bill.

NIIT is federal. High-MAGI investors may owe 3.8% regardless of state. Some states (for example Minnesota) also have their own investment-income surcharges.

Maryland Comptroller — Individual income tax: https://www.marylandtaxes.gov/individual/index.php

Yes. Use the pair picker on this page or open a head-to-head comparison for rates, treatments, and scenario dollar differences.

Capital gains treatment is one factor. Also compare wage income tax, property tax, sales tax, housing costs, and employment opportunities.

Taxable gain equals amount realized minus adjusted basis, after exclusions and loss offsets. Unused capital losses may carry forward under federal rules.
Capital gains tax calculator→All state rankings→