# How much tax on a $2,500,000 capital gain in Maryland?

URL: https://vestedgrant.com/q/capital-gains/2-5m/maryland

Maryland · Long-term capital gain of $2,500,000

For 2026, a long-term $2,500,000 capital gain for a Maryland resident owes about $579,420 in federal capital gains tax and NIIT, plus at most $162,500 of Maryland tax (an upper bound at its top rate).

Tax year 2026 · Single filer, $250,000 of other wages, standard deduction, shares held more than one year. An estimate, not tax advice.

**At most $741,920** Total tax on the gainEffective at most 29.7%

**$484,420** Federal capital gains tax

**$95,000** Net investment income tax (3.8%)

**At most $162,500** Maryland taxUpper bound at top rate 6.5%

Federal tax on this gain: long-term against short-term_Held over a year saves about $431,776_

Short-term $1,011,196

Long-term $579,420

Both include the net investment income tax. Net after all tax on the long-term gain: at least $1,758,080.

## How the number was derived

The estimate assumes a single filer with $250,000 of other wages, the 2026 standard deduction of $16,100, and a gain held more than one year. The gain is stacked on top of ordinary taxable income for the federal long-term rates. The 3.8% net investment income tax applies to the lesser of net investment income or modified AGI above $200,000 (single) / $250,000 (married filing jointly); these thresholds are not indexed for inflation. Maryland tax is shown as an upper bound at Maryland's top rate of 6.5%, which applies to taxable income over $1,000,000 (single): at most $162,500 on the gain. We have not verified Maryland's full rate schedule, and any part of the income taxed in a lower bracket owes less.

Where the gain lands in the 2026 long-term capital gains brackets_Single filer, taxable income_

Wages after the standard deduction The gain: taxed at 15% and 20%

## Long-term against short-term

A short-term gain is taxed as ordinary income, up to 37% federally for 2026. For this $2,500,000 gain the federal short-term total would be about $1,011,196, against $579,420 long-term.

## How Maryland taxes the gain

Maryland taxes capital gains at regular state and local rates, and from 2025 adds a 2% tax on net capital gain for filers with federal AGI over $350,000 (Form 502CG), so top state rate on gains is 8.5% before county tax.

## Cost basis considerations

For RSU shares, basis is the value taxed as wages at vest. For ISO shares sold in a qualifying disposition, basis is the exercise price. For ESPP shares, basis depends on whether the sale is a qualifying or disqualifying disposition. These rules decide how much of a sale is gain at all.

## Questions people ask next

### What's the federal tax on a $2,500,000 long-term capital gain in 2026?

About $484,420 of federal capital gains tax plus $95,000 of net investment income tax, assuming $250,000 of other wages and the standard deduction. A single filer pays 20% on gains that push taxable income over $545,500.

### Short-term vs long-term?

If the same gain were short-term (held one year or less), it would be taxed as ordinary income at up to 37% federally: about $1,011,196 including NIIT, versus $579,420 long-term, a federal difference of about $431,776.

### How does Maryland tax capital gains?

Maryland taxes capital gains at regular state and local rates, and from 2025 adds a 2% tax on net capital gain for filers with federal AGI over $350,000 (Form 502CG), so top state rate on gains is 8.5% before county tax.

### What about QSBS?

Section 1202 depends on when the stock was issued. For stock acquired before July 5, 2025, up to the greater of $10,000,000 or 10x basis of gain per issuer can be excluded after 5 years, and the company's gross assets must not have exceeded $50,000,000. For stock acquired after July 4, 2025, the per-issuer cap is $15,000,000 (or 10x basis), the gross-assets limit is $75,000,000, and the exclusion is 50% after 3 years, 75% after 4 years, 100% after 5 years. Maryland conforms; it starts from federal adjusted gross income and generally follows federal law unless the General Assembly decouples, and the 2026 bill to add back QSBS gain (HB 801) never left committee, so federally excluded Section 1202 gain is also excluded in Maryland.

## Sources

1. [Rev. Proc. 2025-32](https://www.irs.gov/pub/irs-drop/rp-25-32.pdf) irs.gov ### Supporting text
> Married Individuals Filing Joint Returns and Surviving Spouses (§ 1(j)(2)(A)) $32,200 Heads of Households (§ 1(j)(2)(B)) $24,150 Unmarried Individuals (other than Surviving Spouses and Heads of Households) (§ 1(j)(2)(C)) $16,100
2. [IRS Topic no. 559, Net investment income tax](https://www.irs.gov/taxtopics/tc559) irs.gov ### Supporting text
> $125,000 for married filing separately $200,000 for single or head of household
3. [Md. Code, Tax-General § 10-105](https://mgaleg.maryland.gov/mgawebsite/Laws/StatuteText?article=gtg&section=10-105&enactments=false) mgaleg.maryland.gov ### Supporting text
> (ix) 6.25% of Maryland taxable income of $500,001 through $1,000,000; and (x) 6.50% of Maryland taxable income in excess of $1,000,000.
4. [Maryland 2025 Form 502CG](https://www.marylandcomptroller.gov/content/dam/mdcomp/tax/forms/2025/502cg.pdf) marylandcomptroller.gov ### Supporting text
> Chapter 604 of the Acts of 2025 imposes a 2% tax on certain capital gain income for individuals with a federal adjusted gross income of more than $350,000.
5. [Comptroller of Maryland, Tax Alert: Maryland Impacts of the One Big Beautiful Bill Act](https://www.marylandcomptroller.gov/content/dam/mdcomp/tax/legal-publications/alerts/tax-alert-maryland-impacts-of-the-one-big-beautiful-bill-act.pdf) marylandcomptroller.gov ### Supporting text
> As a conformity state, administration of Maryland income tax generally conforms to federal income tax laws except when the Maryland General Assembly has enacted decoupling legislation, or when automatically decoupled.
6. [26 U.S.C. § 1202 (Partial exclusion for gain from certain small business stock), as amended by Pub. L. 119-21](https://uscode.house.gov/us/usc/t26/s1202) uscode.house.gov ### Supporting text
> (A) if such stock was acquired by the taxpayer on or before the applicable date, $10,000,000, reduced by the aggregate amount of eligible gain taken into account by the taxpayer

Facts checked November 21, 2026 · Tax year 2026
