2026 state guide
How Massachusetts taxes capital gains
Massachusetts uses different flat rates by holding period: short-term gains are taxed at 8.5% and long-term gains at 5%.
Massachusetts adds a 4% millionaire surtax on taxable income above $1,107,750, and a large gain counts toward that income.
This calculator applies the same brackets to every filing status. Massachusetts taxes dividends at a flat 5%, plus a 4% surtax on income above $1,107,750.
Official source: Massachusetts state tax agency. Federal rates come from IRS Rev. Proc. 2025-32 and IRC §1411.
Massachusetts 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 Massachusetts’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 Massachusetts 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 |
| Massachusetts tax | $2,500 | $4,250 |
| Total tax | $10,000 | $16,136 |
| Net take-home profit | $40,000 | $33,864 |
- 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.00% long-term vs. 8.50% short-term.
- Holding past one year saves $6,136 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 |
| Massachusetts tax | $12,500 |
| Total tax | $55,700 |
| Effective total rate | 22.28% |
| Effective state rate on the gain | 5.00% |
| After-tax profit | $194,300 |
- 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.
- Massachusetts: taxed 5% on $250,000, for $12,500.
- Sold short-term instead, the same gain would cost $85,722 in total tax ($21,250 of it state tax), so holding past one year saves $30,022.
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 |
| Massachusetts tax | $98,690 |
| Total tax | $433,105 |
| Effective total rate | 28.87% |
| Effective state rate on the gain | 6.58% |
| After-tax profit | $1,066,895 |
- 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.
- Massachusetts: taxed 5% on $1,500,000; plus $23,690 (millionaire surtax: 4% on taxable income above $1,107,750), for $98,690.
- Sold short-term instead, the same gain would cost $724,031 in total tax ($151,190 of it state tax), so holding past one year saves $290,926.
Massachusetts vs. neighboring states
How Massachusetts 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 |
|---|---|---|---|---|
| Massachusetts (this page) | Split Short/Long-Term Rates | 9% | $2,500 | $98,690 |
| Connecticut | Ordinary Income | 6.99% | $3,000 | $101,930 |
| New Hampshire | No Capital Gains Tax | 0% | $0 | $0 |
| New York | Ordinary Income | 10.9% | $2,950 | $101,580 |
| Rhode Island | Ordinary Income | 5.99% | $2,375 | $89,850 |
| Vermont | Ordinary Income with Long-Term Exclusion | 8.75% | $3,192 | $129,476 |
On a $50,000 long-term gain for a single filer with $100,000 of other taxable income (Example 1), New Hampshire and Rhode Island would take less in state tax than Massachusetts. 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.
Massachusetts capital gains tax FAQ
Does Massachusetts tax long-term stock capital gains in 2026 and 2027?
Yes. Massachusetts taxes long-term gains at 5% and short-term gains at 8.5%, plus a 4% surtax on income above $1,107,750. Long-term gains get a break: the top rate is 9%, versus 12.5% for short-term gains. In 2026, a $50,000 long-term gain for a single filer with $100,000 of other taxable income owes $2,500 in Massachusetts tax. Massachusetts's rules are unchanged for 2027 under current law. Its 2027 inflation-adjusted surtax threshold has not been published yet, so 2027 estimates use the 2026 figures.
What is the combined federal and Massachusetts capital gains tax rate?
Adding the top marginal rates, long-term gains face up to 32.8% (20% federal + 3.8% NIIT + 9% Massachusetts) and short-term gains up to 53.3% (37% + 3.8% + 12.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.00% ($7,500 federal, $0 NIIT and $2,500 Massachusetts tax).
Are short-term and long-term gains taxed differently in Massachusetts?
Yes. Massachusetts gives long-term gains a break (top rate 9% vs. 12.5% for short-term). On a $50,000 long-term gain for a single filer with $100,000 of other taxable income, state tax is $2,500 long-term vs. $4,250 short-term.
How much Massachusetts 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, Massachusetts tax is $2,500 (5.00% of the gain). Adding $7,500 federal tax and $0 NIIT brings the total to $10,000, leaving $40,000 after tax.
How can Massachusetts 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%, and Massachusetts taxes them at a lower rate too. 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. Massachusetts’s 4% millionaire surtax applies above $1,107,750 a year, so spreading a very large sale over more than one tax year can reduce or avoid it.
Does Massachusetts tax dividends?
Massachusetts taxes dividends at a flat 5%, plus a 4% surtax on income above $1,107,750.
Is there extra Massachusetts tax on very large gains?
Yes. Massachusetts adds a 4% millionaire surtax on taxable income above $1,107,750, and a large gain counts toward that income. On a $1.5 million long-term gain for a married couple with $200,000 of other taxable income, total Massachusetts tax is $98,690, including $23,690 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.