Sub topic 3
Buying on Margin and Selling Short
This chapter covers leveraged equity positions: borrowing money to buy a stock (a margin purchase) and borrowing a stock to sell it (a short sale). It assumes you know how orders and brokers work from the previous chapter. It also assumes you can compute a holding-period return and you understand the idea of leverage.
Why leverage changes the risk
A margin purchase magnifies gains and losses on the money you put up. A short sale lets you profit when a price falls, but its loss has no upper limit. Both rely on a broker who lends you something and wants protection against your losses. That protection is the margin requirement.
Key terms:
- Margin is the equity you put up. It is a good-faith deposit, not a fee.
- Initial margin requirement is the minimum equity, as a percentage of the position's market value, when you open the trade.
- Maintenance margin requirement is the minimum equity percentage you must keep afterward. It is lower than the initial requirement.
- Margin call is the broker's demand to add cash or securities, or to close part of the position, when equity falls below the maintenance level.
- Leverage ratio is the position's market value divided by your equity. It equals 1 / initial margin percentage.
Buying on margin
You buy shares with your own cash plus a loan from the broker. The shares are collateral for the loan. You pay interest on the loan, and you receive any dividends.
Equity in the account at any time is:
equity = market value of shares - loan
Equity as a percentage of market value is the margin percentage. A margin call occurs when it falls below the maintenance requirement.
Worked example
You buy 1,000 shares at $50. Initial margin is 50% and maintenance margin is 30%. The loan rate is 5% a year, the shares pay $1.00 in dividends over the year, and you sell after one year. Ignore commissions.
- Position value: $50,000
- Your equity: $25,000
- Loan: $25,000
- Interest for the year: $1,250
If the price rises to $60:
- Price gain: $10,000
- Dividends: $1,000
- Interest: -$1,250
- Net gain: $9,750
- Return on equity: 9,750 / 25,000 = 39%
An unlevered buyer earns (10 + 1) / 50 = 22%. Leverage raises the return because the borrowed money earns the stock's return, and you pay only 5% for it.
If the price falls to $40, the net result is -$10,000 + $1,000 - $1,250 = -$10,250. That is a -41% return on equity, against -18% unlevered.
The margin call price
Let P0 be the purchase price, IM the initial margin and MM the maintenance margin, each as a decimal. The loan per share is P0 × (1 - IM), and it does not change when the price moves. A call occurs when:
(P - loan per share) / P = MM
Solving for P gives:
margin call price = P0 × (1 - IM) / (1 - MM)
For the example: 50 × 0.50 / 0.70 = $35.71. At that price the shares are worth $35,714, equity is $10,714, and 10,714 / 35,714 = 30%.
Accrued interest adds to the loan and raises the call price slightly. Most exam questions ignore this, so state it if you use it.
Selling short
In a short sale you sell shares you do not own. The steps:
- Your broker borrows the shares from another investor, often a client who holds them in a margin account.
- You sell the borrowed shares at the current market price.
- Later you buy the same number of shares back, which is called covering the short, and return them to the lender.
You profit if the repurchase price is lower than the sale price. The loss is the difference when the price is higher.
Three features differ from an ordinary purchase:
- The sale proceeds stay with the broker as collateral. You do not have use of them. You also post your own initial margin on top.
- If the stock pays a dividend while you are short, you must pay the lender an equal amount. This is a cost to you.
- You pay a borrowing fee, and the lender (or the broker) may pay you interest on the cash collateral, called a rebate. Hard-to-borrow stocks carry high fees.
Worked example
You short 500 shares at $60. Initial margin is 50% and maintenance margin is 30%. The stock pays $1.00 in dividends during the holding period. The borrowing fee is 1% a year on the $30,000 sale value, and you hold for six months. The price falls to $48 and you cover.
- Proceeds: $30,000
- Initial margin deposit: 50% × $30,000 = $15,000
- Price gain: (60 - 48) × 500 = $6,000
- Dividends paid to the lender: -$500
- Borrowing fee: 1% × $30,000 × 0.5 = -$150
- Net gain: $5,350
- Return on your margin deposit: 5,350 / 15,000 = 35.67%
The margin call price for a short sale
Equity in a short account is the collateral minus the current cost to buy the shares back:
equity = proceeds + margin deposit - market value of the shorted shares
Equity falls as the price rises, so the call comes on a price increase. The shares you owe are the liability, and the maintenance margin is measured against their market value. This gives:
margin call price = P0 × (1 + IM) / (1 + MM)
For the example: 60 × 1.50 / 1.30 = $69.23. At that price the shares owed are worth $34,615. Equity is 30,000 + 15,000 - 34,615 = $10,385, and 10,385 / 34,615 = 30%.
Compare the two formulas. Long: (1 - IM) / (1 - MM). Short: (1 + IM) / (1 + MM). The signs flip because a long position has a loan to subtract, and a short position has extra equity to add.
Computing both in code
def margin_call_long(p0, im, mm):
return p0 * (1 - im) / (1 - mm)
def margin_call_short(p0, im, mm):
return p0 * (1 + im) / (1 + mm)
def long_return(p0, p1, shares, im, div_per_share, loan_rate):
equity = p0 * shares * im
loan = p0 * shares - equity
interest = loan * loan_rate
gain = (p1 - p0) * shares + div_per_share * shares - interest
return gain / equity
def short_return(p0, p1, shares, im, div_per_share, fee_rate, years):
margin = p0 * shares * im
fee = p0 * shares * fee_rate * years
gain = (p0 - p1) * shares - div_per_share * shares - fee
return gain / margin
print(round(margin_call_long(50, 0.50, 0.30), 2)) # 35.71
print(round(long_return(50, 60, 1000, 0.50, 1.0, 0.05), 4)) # 0.39
print(round(long_return(50, 40, 1000, 0.50, 1.0, 0.05), 4)) # -0.41
print(round(margin_call_short(60, 0.50, 0.30), 2)) # 69.23
print(round(short_return(60, 48, 500, 0.50, 1.0, 0.01, 0.5), 4)) # 0.3567
print(round(short_return(60, 66, 500, 0.50, 1.0, 0.01, 0.5), 4)) # -0.2433Long and short side by side
| Feature | Margin purchase | Short sale |
|---|---|---|
| You borrow | Cash | Shares |
| You profit when the price | Rises | Falls |
| Maximum loss | Your equity plus any shortfall, if the price goes to zero | Unlimited, since the price has no ceiling |
| Maximum gain | Unlimited | Limited, since the price cannot go below zero |
| Income effect | You receive dividends, pay interest | You pay dividends and a borrow fee, and may earn a rebate |
| Margin call when the price | Falls | Rises |
| Call price formula | P0 × (1 - IM) / (1 - MM) | P0 × (1 + IM) / (1 + MM) |
Edge cases and common errors
- Mixing up initial and maintenance margin. Initial margin applies only when you open the trade. After that, only the maintenance level triggers a call.
- Computing return on the whole position. Return on a leveraged trade is measured on your equity, not on the position value. Leverage multiplies the unlevered return roughly by 1 / IM before financing costs.
- Forgetting costs. Interest, dividends paid on a short, and borrow fees change the answer. Include every one that the problem gives.
- Restoring the account. After a margin call you must usually bring equity back to the initial margin level, not just the maintenance level. Check what the question asks.
- Short squeeze. If the price rises sharply, many shorts cover at once, which pushes the price up further. A lender can also recall the shares, forcing you to cover at a bad time.
- Gap risk. A price can jump past the call price overnight, so the loss can exceed the equity in the account. The investor then owes the shortfall.
Why this matters for the exam
Margin and short questions test whether you can set up the account correctly: equity, loan or collateral, and the market value you measure against. Once that is right, the call price formulas and return calculations follow. They also connect to market efficiency, covered next. Short selling is one way informed investors push prices toward intrinsic value, so limits on shorting (borrow costs, recalls, restrictions) can allow mispricing to persist.
Exercise
You buy 200 shares at $40 with 60% initial margin. Maintenance margin is 35%. (a) How much do you borrow? (b) At what price do you get a margin call?
Show answer
(a) Position value is 200 × $40 = $8,000. You put up 60% = $4,800, so the loan is $3,200. (b) Margin call price = 40 × (1 - 0.60) / (1 - 0.35) = 16 / 0.65 = $24.62. Check: at $24.62 the shares are worth $4,923, equity is $4,923 - $3,200 = $1,723, and 1,723 / 4,923 = 35%.
Exercise
You short 100 shares at $80 with 40% initial margin and 25% maintenance margin. (a) At what price do you get a margin call? (b) The stock instead falls to $70 and pays no dividend. Ignoring fees, what is your return on the margin deposit?
Show answer
(a) Margin call price = 80 × (1 + 0.40) / (1 + 0.25) = 112 / 1.25 = $89.60. (b) The margin deposit is 40% × $8,000 = $3,200. The gain is (80 - 70) × 100 = $1,000, so the return is 1,000 / 3,200 = 31.25%.
Exercise
Why is the potential loss on a short sale unlimited, while the potential loss on a margin purchase is capped at the amount invested plus the loan?
Show answer
A share price cannot fall below zero, so a long position loses at most the full purchase price. A share price has no ceiling, and a short seller must buy the shares back at whatever the price is, so the loss grows without limit as the price rises.