By Paul Norris Published Updated Playbooks

Your margin loan-to-value just crossed your limit: what to sell first

Your LTV is past your own comfort line but your broker hasn't forced anything yet. Here's how to size the paydown, then compare a tax-first sale order with a concentration-first one on the same book.

Your margin loan-to-value just crossed your limit: what to sell first

The market dropped, and your margin loan-to-value is now past the line you set for yourself. Your broker hasn't called (yet), so you still get to choose what goes. This post covers two questions. How much do you actually need to sell to get back to your target? And which shares should go first if you want to avoid a tax mess and avoid ending up with one giant position?

What it does and when to use it

Some quick definitions first, because everything below leans on them.

  • Margin debt – money you've borrowed from your broker. In MetisTrades it's simply a negative cash balance, ie. if your cash shows -$30,000, you owe $30,000.

  • Collateral – what's backing the loan. Here that means priced stock plus any positive cash. Open options are NOT counted.

  • LTV (loan-to-value) – debt divided by collateral, as a percentage. $30,000 owed against $150,000 of stock is 20%.

  • Tax lot – one block of shares bought in one transaction, with its own date and cost. When you sell, the broker has to decide which block you sold.

  • FIFO – first in, first out, ie. the oldest shares get sold first. Many brokers default to this unless you tell them otherwise.

  • Specific lot – you pick the exact block you're selling.

The MetisTrades tool for this is Analysis → Margin. It answers three things. Where your LTV sits against YOUR comfort limits. How much cash, or how much in sales, gets you back to a target LTV. And, through What Should I Sell?, which lots could cover that sale and what each one would realise in estimated gain or loss.

Who is this for? The trader who has blown through a personal limit but isn't being forced. That last part matters.

If you wait for an actual broker call and miss it, the broker picks.

FINRA Rule 2264, the margin disclosure every US broker hands out, says the firm can sell your securities without contacting you and that you don't get to choose which ones are sold. So the whole point of acting early is keeping the choice. You can't optimise a sale somebody else already made for you.

One more thing before the numbers. The limits on this page are your own comfort levels. They are not your broker's maintenance requirement, and the page says so itself.

A worked scenario

Let's say you have two accounts on February 27, 2026. One is a margin account carrying debt. The other is a plain cash account. Your comfort settings are the report's starting defaults: target 10%, soft limit 15%, hard limit 20%, high risk 25%.

The spreadsheet Margin and LTV check (.xlsx) has both accounts on its "LTV check" sheet, with the formulas already filled in. It also includes a stress column that re-prices the stock after a 20% drop.

Download the template: Margin and LTV check (.xlsx). It opens in Excel, and in Google Sheets via File → Import. The worked example from this guide is already filled in, and the formulas carry down into the blank rows.

Account

Cash balance

Stock value

Margin debt

LTV

Stock after 20% drop

LTV after drop

Margin account

-$30,000

$150,000

$30,000

20%

$120,000

25%

Cash account

$12,000

$60,000

$0

0%

$48,000

0%

Table from the "LTV check" sheet. Totals: margin debt $30,000, stock value $210,000.

Formulas: Margin debt = the negative cash flipped positive; ie. -(-30,000) = 30,000. LTV = debt ÷ stock value; ie. 30,000 / 150,000 = 0.20. After the drop: 150,000 × (1 − 0.2) = 120,000, and 30,000 / 120,000 = 0.25.

So the margin account sits exactly at the 20% hard limit. A 20% drop from here would land it at 25%, right on the high-risk line.

Breached. Now what?

How much do you need to get back to 10%?

There are two ways to pay down debt, and they don't cost the same.

Outside cash cuts the debt and leaves the stock alone:

Cash needed = Debt − Target × Value; ie. 30,000 − (0.10 × 150,000) = $15,000

Selling stock cuts the debt, but it also cuts the collateral by the same amount. So you need more:

Sale needed = (Debt − Target × Value) ÷ (1 − Target); ie. 15,000 / 0.90 = $16,666.67

Check it: (30,000 − 16,666.67) / (150,000 − 16,666.67) = 13,333.33 / 133,333.33 = 10%. Yep.

The sale is about $1,667 bigger for the same target. That isn't a fee. It's just how the math works when the thing you sell was also part of the denominator.

The sample book

Here's an invented set of lots that adds up to the margin account's $150,000. XYZ is half the account all by itself.

Symbol

Acquired

Shares

Cost/share

Price

Value

Gain/loss if sold

Term

XYZ

2023-05-10

