Is Interest on a Margin Loan Tax Deductible?

Updated July 9, 2026 6 min read

Borrowing against a brokerage account to buy more securities is one thing; whether the interest on that borrowed money can offset a tax bill is a separate question with its own set of rules.

The short answer

Interest paid on a margin loan can potentially be deducted as investment interest expense, but only up to the amount of net investment income earned in that same year, and only for investors who itemize deductions rather than taking the standard deduction. Interest tied to margin borrowing used to buy something other than taxable investments, a personal purchase, for instance, generally doesn’t qualify for this treatment at all. Any unused deduction can typically be carried forward to offset investment income in future years.

What counts as investment interest expense

The category that margin loan interest usually falls into is investment interest expense, which covers interest paid on money borrowed to purchase or carry taxable investments. This is a distinct category from mortgage interest or other types of deductible interest, with its own separate limitation. To claim it, a taxpayer generally needs to itemize deductions rather than take the standard deduction, which means the benefit only applies to people whose total itemized deductions exceed the standard amount in the first place.

Why the deduction is capped at investment income

Unlike some other deductions, this one isn’t unlimited — it’s generally capped at the amount of net investment income earned during the year, things like interest, non-qualified dividends, and certain other investment earnings. If margin interest paid exceeds that year’s investment income, the excess isn’t lost outright; it typically carries forward to be used against investment income in a future year instead. This cap exists specifically to prevent the deduction from being used to shelter income unrelated to investing, keeping the benefit tied to the investment activity that generated the borrowing in the first place.

Why what the loan was used for matters

The deduction depends on how the borrowed money was actually used, known as the interest tracing rules, not simply on the fact that it came from a margin loan against a brokerage account. Margin loan proceeds used to buy taxable investments like stocks or bonds generally support the deduction, while the same margin loan used to fund a personal expense, like a home renovation or a large purchase unrelated to investing, would not qualify as investment interest even though it’s technically the same type of borrowing facility.

The qualified dividend and municipal bond wrinkle

Net investment income used for this calculation generally doesn’t automatically include income taxed at qualified dividend rates or gains taxed at favorable long-term capital gains rates, unless an election is made to treat them as ordinary income for this specific purpose. That election involves a tradeoff — it can increase the amount of margin interest that becomes deductible in the current year, at the cost of giving up the lower tax rate on the income used to make that election. Similarly, interest and dividends from tax-exempt sources generally don’t count toward net investment income at all, since that income was never taxed to begin with.

What to weigh

Because this deduction depends on itemizing, is capped by investment income, and hinges on exactly what the borrowed money was used for, the tax benefit of margin interest is far less automatic than the interest cost itself. Anyone borrowing on margin and hoping to offset the cost through this deduction needs enough net investment income and enough other itemized deductions for the math to actually work in their favor.