Learn

How to pay a tax bill without selling your stock

A tax bill arrives with a date on it. Your portfolio does not. That mismatch is what pushes people into a hurried sale, and in most cases there is another way to find the money.

← Back to Knowledge Blog

When a tax bill is due in three weeks and the money is sitting in shares, selling is the fastest thing you can do. It settles the obligation in a couple of days. The expense of that speed is easy to lose track of, because it lands on a different form in a different year, and nobody adds the two together.

So let us start with the arithmetic that usually gets skipped.

Why selling feels like the only option

A tax payment is small compared with the portfolio behind it. If you owe $40,000 and hold $2 million of appreciated stock, the obvious move is to sell $40,000 and be done. The sale takes two days, needs no approval, and carries no paperwork.

What it also does is convert part of a position you chose to hold into cash at a price you did not choose, on a day you did not choose, and it turns an unrealized gain into a realized one.

The full cost of selling

There are three separate costs, and only one of them shows up as a line item.

Selling an appreciated position realizes a capital gain. Hold the shares more than a year and the gain is long-term, taxed at 0%, 15% or 20% depending on your income, with a possible 3.8% surtax on top for higher earners. Hold them a year or less and the gain is short-term, taxed at your ordinary income rate. In a state with its own income tax, add that too.

Then there is the position itself. The shares are gone, and if they were part of a concentrated holding you were keeping for a reason, the sale quietly removes that holding from your future.

The third cost is the price. You sell at whatever the market offers that week. A tax deadline is not a market signal, but it forces you to behave as though it were one.

Add the first and third together and the true cost of paying a tax bill with shares can be well above the amount of the bill itself.

The part that makes this a planning problem

Most tax bills are predictable. Individuals owe on the annual return in April. People with significant investment income or self-employment income pay quarterly estimates in January, April, June and September.

If the amount and the date are known, the bill is a financing question. You have a defined cash need with a defined deadline, which happens to be exactly the shape of problem that a loan can solve at a known cost. The emergency only appears when the deadline is two weeks away and nothing was arranged.

That is why the useful move happens in the months before the bill, not the week of it.

The one-line version. A tax bill is a date and an amount. If you arrange the cash before the date, you choose the cost. If you sell on the date, the market chooses it for you.

Four ways to find the money

  • Cash or savings, which is cheapest where it exists and the first place to look before assuming there is none.
  • A loan secured by the portfolio, where the investments stay in place and act as collateral. This is the route the rest of this page is about, and it includes a structure most borrowers never get shown: selling a box trade on index options. The differences between a portfolio line, margin and a box trade are covered in our guide to securities-based lines of credit versus margin.
  • Home equity, through a HELOC or a home equity loan. It takes weeks to close, carries its own fees, and puts your house behind the debt.
  • A retirement account loan, where the plan allows it. Fast and independent of markets, though leaving the plan has consequences and the limits are often lower than people expect.

The box trade: four positions, one known repayment

This is the structure worth understanding before you choose anything, because it is the one that changes the arithmetic.

A box trade is four index option positions on the S&P 500, placed at two strike prices with the same expiration date: a bought call and a sold call at the lower and upper strike, plus a bought put and a sold put at the same two strikes. Held together they cancel out every directional bet. Whatever the index does between now and expiration, the combined position is designed to be worth the distance between the strikes.

That fixed future value is what makes it borrowable. You sell the structure today and receive cash. At expiration a known contractual amount comes due. The gap between the cash you received and the amount you owe is your financing cost, and quoted as an annual rate it is what the market calls the box rate.

Three features matter for a tax payment specifically.

No monthly payment. There is no amortization schedule and no interest cheque. Nothing is drawn from your account during the term, at any interval. The entire cost settles once, at maturity. Compare that with a home equity line or a bank loan taking a payment out every month, and the cash you would have spent servicing the loan stays invested for the whole term.

The cost is fixed at the start. You know the rate and the repayment amount before you commit. It is not a spread over a benchmark that resets, so a rise in rates during your term does not change what you owe.

You can roll it at expiration. If you still need the financing when the box matures, you can place a new one and roll the obligation forward. The amount owing is settled, a new term begins, and your portfolio stays invested throughout. Worth understanding clearly: the rate on the roll is the rate available on that future date, which nobody can promise you today.

The rate itself is set by the options market rather than by a lender's rate card. Because these are index options priced off the same curve that prices US Treasuries, the box rate tends to sit near Treasury yields plus a spread, which is a different starting point from a bank's posted securities-based lending rate.

What the structure requires. Options approval on the account, enough equity to cover the position's margin requirement, and a portfolio liquid enough to serve as collateral. It is not available in a retirement account. If you close the position before expiration, the market price at that moment applies rather than the fixed payoff. A market fall works against you twice, because the collateral is the same portfolio that is declining.

Who it fits. A defined cash need with a date attached, where you want the cost settled rather than floating. That describes a tax bill almost exactly.

Side by side

Selling, versus borrowing against the portfolio