300

$60

$125

$37,500

+$19,500

Long

XYZ

2025-11-03

300

$140

$125

$37,500

−$4,500

Short

ABC

2024-08-15

500

$70

$90

$45,000

+$10,000

Long

DEF

2025-09-20

1,000

$36

$30

$30,000

−$6,000

Short

Sample lots invented for this guide; the arithmetic is shown below each result. Not app output.

XYZ weight = 75,000 / 150,000 = 50%. Term is counted from the sale date of 2026-02-27. Long means held more than one year.

Let's run the scenarios

Each sale order targets the same roughly $16,667, rounded up to whole shares.

  • Tax-first – sell the lot with the biggest loss per dollar of proceeds. That's DEF ($6 loss on a $30 share = 20%). 556 shares × $30 = $16,680. Loss = 556 × −$6 = −$3,336, short-term.

  • Concentration-first, FIFO default – sell the biggest position, and let the broker pick the oldest XYZ lot. 134 × $125 = $16,750. Gain = 134 × $65 = +$8,710, long-term.

  • Blend – still sell XYZ, but specify the 2025 lot. Same $16,750. Loss = 134 × −$15 = −$2,010, short-term.

Ordering

Est. gain/loss

Debt after

Value after

LTV after

XYZ weight after

Deposit $15,000 cash

None realised

$15,000

$150,000

10.0%

50.0%

Tax-first (DEF)

−$3,336 short

$13,320

$133,320

9.99%

56.3%

Concentration, FIFO (XYZ 2023 lot)

+$8,710 long

$13,250

$133,250

9.94%

43.7%

Blend (XYZ 2025 lot)

−$2,010 short

$13,250

$133,250

9.94%

43.7%

Estimates from the invented sample book. XYZ weight after tax-first = 75,000 / 133,320 = 56.3%. After selling 134 XYZ shares = (466 × 125) / 133,250 = 58,250 / 133,250 = 43.7%.

Row by row:

  • Deposit cash – no tax event, smallest dollar amount. But XYZ is still half the book. Meh.

  • Tax-first – the biggest realised loss, and XYZ goes UP to 56%. You cut debt and made your concentration worse. Huh.

  • FIFO concentration – it fixes the weight but hands you an $8,710 gain you didn't have to take. Ouch.

  • Blend – fixes the weight AND realises a loss. This one wins in this book.

The blend only works because XYZ happens to have a losing lot. If every XYZ lot were a gain, you'd be choosing between the two goals for real. The table will show you that trade-off, but it can't make the call for you.

Step by step in MetisTrades

1. Open the report

Go to Top nav → Analysis → Margin. If you have more than one account, look at each one, not just All Accounts. More on why in the mistakes list.

2. Read the top cards

Start with the four cards across the top. Margin Debt and Portfolio Value are the two inputs. Current LTV is debt divided by value. Safety Cushion is how far the market could fall before you hit your hard limit. In this scenario that's zero, because you're already sitting on it.

Margin analysis tab with estimated margin debt, collateral and loan-to-value

The Margin analysis tab estimates margin debt, collateral, loan-to-value and interest.

3. Check your zones and settings

Scroll to LTV Risk Zones to see where Current LTV lands. If the numbers in Risk Settings (Target LTV %, Soft limit %, Hard limit %, High risk %) aren't the ones you actually live by, fix them first. They have to increase in that order. At or above your hard limit, the page can show a Personal margin call banner with outside-cash and sale estimates. That banner means YOUR limit, not a broker call.

4. Stress it

The Stress Test table shows Market Decline, Portfolio Value, LTV and Zone with debt held constant. For the sample account, a 20% decline puts it at $120,000 and 25%, the high-risk line. The reverse stress test tells you how far the market can fall before each level.

5. Size the paydown

In Paydown Calculator, enter a Target LTV % (anything from 1 to 99). This is a scratch number. It isn't saved and doesn't change your Risk Settings. Compare Pay down with outside cash against Sell securities to repay. The sale figure will be the bigger one for the reason worked out above.

6. Open What Should I Sell?

When a sale can reach the target, What Should I Sell? appears. It gives two auto-ranked scenarios plus Custom Selection. To run your own tax-first, concentration-first or blend comparison, use Custom Selection: pick lots and watch the estimated proceeds and gain or loss add up.

7. Place the order at your broker, by lot

The advisor is display-only. It never places trades. If you want a specific lot rather than the default, you have to tell your broker. Usually that means a lot-method setting in your account preferences or a lot choice on the sell ticket, so check where yours keeps it BEFORE you hit sell. After a FIFO fill, it's generally too late to change which lot went.

