Investment Interest Expense, Explained
TL;DR: Interest on money borrowed to buy taxable investments is an itemized deduction, limited to net investment income. Qualified dividends and long-term gains count only if you elect, which costs their lower rate. Unused interest carries forward indefinitely. Interest tied to tax-free bonds is never deductible.
Educational only, not tax, legal, or investment advice. Examples are illustrations, not predictions. Rules and limits change; verify current figures and talk to a qualified professional about your situation.
The tax code is 4 million words long, and roughly a dozen of them let you deduct the interest on money you borrowed to buy investments. Borrow on margin to buy stock, and the interest might be deductible. Borrow on a HELOC to buy stock, and it might also be deductible, under a completely different label. Borrow to buy municipal bonds, and it is not deductible at all, because the IRS refuses to subsidize your tax-free income twice.
This guide covers what counts as investment interest, the net investment income limit, the qualified dividend election that trades a lower rate for a bigger deduction, carryforwards, Form 4952, and a worked example. These rules are permanent law and were not changed by the 2025 tax act, as of Oct 2026.
CPA Warning Label: Borrowing to invest magnifies losses as well as gains. A deduction does not make a margin loan safe, and tracing records are on you if the IRS asks.
What counts as investment interest
Investment interest is interest paid on money borrowed to buy or carry property held for investment. The test is what you did with the money, not what secured the loan. The IRS calls this interest tracing.
- Counts: margin interest at a brokerage used to buy taxable stocks, bonds or funds; a personal loan or HELOC whose proceeds went into a taxable brokerage account; interest on a loan used to buy raw land held for investment.
- Does not count: interest to buy or carry tax-exempt bonds; interest tied to a passive activity such as a rental (that goes on Schedule E; see rental mortgage interest); interest on a loan used for personal spending; interest on your home mortgage used to buy the home.
- Also not: margin interest used to fund a vacation. If you pull cash from a margin account and spend it, that portion is personal interest and not deductible. Tracing follows the dollars.
Keep loan proceeds in a separate account until invested. Mixing borrowed money with cash you spend on groceries makes tracing a nightmare, and the burden of proof is on you.
The net investment income limit
Your deduction for investment interest cannot exceed your net investment income for the year. Net investment income is investment income minus investment expenses (other than interest).
Investment income includes: taxable interest, ordinary (non-qualified) dividends, royalties not from a business, and short-term capital gains. It also includes annuity income not from a business.
It does not include, by default: qualified dividends and net long-term capital gains. Those already get preferential rates, so the tax code makes you choose (see the next section).
A practical point: since 2018, miscellaneous itemized deductions such as investment advisory fees are not deductible, and the 2025 tax act made that permanent. So for most people "investment expenses" in this formula is zero, and net investment income is simply investment income.
And the big one: investment interest is an itemized deduction on Schedule A. If you take the standard deduction of $32,200 (married filing jointly, 2026) or $16,100 (single), you get no benefit. Margin interest is not an above-the-line deduction, no matter how much your broker's marketing implies otherwise.
The qualified dividend and capital gain election
Here is the trade-off. You can elect to treat some or all of your qualified dividends and net long-term capital gains as investment income. That raises your limit, so you can deduct more interest. The price: whatever you elect gets taxed at ordinary rates instead of 0%, 15% or 20%.
When is it worth it?
- Usually not if your long-term rate is 15% and your ordinary rate is 24%. Electing $10,000 of gains looks like a win this year: about $900 of extra tax (9 points of rate difference) to unlock a deduction worth about $2,400. But disallowed interest is not lost; it carries forward. If you can use the carryover later against ordinary investment income, it saves the same $2,400 with no $900 toll. The real question is timing: will you have enough ordinary investment income in a future year to use it?
- Sometimes yes if you expect to stop borrowing and never have enough interest income to use the carryover, or if your long-term gains would be in the 0% bracket anyway (then electing costs nothing at the federal level, though it may change other figures).
The election is made on Form 4952 line 4g. Run both versions in your software before choosing. This is one of the few places where the tax code lets you pick your poison.
Carryforward and Form 4952
Investment interest you cannot deduct this year because of the limit carries forward to next year, indefinitely. It is treated as investment interest paid in the next year and faces the same limit then.
You file Form 4952 to figure the deduction. You generally do not need it if all three apply: your investment interest is no more than investment income from interest and ordinary dividends, you have no other deductible investment expenses, and you have no carryover from a prior year. Many people with modest margin balances qualify for that shortcut, but software will usually fill out the form anyway.
Keep each year's Form 4952. The carryover lives on line 7, and like capital loss carryovers, it tends to vanish when people switch software. See the capital loss limit guide for the same problem with a different jar.
Illustration: margin loan, two years
Illustration: a married couple itemizes in 2026 because of mortgage interest and state taxes. They pay $9,000 of margin interest on a loan used to buy taxable stock funds. Their investment income:
| Item | Amount | Counts by default? |
|---|---|---|
| Bond and savings interest | $3,500 | Yes |
| Non-qualified dividends | $1,500 | Yes |
| Qualified dividends | $6,000 | Only if elected |
| Net long-term gain | $8,000 | Only if elected |
No election: net investment income is $5,000. They deduct $5,000 of interest and carry forward $4,000. At a 24% bracket, the deduction saves $1,200.
Elect $4,000 of qualified dividends: limit rises to $9,000, so they deduct the full $9,000. Extra deduction: $4,000 × 24% = $960 saved. Extra tax on the elected dividends: $4,000 × (24% − 15%) = $360. Net benefit this year: $600, but they give up a $4,000 carryover that might have saved $960 later at no cost.
2027: they pay off the margin loan. With no election and $5,000 of interest income, the $4,000 carryover is fully deductible. So skipping the election was better here. The answer flips if the carryover would sit unused for years.
Assumptions: same bracket both years, itemizing both years, no state tax effects, no NIIT.
Record-keeping that survives an audit
Investment interest is one of those deductions that is easy to claim and annoying to prove. If the IRS asks, you need to show where the borrowed dollars went. Keep these:
- Year-end brokerage statements showing margin interest charged, usually on the 1099 composite or a separate interest summary.
- Loan statements and the transfer records that move HELOC or personal loan proceeds into the brokerage account, ideally within 30 days of borrowing.
- Each year's Form 4952, including the carryover line.
- Notes on any election to include qualified dividends or gains, since it changes your capital gain worksheet.
If a single loan funded both investments and personal spending, allocate the interest by use. Repayments are applied in a specific order under the tracing rules, generally personal portions first, which is one more reason to keep borrowed money in its own account.
NIIT, state taxes, and traps
- NIIT. Investment interest can reduce net investment income for the 3.8% net investment income tax, if properly allocable. See NIIT guide.
- Margin risk. Margin calls do not care about your tax deduction. A 30% market drop can force sales at the worst time.
- States. Some states do not allow itemized deductions or treat investment interest differently.
- Not the same as other interest. Car loan interest, student loan interest and IRS penalty interest each have their own rules. See car loan interest deduction and IRS penalties and interest.
- Fees still not deductible. Fund expense ratios reduce returns before you see them; there is no separate deduction. See why expense ratios matter.
Back to the tax planning hub.
FAQ
Is margin interest tax deductible?
It can be, if the borrowed money bought taxable investments, you itemize deductions, and the interest does not exceed your net investment income. Excess carries forward.
Do qualified dividends count as investment income?
Not by default. You can elect to include them, which raises your interest deduction limit, but the elected amount loses the lower qualified dividend rate.
Can I deduct investment interest if I take the standard deduction?
No. Investment interest is an itemized deduction on Schedule A, so it only helps if your itemized deductions exceed the standard deduction.
Does unused investment interest expire?
No. Disallowed investment interest carries forward to future years indefinitely and is treated as paid in the next year.
Is interest on a loan to buy municipal bonds deductible?
No. Interest on money borrowed to buy or carry tax-exempt securities is not deductible.
Sources & fact-check notes
- IRS Publication 550 (accessed 2026-10-27)
- IRS Topic 505: Interest expense (accessed 2026-10-27)
- About Form 4952 (accessed 2026-10-27)
- Rev. Proc. 2025-32 (accessed 2026-10-27)
Figures checked October 27, 2026. Rules and limits change; verify with the official source before acting.