Terms vary by provider and by account. Ask each one for the full economics on your amount.

 
Sell shares
Portfolio line (SBLOC)
Margin loan
Fixed maturity
Taxable event now
Yes, on the gain
No
No
No
Keeps the position
No
Yes
Yes
Yes
Cost known up front
No, moves daily
Partly
Partly
Yes
Callable before you are ready
Not applicable
Yes, on a shortfall
Yes, often without notice
Settles at expiration
Speed to funds
Two days
Days to weeks
Same day
Depends on options approval
Ongoing obligation
None
Variable balance
Variable balance
Fixed repayment at maturity
Tax treatment of the cost
Gain realized, taxed now
Interest, generally not deductible for personal use
Interest, generally not deductible for personal use
Section 1256 capital loss
Payment schedule
Not applicable
Monthly interest
Monthly interest
Nothing until maturity

Two tax treatments, and why the difference matters here

Most explanations of this topic stop at "ask your adviser". There is a real distinction underneath it, and it explains why two structures that look similar on a rate sheet behave differently in April.

Interest follows the use of the money. Margin interest and securities-based line interest are traced to what the cash paid for. Money borrowed against a portfolio and spent on a personal tax bill is treated as personal interest, and personal interest is generally not deductible. That is the rule behind the cautious wording most lenders use.

A box trade is treated as something else entirely. Index options are Section 1256 contracts, marked to market at the end of every tax year. The financing cost that has accrued on a box position is generally recognized as a capital loss on that mark, 60% long-term and 40% short-term, even though no cash leaves your account until maturity. Nothing about that treatment depends on what the borrowed money bought.

You pay at maturity and recognize the cost along the way, a year at a time.

Two limits belong in the same breath as the benefit. A capital loss offsets realized capital gains without any cap, but against ordinary income it offsets $3,000 in a year, with the remainder carried forward. The deduction is only worth something if you have gains for it to absorb.

That is what makes this fit a tax bill so closely. A person facing a large tax bill has usually realized gains somewhere, which is one reason the bill exists. That is exactly the situation where the loss has something to work against, which is why the box structure is the one worth asking about before you consider selling shares.

None of this is tax advice. The answer depends on your income, your realized gains, how the position is documented and how it is reported, so your own adviser should confirm it before you rely on it. A fair question to put to any provider is how the financing cost is characterized on a return, and whether they will put the explanation in writing. InvestedFlex does not provide tax advice; the 60/40 split and the $3,000 ordinary-income offset are statutory descriptions, not a projection of your outcome.

One thing is straightforward. Borrowing against a portfolio does not sell anything, so it does not by itself realize a gain. The gain stays unrealized until you eventually sell, in a year you choose.

When selling is the right answer

Borrowing delays a decision. Sometimes the delay is worth paying for and sometimes it is not.

If you had already decided to trim the position, sell. A financing structure that keeps a holding you wanted to reduce just adds a cost to a decision you had already made.

If the concentration keeps you awake, or if the position is large relative to everything else you own, reducing it may matter more than avoiding the tax. Paying tax on a gain is not a loss. It is the price of having had the gain.

Borrowing fits the other case: you want to keep the position, the tax bill is a timing problem rather than an investment decision, and you would rather pay a known cost than accept whatever price the market offers during filing season.

A short checklist before you decide

  • Write down the exact amount due and the exact date. Two numbers, not an estimate.
  • Ask what cash you already hold outside the portfolio.
  • Ask your tax adviser whether any of the borrowing cost would be deductible in your situation, before a lender tells you it will be.
  • Ask what the largest concentration in the portfolio is, as a percentage, because that drives what any lender will accept as collateral.
  • Ask whether you actually want to keep the position, which is the question that decides this whole thing.
  • If the bill is connected to a home purchase instead, the same financing logic applies: how to buy a house without selling your investments.

Questions people ask

Usually yes. Securities-based lines of credit carry a non-purpose restriction that prevents using the money to buy more securities, and paying a tax bill is not that. Confirm the permitted uses with the specific lender, because the wording differs between agreements.
Borrowing is not a sale, so it does not realize a gain by itself. You take on an obligation to repay a stated amount on stated terms. The gain in the portfolio stays unrealized until you sell the position.
It depends on the structure. Interest on a margin loan or a securities-based line is traced to what the money paid for, so for a personal tax bill it is generally not deductible. A box trade built from index options is different: for the 2026 tax year, the cost is generally recognized as a Section 1256 capital loss, 60% long-term and 40% short-term, marked to market each year. That loss offsets realized capital gains without a cap, and up to $3,000 a year against ordinary income. Confirm the treatment with your own tax adviser.
It depends on the structure and the account. A margin loan can be same day because the facility already exists. A bank line takes days to weeks. Options-based financing depends on your options approval being in place, which is the step people most often discover too late.
Yes. A box trade has a fixed expiration, and at that date you can place a new one and roll the obligation forward, settling the maturing amount and starting a new term. The rate on the roll is whatever the market offers on that future date, so the cost of the extension is not knowable today.
It depends on the structure. A margin account has a maintenance requirement and a lender can sell positions to restore it. A fixed-maturity structure has a defined obligation that settles at expiration. Either way, borrowing against a volatile portfolio increases the risk in that portfolio, which is why the amount borrowed relative to the collateral matters.

Bring the portfolio.
Bring your borrowing needs.

A private review compares the paths for your specific holdings, amount and timeline. Indicative pricing, dated.