Margin and short selling
Learning goals
After this page, you can:
- Compute the equity, the loan and the margin percentage of a position.
- Compute the return on invested capital of a margin trade, with dividends and interest, and show that borrowing multiplies gains and losses alike.
- Find the margin-call price from the loan, the shares and the maintenance margin.
- Compute the profit or loss on a short sale, dividends included, and explain why the loss has no limit while the gain is capped.
The idea
You buy a $20,000 car with $10,000 of your own money and a $10,000 loan. A year later the car is worth $26,000. You sell it and repay the loan. Your $10,000 became $16,000: a 60% gain on a car that rose 30%. Now the other way. The car drops to $14,000. Your $10,000 is now $4,000: a 60% loss on a 30% drop.
The loan did not change the car. It doubled your result, in both directions.
Buying on margin. The ordinary trade is a long purchase: you buy shares, hope that the price rises, and sell later. Margin trading is a long purchase made with your own money plus a loan from your broker. Using borrowed money to hold a larger position is called leverage.
Every margin position has three numbers.
- The value: the shares times the price.
- The equity: the part that is your own money.
- The loan: the part that the broker lent you. Brokers call it the debit balance.
The margin is the share of the position that is yours, as a percent.
Equity = value × margin %
Loan = value − equity
Margin % = (value − loan) ÷ value
After you buy, the value moves with the price, but the loan stays the same. So the margin percentage moves too.
The return on your own money. The loan is not free: you pay interest. The shares may pay dividends, and those are yours. The return on invested capital counts all of it, and divides by your equity only.
Return on invested capital = (dividends received − interest paid + sale value − purchase value) ÷ equity
Interest paid = loan × yearly rate × months ÷ 12
Only your own money goes on the bottom. That is why the same price move gives a larger percent, up or down.
The margin call. The maintenance margin is the lowest margin percentage that the broker accepts while you hold the position, for example 30%. If the price falls so far that your margin drops below it, you get a margin call: add cash at once, or the broker sells your shares.
Margin-call price = loan ÷ [(1 − maintenance margin) × shares]
With no loan there is no call.
Short selling. A margin purchase is a bet that the price will rise. Short selling is the mirror image: a bet that the price will fall. It takes three steps.
- You borrow shares from your broker.
- You sell them today.
- Later you buy the same number of shares and give them back.
If you buy back at a lower price, the difference is your profit. If you buy back at a higher price, you lose. You must leave a deposit with the broker. And if the company pays a dividend while you are short, you owe it to the lender of the shares.
Short-sale profit = (short price − buy-back price) × shares − dividends paid to the lender
The best case for a short seller is a price of $0. So the gain can never be more than the short price times the shares. The worst case has no limit: a price can keep rising, and you must buy the shares back at any price.
In Excel. Equity: =value*margin. Loan: =value-equity. Interest: =loan*rate*months/12. Return on invested capital: =(dividends-interest+sale-purchase)/equity. Margin-call price: =loan/((1-maintenance)*shares). Short profit: =(short-buyback)*shares-dps*shares. With no loan the call formula returns 0, so write =IF(loan=0,"no call",loan/((1-maintenance)*shares)).
Try it
The tool starts with a real case: 100 shares of Nvidia (NVDA), bought at $119.37 and sold at $220.78, 24 months later, with half of the money borrowed at 8% a year (course data: month-end closing prices, Aug 2023–Aug 2026). Press the presets, then press SHORT.
What to notice:
- Press No loan, then Half borrowed. The stock’s move is the same 85.0%, but the return on your own money goes from 85.0% to 153.9%. Not double: the loan cost $954.96 of interest.
- Press Price falls 25%. The 25% drop costs about 58% of your own money. On the chart the three lines cross where the stock earns exactly what the loan costs. Right of that crossing borrowing helps. Left of it borrowing hurts.
- Press SHORT and read the table from the top. The gain stops at the short price times the shares. The last row has no number: the loss has no limit.
Worked example
Omar buys 200 shares of Red Cedar Logistics at $45.00 with a 60% margin. The broker charges 9% a year on the loan, and the maintenance margin is 30%. One year later the stock has paid $0.60 per share in dividends, and Omar sells at $57.00.
Step 1. Value, equity and loan. Value = 200 × 45.00 = $9,000. Equity = 0.60 × 9,000 = $5,400. Loan = 9,000 − 5,400 = $3,600.
Step 2. Interest for one year. 3,600 × 0.09 = $324.
Step 3. Dividends and sale. Dividends received = 200 × 0.60 = $120. Sale value = 200 × 57.00 = $11,400.
Step 4. Return on invested capital. (120 − 324 + 11,400 − 9,000) ÷ 5,400 = 2,196 ÷ 5,400 = 0.4067 = 40.67%. The stock’s price rose (57 − 45) ÷ 45 = 26.67%. Leverage turned that into 40.67% after interest.
Step 5. Margin-call price. 3,600 ÷ [(1 − 0.30) × 200] = 3,600 ÷ 140 = $25.71. Below that price Omar’s margin is under 30%, and the broker calls.
Step 6. The mirror image. Suppose Omar had shorted 200 shares at $45.00 instead, and bought them back at $57.00. He owes the $0.60 dividend. Result = (45.00 − 57.00) × 200 − 0.60 × 200 = −2,400 − 120 = −$2,520. If the stock had fallen to $33.00 instead: (45.00 − 33.00) × 200 − 120 = +$2,280. Best case, a price of $0: 9,000 − 120 = $8,880. Worst case: no limit.
To check it in the tool above: 45, 57, 200 shares, 60% margin, 9.0%, 12 months, dividends 0.60.
Answer. Equity $5,400, loan $3,600, interest $324. Return on invested capital 40.67%, against 26.67% for the stock. Margin-call price $25.71. The same price move as a short sale would have lost $2,520.
Check yourself
You buy 300 shares at $24.00 with a 70% margin. How large is the margin loan (debit balance)?
Loan = value − equity; equity = value × margin %.
A position is worth $12,000 and the loan is $4,800. What is the margin percentage?
Margin % = (value − loan) ÷ value.
Mia bought 100 shares at $80 with 50% margin, so her loan is $4,000. The maintenance margin is 25%. Below what price will she get a margin call?
Margin-call price = loan ÷ [(1 − maintenance margin) × shares].
Theo bought shares worth $10,000 using $5,000 of his own money and a $5,000 loan at 6% for one year. He received $200 in dividends and sold the shares for $11,500. What is his return on invested capital?
Return on invested capital = (dividends − interest + sale − purchase) ÷ equity.
Nora shorts 200 shares at $36.00. While she is short the company pays a $0.50 dividend per share. She buys the shares back at $41.00. What is her result?
Short profit = (short price − buy-back price) × shares − dividends owed; losses have no top.
Video
Video coming soon.