Skip to content
Finance & Wealth

3.8 Medicare Surtax Explained: A Comprehensive Guide to Net Investment Income Tax

In this article

The 3.8% Medicare Surtax, officially known as the Net Investment Income Tax (NIIT), is a federal levy imposed on the investment earnings of high-income individuals, estates, and trusts. It applies to the lesser of a taxpayer’s net investment income or the amount by which their modified adjusted gross income exceeds specific statutory thresholds.

As we navigate the tax landscape of 2026, the 3.8% Medicare Surtax remains a critical consideration for investors and high earners. Originally established by the Affordable Care Act (ACA) of 2010 and effective since 2013, this tax was designed to help fund Medicare expansion. Unlike standard payroll taxes, which are levied on earned income like wages and self-employment earnings, the NIIT targets "passive" income—the money your money makes.

Understanding this tax is essential because the income thresholds that trigger it are not indexed for inflation. This means that as nominal incomes and asset values rise over time, an increasing number of taxpayers find themselves subject to the surtax. To manage your tax liability effectively, you must understand what counts as investment income, how the "modified" portion of your income is calculated, and what strategies can be used to mitigate the impact.

The Statutory Thresholds for 2026

The application of the 3.8% surtax is determined by your Modified Adjusted Gross Income (MAGI) and your filing status. A defining characteristic of the NIIT is that its trigger points have remained static since its inception. In an era of fluctuating tax brackets and inflation adjustments for other credits, these fixed thresholds create a "bracket creep" effect.

For the 2026 tax year, the MAGI thresholds are as follows:

Filing Status MAGI Threshold
Married Filing Jointly $250,000
Qualifying Surviving Spouse with dependent child $250,000
Single or Head of Household $200,000
Married Filing Separately $125,000

If your MAGI is below these amounts, you do not owe the 3.8% surtax, regardless of how much investment income you earned. If you exceed these amounts, the tax is applied to the lesser of two figures: your total net investment income or the amount by which your MAGI exceeds the threshold.

Defining Modified Adjusted Gross Income (MAGI)

For most U.S. citizens and residents living domestically, MAGI for the purposes of the NIIT is simply their Adjusted Gross Income (AGI). However, for taxpayers living abroad, MAGI is increased by the amount of any foreign earned income excluded from gross income under Section 911 of the Internal Revenue Code. It is important to calculate this correctly, as excluding foreign income might keep your AGI low while your MAGI remains high enough to trigger the surtax on your domestic investments.

What Qualifies as Net Investment Income?

To calculate the tax, you must first aggregate all forms of investment income and then subtract allowable deductions. The IRS categorizes "investment income" into three primary buckets.

1. Passive Business and Financial Income

This includes interest, dividends, capital gains, rental and royalty income, and non-qualified annuities. If you have a brokerage account that generates dividends or you sell a stock for a profit, those gains contribute to your net investment income. Similarly, if you own a rental property, the net profit (after expenses) is included.

2. Income from "Passive" Activities

This involves income from a trade or business in which you do not "materially participate." If you are a silent partner in a partnership or an S-corporation and receive a share of the profits, that income is generally subject to the 3.8% surtax. The determination of "material participation" is complex and involves meeting specific IRS tests regarding the number of hours worked in the business.

3. Income from Trading Financial Instruments or Commodities

If your business involves trading stocks, bonds, or commodities, the income generated from those activities is specifically included in the definition of investment income for the surtax, even if you are an active participant in that trade.

The "Net" in Net Investment Income

The tax is not necessarily applied to your gross investment income. You are permitted to deduct certain expenses that are "properly allocable" to that income. These may include:

  • Investment interest expenses.
  • Advisory and legal fees related to the investment.
  • State and local taxes allocated to the investment income.
  • Expenses related to rental and royalty income.

By subtracting these expenses, you arrive at the "Net" figure that is used for the surtax calculation.

Medicare Explained: Eligibility, Benefits, Costs, and More!
Medicare Explained: Eligibility, Benefits, Costs, and More!

What is Exempt from the 3.8% Surtax?

A common misconception is that all income is subject to the NIIT once you cross the MAGI threshold. In reality, several significant income sources are excluded from the definition of net investment income.

  • Wages and Self-Employment Income: While these are subject to standard Medicare payroll taxes (and potentially the 0.9% Additional Medicare Tax), they are not included in the 3.8% NIIT calculation.
  • Active Business Income: If you own a business and materially participate in its operations, the profits from that business (such as S-corp distributions to an active owner) are generally exempt from the surtax.
  • Tax-Exempt Interest: Interest earned on municipal bonds is exempt from federal income tax and is also excluded from the 3.8% surtax.
  • Qualified Retirement Plan Distributions: Withdrawals from 401(k) plans, 403(b) plans, and traditional IRAs are not subject to the surtax. However, these distributions increase your MAGI, which could push your other investment income into the taxable range.
  • Social Security Benefits: Your monthly benefits are not considered investment income.
  • Alimony and Child Support: These payments are not included in the NIIT calculation.

The Primary Residence Exclusion

One of the most important exemptions concerns the sale of a home. Under Section 121 of the tax code, individuals can exclude up to $250,000 (or $500,000 for married couples filing jointly) of the gain from the sale of their primary residence. This excluded amount is not subject to the 3.8% surtax. Only the portion of the gain that exceeds the exclusion limit—and is therefore taxable as a capital gain—is included in the NIIT calculation.

Calculating the Tax: The "Lesser Of" Rule

The most critical step in understanding your liability is the "lesser of" comparison. The IRS applies the 3.8% rate to the smaller of two numbers:

  1. Your total Net Investment Income (NII).
  2. The amount by which your MAGI exceeds the threshold (the "Excess MAGI").

