← Back to Learn

Borrow against a portfolio or sell it?

Say you own $1,000,000 of stock that cost you $400,000, and you need $200,000. Selling means parting with $233,318 of shares, because $33,318 of the proceeds goes straight to federal tax. Borrowing the $200,000 instead at today's 1-year Haven SPX Box Rate plus our fee, 5.32%, means owing about $233,648 in three years and keeping every share.

It is tempting to stop there and compare the tax bill with the interest. That comparison misses the real question, which is whether the shares you keep will earn more than the loan costs. Run the numbers on this example and borrowing wins only if the position returns more than about 5.9% a year. Below that, selling would have left you better off. Here is how that breakeven works, what moves it and when selling is simply the better choice.

The example, worked through

Borrowing is really two decisions in one. It is the same as selling the shares and buying them right back with borrowed money: you end up with your original position, a loan and a tax bill that has been postponed rather than erased. So the loan pays off only if keeping that exposure is worth more than paying the tax today.

The table follows both paths for three years, at which point the rest of the position is sold and the loan repaid. Gains are taxed at 23.8%, the top federal long-term rate including the net investment income tax.

Annual return on the positionSellBorrowBorrow minus sell
−15%$431,767$329,515−$102,252
0%$657,200$623,552−$33,648
+4%$730,147$718,698−$11,449
+8%$808,927$821,452+$12,525
After-tax wealth after 3 years, when every remaining share is sold and the loan repaid. Position $1,000,000 with a $400,000 basis; $200,000 of cash needed now; federal long-term capital gains tax of 23.8% (20% plus the 3.8% net investment income tax), no state tax; loan at 5.32% compounded annually and repaid at the end; no dividends; no tax effect from the financing itself. Hypothetical illustration, not a projection.

In a flat market, borrowing costs $33,648 more than selling. That is the interest. If the position falls 15% a year, it costs $102,252 more, because the shares you would have sold ride the decline down and the loan still has to be repaid in full. The breakeven sits above the loan rate because the gains on the shares you kept are taxed when you finally sell. It is lower than you might expect because borrowing keeps $233,318 invested, not just $200,000.

−$125k−$100k−$75k−$50k−$25k$0+$25k+$50k-15%-10%-5%0%5%10%Breakeven 5.9% a year
Borrowing minus selling, after-tax ending wealth after three years, by the position's annual return. Assumptions as in the table above.

What changes the answer

The biggest swing factor is time. If you hold the position until death, your heirs generally inherit it at its market value under IRC Section 1014, and the deferred gain is never taxed. The final tax in the borrowing column disappears and borrowing looks far better, though the loan still has to be repaid from the estate and the rule could change.

State tax pushes in the same direction. Most states tax capital gains as ordinary income, so a higher tax on the sale makes deferral more valuable and lowers the breakeven. A small embedded gain pushes the other way: if your cost basis is close to market value, there is little tax to defer and borrowing mostly buys interest expense.

Then there is the loan itself, the input you control most directly. At Schwab's and Fidelity's posted 10.325% margin tier, the breakeven in this example rises from about 5.9% to 11.5% a year. A loan that floats, or a box rolled at each expiration, will also reprice over three years, while the illustration holds the rate constant. See box spreads vs. margin loans.

Tax treatment of the borrowing cost

The example gives the loan cost no tax benefit. Whether it has one depends on how you borrow and what the money pays for.

Interest on a margin loan or pledged-asset line is ordinary interest. If the proceeds buy taxable investments, it may be deductible as investment interest under Section 163(d), up to your net investment income. Interest on money spent personally generally is not deductible.

Box spread financing does not pay interest in form. You hold a short position in SPX options, which are Section 1256 contracts: marked to market every year-end, with gains and losses treated as 60% long-term and 40% short-term. The financing cost therefore shows up as a capital loss. That loss offsets capital gains and up to $3,000 a year of ordinary income, with the rest carried forward, and a net Section 1256 loss can be carried back three years against Section 1256 gains. How much that is worth depends on your other gains.

Haven does not provide tax advice. Confirm how these rules apply to you with your own tax adviser.

When selling is the better choice

Sometimes selling is plainly right. If the embedded gain is small, there is little to defer. If the position is at a loss, selling realizes a loss you can use. If the cash need is permanent and you would sell within a few years anyway at a return below the breakeven, the loan only adds cost. And if the reason to sell is to reduce risk, in a concentrated or volatile position for example, borrowing does the opposite: it keeps the exposure and adds leverage on top. How a decline can force a sale anyway is covered in How much can I borrow, and what are the liquidation risks?

Sources

  1. Internal Revenue Service, Topic no. 409, Capital gains and losses, and Net investment income tax.
  2. Internal Revenue Code Section 1014, Section 163, Section 1211, Section 1212, Section 1256 and Section 1258.
  3. Internal Revenue Service, Form 6781 and Form 4952.
  4. Tax Notes, “The Tax Trap Inside the BOXX,” March 8, 2024.
  5. Haven, Haven SPX Box Rate.