How to read the results

Current LTV – your debt as a share of counted collateral. It does NOT mean your broker sees the same number. Brokers apply maintenance requirements that can differ by security and can change without notice. The report doesn't know any of that.

Safety Cushion – a math answer to "how big a drop puts me at my hard limit?" It is not a forecast. I don't know which way prices go from here, and neither does anyone else. The cushion just tells you what each move does to the ratio.

Cash vs sale paydown – $15,000 cash versus $16,666.67 of sales in the scenario. The gap is collateral you give up by selling. The cash route also realises no gain or loss and leaves your weights exactly where they are, good or bad.

Est. Gain / Loss and Term – this is the tax piece. The calculator itself doesn't model taxes, so read these two columns as your tax signal. A short-term loss and a long-term gain are very different animals. Pick lots so the Term column shows few (or no) short-term gains.

Est. Proceeds – shares × the latest available (delayed) price. Your actual fill can differ, especially in a fast market. That's another reason to round your sale UP a little.

What does selling a high-requirement stock do? At your broker, selling a holding with a higher maintenance requirement frees more excess per dollar sold. In this report every dollar of priced stock counts the same as collateral. So "which sale helps most with my broker" and "which sale gets my LTV to 10%" can have different answers. The second one is all this page measures.

Limits and assumptions

  • It's an estimate built from imported data. Debt, collateral and lots all come from your transaction ledger and the latest available prices. If an import is missing, the numbers are missing too.

  • Conservative collateral. Open options aren't counted, and symbols that can't be priced are excluded and named on the page. Your broker may count more than this, which is why this LTV runs conservative.

  • Not the broker's maintenance requirement. The page says plainly it doesn't know it. Your house requirement could trigger a call at a different point.

  • Delayed quotes. Lot prices may use delayed quotes. Verify the price and your broker's own lot list before you trade. If you've used specific-lot selling at your broker before, its remaining lots may not line up with what you see here.

  • No tax modelling in the calculator, no wash-sale adjustments anywhere. The gain and loss figures are estimates, not tax advice, and they don't replace your broker's 1099-B.

  • Broker cash vs ledger cash. For a linked account, today's snapshot can use broker-reported cash while the history stays ledger-based. Small differences between them are normal.

  • Informational only. Nothing here places a trade or tells you which holding to sell. It shows you the arithmetic for each choice.

Common mistakes

  1. Sizing the sale like a cash deposit. Selling $15,000 only gets you to about 10.6% ((30,000 − 15,000) / 135,000), not 10%. Fix: divide by (1 − target), ie. $16,667.

  2. Letting FIFO pick the lot. In the sample, FIFO turns a −$2,010 loss into a +$8,710 gain on the same position. Fix: set specific-lot selling at your broker before you place the order.

  3. Chasing the biggest loss and ignoring weight. The tax-first sale pushed XYZ from 50% to 56.3%. Fix: write the "largest weight after" next to every option before you choose.

  4. Rebuying too soon after a loss sale. Buying the same or a substantially identical holding within 30 days either side of the sale can disallow the loss as a wash sale, and dividend reinvestment counts as a buy. Fix: pause DRIP on that holding and check the window yourself, since MetisTrades makes no wash-sale adjustments.

  5. Trusting All Accounts alone. Combined cash can offset debt in another account. Here -$30,000 + $12,000 nets to $18,000 of debt across $210,000, about 8.6%, which hides the 20% margin account. Fix: check Per-Account Breakdown and each account on its own.

  6. Treating Personal margin call as the real thing (or the other way round). One is your limit and the other is your broker's. Fix: read your broker's actual call notice and requirements separately. They're the ones that can force a sale.

  7. Selling exactly to the line. Delayed prices and partial fills can leave you at 10.2% instead of 10%. Fix: round shares up, as the sample did (134 shares, not 133).

The moral of the story…

The paydown size is just arithmetic.

The ORDER is the real decision.

It's not "sell the loser." It's not "sell the big one." It's whichever lot does the most of both, and sometimes no lot does.

And acting while you still get to choose beats a broker choosing for you.

Please, please, please rerun the sample book with your own lots and see whether the blend still wins. Did this help you size the sale and pick the lots, or is there a piece of the math you'd want worked through slower?

Try it in MetisTrades: Analysis → Margin

Related guides and help pages

MetisTrades tools

Related guides

MetisTrades help pages

Back to Blog