Quick Answer
Yes, interest on loans used to buy stocks is generally deductible as investment interest expense, subject to the same net investment income limitation as margin interest. The key is proving the loan proceeds were used for investment purposes and the investment is expected to produce income.
Best Answer
Michelle Woodard, Tax Policy Analyst
Best for investors who use personal loans, HELOCs, or other financing to purchase investments
Legal requirements for deducting investment loan interest
Under IRC Section 163(d), interest on debt used to purchase or carry investment property is deductible as investment interest expense. The critical requirement is establishing a clear connection between the borrowed funds and the investment purchase, regardless of the loan type.
Example: $100,000 HELOC used for stock purchases
You take a $100,000 home equity line of credit at 6.5% interest ($6,500 annually) and immediately purchase dividend-paying stocks. Your 2026 investment income includes:
Since your investment interest ($6,500) is less than your net investment income ($7,000), you can deduct the full $6,500 on Schedule A, potentially saving $1,560 in taxes (24% bracket).
Documentation requirements for the IRS
The IRS scrutinizes investment interest deductions carefully. You must maintain detailed records proving the loan-to-investment connection:
Essential documentation:
Different loan types and their treatment
The tracing requirement and fungibility issues
The IRS applies a "tracing" test - borrowed money is treated as used for the purpose for which the debt proceeds are spent. However, money is fungible, so timing matters significantly.
Safe approach: Immediately deposit loan proceeds into a separate account used only for investments, then purchase securities within 30 days. This creates a clear audit trail.
Risky approach: Depositing loan proceeds into a general account used for multiple purposes makes tracing difficult and could jeopardize the deduction.
Investment income limitation and carryforward
Like margin interest, investment loan interest is limited to net investment income. Excess interest carries forward indefinitely to future tax years when you have sufficient investment income.
Strategic planning: In years with large capital gains, consider realizing additional gains to increase your investment income and utilize carried-forward interest deductions.
What you should do
1. Maintain meticulous records linking loan proceeds to investment purchases
2. Calculate your net investment income annually using Form 4952
3. Consider the after-tax cost of borrowing vs. expected investment returns
4. Use our refund estimator to see how this deduction affects your overall tax situation
[Estimate your refund with investment deductions →]
Key takeaway: Investment loan interest is deductible up to net investment income, but requires bulletproof documentation showing the loan proceeds were used specifically to purchase income-producing investments.
*Sources: [IRS Publication 550](https://www.irs.gov/pub/irs-pdf/p550.pdf), [IRS Revenue Ruling 91-31](https://www.irs.gov/pub/irs-irbs/irb91-21.pdf)*
Key Takeaway: Investment loan interest is deductible up to net investment income, but requires bulletproof documentation showing the loan proceeds were used specifically to purchase income-producing investments.
Loan types and their deductibility for investment purposes
| Loan Type | Interest Rate Range | Documentation Required | Deductibility | IRS Scrutiny Level |
|---|---|---|---|---|
| Margin Loan | 8-12% | Moderate | Full (up to limit) | Low |
| HELOC | 6-9% | High | Full (up to limit) | Medium |
| Personal Loan | 10-18% | Very High | Full (up to limit) | High |
| SBLOC | 5-8% | Moderate | Full (up to limit) | Low |
| 401(k) Loan | Prime + 1% | N/A | Not deductible | N/A |
More Perspectives
Michelle Woodard, Tax Policy Analyst
Best for wealthy investors using sophisticated financing strategies across multiple account types
Complex financing structures and tax implications
High-net-worth investors often use multiple financing sources simultaneously - margin loans, securities-backed lines of credit (SBLOCs), and traditional loans. Each has different tax treatment and documentation requirements.
Securities-based lines of credit (SBLOCs) vs. traditional loans
SBLOCs offered by wealth management firms often have better rates than HELOCs but similar tax treatment. The key advantage is easier tracing since the credit line is directly tied to your investment account.
Tax treatment comparison:
Estate planning considerations
Using loans to purchase investments can provide estate tax benefits by removing the loan liability from your estate while keeping the investment upside. The interest deduction provides additional tax efficiency during your lifetime.
Alternative Minimum Tax (AMT) impact
Investment interest deductions are generally allowed for AMT purposes, making this strategy particularly valuable for high earners who might be subject to AMT.
Key takeaway: Wealthy investors can optimize tax efficiency by carefully structuring financing sources and maintaining detailed records for each loan's investment purpose.
Key Takeaway: Wealthy investors can optimize tax efficiency by carefully structuring financing sources and maintaining detailed records for each loan's investment purpose.
Robert Kim, Tax Return Analyst
Best for business owners who use various financing methods for both business operations and personal investments
Separating business and investment loan purposes
Business owners face unique challenges when using loans for both business and investment purposes. The IRS requires clear allocation of interest expense between business (Schedule C) and investment (Schedule A) use.
Business credit lines used for stock purchases
If you use a business line of credit to purchase stocks in your personal name, the interest is generally not deductible as a business expense. Instead, it's treated as investment interest subject to the net investment income limitation.
Better approach: Keep business and investment financing completely separate to avoid IRS scrutiny and ensure proper deduction treatment.
Timing strategies for business owners
Business owners with variable income can time investment purchases strategically. In high-income years, the investment interest limitation is less likely to apply due to higher net investment income from success fees, bonuses, or business distributions.
Example: A consultant with $200,000 income in 2026 might generate $15,000 in investment income, easily covering $8,000 in investment loan interest. In a slower year with $75,000 income, investment income might only be $4,000, limiting the deduction.
Record-keeping for mixed-use loans
If you must use the same credit facility for both purposes, maintain separate tracking:
The IRS may challenge mixed-use situations more aggressively, so pristine records are essential.
Key takeaway: Business owners should maintain strict separation between business and investment financing to ensure proper tax treatment and avoid IRS challenges.
Key Takeaway: Business owners should maintain strict separation between business and investment financing to ensure proper tax treatment and avoid IRS challenges.
Sources
- IRS Publication 550 — Investment Income and Expenses
- IRS Revenue Ruling 91-31 — Deductibility of interest on loans to purchase investments
Related Questions
Reviewed by Michelle Woodard, Tax Policy Analyst on February 28, 2026
This content is for educational purposes only and is not a substitute for professional tax advice. Consult a qualified tax professional for advice specific to your situation.