
The 3.8% Net Investment Income Tax: How the Surtax Works on Capital Gains and Rental Income
It does not appear on the familiar capital gains rate table, which is why it is so often the gap between the tax an investor estimated and the tax that shows up on the return.
The Short Answer
The net investment income tax is a 3.8% federal surtax that sits on top of regular income and capital gains tax. It applies to investment income — interest, dividends, capital gains, rents, royalties, and passive business income — for taxpayers whose modified adjusted gross income exceeds $250,000 married filing jointly, $200,000 single, or $125,000 married filing separately.
It is easy to overlook because it does not appear on the familiar capital gains rate table. On a large property sale or a concentrated stock liquidation, it is frequently the difference between the tax figure an investor estimated and the tax figure that actually appears on the return. Our capital gains calculator includes it in the estimate.
Where the Surtax Came From, and Why It Keeps Reaching Further
Congress enacted the surtax under Internal Revenue Code Section 1411 as part of the health care legislation of 2010, effective for tax years beginning in 2013. The mechanics have not changed materially since.
What has changed is who it touches. The threshold amounts are fixed in the statute and are not indexed for inflation. The $250,000 joint threshold has meant progressively less in real terms every year since 2013, while asset values, rents, and wages have not stood still. A surtax originally described as applying to high earners now reaches a considerable number of households that would not describe themselves that way — particularly in a year containing a single large liquidity event.
The Two-Part Calculation
The surtax is not simply 3.8% of investment income. It applies to the lesser of:
- Net investment income for the year, or
- The amount by which modified adjusted gross income exceeds the applicable threshold.
That structure matters. Consider a married couple with $260,000 of modified adjusted gross income, of which $40,000 is investment income. The excess over the $250,000 threshold is $10,000. Because $10,000 is less than $40,000, the surtax applies to $10,000, producing $380 of additional tax rather than $1,520.
Now consider the same couple in a year when they sell an appreciated rental property and recognize $600,000 of gain. Modified adjusted gross income rises to $860,000, an excess of $610,000 over the threshold, while net investment income rises to $640,000. The excess is now the smaller of the two by a narrow margin, so the surtax applies to $610,000 — $23,180 of tax against $380 the year before. A single transaction can move a household from paying the surtax on a sliver of income to paying it on essentially all investment income for the year.
This is why the surtax is best understood as an event-driven tax rather than a chronic one. For many investors it is a rounding error in most years and a meaningful line item in the year of a sale.
What Counts as Net Investment Income
Generally included:
- Interest, dividends, and annuity income other than qualified retirement distributions
- Capital gains from stocks, bonds, mutual funds, and investment real estate
- Rental and royalty income
- Income from a business in which the taxpayer does not materially participate
- Income from a business that trades financial instruments or commodities
- Gain on the sale of an interest in a partnership or S corporation, to the extent attributable to passive assets
Generally excluded:
- Wages and self-employment income
- Income from a trade or business in which the taxpayer materially participates
- Distributions from qualified retirement plans, individual retirement accounts, and similar arrangements
- Social Security benefits
- Tax-exempt municipal bond interest
- Gain excluded under the Section 121 primary residence exclusion
- Income already subject to self-employment tax
Two exclusions deserve a closer look, because they are where the practical planning tends to happen.
Retirement distributions are excluded from net investment income, but not from the threshold test. A large distribution from an individual retirement account is not itself net investment income. It does, however, increase modified adjusted gross income, and that increase can pull other investment income above the threshold and into the surtax. Distribution sequencing and conversion timing therefore have a second-order effect on the surtax that is easy to miss when looking only at bracket management.
Material participation changes the character of business and rental income. Income from an activity in which the taxpayer materially participates under the passive activity rules is generally outside the definition of net investment income. Rental income is generally treated as net investment income, subject to a specific safe harbor for taxpayers who qualify as real estate professionals and meet the participation requirements. This is a fact-specific determination that turns on records of hours and activity, and it is one that a certified public accountant should evaluate rather than an investor assuming the answer.
Where the Surtax Meets Common Tax Strategies
The surtax does not exist in isolation. It interacts with most of the structures accredited investors use around a capital gains event.
1031 exchanges. Gain that is not recognized is generally not counted in net investment income for that year, so a properly structured exchange defers the surtax alongside the underlying capital gains tax. Boot recognized in the exchange is a different matter and may carry the surtax. Because deferral is not elimination, the surtax question returns when the deferred gain is eventually recognized — a point worth weighing in the broader exchange versus pay the tax analysis. Our 1031 exchange calculator estimates the total deferral at stake, and the timeline guide covers the deadlines that govern the structure.
Depreciation recapture. Unrecaptured Section 1250 gain is still gain from the disposition of property, and it is generally included in net investment income. On a long-held rental with substantial accumulated depreciation, the recapture component carries both its own rate and, potentially, the surtax. The depreciation recapture calculator isolates that figure.
Installment sales. Recognizing gain across several years rather than one can keep modified adjusted gross income closer to the threshold in each year, which changes which of the two figures in the calculation is the lesser. The trade-off is counterparty and rate risk over the note period.
Qualified opportunity funds. Deferral of an eligible gain by investing in a qualified opportunity fund postpones recognition of that gain, and appreciation eliminated after the required holding period is generally not net investment income when the investment is sold. Program rules, deadlines, and eligibility have been revised over the life of the incentive, so current-year requirements should be confirmed before relying on any of it.
Working interests in oil and gas programs. A working interest that is not held through a limited partnership interest is generally not treated as a passive activity under the passive activity rules, which affects whether the resulting income falls inside the definition of net investment income. The analysis depends heavily on how the interest is held and how the investor participates, and it changes if the interest later converts to a royalty interest.
Tax-loss harvesting. Because the calculation begins with net investment income, realized losses that offset realized gains reduce the base the surtax applies to as well as the base ordinary capital gains tax applies to. The benefit is proportional and mechanical rather than dramatic, but it applies without requiring any change to the underlying structure of a portfolio.
What to Do With This
The practical takeaway is one of sequencing. The surtax is calculated on a calendar-year basis, which means the year a gain is recognized matters as much as the size of the gain. Investors anticipating a significant liquidity event generally benefit from modeling the full federal picture — ordinary rates, capital gains rates, recapture, state considerations, and the surtax together — before a sale contract is signed rather than after, because most of the structures that address the surtax must be in place before closing.
Grace Capital Management is an independent advisory firm in Austin. We work with accredited investors evaluating how categories such as 1031 exchange replacement structures, Delaware Statutory Trusts, opportunity zone funds, intangible drilling cost programs, and loss-harvesting approaches fit a specific tax picture, coordinating with the client’s certified public accountant rather than replacing that relationship. If a liquidity event is on the horizon, start with the numbers and then schedule a conversation.
This article is educational only and is not tax, legal, or investment advice. Tax thresholds, rates, and rules described here reflect general federal law and may change; state treatment varies and individual outcomes depend on facts specific to each taxpayer. The alternative investment categories referenced are speculative, illiquid private placements available only to accredited investors, involve substantial risk including possible loss of principal, and are offered solely through a sponsor’s private placement memorandum. Nothing on this page is an offer to sell or a solicitation to buy any security. Consult your certified public accountant and attorney regarding your specific circumstances.
Austin, Texas · Wealth & Tax Advisory
