Is Margin Interest Tax Deductible? The Net Investment Income Limit Explained
Margin interest can be deducted as investment interest expense — but only up to your net investment income for the year, and a net capital loss doesn't count as income. Here's why the deduction often disappears in exactly the year you need it most.
If you paid margin interest this year and also lost money on the position it funded, you’ve probably assumed the interest is at least a consolation-prize deduction. For a lot of people in exactly that situation, it isn’t — not this year, anyway. Investment interest expense is real and deductible, but it’s capped at your net investment income for the year, and a net capital loss doesn’t generate any. The deduction that was supposed to soften the loss often turns out to be worth nothing in the same tax year the loss happened, which is the year most people go looking for it.
This is general educational information, not tax advice. This article covers U.S. federal tax treatment under Internal Revenue Code §163(d) and Form 4952. State rules vary, and the details of your specific situation (what the loan funded, how much other investment income you had, whether you itemize) change the answer. Confirm your numbers with a tax professional before filing.
What actually qualifies as investment interest expense
Investment interest expense is interest paid on money borrowed to buy or carry property held for investment — a brokerage margin loan used to buy stocks, bonds, or crypto is the textbook case. It doesn’t include interest on a loan used for personal spending, and if you borrowed against a margin account for a mix of investing and personal use, only the investment-use portion qualifies; you have to allocate it.
Crypto fits into this the same way stocks do, because the IRS treats it as property held for investment, not as a fundamentally different asset class for this purpose. Where crypto gets genuinely murkier is perpetual futures funding payments, which aren’t a traditional interest charge on a loan — that’s covered separately in Is a Crypto Liquidation a Taxable Event?, and it’s a distinct, still-unsettled question from the one this article covers.
The limit that catches people: net investment income
You don’t get to deduct investment interest expense against your income generally. Under §163(d), the deduction is capped at your net investment income for the year — and net investment income, for this specific purpose, is narrower than it sounds.
By default, net investment income includes things like interest income, non-qualified dividends, and annuity income. It does not include net capital gain or qualified dividends, because those already get a preferential tax rate (0%, 15%, or 20% depending on your bracket) and the tax code doesn’t let you use the same dollar of income to both get a lower rate and absorb a deduction. You can elect to include net capital gain or qualified dividends as investment income on Form 4952, line 4g — but if you do, that elected amount loses its preferential rate and gets taxed as ordinary income instead. It’s a real trade, not a loophole: worth doing only when the extra interest deduction is worth more than the higher rate you’ll pay on the income you’re reclassifying.
Here’s the part that matters most for anyone reading this because a position just went badly: a net capital loss isn’t negative investment income, and it doesn’t generate any investment income to absorb the deduction against. If your portfolio lost money on net this year, you can have paid thousands of dollars in real margin interest and still have close to zero net investment income to deduct it against — regardless of how large the loss was.
What happens to the interest you can’t deduct
It doesn’t disappear. Under Form 4952’s carryforward mechanics, investment interest expense disallowed in the current year because it exceeds net investment income carries forward indefinitely — there’s no expiration and no dollar cap on how long it can sit waiting to be used, per the way the IRS designed the form’s carryforward line. It becomes available again in any future year you have enough net investment income to absorb it, whether that’s from interest income, non-qualified dividends, or elected capital gains.
That’s genuinely useful if you expect the position to eventually turn profitable, or if you have other investment income elsewhere in your portfolio. It’s cold comfort if you needed the deduction to offset this year’s tax bill specifically — the carryforward doesn’t help with the return you’re filing now.
A worked example
Say you borrowed on margin to buy into a portfolio that’s now down significantly. Over the year you paid $9,400 in margin interest. You also sold losing positions for a $30,000 net capital loss, and separately earned $600 in ordinary (non-qualified) dividend income from a few holdings you kept.
| This year | |
|---|---|
| Margin interest paid | $9,400 |
| Net capital gain/(loss) | ($30,000) |
| Ordinary dividend income (counts as investment income) | $600 |
| Net investment income (Form 4952) | $600 |
| Investment interest expense deductible this year | $600 |
| Disallowed interest carried forward | $8,800 |
Of the $9,400 you actually paid, $600 offsets your investment income this year and $8,800 carries forward, waiting for a future year with enough investment income to use it. The $30,000 capital loss follows its own separate rules — it can offset capital gains elsewhere and up to $3,000 against ordinary income this year, with the rest carrying forward under the mechanics covered in Your Crypto Loss Is Bigger Than This Year’s Deduction — but none of that capital-loss carryforward does anything to unlock the stuck margin interest. They’re two separate carryforwards, tracked on two separate forms, and one doesn’t feed the other.
Now compare what happens if that same person had $5,000 in qualified dividends and elected to include them as investment income on line 4g: net investment income becomes $5,600, and $5,600 of the interest is deductible this year instead of $600. But that $5,000 of qualified dividends is now taxed at ordinary income rates instead of the capital-gains rate — a real cost that has to be weighed against the extra deduction, not an automatic win.
The second trap: you still have to itemize
Even in a year you clear the net investment income limit, the deduction only helps if you itemize on Schedule A instead of taking the standard deduction — investment interest expense isn’t available to standard-deduction filers at all. The One Big Beautiful Bill Act permanently raised the standard deduction for 2026 to roughly $16,100 for single filers and $32,200 for married filing jointly, according to the IRS’s 2026 inflation adjustments announcement. If your mortgage interest, state and local taxes, charitable giving, and this deduction combined don’t add up to more than that, itemizing doesn’t help you and the margin interest deduction is worth nothing on your actual tax bill — even in a year the net investment income math would otherwise allow it.
Run both checks before assuming the deduction matters: do you have enough net investment income this year, and do your total itemized deductions clear the standard deduction. Either one failing means the deduction doesn’t change what you owe this year, whatever the interest statement from your broker says you paid.
What to actually do about it
- Pull your actual margin interest paid for the year from your brokerage’s year-end statement (usually a 1099 or an account summary) rather than estimating.
- Add up your real net investment income — interest, non-qualified dividends, short-term gains — separately from any net capital loss, since the loss doesn’t offset into this calculation the way it’s easy to assume it does.
- Decide whether the line 4g election is worth it, if you have qualified dividends or net capital gains available to elect. Model the tax cost of losing the preferential rate against the value of the extra deduction before electing.
- Check whether you’ll itemize at all this year before counting on the deduction to lower your bill.
- Track the carryforward amount every year, even in years it produces no current benefit — it’s a real asset that offsets a future year’s investment income, and it’s easy to lose track of if you’re not filing Form 4952 in years the deduction is fully disallowed.
If the margin debt itself, separate from the tax treatment, is the more urgent problem, You Borrowed Money to Invest and Lost It: The Debt Payoff Plan covers the part this article doesn’t — what to actually do about the loan balance while the tax side sorts itself out over multiple years.
FAQ
I lost money this year. Does that capital loss count as investment income I can deduct margin interest against? No. A net capital loss is the opposite of investment income — it doesn’t generate any net investment income to absorb the deduction, and the up-to-$3,000-against-ordinary-income offset for capital losses is a completely separate mechanism from Form 4952’s net investment income calculation. In a year where your portfolio lost money and you had little other investment income, most or all of the margin interest you paid that year is disallowed and carried forward instead of deducted now.
Can I elect to treat my capital gains or qualified dividends as investment income to deduct more margin interest? Yes, using line 4g of Form 4952 — but it comes at a real cost. Electing to include net capital gain or qualified dividends as investment income means that amount no longer qualifies for the preferential 0%/15%/20% capital gains rate and instead gets taxed as ordinary income. It can still be worth it if the extra interest deduction saves you more than the higher rate costs you, but that’s a trade-off to run the numbers on, not a free unlock.
Do I need to itemize to claim this, and is it still worth it after the 2026 standard deduction increase? Yes, investment interest expense is only usable as an itemized deduction on Schedule A — it does nothing for you if you take the standard deduction. With the standard deduction permanently raised to roughly $16,100 (single) and $32,200 (married filing jointly) for 2026, more filers than before will find their total itemized deductions, including this one, don’t clear that bar.
Does this apply to interest on crypto margin trades and perpetual futures funding payments the same way it applies to stock margin? Ordinary margin interest on a crypto position held for investment generally follows the same investment interest expense rules as stock margin, since the IRS treats crypto as property held for investment. Funding rate payments on perpetual swaps are a different, less settled question with no dedicated IRS guidance yet — see Is a Crypto Liquidation a Taxable Event? for how that specific gray area is currently handled.