Massachusetts Capital Gains Tax Calculator - State Tax, 4% Surtax & Federal Rate Estimator

Use this Massachusetts capital gains tax calculator to estimate your state capital gains tax (5% long-term / 8.5% short-term), 4% Fair Share Amendment surtax, and federal tax liability.

Updated: July 22, 2026 • Free Tool

Massachusetts Capital Gains Tax Calculator

Total selling price of real estate, stocks, crypto, or business assets.

Original purchase price plus qualifying improvements or adjustments.

Realtor commissions, legal fees, transfer taxes, and closing costs.

W-2 wages, business income, or other income to determine 4% surtax eligibility.

Massachusetts taxes long-term gains at 5.0% and short-term gains at 8.5%.

Used for federal capital gains tax and NIIT threshold estimations.

Results

Taxable Net Capital Gain
$0
MA Base Capital Gains Tax $0
MA 4% Fair Share Surtax $0
Total MA State Tax Liability $0
MA Effective Tax Rate 0%
Estimated Federal Tax $0
Total Combined Tax Burden $0
Combined Effective Tax Rate 0%
Net Cash Proceeds After Tax $0

What Is Massachusetts Capital Gains Tax Calculator?

The Massachusetts capital gains tax calculator allows real estate sellers, stock investors, and business owners to estimate state income tax, the 4% Fair Share Amendment surtax, and federal tax liabilities on asset sales in Massachusetts. In Massachusetts, capital gains taxation applies distinct rates based on the asset holding period: long-term gains (held over one year) are taxed at a flat rate of 5.0%, while short-term gains (held one year or less) are taxed at 8.5%. In addition, under the Fair Share Amendment (Article 44 of the Massachusetts Constitution), taxpayers with total annual taxable income exceeding $1,053,750 (for tax year 2024) pay an additional 4% surtax on the excess amount.

  • Massachusetts Real Estate Sales: Estimate state tax (5.0%), 4% Fair Share surtax, and federal liability when selling property in Boston, Cambridge, or Worcester.
  • Stock & Crypto Portfolio Gains: Calculate 8.5% short-term or 5.0% long-term state tax on equity investments and digital assets.
  • Small Business & Entity Liquidations: Evaluate combined state and federal tax drag when selling business assets or partnership shares.
  • High-Earner Surtax Modeling: Model the impact of the 4% Fair Share surtax on taxable income exceeding $1,053,750.

Massachusetts taxes net capital gains realized by state residents on worldwide assets and by non-residents on Massachusetts real estate and business property sales. Short-term gains are taxed at 8.5%, representing one of the highest short-term rates in the nation, whereas long-term gains enjoy a flat 5.0% state individual income tax rate.

The Fair Share Amendment surtax adds 4% to taxable income above $1,053,750, bringing top combined state tax on short-term gains to 12.5% and long-term gains to 9.0%. Federal capital gains taxes (0%, 15%, or 20%) plus the 3.8% Net Investment Income Tax (NIIT) stack on top of state liabilities.

Understanding how cost basis adjustments, holding periods, wage income, and federal bracket interactions affect your final return prevents unexpected tax obligations. This Massachusetts capital gains tax calculator models all state and federal tax components instantly.

For taxpayers comparing state tax models with progressive multi-bracket systems, our Maryland capital gains tax calculator offers detailed state and county local tax rate comparisons.

How Massachusetts Capital Gains Tax Calculator Works

Calculating your Massachusetts capital gains tax liability requires finding net taxable capital gain, determining state base tax (5.0% or 8.5%), evaluating 4% Fair Share surtax eligibility, and adding estimated federal capital gains tax.

Net Gain = Sale Proceeds - Cost Basis - Selling Expenses | MA Base Tax = Net Gain * State Rate (5.0% Long-Term or 8.5% Short-Term) | MA Surtax = Max(0, Total Income - $1,053,750) * 4.0%
  • Gross Sale Proceeds: Total selling price received from asset disposal.
  • Cost Basis & Expenses: Original purchase price plus improvement costs and closing fees.
  • Holding Duration: Short-term (<= 1 year, 8.5%) versus Long-term (> 1 year, 5.0%).
  • Background Income: W-2 wages or business income used to test the $1,053,750 surtax threshold.

