Short selling, margin, and leverage
▸ Pretest — guess, even if you don't know
You short 100 shares of a stock at $50, collecting $5,000 in sale proceeds. What is your maximum possible loss on this position?
Shorting, step by step
Selling something you don't own sounds like fraud; it's actually a regulated four-step loop:
- Borrow the shares. Your broker locates them — typically from another client's margin account or an institutional lender. Under Regulation SHO your broker must have reasonable grounds to believe shares can be borrowed (a "locate") before you short.
- Sell the borrowed shares at today's price. The cash proceeds land in your account, held as collateral — pledged assets you can't spend freely, there to guarantee you can buy the shares back.
- Buy back ("cover") later, at whatever the market price is then.
- Return the shares to the lender.
Profit = sell price − buy-back price, minus costs. In words: you keep the gap between what you sold at and what you later bought back at — if the price fell, that gap is positive. And the costs are real. You pay a borrow fee — rent on the borrowed shares, quoted as a yearly percentage rate like loan interest. It's well under 1% for easy-to-borrow large caps (the biggest, most heavily traded companies), but tens or even hundreds of percent per year for hard-to-borrow stocks, where few shares are available to lend. You also owe the lender any dividends — cash payouts to shareholders — the stock makes while you're short. So a short that's "right eventually" can still lose money to these carry costs — the running cost of just keeping the position open — while it waits.
The asymmetry, and what it did in January 2021
Compare the two payoffs. Long (you bought the stock): worst case −100% if it goes to zero, best case unbounded. Short: best case +100% (the stock goes to zero and you buy back for nothing), worst case unbounded — there's no ceiling on the buy-back price. You've swapped the good tail — the extreme end of the range of outcomes — for the bad one.
This asymmetry creates a feedback loop called a short squeeze. When a heavily shorted stock rises, every short seller sits on growing losses. Their margin requirements (defined in the next section) grow at the same time. Some are forced to buy back — and that buying pushes the price higher still, squeezing the next short. The canonical case is GameStop, January 2021. Reported short interest — the fraction of a company's tradable shares that has been sold short — exceeded 100% of the float (the shares actually available for public trading). That's possible because the same share can be borrowed, sold, and then borrowed again from its new owner. Retail buyers piled in, and the stock ran from around 483 on January 28. Forced covering — shorts buying back to close — fed the rally. Melvin Capital, a hedge fund heavily short GME, lost over half its value that month and shut down the following year. The lesson for a quant is not "never short." It's that short positions must be sized for the unbounded tail, and that crowded shorts — high short interest, expensive borrow — carry squeeze risk that no backtest of calm periods will show you.
Margin accounts: trading with borrowed money
A margin account lets you put up only part of a position's value in your own cash and borrow the rest from your broker. (Shorting requires one, since shorting is built on borrowing.) Two numbers govern it:
- Initial margin — the fraction of the position you must fund yourself to open it. Under Regulation T this is 50% for stocks: 5,000 of your own money.
- Maintenance margin — the minimum ratio of your equity to the position's value you must keep afterward. Your equity is the part that's actually yours: the position's current value minus the loan. FINRA's floor is 25% for longs; brokers commonly require 25–40%.
Key mechanic: the loan doesn't shrink when the stock falls. Your equity absorbs the entire move.
Worked example. Buy 100 shares at 10,000) with 5,000 loan; maintenance margin 25%. Write (read it as just "P") for the current share price. Your equity is — the value of 100 shares minus the fixed (100P - 5000)/100PP = 66.67$. The general formula for a long position:
In words: the margin-call price ("P sub call") equals the price you bought at ("P sub entry"), times one-minus-the-initial-margin (the fraction you borrowed), divided by one-minus-the-maintenance-margin. The letter just stands for each margin fraction — here and — and the dot means multiply.
Check against the example: . So a 33% price drop puts you in a margin call — the broker's demand that you deposit more cash or have the position force-sold ("liquidated"), at whatever the price is, in whatever market conditions caused the fall. Note what happened on the way down: at 1,667, down 67% on a 33% price move. That's leverage — controlling a bigger position than your own capital — doing exactly what it says: at 2× leverage, every move in the stock hits your equity twice as hard.
Leverage cuts both ways
Leverage multiplies your exposure — how much of the asset you effectively hold — per dollar of your own capital. 2× leverage doubles every return, including the ones you didn't want. A −50% market move on 2× leverage is −100% for you: a total wipeout, with no capital left to participate in any recovery. Losses are not symmetric with gains (A1's compounding lesson). After −100% there is no "waiting it out."
Leveraged daily-reset ETFs (2× and 3× products — funds that trade like stocks and are engineered to deliver 2× or 3× the index's return each single day) add a subtler cost: they reset their leverage every day. In a choppy market, that daily resetting compounds against you. Concrete example: the index goes +10% one day and −10% the next. The index ends at , i.e. −1%. In words: multiply the two daily growth factors, 1.1 and 0.9, and you land at 0.99 times where you started. The 2× daily ETF does +20% then −20%: , i.e. −4%. That's worse than the −2% a fixed 2× buy-and-hold exposure would have produced. The extra loss is volatility drag — the toll that up-and-down swinging takes on compounded returns — and it's amplified by the square of the leverage. In a smooth trend these products can beat 2× buy-and-hold; in sideways chop they bleed. Holding them long-term is a bet on low volatility (small day-to-day swings), whether you meant it or not.
How quants actually think about leverage
Not as a return amplifier — as a risk-budget dial. A quant first decides how much volatility, or drawdown (peak-to-trough loss), the portfolio is allowed to run. Then they set leverage so the strategy's risk matches that budget. A low-volatility strategy might be levered up to hit a 10% volatility target; a hot, high-volatility one gets scaled down. One thing leverage can never do is improve a strategy's Sharpe ratio — the standard score for return earned per unit of risk taken (defined properly later in the curriculum). Leverage scales the return and the risk by the same factor, so their ratio doesn't move. What leverage does is convert a good Sharpe into the return level you want. The price: fatter left tails (bigger, more frequent extreme losses), borrow costs, and margin-call risk arriving in exactly the moments when everything falls together. Sizing the dial is Track D's business; respecting it is this lesson's.
Try it
Implement margin_call_price(entry_price, initial_margin, maintenance_margin) for a long stock position: the price below which equity / position value falls under the maintenance requirement. Formula: entry_price * (1 - initial_margin) / (1 - maintenance_margin).
⧉ Review cardWhat are the four steps of a short sale?
⧉ Review cardWhy is shorting riskier than buying, structurally?
⧉ Review cardAt what price does a long bought at 100 with 50% initial and 25% maintenance margin get a margin call?
⧉ Review cardWhy do 2x daily-reset ETFs lag 2x buy-and-hold in choppy markets?
⧉ Review cardHow do quants use leverage?
Predict before the next lesson
- You're short a stock at 55. Predict: are you closer to or further from a margin call than at entry, and why does the rising price hurt a short's margin ratio twice over?
- A 3× daily-reset ETF over two days of index moves +5% then −5%. Predict its total return before you compute it — then compute it.
◈ Calibration check
Could you explain a short squeeze and compute a margin call price without looking anything up?
1 = guessing · 5 = could teach it
⏻ End of lesson
Mark it read to book its 5 review cards into your deck.
Sources & further reading
- bookHarris (2003), Trading and Exchanges — §6
- bookBodie, Kane & Marcus (2021), Investments, 12e — §3
- webSEC — Margin Rules for Day Trading (investor bulletin) link