What if?
The same sale under different choices, each computed by the engine rather than estimated. Figures are the tax on the gain, so the rows stay comparable when a variant spans two tax years. Select one to load it into the calculator and read its full derivation.
Estimates only — this is not tax advice. Consult a CPA or enrolled agent before acting on these figures. The calculator does not model the alternative minimum tax, wash sales, like-kind exchanges, QSBS, installment sales, or state additions and subtractions. See what is out of scope.
Show your work — 0 steps, each with its rule and citation
How Massachusetts taxes a capital gain
Statutory authority: Mass. Gen. Laws ch. 62 § 4; Mass. Const. Amend. Art. CXXI (Fair Share surtax)
Massachusetts taxes income in classes, not on a ladder
Almost every other state computes one figure of taxable income and runs it up a rate ladder. Massachusetts does not. It sorts income into separate CLASSES and taxes each on its own terms, which is why a single "Massachusetts rate" tells you very little about what a sale will cost.
For capital gains the practical shape is: long-term gains ride the ordinary 5% rate, short-term gains are taxed in their own class at 8.5%, and long-term gains on collectibles or pre-1996 installment sales are taxed at 12%. That last class is not collectibles alone, which is a detail most summaries drop.
The holding-period penalty is 3.5 points, on top of the federal one
This is the number worth carrying away. Selling at eleven months rather than thirteen costs a Massachusetts resident an extra 3.5 percentage points of state tax on the whole gain — 8.5% instead of 5% — and that sits on top of a federal penalty that is far larger still.
Federally, the same early sale moves the gain from the 0/15/20% ladder to ordinary rates reaching 37%. Stack the two and a Massachusetts taxpayer in a high bracket can pay well over twenty points more for selling two months early, on an identical asset at an identical price.
It also compounds a subtler effect explained on the main guide: a short-term gain has no preferential rate to point at, so its true cost is easy to understate. The effective-rate section shows the same taxpayer's bill stated two ways, and the gap there — over ten points — is exactly this problem seen from the federal side. Massachusetts adds a state layer to it.
The 12% class: collectibles or pre-1996 installment sales
Massachusetts taxes long-term gains on collectibles or pre-1996 installment sales at 12% — more than double the 5% that applies to other long-term gains. The Department’s own worksheet, Form 2-ES line 2b, names both, and summaries that describe this as the “collectibles rate” are leaving out half of what it covers.
Federally, collectibles are taxed at a maximum of 28% rather than the usual 20% ceiling, so this is one of the few situations where both governments treat an asset class less favourably at once. If you are selling art, coins, or precious metals as a Massachusetts resident, neither the standard federal long-term rate nor the standard state rate is the one that applies to you.
The 4% Fair Share surtax applies above $1,107,750
A 4% surtax applies to taxable income above an annually-indexed threshold, taking a long-term gain to 9% and a short-term gain to 12.5% above that line. For tax year 2026 the threshold is $1,107,750, read from the Department of Revenue’s own 2026 Form 2-ES.
Two details decide whether it applies to you, and both are easy to get wrong. The first is the base: it is measured on Massachusetts taxable income, not federal adjusted gross income. The second is that the base is every rate class added together — Form 2-ES line 3 adds the 5%, 8.5% and 12% lines before subtracting the threshold. A taxpayer with $700,000 of salary and $500,000 of long-term gain is over the line even though neither figure approaches it alone.
This calculator carried the surtax as uncomputable for three sessions rather than use a figure from a secondary source. Two amounts circulated — $1,107,750 and $1,053,750 — and the lower one turned out to be the 2024 threshold being republished as current, not a genuine disagreement. The series runs $1,000,000 for 2023, $1,053,750 for 2024, $1,083,150 for 2025 and $1,107,750 for 2026. It is now applied, from the primary document.
Massachusetts follows the federal home-sale exclusion
Massachusetts conforms to the federal Section 121 exclusion, so the $250,000 of gain a single filer can exclude on a main home — $500,000 on a joint return — is excluded for state purposes as well. Gain removed federally never reaches the Massachusetts calculation.
Given how much of the state's household wealth sits in appreciated housing, this is often the single largest item on a Massachusetts return that involves a sale. The exclusion is statutory and has never been indexed, so in the Boston market a couple can exceed $500,000 of gain on an ordinary family home, and the excess is taxed as a straightforward long-term gain at 5%.
A worked Massachusetts example
Every figure below is computed by the same engine that powers the calculator above, at the moment this page was built — not typed in by hand. When the tax-year data is updated, this example updates with it.
Sold at 366 days — long-term
A single Massachusetts filer earning $120,000 sells shares for a $200,000 gain, having held them just over a year. The gain is long-term in both systems.
- Taxable income after deduction
- $303,900
- Taxable gain
- $200,000
- Tax owed without the sale
- $17,570
- Tax the sale added
- $34,560
- of which net investment income tax
- $4,560
- Total federal tax
- $52,130
- Massachusetts state tax
- $10,000
- Effective rate on the gain
- 17.28%
Massachusetts takes 5%. Federally the gain sits on the preferential ladder. Now compare the identical sale two days earlier.
Caveats on this example (1)
- Net investment income was derived from capital gains and qualified dividends only. Interest, non-qualified dividends, rents, royalties and passive business income inside ordinaryIncome are also net investment income under IRC 1411(c) and are not counted here.
Show the working — 13 steps, each with its citation
- Net short-term capital gain or loss for the year$0
Assets held one year or less. Taxed at ordinary rates if a net gain.
- Net long-term capital gain or loss for the year$200,000
Assets held more than one year. Eligible for the 0/15/20% rates.
- Standard deduction-$16,100
Adjusted gross income of $320,000 less $16,100.
- Taxable income$303,900
The figure the rate tables and the capital gain ceilings are both measured against.
- Ordinary income taxed at 10%$1,240
$12,400 of taxable income between $0 and $12,400.
- Ordinary income taxed at 12%$4,560
$38,000 of taxable income between $12,400 and $50,400.
- Ordinary income taxed at 22%$11,770
$53,500 of taxable income between $50,400 and $103,900.
- Ordinary income stacked below the long-term gain$103,900
Long-term gain is taxed by reference to where it sits ON TOP of $103,900 of other taxable income, not from the bottom of the rate table.
- Long-term gain taxed at 15%$30,000
Gain between the $49,450 zero-rate ceiling and the $545,500 15% ceiling.
- Net investment income tax threshold$200,000
Modified AGI of $320,000 against the $200,000 threshold for a single filer. This threshold is statutory and is not adjusted for inflation.
- Net investment income tax at 3.8%$4,560
3.8% of $120,000, the lesser of net investment income ($200,000) and the amount by which modified AGI exceeds the threshold ($120,000). Here the binding figure is the excess of modified AGI over the threshold.
- Massachusetts tax on long-term gain at 5%$10,000
Long-term gains ride the ordinary rate.
- Total tax$62,130
$62,130 on $320,000 of total income, an effective rate of 19.42%.
The identical gain, sold at 364 days — short-term
Same filer, same income, same $200,000 gain, same asset. The only difference is that the sale happened two days before the one-year anniversary.
- Taxable income after deduction
- $303,900
- Taxable gain
- $200,000
- Tax owed without the sale
- $17,570
- Tax the sale added
- $62,124.25
- of which net investment income tax
- $4,560
- Total federal tax
- $79,694.25
- Massachusetts state tax
- $17,000
- Effective rate on the gain
- 31.06%
Massachusetts now takes 8.5% instead of 5% — the 3.5-point spread — and federally the gain has left the preferential ladder entirely, taxed as ordinary income. Two days of holding period, and both bills move at once.
Caveats on this example (1)
- Net investment income was derived from capital gains and qualified dividends only. Interest, non-qualified dividends, rents, royalties and passive business income inside ordinaryIncome are also net investment income under IRC 1411(c) and are not counted here.
Show the working — 15 steps, each with its citation
- Net short-term capital gain or loss for the year$200,000
Assets held one year or less. Taxed at ordinary rates if a net gain.
- Net long-term capital gain or loss for the year$0
Assets held more than one year. Eligible for the 0/15/20% rates.
- Short-term gain added to ordinary income$200,000
Short-term capital gain has no preferential rate.
- Standard deduction-$16,100
Adjusted gross income of $320,000 less $16,100.
- Taxable income$303,900
The figure the rate tables and the capital gain ceilings are both measured against.
- Ordinary income taxed at 10%$1,240
$12,400 of taxable income between $0 and $12,400.
- Ordinary income taxed at 12%$4,560
$38,000 of taxable income between $12,400 and $50,400.
- Ordinary income taxed at 22%$12,166
$55,300 of taxable income between $50,400 and $105,700.
- Ordinary income taxed at 24%$23,058
$96,075 of taxable income between $105,700 and $201,775.
- Ordinary income taxed at 32%$17,424
$54,450 of taxable income between $201,775 and $256,225.
- Ordinary income taxed at 35%$16,686.25
$47,675 of taxable income between $256,225 and $303,900.
- Net investment income tax threshold$200,000
Modified AGI of $320,000 against the $200,000 threshold for a single filer. This threshold is statutory and is not adjusted for inflation.
- Net investment income tax at 3.8%$4,560
3.8% of $120,000, the lesser of net investment income ($200,000) and the amount by which modified AGI exceeds the threshold ($120,000). Here the binding figure is the excess of modified AGI over the threshold.
- Massachusetts tax on short-term gain at 8.5%$17,000
Short-term gains are taxed in their own class at a higher rate.
- Total tax$96,694.25
$96,694.25 on $320,000 of total income, an effective rate of 30.22%.
What this calculator does not cover for Massachusetts
The Massachusetts figure stacks your gain on your federal ordinary taxable income. Massachusetts computes its own taxable income with its own additions and subtractions, which are not modelled here — so treat the state number as a close approximation for a straightforward wage-and-sale situation, and as a rough one if your return carries significant state adjustments.
Full-year residency is assumed throughout. Part-year residents, non-residents, and gains sourced to property in another state all turn on rules this calculator does not model. The complete list of what is in and out of scope is on the methodology page.
Other states
- New YorkOrdinary income, nine brackets to 10.9%. NYC and Yonkers add their own.
- New JerseyOrdinary income to 10.75%. Fixed thresholds, and no loss carryforward.
- PennsylvaniaFlat 3.07%, no holding-period distinction, and unusual loss rules.
See the full 2026 capital gains guide for the federal rules that apply wherever you live — the rate ladder, the net investment income tax, the home-sale exclusion and depreciation recapture — plus every state we currently cover.