To calculate state tax liability in Massachusetts, subtract your cost basis and selling expenses from gross proceeds to establish net capital gain.

Apply the 5.0% rate for assets held longer than one year, or 8.5% for assets held one year or less.

Add background annual income to net capital gain. If total income exceeds $1,053,750, multiply the excess by 4.0% to determine the Fair Share surtax.

Long-Term Real Estate Sale in Boston

Sale Proceeds: $1,200,000 | Cost Basis: $400,000 | Selling Expenses: $50,000 | Holding Period: Long-Term (>1 Year) | Other Income: $150,000 | Single

Net Gain = $750,000. MA Base Tax (5.0%) = $37,500. Total Income = $900,000 (under $1,053,750 threshold; Surtax = $0). Fed Tax (23.8%) = $178,500.

$216,000 Total Estimated Tax (28.80% Effective Rate)

The seller pays $37,500 in MA state tax and $178,500 in federal tax, leaving net cash proceeds of $934,000 after tax.

Short-Term Stock Sale Triggering 4% Surtax

Sale Proceeds: $1,500,000 | Cost Basis: $500,000 | Selling Expenses: $0 | Holding Period: Short-Term (<=1 Year) | Other Income: $300,000 | Single

Net Gain = $1,000,000. MA Base Tax (8.5%) = $85,000. Total Income = $1,300,000 ($246,250 over $1,053,750 threshold). MA Surtax (4%) = $9,850.

$94,850 Total MA State Tax Liability

Short-term holding rate (8.5%) plus the 4% Fair Share surtax results in an effective state tax rate of 9.49% on net gain.

According to Massachusetts Department of Revenue (DOR), long-term capital gains are taxed at 5%, short-term capital gains at 8.5%, and annual taxable income above $1,053,750 is subject to a 4% surtax.

For property owners comparing high-tax state income structures, the California capital gains tax calculator provides state bracket analysis reaching 13.3%.

Key Concepts Explained

Essential legal rules, rates, and thresholds governing Massachusetts state capital gains taxation.

Long-Term Capital Gains (5.0%)

Assets held for more than 12 months qualify for Massachusetts flat 5.0% individual income tax rate.

Short-Term Capital Gains (8.5%)

Assets held for one year or less are taxed at a higher state rate of 8.5% in Massachusetts.

4% Fair Share Amendment Surtax

An additional 4.0% state surtax applies to total annual taxable income exceeding $1,053,750 (2024 threshold).

Federal & NIIT Stacking

Federal capital gains tax (0%, 15%, 20%) plus 3.8% Net Investment Income Tax (NIIT) stacks on top of Massachusetts state taxes.

Massachusetts treats capital gains as personal income subject to state individual tax rules.

Properly categorizing holding periods and cost basis ensures you do not overpay state or federal tax.

To calculate total background earnings before testing the surtax threshold, see our Annual income calculator.

How to Use This Calculator

Follow these step-by-step instructions to calculate your Massachusetts capital gains tax liability.

  1. 1 Enter Gross Sale Proceeds: Input the total selling price received from the asset sale.
  2. 2 Input Cost Basis & Expenses: Provide original purchase price, improvements, realtor commissions, and legal fees.
  3. 3 Select Holding Period: Choose Long-Term (> 1 Year, 5%) or Short-Term (<= 1 Year, 8.5%).
  4. 4 Enter Other Taxable Income: Include W-2 wages or business income to test the 4% surtax threshold.
  5. 5 Review Tax Summary: Analyze state base tax, 4% surtax, federal estimate, effective tax rate, and net proceeds.

