Net Investment Income Tax and Charitable Giving: How to Reduce Your 3.8% Exposure
Not tax or legal advice. NIIT calculations depend on your full income picture. Work with a fee-only charitable planning advisor before making vehicle decisions driven by NIIT considerations.
The Net Investment Income Tax adds 3.8% to capital gains, dividends, and other investment income once your MAGI crosses $200,000 (single) or $250,000 (married filing jointly).1 Those thresholds haven't been adjusted for inflation since 2013 — which means more HNW investors face the tax every year. What makes the NIIT especially important for charitable planning: the right vehicle can reduce your NIIT exposure through two independent channels simultaneously, while the wrong vehicle defers or even amplifies it.
NIIT basics: the two-number calculation
NIIT is the lesser of two amounts, multiplied by 3.8%:1
- Your net investment income (NII) — capital gains, dividends, interest, rental income, passive income
- The excess of your MAGI over the threshold — $250,000 MFJ / $200,000 single / $125,000 MFS
If you have $80,000 of NII and your MAGI exceeds the threshold by $60,000, you owe NIIT on $60,000 — because the threshold excess is the binding constraint. If the situation is reversed ($40,000 NII, $80,000 threshold excess), you owe NIIT on $40,000 — because NII is the binding constraint.
This two-number structure is why different charitable vehicles have different NIIT outcomes: some attack NII directly, some attack MAGI, and the most effective ones attack both.
Channel 1: eliminating NII directly
Direct gift of appreciated stock to charity or DAF
When you transfer long-term appreciated stock to a public charity or donor-advised fund, you never sell the shares — so the embedded capital gain is never realized, never enters your NII, and never enters your MAGI. The gain is permanently extinguished from a tax standpoint.2
You also receive a charitable deduction equal to the fair market value of the shares (subject to the 30% of AGI limit for appreciated property), which further reduces your MAGI.
Example: A couple (MFJ) has MAGI of $340,000 and NII of $90,000 (dividends + capital gains from a planned portfolio rebalancing). NIIT base: min($90K, $90K) = $90,000. NIIT: $3,420.
They own a $120,000 stock position with a $30,000 basis. Instead of selling it to rebalance, they contribute it to their DAF.
| Item | Sell & donate proceeds | Gift shares directly to DAF |
|---|---|---|
| Capital gain recognized | $90,000 | $0 |
| Gain added to NII | $90,000 | $0 |
| MAGI impact of gain | +$90,000 | $0 |
| Charitable deduction | $120,000 cash | $120,000 FMV |
| MAGI after deduction | $310,000 | $220,000 |
| NIIT threshold excess | $60,000 | $0 (below $250K) |
| NIIT owed | $2,280 | $0 |
| NIIT savings vs baseline | $1,140 saved | $3,420 saved |
The direct stock gift eliminates all NIIT in this example by driving MAGI below the threshold. The sell-and-donate path recognizes the $90,000 gain, adds it to NII and MAGI, and only partially offsets that with the deduction.
Channel 2: pushing MAGI below the threshold
Qualified Charitable Distributions (QCDs) — the threshold cliff
A QCD is an exclusion from gross income, not a deduction. For donors over age 70½, up to $111,000 per person can be transferred directly from an IRA to a qualified public charity — and that amount never appears in adjusted gross income at all.3
This makes QCDs particularly powerful for NIIT when MAGI is just above the threshold. If a retired couple has MAGI of $270,000 — $20,000 above the $250,000 MFJ threshold — even a modest QCD can eliminate their entire NIIT exposure on other investment income.
Example: $270,000 MAGI, $65,000 NII (dividends and rental income). NIIT: min($65K, $20K) × 3.8% = $760. A $25,000 QCD reduces gross income by $25,000. New MAGI: $245,000. NIIT: $0. The $760 NIIT savings comes entirely from eliminating the threshold excess — not from changing the NII itself.
Compare this to a cash contribution: a $25,000 cash donation is a deduction that also reduces MAGI by $25,000, producing the same arithmetic NIIT outcome — but only if the donor can itemize and isn't already limited by the OBBBA 0.5% AGI floor. The QCD produces the MAGI reduction unconditionally, even for non-itemizers.
Vehicle-by-vehicle NIIT analysis
| Vehicle | Effect on NII | Effect on MAGI | NIIT outcome |
|---|---|---|---|
| Appreciated stock → DAF or charity | Capital gain permanently avoided — never in NII | FMV deduction reduces MAGI; gain never added | Best outcome: attacks both channels simultaneously |
| QCD (age 70½+) | No direct effect on NII | Dollar-for-dollar reduction in gross income; may push below threshold | Eliminates NIIT on all other NII if MAGI drops below threshold |
| Cash gift / DAF funding with cash | No effect on NII | Itemized deduction reduces MAGI (OBBBA 0.5% floor and 35% cap apply) | Reduces NIIT indirectly; less powerful than appreciated-stock gift |
| Charitable Remainder Trust (CRT) | Capital gains inside CRT are deferred — not taxed when trust sells. But distributed to donor via four-tier rules: capital gains distributed OUT of CRT ARE NII-eligible when they reach you | Deduction at funding reduces MAGI in the gift year | Deferral, not elimination: NIIT is deferred until distributions, then applies on capital gain tier distributions |
| Charitable Gift Annuity (CGA) | Removes asset; CGA payments are partly ordinary income (not NII), partly tax-free return of basis, and small capital gain component | Partial deduction reduces MAGI in gift year | Reduces NII exposure vs. holding the asset; ongoing NIIT only on the small capital gain portion of each payment |
| Charitable Lead Trust (CLT, non-grantor) | Asset leaves your estate; trust income not attributed to you | No deduction; no income from trust | Removes NII exposure for trust term; remainder passes to heirs at reduced value |
| Bunching into DAF in one year | No direct NII effect | Large deduction may push MAGI below threshold in the bunching year | Can eliminate NIIT entirely in the high-deduction year; NIIT resumes in non-bunching years |
CRT: deferral, not elimination
The CRT's NIIT treatment deserves a closer look. When a CRT sells appreciated assets, the trust owes no federal income tax (IRC §664(c)). The gain is trapped inside the trust. When the trust makes annual distributions to the non-charitable income beneficiary (typically the donor), those distributions carry the character of the trust's accumulated income under the four-tier ordering rules of IRC §664(b):4
- Ordinary income (highest rate)
- Capital gains (LTCG rates — and NIIT-eligible)
- Tax-exempt income
- Return of basis (tax-free)
Capital gains distributed to you from a CRT ARE subject to NIIT in the year you receive them. If the trust has accumulated significant capital gains, distributions in later years will be NII-eligible. The NIIT isn't eliminated — it's spread out over the trust term, which can improve cash flow management but doesn't produce the same permanent gain elimination as a direct stock gift to a DAF.
For donors who want current income from the charitable gift (a key reason to use a CRT), this tradeoff is often worthwhile. For donors who primarily want NIIT reduction and don't need income from the gift, a DAF funded with appreciated stock achieves more.
OBBBA interaction with NIIT planning
The OBBBA (July 2025) introduced a 0.5% AGI floor and 35% value cap for itemized charitable deductions taken by taxpayers in the 37% bracket. This doesn't change the NIIT mechanics, but it does affect the MAGI math:5
- The effective value of a $100,000 deduction for a 37% bracket donor is $35,000 (35% cap), not $37,000
- The deduction amount is still $100,000 — only the tax-rate benefit is capped
- For NIIT purposes, the full $100,000 deduction still reduces MAGI by $100,000 — the 35% cap affects income tax savings, not the MAGI calculation
This is an important distinction: a 37% bracket donor's charitable deduction still reduces MAGI dollar-for-dollar for NIIT purposes, even though the income tax benefit is capped at 35 cents per dollar.
Practical decision framework
When evaluating which charitable vehicle to use, add a NIIT lens to the analysis:
- Are you above or near the NIIT threshold? If your MAGI typically sits within $50K–$100K of $250K MFJ, a QCD or bunching strategy can push you below the threshold — eliminating NIIT on all your other investment income, not just the charitable gift.
- Do you hold appreciated positions you want to rebalance? Gift those positions to a DAF rather than selling. The NIIT savings on the avoided capital gain, plus the deduction's MAGI reduction, compound the total benefit well beyond the headline deduction value.
- Do you need income from the charitable gift? If yes, a CRT provides income but defers rather than eliminates NIIT on capital gains. Model whether the deferral advantage justifies the CRT's complexity versus selling and investing the net proceeds.
- Are you over 70½ with IRA assets? A QCD is the cleanest NIIT tool available: it reduces gross income unconditionally, no itemizing required, and the first dollar reduces your NIIT threshold exposure.
- Is this a high-income year (business sale, large RSU vest, Roth conversion)? Bundle charitable giving into the same year to use the elevated AGI ceiling for 60%/30% limits and push MAGI as far below the NIIT threshold as possible.
Related guides and tools
- Gifting Appreciated Stock to Charity — 2026 LTCG rates, direct vs DAF vs CRT vehicle comparison
- Appreciated Stock Gift Calculator — side-by-side: gift stock vs sell and donate
- QCD vs RMD Tax Savings Calculator — IRMAA impact, NIIT threshold, federal income tax
- Charitable Remainder Trust Guide — CRUT vs CRAT, four-tier distribution rules, capital gains deferral
- CRT vs DAF — when capital gains deferral beats permanent avoidance
- Charitable Bunching Strategy — DAF bunching mechanics, OBBBA 0.5% floor and 35% cap
- Roth Conversion and Charitable Giving — coordinating large AGI years for maximum benefit
- Charitable Giving Strategies for High-Income Earners — five vehicles, year-of-event decision table
Get matched with a specialist
NIIT planning sits at the intersection of portfolio management, charitable strategy, and tax timing. Getting the vehicle sequence right — appreciated stock to DAF vs CRT funding vs QCD sequencing — can eliminate thousands of dollars of annual NIIT exposure. A fee-only charitable planning advisor can model your specific income picture across vehicles before you commit.
Sources
- IRC §1411 — Net Investment Income Tax. IRS Topic No. 559, Net Investment Income Tax. MAGI thresholds: $250,000 MFJ / $200,000 single / $125,000 MFS. Not indexed for inflation since enactment in 2013. Rate: 3.8%. irs.gov/taxtopics/tc559 | IRS Q&A on NIIT
- IRC §170(e)(1)(A) — appreciation not recognized on a charitable contribution. Rev. Proc. 2025-32 — 2026 capital gains rates: 0% to $96,700 single / $193,350 MFJ; 20% above $553,850 single / $613,700 MFJ. Combined top rate including NIIT: 23.8%. IRS Rev. Proc. 2025-32
- IRC §408(d)(8) — Qualified Charitable Distribution. 2026 QCD limit: $111,000 per individual per IRS Rev. Proc. 2025-32 (indexed annually). Minimum age: 70½. QCD excluded from gross income entirely — not a deduction. IRS announcement on 2026 QCD limit
- IRC §664(b) — four-tier ordering of CRT distributions (ordinary income → capital gains → tax-exempt income → return of basis). IRC §664(c) — CRT itself exempt from income tax. Capital gain distributions from CRT to individual beneficiary are net investment income subject to NIIT. law.cornell.edu/uscode/text/26/664
- OBBBA (One Big Beautiful Bill Act, July 2025) — amended IRC §170(b)(1): 0.5% AGI floor and 35% rate cap on itemized charitable deductions for taxpayers in the 37% bracket, effective for tax years beginning after December 31, 2025. OBBBA did not modify IRC §1411 NIIT thresholds or rate. IRS Rev. Proc. 2025-32 for 2026 income tax brackets. IRS Rev. Proc. 2025-32
Tax values verified June 2026 against IRS.gov, IRC text via law.cornell.edu, and IRS Rev. Proc. 2025-32. NIIT thresholds confirmed not changed by OBBBA per IRS OBBBA provisions page and Tax Foundation analysis.