The short version
The 3.8% net investment income tax applies to the smaller of two numbers: your net investment income, or the amount by which your modified adjusted gross income passes $250,000 for a married couple filing jointly ($200,000 for a single filer, $125,000 for a married person filing separately). Interest, dividends, capital gains, rents, royalties, the taxable part of a nonqualified annuity, and income from a business you don’t materially participate in count as investment income. Wages, self-employment income, the profit of a partnership or S corporation business you materially participate in, withdrawals from retirement accounts, Roth conversions, Social Security benefits, and municipal bond interest do not. The catch is that most of those excluded items still count in modified adjusted gross income, so an IRA withdrawal, a Roth conversion, or a raise can pull investment income into the tax without being taxed by it.
For a hypothetical San Antonio couple at 60 with $84,000 of investment income in the year they sell some shares, the tax is $912, not $3,192, because their income passes the $250,000 line by only $24,000. A Roth conversion adds 3.8 cents of this tax for each converted dollar until the conversion reaches $60,000, and nothing after that. The thresholds are written into the law and have not moved since the tax began in 2013, while consumer prices rose 38.2% from 2013 through 2025, the latest full year, so every year the tax reaches a little further down the income scale. Because the lines stand still, we lean toward running each year’s new figures through a household’s own multi-year projection, where fixed thresholds like these show up.
The net investment income tax took effect on January 1, 2013, under health care legislation passed in 2010, and its formal name in the tax code, the “unearned income Medicare contribution,” is why it is often called the Medicare surtax; it also goes by its initials, NIIT. Where it applies is less intuitive than its flat rate, and the line between what it reaches and what it misses runs through the middle of most financial plans: between wages and dividends, between an IRA and a brokerage account, between an owner who runs the business and a co-owner who doesn’t, between a rental owner who manages full time and one who has a day job.
This article walks through that line the way households across Texas, and everywhere else, actually meet it: first the rules every household with investment income needs, with a worked example, then the parts specific to business owners and to real estate investors, then trusts. Every figure uses 2026 federal law and our own calculations, every household in it is hypothetical, and the wages in the examples are taxable wages, after any pre-tax contributions to a workplace retirement plan.
How the Tax Is Measured
The tax is 3.8% of whichever is smaller: your net investment income for the year, or the amount by which your modified adjusted gross income exceeds the threshold for your filing status. The thresholds are $250,000 for married couples filing jointly (and for a qualifying surviving spouse with a dependent child), $125,000 for a married person filing separately, and $200,000 for everyone else, including single filers and heads of household. Modified adjusted gross income, for this tax, is your adjusted gross income with any excluded foreign earned income added back, which means that for nearly everyone living and working in the United States it is simply the adjusted gross income on your return.
The smaller-of rule is easy to skim past, and it does most of the work. A couple with $40,000 of dividends and $230,000 of wages has $270,000 of modified adjusted gross income, $20,000 over the line, so the tax falls on $20,000, not on all $40,000 of dividends. A couple with the same $40,000 of dividends and $600,000 of wages pays on all $40,000, because their income passes the line by far more than their investment income. In between, every additional dollar of adjusted gross income can raise the tax by 3.8 cents, until all of the household’s investment income is inside it.
Two other features shape how it behaves. It is a separate tax from the regular income tax, figured on Form 8960 and carried to your Form 1040, so credits the law allows only against the income tax, such as the foreign tax credit, cannot reduce it. And it counts for estimated tax purposes like any other federal tax, which surprises people in the year of a large sale; our article on estimated taxes and the safe harbor covers how to pay for a year like that without a penalty.
The thresholds are not adjusted for inflation. They are dollar amounts written into the statute, and they are the same in 2027 as they were in 2013 (our rundown of the 2027 tax numbers lists them with the other figures that never move). By the Bureau of Labor Statistics’ annual averages, the consumer price index for all urban consumers rose 38.2% from 2013, the tax’s first year, to 2025, the latest full year. Had the $250,000 line kept pace, it would have been about $345,500 in 2025, about $95,500 higher than the law’s line, and the $200,000 line about $276,400. Most of that gap opened after 2020: the line that tracks prices was about $27,700 above the law’s line in 2020 and passed $300,000 in 2022. Put the other way, the $250,000 line in 2025 was worth about $180,900 in 2013 dollars. Incomes that rise with prices cross a line that stands still, so each year the tax reaches more households.
What Counts as Net Investment Income
The statute sorts net investment income into three groups. The first is gross income from interest, dividends, annuities, royalties, and rents, unless it is earned in the ordinary course of a trade or business that isn’t covered by the tax. The second is other income from two kinds of businesses: a business that is a passive activity for you, and a business of trading financial instruments or commodities. The third is net gain from selling property, other than property held in a business that isn’t covered by the tax. From the total you subtract deductions properly allocable to that income.
In practice, that means the tax reaches interest from bank accounts, bonds, and Treasury securities; ordinary and qualified dividends; capital gain distributions from funds; gains on stocks, bonds, and funds; gains on investment real estate, including a second home; most rent from investment property; the taxable part of payments from a nonqualified annuity contract; and your share of profit from a partnership or S corporation you own but don’t materially participate in. Gains count only if they are included in taxable income, so a gain deferred in a like-kind exchange or excluded by law stays out. Losses work in your favor within limits: capital losses offset capital gains for this tax as they do for income tax, and the up to $3,000 of net capital loss you deduct against other income also reduces net investment income. Harvesting losses on purpose works inside those limits, and our piece on tax-loss harvesting covers the mechanics. We lean toward treating loss harvesting as an opportunistic tool inside a year-round tax projection, not as a standing automated process.
The deductions that reduce the total are narrower than many people expect. Investment interest expense counts. So do the expenses of a rental, and the share of state income tax that falls on investment income, which is no help to Texans because Texas has no state income tax. For individuals, investment advisory and custodial fees no longer reduce it at all: the suspension of miscellaneous itemized deductions that began in 2018 is now permanent, and a deduction the income tax doesn’t allow can’t reduce this tax either.
Where income is earned matters as much as what kind it is. Interest and dividends inside an IRA, a 401(k), or any other qualified plan never meet this tax, because distributions from those plans are excluded from net investment income, while the same holdings in a taxable account do. Which holdings sit in which account is a planning question of its own, and we cover how we approach asset location in a separate article.
What Stays Out, and What Still Counts Against You
The list of income the tax doesn’t reach is just as important. Wages are out, and so is self-employment income: earnings that bear self-employment tax are excluded by statute, so the same dollar never pays both. The profit of a business you materially participate in is out, which is the main reason an S corporation owner’s share of the company’s profit doesn’t meet this tax. Distributions from 401(k)s, 403(b)s, 457(b) plans, and traditional and Roth IRAs are out, and the regulations name a Roth conversion specifically as such a distribution. Social Security benefits, unemployment compensation, and alimony are out. Municipal bond interest is out. Gain you exclude when you sell your home, up to $250,000 for a single filer or $500,000 for a couple, is out, and so is gain excluded on qualified small business stock. When you sell employer shares taken out of a 401(k) under the net unrealized appreciation rules, the appreciation that built up inside the plan is out, though any growth after the shares leave the plan is in. The 0.9% Additional Medicare Tax uses the same dollar thresholds for married couples and single filers but is a separate tax on wages and self-employment income, measured against those earnings rather than modified adjusted gross income; a household can owe both in one year, but never on the same dollar.
Here is the part that makes the tax harder to plan around than its list of exclusions suggests. Being excluded from net investment income is not the same as being excluded from modified adjusted gross income. Wages, IRA withdrawals, required minimum distributions, Roth conversions, pension income, and the taxable part of Social Security are all in adjusted gross income. None of them is taxed by the 3.8%, but each one pushes income further past the line, and once a household is past it, every extra dollar of adjusted gross income brings one more dollar of its investment income into the tax, adding 3.8 cents to the bill, until all of that income is inside. Only a few exclusions keep income out of both measures: municipal bond interest, the excluded part of a home-sale gain, and excluded small business stock gain among them. Medicare’s income-related surcharge uses its own definition, which adds municipal bond interest back in, so the same household can have two different modified adjusted gross incomes in one year, as our article on Medicare surcharges explains. The same measure works in the other direction: a pre-tax contribution to a 401(k) or a similar plan comes out of adjusted gross income, while a Roth contribution stays in it, one of the indirect costs our article on the Roth catch-up rule weighs.
A Worked Example: The Sale Year, a Roth Conversion, and a Gift
Take a hypothetical couple in San Antonio, Daniel and Rosa, both 60, filing jointly in 2026 with the standard deduction. Daniel still works and earns $190,000, and his employer’s plan covers them both for health insurance. Rosa stepped back from work this year. Their taxable brokerage account pays $18,000 of qualified dividends and $6,000 of taxable interest, and they hold municipal bonds that pay another $8,000. This year they plan to sell long-held shares for a $60,000 long-term gain, and they are weighing a Roth conversion from Rosa’s IRA.
Before the sale, their adjusted gross income is $214,000 and their net investment income is $24,000. They are under the $250,000 line, so the tax is zero, even though they have investment income. The municipal interest stays out of both figures.
The sale changes that. Their net investment income rises to $84,000 and their adjusted gross income to $274,000, $24,000 over the line. The tax is 3.8% of the smaller number, $24,000, which is $912. It is tempting to read the sale as costing 3.8% of the $60,000 gain, $2,280; it costs $912 because only the last $24,000 of the gain carried their income past the line.
Now add a Roth conversion. The converted dollars are not investment income, but every one of them raises adjusted gross income, so every one of them moves one more dollar of the couple’s $84,000 of investment income into the tax, adding 3.8 cents to the bill. Each $20,000 of conversion adds $760 of this tax, taking it to $1,672 at $20,000 of conversion and $2,432 at $40,000, until the conversion reaches $60,000. At that point their income passes the line by $84,000, exactly their investment income, and the tax stops rising at $3,192. Conversion dollars beyond $60,000 add nothing more to it: at $80,000 or $100,000 of conversion, the tax is still $3,192.
The 3.8% tax stops rising once all $84,000 of investment income is taxed
Daniel and Rosa’s net investment income tax for 2026 at each size of Roth conversion. The conversion itself is never taxed by the 3.8%; it raises the income that decides how much of their investment income is taxed. Copper bars: the tax has reached all of it.
No conversion
$20,000 converted
$40,000 converted
$60,000 converted
$80,000 converted
$100,000 converted
That shape changes what each block of the conversion really costs. With the standard deduction, the couple’s ordinary income sits $47,600 below the top of the 22% bracket, so the first $47,600 of conversion costs 22% in income tax plus 3.8% in this tax, 25.8% in all. The next $12,400, up to $60,000, falls in the 24% bracket and still carries the 3.8%, 27.8% in all. From $60,000 up, the conversion costs 24% in this range, because the 3.8% has nothing left to reach. A household looking only at its income tax bracket would see the cost rise at $47,600 and miss that it drops back at $60,000. Because the cost moves from block to block, we lean toward pricing each additional block of conversion at its full cost against the rate those dollars would face later, and stopping where the whole conversion comes out furthest ahead. Our article on Roth conversion planning works through the rest of that comparison, including the rate the converted dollars would face if they stayed in the IRA.
Charitable giving runs into the same distinction between taxable income and adjusted gross income. If Daniel and Rosa give $20,000 in cash, their adjusted gross income doesn’t change whether or not they itemize, because a charitable deduction reduces taxable income, not adjusted gross income, so the tax stays at $912. If instead they give $20,000 of the shares they were planning to sell, carrying $15,000 of the gain, the gain they realize falls to $45,000, their adjusted gross income to $259,000, $9,000 over the line, and the tax to $342. Our piece on donor-advised funds and bunching covers giving appreciated shares in more depth. In a later year, once Rosa reaches 70½, a qualified charitable distribution from her IRA, in place of money she would otherwise withdraw, would go further still, because the gift never enters adjusted gross income at all; for anyone at RMD age, we lean toward making the QCD the first money out of the IRA each year, ahead of the rest of the required distribution, and our article on qualified charitable distributions explains why.
Retirees meet the tax the same way Daniel and Rosa do, often without wages in the picture at all. Required minimum distributions, pension income, and the taxable part of Social Security are excluded from net investment income but count in adjusted gross income, and a retired couple with a large IRA and a sizable taxable account can cross $250,000 on those alone. The excluded income decides how much of the investment income gets taxed. Our articles on withdrawal sequencing and the Social Security tax torpedo cover how we plan that excluded income year by year. In the years after the paycheck stops and before Social Security and required distributions begin, income often sits well below the line, which is part of what makes that stretch useful for conversions; our article on Roth conversions in the gap years covers that window.
Business Owners: Profit, the Sale, and the Building
For an owner, everything turns on material participation, the test from the passive activity rules. It is not a question of whether you “work in the business” in a casual sense. The regulations give seven ways to meet it, and the two that matter most here are more than 500 hours in the business during the year, or material participation in any five of the ten years before. In a personal service business, such as a medical, dental, legal, accounting, or consulting practice, or any business where capital is not a material income-producing factor, material participation in any three earlier years is enough, however long ago they were. A spouse’s hours count as the owner’s, whether or not the spouse owns any of it. These rules have a long tail: a long-time owner who steps back keeps counting as a material participant for several years afterward, and the owner of a practice indefinitely, which matters when a payout or a sale comes after retirement.
Profit from a partnership or S corporation business you materially participate in is generally outside the tax. Because an S corporation owner’s share of profit isn’t self-employment income either, that profit bears neither the 3.8% nor self-employment tax, which is exactly why the salary an owner takes is the number the IRS examines. We lean toward treating reasonable compensation as a documented floor, set before the year starts from market data for the roles the owner actually fills, and then modeling the salary above it rather than choosing a percentage; our article on reasonable compensation covers that work. The same share of profit is inside the tax for a co-owner who doesn’t materially participate, such as a silent investor, a retired founder whose years of participation no longer count, or a child who inherited shares and has no role in the company.
Two things sit outside the exclusion even for an owner who runs the business. Interest the company earns on its cash reserves is investment income passed through to the owners, even when the reserve exists only to run the business. And a C corporation is different from top to bottom: its dividends and the gain on its stock are investment income no matter how many hours you work there, except for the part of the gain excluded under the small business stock exclusion in section 1202; any gain the exclusion leaves taxable is still investment income.
The sale is where the stakes are largest. When an active owner sells the assets of a partnership or S corporation, gain on the business assets is outside the tax and gain on any investment assets the company holds is inside it. When the owner sells the stock or partnership interest instead, the statute reaches the same place by looking through the company: the gain counts only to the extent a sale of the company’s assets at fair market value would have produced investment income for that owner. The method for that look-through sits in regulations the IRS proposed in 2013 and has never finalized, and the IRS’s own Form 8960 instructions point to them. If the price is paid over time, the character of the gain is fixed in the year of sale, so a later installment of excluded gain stays excluded, while the interest on a seller note is investment income. The sale year is when your brackets, NIIT exposure, and everything downstream of adjusted gross income collide at once, which is why we lean toward modeling the whole picture across multiple years rather than optimizing the deal in isolation. Our article on asset sales and stock sales covers how the structure of a deal moves the tax bill.
Consider a hypothetical owner in Dallas, Carmen, who built and owns all of an S corporation and sells her stock for a $4,000,000 gain. The company uses everything it owns in the business except an investment account worth $600,000 with a $350,000 basis, and the other income she and her husband have, mostly salary, already puts them well past the line, so the tax reaches every dollar of investment income the sale adds. Because Carmen materially participates, only the $250,000 of gain built into the company’s investment account counts under the main method the proposed rules lay out, and the sale adds $9,500 of this tax. Had she stepped away from the business long enough that she no longer met any of the tests, the whole $4,000,000 gain would count, and the sale would add $152,000.
Carmen also owns, personally, the building the company operates from, and the rent the company pays her comes to $120,000 a year after the building’s expenses. While she materially participates in the business, that rent is treated as business income under the self-rental rule, and it is outside the tax. After the sale, the same building rented to the buyer is an ordinary rental, and the rent is inside it: at an income that stays well past the line, $4,560 a year. The same shift catches owners who sell to their own employees and keep the real estate, where the rent and the note arrive together. When the price comes over years, we lean toward treating the payment schedule as an output of the multi-year tax projection rather than a term the buyer proposes and the seller accepts, and our article on installment sales and earnouts shows how.
Real Estate Investors: Rents, the Sale Year, and the Professional Safe Harbor
Rent is investment income unless two things are both true: the rental rises to the level of a trade or business, and it is not a passive activity for you. The passive loss rules treat almost every rental as passive regardless of how many hours you put in, so for most investors with a day job, rent is inside the tax. The main way out is to qualify as a real estate professional under those rules (a test of both hours and how much of your working year goes to real estate) and to materially participate in the rentals. The regulations add a safe harbor for real estate professionals: more than 500 hours in the rental activity during the year, or more than 500 hours in each of any five of the prior ten years, takes the rent and the gain on sale out of the tax, and a real estate professional who misses the safe harbor can still show the rental is a business. Our article on the passive activity loss rules covers the professional test in full. Rentals with an average stay of seven days or less are not rental activities under those rules at all; an owner who materially participates in one, and whose rental rises to the level of a business, keeps its income outside this tax, which is the short-term rental exception at work.
Take a hypothetical couple in Houston, the Nguyens, who both work on salaries totaling $260,000 and own four rental houses that net $48,000 this year, with no rental losses carried over from earlier years. Their adjusted gross income is $308,000, past the line by more than their rent, so all $48,000 is taxed, and the tax is $1,824. In the year they sell one of the houses for a $300,000 gain, their net investment income becomes $348,000 and their adjusted gross income $608,000, and the tax rises to $13,224. Every part of the gain counts, including the part that comes from depreciation and is taxed at its own rate for income tax; our article on depreciation recapture covers that layer. If one of them qualified as a real estate professional, elected to treat the four houses as one rental activity, and met the safe harbor, neither the rent nor the gain would meet this tax.
That doesn’t make the professional route the answer. The same status that takes rent out of this tax can also let rental losses offset other income in the year they occur, but the route may mean giving up a salary, and it rests on a record of hours kept through the year. Staying passive and taking that route are two different plans, and we lean toward running both on actual numbers, including the recapture and the exit, rather than assuming the current deduction is always worth pursuing.
Trusts and Estates
Trusts and estates face the same 3.8% at a threshold that makes the individual one look generous. The tax applies to the smaller of the trust’s undistributed net investment income or the amount by which its adjusted gross income passes the level where the top income tax bracket for trusts begins: $16,000 in 2026 and $16,500 in 2027. A married couple doesn’t reach their line until $250,000, about 15.6 times as high. Investment income a trust distributes to beneficiaries in the year is measured on the beneficiaries’ returns instead, against their own thresholds, so a trustee’s distribution choices also decide where this tax falls. A grantor trust, such as a revocable living trust, isn’t taxed separately at all; its income is reported on the grantor’s return. A charitable remainder trust is exempt from the tax, but its payments carry the investment income they come from out to the person who receives them, in a set order; our article on charitable remainder trusts covers how that works.
How We Think About It
The 3.8% is one of several costs that a year’s adjusted gross income sets off together, along with the brackets, the Medicare surcharges, and the taxation of Social Security, and the decisions that move it most (a conversion, a sale, a gift, the timing of a payout) move all of those costs at once. That is one reason we lean toward running each year’s new figures through a household’s own multi-year projection, where the fixed thresholds show up, instead of reading the bracket tables alone, and our article on multi-year tax projection shows what that projection holds.
The same view runs through each of the decisions above. For a conversion, the 3.8% is part of the full cost of each block, priced against the rate those dollars would face later. For an owner, the sale year is the one to model across years, along with the payment schedule. For a real estate investor, the professional route is a choice to run on actual numbers. And because the thresholds don’t move, a household somewhat below them today can cross them within a decade on raises that only keep pace with prices, which is one more reason to look at the years ahead rather than only this one. The chart below shows how far the line for married couples has fallen behind prices since 2013.
The $250,000 line has not moved since 2013; keeping pace with prices would have put it near $345,500
The 3.8% tax’s threshold for married couples filing jointly, against what $250,000 of 2013 buying power cost in each year’s dollars, 2013 to 2025.
Common Questions
What is the 3.8% net investment income tax?
The net investment income tax is a 3.8% federal tax on investment income for households above fixed income thresholds. It applies to the smaller of your net investment income or the amount by which your modified adjusted gross income exceeds $250,000 for a married couple filing jointly, $200,000 for a single filer, or $125,000 for a married person filing separately. Investment income includes interest, dividends, capital gains, rents, royalties, the taxable part of nonqualified annuity payments, and income from businesses you don’t materially participate in. It is figured on Form 8960 and has applied since 2013.
Do IRA withdrawals and Roth conversions count toward the 3.8% tax?
IRA withdrawals and Roth conversions are not taxed by the 3.8% net investment income tax, but they can still increase it. Distributions from IRAs, 401(k)s, 403(b)s, and 457(b) plans are excluded from net investment income, and the regulations treat a Roth conversion as one of those distributions. They do count in modified adjusted gross income, though, so once a household is past the threshold, each withdrawn or converted dollar brings one more dollar of the household’s investment income into the tax, adding 3.8 cents, until all of that income is taxed. Because that cost changes as a conversion grows, we lean toward pricing each additional block of conversion at its full cost against the rate those dollars would face later, and stopping where the whole conversion comes out furthest ahead.
Does the net investment income tax apply when I sell my home?
The net investment income tax does not apply to gain you exclude when you sell your home. The exclusion covers up to $250,000 of gain for a single filer and $500,000 for a married couple who meet the ownership and use tests. Gain above the exclusion is included, as is all of the gain on a second home or an investment property, and the tax then applies under the same smaller-of rule as any other investment income.
Are S corporation profits and distributions subject to the 3.8% tax?
An S corporation owner who materially participates in the business doesn’t owe the 3.8% tax on the company’s profit. Distributions are not what the tax looks at; the profit behind them is. Profit from a business you materially participate in is excluded from net investment income, and an S corporation owner’s share of profit isn’t self-employment income either. For an owner who doesn’t materially participate, such as a silent investor or an heir, the same share of profit is investment income. Interest the company earns on its cash reserves passes through as investment income either way.
Does the 3.8% tax apply when I sell my business?
An owner who materially participates in an S corporation or partnership generally owes the 3.8% tax only on the part of the gain that comes from investment assets inside the company. That holds whether the deal is a sale of assets or a sale of the shares or partnership interest. For a passive owner, the whole gain is investment income. Shares of a C corporation are investment property, so their gain is included except for any part excluded under the small business stock rules. Interest on a seller note and rent on a building you keep and lease to the buyer are also investment income.
Is rental income subject to the net investment income tax?
Rental income is subject to the net investment income tax for most investors. Rent escapes the tax only when the rental rises to the level of a trade or business and is not a passive activity for you, which for most rentals requires qualifying as a real estate professional and materially participating. The regulations give real estate professionals a safe harbor: more than 500 hours in the rental activity during the year, or more than 500 hours in each of any five of the prior ten years. Short-term rentals with an average stay of seven days or less follow separate rules.
Are the net investment income tax thresholds adjusted for inflation?
The net investment income tax thresholds are not adjusted for inflation. The $250,000, $200,000, and $125,000 amounts are written into the statute and have not changed since the tax began in 2013. Consumer prices rose 38.2% from 2013 through 2025, the latest full year, by annual averages, so a $250,000 line that had kept pace would have been about $345,500 in 2025. The trust threshold is different: it follows the top income tax bracket for trusts, which is adjusted each year.
Can giving to charity lower the net investment income tax?
For an individual, a charitable gift lowers the net investment income tax only when it keeps income out of adjusted gross income. A deduction for a gift of cash reduces taxable income, not adjusted gross income, so it leaves the tax unchanged. Giving long-held appreciated shares instead of selling them means their gain is never realized, which takes it out of both measures, and from 70½, a qualified charitable distribution from an IRA, made in place of a withdrawal you would otherwise take, keeps that money out of adjusted gross income altogether.
Can the 3.8% net investment income tax be reduced?
The 3.8% tax falls only on households that have investment income and whose modified adjusted gross income is above the threshold, so anything that lowers either measure can reduce it. Municipal bond interest, the excluded part of a home-sale gain, and a qualified charitable distribution from an IRA, made in place of a withdrawal you would otherwise take, stay out of both. Giving appreciated shares instead of selling them, spreading a large gain over several years, and the size and timing of Roth conversions and IRA withdrawals change how much investment income the tax reaches in a given year, and profit from a partnership or S corporation business you materially participate in stays outside it. Because these choices interact with the brackets and Medicare surcharges, we lean toward running each year’s new figures through a household’s own multi-year projection, where fixed thresholds like these show up.