A single filer selling stock for $100,000 with a $40,000 cost basis ($55,000 net gain after $5,000 expenses) and $75,000 background income pays $2,750 in MA state tax (long-term 5.0%) or $4,675 (short-term 8.5%).

Benefits of Using This Calculator

Key advantages of using this Massachusetts capital gains tax estimator for financial planning.

  • Dual Rate Precision: Distinguishes between Massachusetts 5.0% long-term and 8.5% short-term state tax rates.
  • 4% Fair Share Surtax Integration: Automatically evaluates the $1,053,750 income threshold to compute surtax liability.
  • Combined State & Federal View: Displays total effective tax rates combining state tax, surtax, federal capital gains tax, and NIIT.
  • Net Proceeds Calculation: Shows exact net cash remaining after commissions, fees, state tax, and federal tax deductions.

Using this calculator empowers Massachusetts taxpayers to anticipate total tax drag prior to completing major transactions.

Modeling surtax thresholds early prevents surprise tax liabilities when filing Massachusetts Form 1.

To examine alternative state tax structures and deductions, review our Louisiana capital gains tax calculator.

Factors That Affect Your Results

Critical factors influencing your overall Massachusetts state and federal capital gains tax liability.

Primary Residence Exclusion ($250k / $500k)

Federal and Massachusetts rules exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain on primary home sales if residency requirements are met.

Capital Loss Offsets & Carryforwards

Capital losses offset gains in full, and up to $3,000 of excess loss can offset ordinary income on state returns.

Inflation-Indexed Surtax Threshold

The 4% Fair Share Amendment surtax threshold adjusts annually for inflation ($1,053,750 for tax year 2024).

  • This tool provides estimates for financial planning purposes and does not replace professional CPA tax advice.
  • Complex scenarios like 1031 exchanges, installment sales, or Qualified Small Business Stock (QSBS) require specialized consultation.

Always consult a qualified Certified Public Accountant (CPA) or tax professional in Massachusetts for high-value sales.

According to Massachusetts Department of Revenue (DOR), long-term capital gains are taxed at 5%, short-term capital gains at 8.5%, and annual taxable income above $1,053,750 is subject to a 4% surtax.

Massachusetts capital gains tax calculator showing sale proceeds, cost basis, filing status, holding period, state tax, surtax, and total tax liability breakdown
Massachusetts capital gains tax calculator showing sale proceeds, cost basis, filing status, holding period, state tax, surtax, and total tax liability breakdown

Frequently Asked Questions

Q: What is the Massachusetts state capital gains tax rate?

A: Massachusetts taxes long-term capital gains (held > 1 year) at 5.0% and short-term capital gains (held <= 1 year) at 8.5%. Taxpayers with total annual taxable income over $1,053,750 pay an extra 4% Fair Share surtax on income above the threshold.

Q: How does Massachusetts tax short-term vs long-term capital gains?

A: Short-term capital gains are taxed at 8.5% at the state level in Massachusetts, while long-term capital gains receive a preferential 5.0% flat rate.

Q: What is the Massachusetts 4% tax surtax on high earners (Millionaires Tax)?

A: Voters enacted the Fair Share Amendment surtax, adding a 4% state income surtax on top of standard income tax for portion of taxable income exceeding $1,053,750 for tax year 2024.

Q: Does Massachusetts allow capital loss deductions to offset gains?

A: Yes. Massachusetts allows taxpayers to offset capital gains with capital losses. Net capital losses can offset up to $3,000 of ordinary income, with remaining losses carried forward.

Q: How do federal capital gains taxes combine with Massachusetts state tax?

A: Federal capital gains tax rates (0%, 15%, or 20%) plus the 3.8% Net Investment Income Tax (NIIT) combine with Massachusetts state tax (5% or 8.5%) and surtax (4%), producing a top combined rate near 32.8% for top earners.

Q: Are there exemptions for selling a primary residence in Massachusetts?

A: Yes. Massachusetts follows federal Section 121 rules, allowing homeowners to exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain on their primary home if lived in for 2 of the past 5 years.