Case Study: High Earners with Low Investment Income

Consider a married couple filing jointly in 2026 with a combined salary of $270,000 and $10,000 in dividends.

  • MAGI: $280,000
  • Threshold: $250,000
  • Excess MAGI: $30,000 ($280k - $250k)
  • NII: $10,000
  • The tax is 3.8% of the lesser amount ($10,000).
  • Total NIIT: $380.

Case Study: Moderate Earners with Large Capital Gains

Consider a single filer with a salary of $190,000 and a $50,000 capital gain from selling stock.

  • MAGI: $240,000
  • Threshold: $200,000
  • Excess MAGI: $40,000 ($240k - $200k)
  • NII: $50,000
  • The tax is 3.8% of the lesser amount ($40,000).
  • Total NIIT: $1,520.

In the second example, even though the taxpayer had $50,000 in investment income, only $40,000 of it was "above the threshold," so only that portion was taxed.

3.8% NIIT vs. 0.9% Additional Medicare Tax

It is common to confuse the 3.8% NIIT with the 0.9% Additional Medicare Tax, as both were introduced by the ACA and both target high earners. However, they apply to different types of income.

Feature 0.9% Additional Medicare Tax 3.8% Net Investment Income Tax
Income Source Wages, Compensation, Self-Employment Interest, Dividends, Capital Gains, Rents
Payer Employees and Self-Employed Investors, Estates, Trusts
Withholding Employers must withhold No withholding; paid via estimated taxes
Forms Used Form 8959 Form 8960
Thresholds Same as NIIT ($200k/$250k) Same as NIIT ($200k/$250k)

Some taxpayers may find themselves paying both taxes if they have high wages and high investment income. For instance, a single filer earning $250,000 in wages and $50,000 in capital gains would pay 0.9% on the wages exceeding $200,000 AND 3.8% on the $50,000 of investment income.

Strategies for Mitigating the Surtax

Because the NIIT is a significant additional cost—effectively raising the top capital gains rate from 20% to 23.8%—taxpayers often seek ways to reduce their exposure.

1. Municipal Bonds

Since interest from municipal bonds is generally exempt from the NIIT and does not increase MAGI for the purpose of this calculation, shifting some of a fixed-income portfolio into "munis" can reduce both federal income tax and the surtax.

2. Tax-Loss Harvesting

Selling underperforming assets to realize a capital loss can offset capital gains. Because the tax is based on net investment income, reducing your total gains through strategic losses directly lowers your NIIT liability.

3. Charitable Remainder Trusts (CRTs)

By placing highly appreciated assets into a CRT, you can avoid immediate capital gains tax upon the sale of the asset. The income distributed to you from the trust over time may still be subject to the surtax, but the impact is spread out and potentially minimized if the distributions keep your MAGI closer to the threshold.

4. Roth IRA Conversions

While a Roth conversion increases your MAGI in the year of the conversion (potentially triggering the NIIT on other investments that year), future qualified distributions from a Roth IRA are completely tax-free and do not count toward your MAGI. This can be a powerful long-term strategy for staying under the $200,000/$250,000 thresholds during retirement.

5. Installment Sales

If you are selling a business or a piece of real estate, using an installment sale allows you to recognize the gain over several years. This can prevent a massive spike in MAGI in a single year, keeping you under the thresholds or minimizing the amount of income subject to the "lesser of" rule.

Filing Requirements and Compliance

Taxpayers must report their Net Investment Income Tax on IRS Form 8960. This form guides you through the calculation of your net investment income and the comparison against your MAGI thresholds.

Because there is no automatic withholding for the 3.8% surtax (unlike the 0.9% Additional Medicare Tax on wages), taxpayers are responsible for including this amount in their quarterly estimated tax payments. Failure to account for the NIIT in estimated payments can lead to underpayment penalties when the final tax return is filed.

Frequently Asked Questions

Does the 3.8% surtax apply to the sale of my primary residence?

Only to the portion of the gain that is taxable. If your profit is $300,000 and you are a single filer, the first $250,000 is excluded. The remaining $50,000 is considered investment income. However, the tax is only applied if your MAGI exceeds $200,000.

Are 401(k) and IRA distributions taxed at 3.8%?

No, distributions from qualified retirement plans are not considered investment income and are not subject to the 3.8% surtax. However, they do increase your Adjusted Gross Income, which might push your other investment income (like dividends or capital gains from a brokerage account) above the threshold.

Is the surtax indexed for inflation?

No. The thresholds ($250,000 for married couples, $200,000 for individuals) were set by law in 2010 and have remained unchanged. This means that as wages and investment values grow, more people become subject to the tax every year.

Can I deduct investment expenses to lower the tax?

Yes. You can deduct expenses that are directly related to the production of that investment income, such as investment advisory fees, interest paid on money borrowed to buy investments, and state/local taxes allocated to the investment income.

Is income from a family business subject to the tax?

Generally, no, provided you "materially participate" in the business. If you are an active owner, your share of the business income is usually exempt. If you are a passive investor who does not help run the business, it is likely subject to the surtax.

Practical Recommendation

If you anticipate your income approaching the $200,000 or $250,000 mark in 2026, it is vital to review your portfolio for "NIIT-sensitive" assets. Consider focusing on tax-efficient locations for your investments—keeping high-growth, high-dividend assets inside tax-advantaged accounts like IRAs or 401(k)s, where the surtax does not apply. If you are planning the sale of a significant asset, such as a second home or a business interest, consult with a tax professional to model whether an installment sale or a charitable trust could save you 3.8% on the transaction. For many, the difference between a high-tax year and a managed-tax year is simply the timing of income recognition.