Pomegra Wiki

Net Investment Income Calculation

The 3.8% Net Investment Income Surtax doesn’t apply to all of your investment income — only to what remains after you subtract certain allocable deductions. Computing this “net investment income” base requires tracing which deductions reduce which income items, creating a small but meaningful accounting burden for high-income earners with capital gains, dividends, and rental income.

The two-layer structure of the surtax

The Net Investment Income Surtax (sometimes called NIIT or the “Obama surtax,” enacted in 2013 as part of the Affordable Care Act) imposes a 3.8% tax on net investment income of high-income individuals and certain trusts. But the tax has two separate thresholds.

First, your modified adjusted gross income (MAGI) must exceed a floor: $200,000 for single filers, $250,000 for married filing jointly, $125,000 for married filing separately. If your MAGI is below that floor, you owe no surtax regardless of investment income.

Second, if MAGI exceeds the floor, the surtax applies only to the lesser of (a) your net investment income or (b) the excess of MAGI over the floor. This means high-income earners with large investment gains may not pay surtax on every dollar, because the surtax is capped at the MAGI excess.

Example: You’re married filing jointly with $300,000 MAGI (threshold of $250,000). The surtax can apply to at most $50,000 (the excess above $250,000). If your net investment income is only $30,000, the surtax applies to $30,000. If your net investment income is $80,000, the surtax applies to only $50,000, not $80,000.

Defining “gross investment income” for the base

Gross investment income for NII purposes includes:

  • Interest (taxable bond interest, savings account interest, margin interest credited to you)
  • Dividends (both qualified and nonqualified)
  • Capital gains (both long-term and short-term)
  • Rental and royalty income (including income from real estate investments)
  • Annuity income (distributions and gains from nonqualified annuities)
  • Income from passive partnerships and S-corporations
  • Gain on sale of partnership interests or S-corp shares (if from a passive activity)
  • Gain on disposition of investment property

Notably, gross investment income does NOT include wages, business income from active participation, Social Security benefits, distributions from retirement accounts like 401(k)s or IRAs (though the gains inside them, if subsequently taxable, might count), and certain other earned-income sources.

For real estate investors, the line between passive and active income matters. If you materially participate in managing rental properties, the rental income is not investment income and doesn’t trigger the surtax. But if the properties are passive (you’re not materially involved), the rental income and related gains do count.

Allocable deductions: the reduction mechanism

This is where the calculation gets intricate. You reduce gross investment income by “allocable deductions” — expenses that relate directly to the production of that investment income.

Allocable deductions include:

  1. Investment advisory and management fees — fees paid to advisors, custodians, or accountants to manage your portfolio
  2. Investment interest expenseinterest on borrowing used to purchase investments (but only to the extent you have investment income, and subject to investment interest expense limitations)
  3. Rental property deductions — depreciation, repairs, property taxes, mortgage interest, utilities, insurance on rental real estate (but only if the property is passive)
  4. Passive activity deductions — losses and expenses allocated to passive partnerships or S-corps
  5. Expenses allocable to royalties — maintenance, legal, and administrative costs tied to royalty income
  6. State and local taxes allocable to investment income — under some interpretations, a portion of your SALT deduction may be allocable if it relates to investment property (this is a grey area)

What you cannot deduct against investment income:

  • Your standard deduction or itemized deductions (except for SALT allocable to investment property, in rare cases)
  • Net operating loss carryforwards
  • Personal exemptions
  • Charitable contributions
  • Medical expenses
  • Home mortgage interest (unless the home generates rental income)

The IRS approach is mechanical: trace each deduction to its income source. Fees paid to manage stock and bond investments are allocable to interest and dividend income. Fees tied to managing real estate investments are allocable to rental income and related gains. Depreciation on a rental property is allocable to that property’s rental income.

The ordering and reconciliation problem

Computing NII correctly requires organizing your return:

  1. List all sources of gross investment income by category (interest, dividends, short-term gains, long-term gains, rental, passive)
  2. Identify deductions allocable to each category
  3. Net each category (gross minus allocable deductions)
  4. Sum across categories to get total net investment income
  5. Compare to the MAGI excess; use the lesser for the surtax calculation

A simplified example:

Income/DeductionAmount
Dividend income$50,000
Long-term capital gain$40,000
Rental income (passive)$35,000
Gross investment income$125,000
Investment advisory fees($3,000)
Rental property depreciation($8,000)
Net investment income$114,000
Modified AGI (from overall return)$280,000
MAGI threshold (MFJ)$250,000
MAGI excess$30,000
NII surtax applies to$30,000 (lesser of NII and MAGI excess)
Surtax owed (3.8%)$1,140

The tricky edge cases

Mutual fund distributions. A mutual fund dividend distribution includes both income (interest and dividends earned by the fund) and short-term capital gains. Each component is investment income for NII purposes.

Real estate sales. If you sell rental property, the gain (reduced by depreciation recapture) is investment income. The depreciation you claimed over the years becomes a relevant deduction in the NII base, because it reduced the property’s basis and thus increased the ultimate gain.

Passive losses in prior years. If you have suspended passive losses from prior years that are released in the current year, they can offset passive income and reduce NII. But if you don’t have passive income to offset, the losses are not available to reduce other investment income.

Net capital losses. Capital losses reduce capital gains; the net amount (gain or loss) is then added to investment income. A net capital loss cannot reduce other investment income like interest or dividends (it can only be carried forward, up to $3,000 per year against ordinary income).

Distributions from partnerships and S-corps. The distributive share of income from a passive partnership or S-corp is investment income. Deductions flow through to you, as the partner or shareholder, and can be allocated to that income.

Qualified business income (QBI) and Section 199A. If you have business income from an S-corp or partnership, and you claim the Section 199A deduction (20% of QBI), that deduction does NOT reduce your MAGI for surtax purposes. MAGI includes the full business income, not the after-deduction amount. This is a source of frustration for high-income business owners.

Integration with other tax calculations

The NII surtax is not integrated with the Alternative Minimum Tax or the regular tax calculation in any formal way. You can owe both AMT and NII surtax in the same year. You can also owe the Additional Medicare Tax (0.9% on earned income) and the NII surtax simultaneously, though they apply to different income bases.

For some high-net-worth individuals, the NII calculation is a tail that wags the entire tax return. A $100,000 capital gain can trigger an additional $3,800 in surtax, plus accelerate or increase the long-term capital gains tax bracket. Planning around the timing of gains and losses becomes critical.

Filing and documentation

You report NII and the surtax on Form 8960 (Net Investment Income Tax), which feeds into your main Form 1040. The form requires you to segregate investment income by type and match deductions. If the IRS audits your return, careful documentation of allocable deductions is essential — the agency often challenges whether deductions truly relate to investment income or whether they’re disguised personal expenses.

See also

  • Additional Medicare Tax on Wages — the 0.9% surtax on earned income (separate base)
  • Net Investment Income Surtax — the full 3.8% surtax mechanism
  • Long-Term Capital Gains Tax (Investor) — rates that apply alongside the surtax
  • Investment Interest Expense Limitation — cap on deducting interest used to fund investments
  • Passive Activity Loss — limitations on deducting losses from passive income sources

Wider context

  • Modified Adjusted Gross Income — the threshold trigger for the surtax
  • Marginal Tax Rate (Investor) — effective rate including NII surtax
  • Form 8960 — the return form used to compute and report NII
  • High-Income Earner — context on who is subject to the surtax
  • Income Segregation — tracing different income sources for differential tax treatment