Home › Templates › Short selling spreadsheet
Short Selling Spreadsheet: Track Short Trades, Borrow Fees and Margin Calls
A free short selling spreadsheet for Excel and Google Sheets. Log each short with its shares, short and cover prices and dates. The sheet works out net P/L after commissions, the daily borrow fee and dividends owed to the lender, plus for open shorts: equity, the FINRA Rule 4210 maintenance requirement, and the exact price that triggers a margin call. A stress tab shows losses if prices rise 10% to 200%, and a squeeze tab replays a price and borrow-rate spike day by day.
Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no email gate, no add-in, no live price feed: you type the prices.
| Ticker | Status | Shares | Short price | Cover / now | Days | Gross P/L | Borrow fee | Dividends owed | Net P/L |
|---|---|---|---|---|---|---|---|---|---|
| EXA | Closed | 200 | $48.00 | $41.50 | 44 | $1,300.00 | $5.87 | $50.00 | $1,234.13 |
| EXB | Closed | 100 | $120.00 | $131.00 | 70 | −$1,100.00 | $28.00 | $0.00 | −$1,138.00 |
| EXC | Open | 500 | $12.40 | $9.80 | 88 | $1,300.00 | $272.80 | $0.00 | $1,022.20 |
| EXD | Open | 150 | $64.00 | $71.20 | 46 | −$1,080.00 | $30.67 | $60.00 | −$1,175.67 |
| EXE | Open | 1,000 | $4.20 | $3.10 | 29 | $1,100.00 | $118.42 | $0.00 | $973.58 |
| EXF | Open | 300 | $25.00 | $29.50 | 151 | −$1,350.00 | $283.12 | $0.00 | −$1,638.12 |
| Open short | Equity | Requirement | Excess | Check | Margin-call price | Rise to call |
|---|---|---|---|---|---|---|
| EXC | $4,122.20 | $2,500.00 | $1,622.20 | OK | $13.04 | +33.1% |
| EXD | $3,624.33 | $3,204.00 | $420.33 | OK | $73.36 | +3.0% |
| EXE | $3,473.58 | $3,100.00 | $373.58 | OK | $3.29 | +6.0% |
| EXF | $2,111.88 | $3,540.00 | −$1,428.12 | Margin call | $26.10 | −11.5% |
How a short sale makes or loses money
You sell borrowed shares now and buy them back later. The SEC's investor site puts it this way:
"A short sale generally involves the sale of a stock you do not own (or that you will borrow for delivery)."Investor.gov, Investor Bulletin: An Introduction to Short Sales
If the price falls, you keep the difference. If it rises, you lose, and the loss has no ceiling:
"shorting a stock leaves an investor open to the possibility of unlimited losses, since a stock can theoretically keep rising indefinitely."Investor.gov, same bulletin
Three costs eat into the result while the short is open:
- Borrow fee. An annual rate charged every day you hold the borrowed shares. IBKR's securities lending desk: "The borrow fee rate is an annualized percentage rate. It is charged every calendar day (not just on business days) that a trader holds a settled short position." (IBKR Traders’ Insight)
- Dividends owed. "If the stock you borrow pays a dividend, you must pay the dividend to the person or firm making the loan." (Investor.gov)
- Margin. A short sale happens in a margin account: "your brokerage firm will charge you interest on the loan, and you are subject to the margin rules." (Investor.gov)
Rules on the trade itself come from the SEC's Regulation SHO. Before the sale, the broker must have "reasonable grounds to believe that the security can be borrowed so that it can be delivered on the date delivery is due" (the "locate"). If a stock falls at least 10% in one day, Rule 201's price test applies to short sales "for the remainder of the day and the following day" (SEC, Key Points About Regulation SHO). The spreadsheet does not model these trading rules; it tracks the money.
What's inside the spreadsheet
| Tab | What it does |
|---|---|
| Start here | Instructions, formulas, colour key, limits, sources. Example data is marked fictional. |
| Summary | Your Trades tab next to the Example: realised and open net P/L, fees, borrow fees, dividends owed, open equity vs requirement, shorts in a margin call, the short nearest a call, loss at +100%, squeeze results, two charts. |
| Trades | Empty log for 25 shorts. Yellow cells: as-of date, day count (360 or 365), and per trade the inputs below. Grey columns: 21 formulas per row, with a row status that names any input problem. |
| Stress test | Net P/L and margin excess for each open short if the price rises by six editable moves (default +10%, +25%, +50%, +100%, +150%, +200%), with totals and a count of margin calls. |
| Squeeze test | One short, up to 15 rows of daily closing prices and borrow rates. Shows the fee for each period, equity, requirement, the first margin call and the cash needed that day. |
| Example | The Trades tab filled with 6 fictional shorts: 2 closed, 4 open, one under $5, one with a 40% house requirement. |
Inputs per trade
| Column | Input | Notes |
|---|---|---|
| B–E | Ticker, shares, short date, short price | Shares as a positive number. |
| F–G | Cover date, cover price | Open short: leave the date blank and type today's price in G. |
| H | Commissions + fees | Both sides, in dollars. |
| I | Borrow fee rate | Annual %, from your broker. Blank = 0. |
| J | Dividends per share | Sum of dividends paid while you were short. |
| K | Margin deposit | Cash put up for this short. Blank = Reg T 50% of proceeds. |
| L | House maintenance % | If your broker asks for more than FINRA's 30% or 100%. Blank = FINRA minimum. |
How to use it
- Open the Trades tab. In E4 type the as-of date (blank = today). In E5 pick the borrow-fee day count, 360 or 365. Ask your broker which one it uses.
- Add one row per short: ticker, shares, short date, short price.
- For a closed short, type the cover date and cover price. For an open short, leave the cover date blank and type the current price in column G. Update it whenever you check.
- Type commissions, the annual borrow rate and any dividends per share you paid while short.
- Type the cash you deposited for the short, or leave it blank for the Reg T 50%. Add your broker's house maintenance % if it is above FINRA's.
- Check the Row status column. "OK" rows count; other text, such as "Cover date before short date", names the fix.
- Read the Summary, then the Stress test for the loss and margin status if prices rise.
The formulas
These are the formulas in row 9 of the Trades tab. Every result column is wrapped in IF($N9="OK", …, ""), so blank or broken rows stay empty. No macros, no array formulas.
| Result | Formula in the file |
|---|---|
| Holding days | =$P9-$D9 (end date = cover date, or the as-of date if open) |
| Short proceeds | =$C9*$E9 |
| Gross P/L | =$R9-$S9 (proceeds − shares × cover or current price) |
| Borrow fee | =$R9*N($I9)*$Q9/$E$5 |
| Dividends owed | =$C9*N($J9) |
| Net P/L | =$T9-$W9 (gross − fees − borrow − dividends) |
| Deposit used | =IF(ISNUMBER($K9),$K9,0.5*$R9) |
| Equity (open) | =$R9+$Z9-$S9-$W9 |
| Requirement (open) | =IF($G9>=5,MAX(5*$C9,MAX(0.3,N($L9))*$S9),MAX(2.5*$C9,MAX(1,N($L9))*$S9)) |
| Margin check | =IF($AD9<0,"Margin call","OK") where AD = equity − requirement |
| Margin-call price | =IF(hi>=5,hi,MAX(0,lo)), hi = MIN(k/(1+MAX(0.3,N($L9))),k-5), lo = MIN(k/(1+MAX(1,N($L9))),k-2.5), k = ($R9+$Z9-$W9)/$C9 |
Why the margin-call price formula works
Per share, equity is k − P, where P is the price and k is proceeds plus deposit minus costs. For a stock at $5 or more, FINRA's requirement is the greater of $5 or 30% × P. A call starts where k − P = 30% × P, that is P = k ÷ 1.30, unless the $5 floor bites first at P = k − 5. The lower of the two is the trigger. Under $5 the same logic uses 100% and $2.50. The check script tests this closed form against a brute-force search on 432 cases; the largest gap was 0.00000000000006.
Reg T and FINRA margin for short sales
Regulation T sets the initial requirement. 12 CFR 220.12(c) lists for a "Short sale of a nonexempted security": "150 percent of the current market value of the security" (eCFR, 12 CFR 220.12). The 150% is the proceeds (100%) plus your deposit (50%).
FINRA Rule 4210(c) sets the maintenance minimum (FINRA Rule 4210):
| Short stock price | FINRA 4210(c) maintenance (exact wording) |
|---|---|
| Under $5.00 | "$2.50 per share or 100 percent of the current market value, whichever amount is greater" |
| $5.00 or more | "$5.00 per share or 30 percent of the current market value, whichever amount is greater" |
Rule 4210(b) also asks for "equity of at least $2,000" in the account. Brokers can and often do set higher "house" requirements, especially on volatile or hard-to-borrow stocks; type yours in column L.
Low-priced stocks need more than 50%. This follows from the rule text. Short a $8 stock with a 50% deposit and your equity is $4 per share, below the $5-per-share floor, so you start in a maintenance deficit. Below $5, maintenance is 100% of market value on top of the proceeds, so a 50% deposit is short again. The Example's EXE row ($4.20 short) uses a larger deposit for this reason.
Worked example from the sample data
Row EXD on the Example tab (fictional): 150 shares shorted on 2026-09-14 at $64.00, still open on 2026-10-30 with the price at $71.20. Borrow rate 2.5%, $0.40 dividend per share paid while short, $5 commissions, Reg T deposit, day count 360.
| Step | Calculation | Result |
|---|---|---|
| Holding days | 2026-10-30 − 2026-09-14 | 46 |
| Short proceeds | 150 × $64.00 | $9,600.00 |
| Market value now | 150 × $71.20 | $10,680.00 |
| Gross P/L | $9,600.00 − $10,680.00 | −$1,080.00 |
| Borrow fee | $9,600 × 2.5% × 46 ÷ 360 | $30.67 |
| Dividends owed | 150 × $0.40 | $60.00 |
| Net P/L | −$1,080.00 − $5.00 − $30.67 − $60.00 | −$1,175.67 |
| Deposit (Reg T 50%) | 50% × $9,600 | $4,800.00 |
| Equity | $9,600 + $4,800 − $10,680 − $95.67 | $3,624.33 |
| Requirement | greater of 150 × $5 = $750 and 30% × $10,680 | $3,204.00 |
| Excess | $3,624.33 − $3,204.00 | $420.33 |
| Margin-call price | k = $14,304.33 ÷ 150 = $95.36; lower of $95.36 ÷ 1.30 and $95.36 − $5 | $73.36 |
| Rise to the call | $73.36 ÷ $71.20 − 1 | +3.03% |
EXF shows the other side: with a 40% house requirement and a 9% borrow rate, it is already in a margin call at $29.50 (excess −$1,428.12); its call price was $26.10.
Max-loss scenarios: what if the price rises
The Stress test tab holds today's costs fixed and raises each open short's price. Net P/L for the four open example shorts:
| Open short (price now) | +10% | +25% | +50% | +100% | +150% | +200% |
|---|---|---|---|---|---|---|
| EXC ($9.80) | $532 | −$203 | −$1,428 | −$3,878 | −$6,328 | −$8,778 |
| EXD ($71.20) | −$2,244 | −$3,846 | −$6,516 | −$11,856 | −$17,196 | −$22,536 |
| EXE ($3.10) | $664 | $199 | −$576 | −$2,126 | −$3,676 | −$5,226 |
| EXF ($29.50) | −$2,523 | −$3,851 | −$6,063 | −$10,488 | −$14,913 | −$19,338 |
| All 4 open shorts | −$3,571 | −$7,701 | −$14,583 | −$28,348 | −$42,113 | −$55,878 |
| Shorts in a margin call | 3 of 4 | 3 of 4 | 4 of 4 | 4 of 4 | 4 of 4 | 4 of 4 |
At +100% the four positions lose $28,348 combined, against $27,500 of short proceeds. A long position can lose at most 100% of what you paid; a short loses another 100% of its proceeds every time the price adds the original price again.
Squeeze test: price and borrow rate spike together
The SEC staff report on the January 2021 meme-stock episode describes the mechanism: "A short squeeze might occur when an event triggers short sellers en masse to purchase shares to cover their short positions." It records that "On January 22, 2021, the price of GME rose from $43 to $72 (a 71% increase) in approximately three hours." (SEC Staff Report on Equity and Options Market Structure Conditions in Early 2021, October 14, 2021)
The Squeeze test tab lets you type a path like that. Fictional example: 1,000 shares of "EXQ" shorted at $20.00 on 2026-10-16, Reg T deposit $10,000, borrow rate rising from 8% to 150%:
| Date | Close | Borrow rate | Borrow fee | Equity | Requirement | Excess | Check |
|---|---|---|---|---|---|---|---|
| 2026-10-19 | $21.00 | 8% | $14.00 | $8,986.00 | $6,300.00 | $2,686.00 | OK |
| 2026-10-20 | $23.00 | 12% | $7.67 | $6,978.33 | $6,900.00 | $78.33 | OK |
| 2026-10-21 | $26.00 | 20% | $14.44 | $3,963.89 | $7,800.00 | −$3,836.11 | Margin call |
| 2026-10-22 | $30.00 | 35% | $29.17 | −$65.28 | $9,000.00 | −$9,065.28 | Margin call |
| 2026-10-23 | $36.00 | 60% | $60.00 | −$6,125.28 | $10,800.00 | −$16,925.28 | Margin call |
| 2026-10-26 | $44.00 | 90% | $330.00 | −$14,455.28 | $13,200.00 | −$27,655.28 | Margin call |
| 2026-10-27 | $52.00 | 120% | $173.33 | −$22,628.61 | $15,600.00 | −$38,228.61 | Margin call |
| 2026-10-28 | $47.00 | 150% | $195.83 | −$17,824.44 | $14,100.00 | −$31,924.44 | Margin call |
| 2026-10-29 | $40.00 | 150% | $166.67 | −$10,991.11 | $12,000.00 | −$22,991.11 | Margin call |
| 2026-10-30 | $35.00 | 120% | $116.67 | −$6,107.78 | $10,500.00 | −$16,607.78 | Margin call |
The first margin call comes on 2026-10-21 at $26.00, a $3,836.11 deficit, only 30% above the short price. The worst net P/L in the path is −$32,628.61, more than three times the deposit; borrow fees add $1,107.78. Negative equity means losses beyond the deposit: in practice a broker may buy you in long before that.
Borrow fee: 360 or 365 days
Brokers quote an annual rate and accrue it daily. IBKR's article notes that for SharpLink Gaming (SBET) in May 2025 "The borrow fee rate reached 1,000%." It divides by 360 ("1,000% / 360 days") and its example, a $100,000 short at 0.25% costing "$0.69 per day", matches a 360-day year ($100,000 × 0.25% ÷ 360 = $0.69; ÷ 365 would be $0.68). Other brokers or currencies may use 365. The file lets you choose in one cell; 360 gives fees about 1.4% higher than 365. Brokers also charge on each day's marked value and can change the rate daily, so the Trades tab is an estimate on the short sale value. Use the Squeeze test tab, or your broker's statement, when the rate moves.
Tax notes (US)
IRS Publication 550 (2025) covers short sales (IRS Pub 550). Key lines:
- "You do not realize gain or loss until delivery of property to close the short sale."
- "Report any short sale on Form 8949 in the year it closes."
- Payments in lieu of dividends: "You can deduct these payments only if you hold the short sale open at least 46 days (more than 1 year in the case of an extraordinary dividend, as defined later) and you itemize your deductions." If you close by the 45th day, "you must increase the basis of the stock used to close the short sale by that amount."
Column AH flags each trade with dividends as "Closed within 45 days: add to basis" or "Open 46+ days". It counts calendar days from short to cover and ignores the extraordinary-dividend and hedged-period exceptions. Pub 550 also covers constructive sales when you short a stock you already own at a gain. Ask a tax professional.
Common mistakes
- Ignoring the borrow fee. On a hard-to-borrow stock it can erase the gain. EXC in the example paid $272.80 in 88 days at 18%.
- Forgetting dividends. You owe every dividend paid while you are short. Enter the dividends per share in column J; EXD in the example owes $60.00.
- Using 50% for every stock. FINRA's $5 per share floor and the 100% rule under $5 need more cash on low-priced shorts.
- Treating the margin-call price as a stop. Brokers can raise house requirements, recall shares or buy you in without waiting for your price.
- Typing shares as negative. Type shares as a positive number; the sheet already knows the position is short.
- Leaving an old current price. Open-short results use the price in column G. Update it, or the margin check is stale.
Limits
No live prices: you type them. Margin is calculated per position, while brokers calculate it for the whole account, including other holdings, the $2,000 minimum and their own house rules. The interest some brokers pay on short proceeds (short credit or rebate) is not included. Borrow fees use one rate per trade. US rules only (Reg T, FINRA, IRS). Amounts are in one currency.
FAQ
How do you calculate profit on a short sale?
Profit = shares × (short price − cover price) − commissions − borrow fees − dividends owed to the lender. In the example, 200 shares shorted at $48.00 and covered at $41.50 make $1,300.00 before costs; after $10 of fees, a $5.87 borrow fee and $50.00 of dividends the net is $1,234.13.
How is the stock borrow fee calculated?
Brokers quote the borrow fee as an annual rate and charge it every calendar day you hold the short. A simple estimate is position value × annual rate × days ÷ 360 (or 365, depending on the broker). IBKR's example: a $100,000 short at 0.25% costs $0.69 a day, which matches a 360-day year. The same article describes a stock whose borrow rate reached 1,000% in May 2025, about 3% of the position value per day.
What is the margin requirement for short selling?
Regulation T sets the initial requirement for a short sale at 150% of the stock's market value: the sale proceeds (100%) plus a 50% deposit. FINRA Rule 4210 then sets the maintenance minimum: for a short stock at $5 or more, the greater of $5.00 per share or 30% of market value; under $5, the greater of $2.50 per share or 100%. Brokers can require more.
At what price will a short position get a margin call?
When equity (proceeds + deposit − current value − costs) falls below the maintenance requirement. With FINRA's 30% for a stock at $5 or more, the call price is the lower of k ÷ 1.30 and k − $5, where k is proceeds plus deposit minus costs, per share. Example: 150 shares shorted at $64 with a 50% deposit and $95.67 of costs gives k = $95.36, so a call at about $73.36.
Do you have to pay dividends when you short a stock?
Yes. Investor.gov says: "If the stock you borrow pays a dividend, you must pay the dividend to the person or firm making the loan." For taxes, IRS Publication 550 says these payments in lieu of dividends are deductible as investment interest only if the short stays open at least 46 days and you itemize; if you close by day 45, you add them to the basis instead.
How much can you lose short selling?
There is no cap. Investor.gov notes that shorting "leaves an investor open to the possibility of unlimited losses, since a stock can theoretically keep rising indefinitely." In the example, the four open shorts would lose a combined $28,348 if each price doubled, and all four would be in a margin call.
Related tools and templates
- Margin calculatorMargin needed for a position
- Stop-loss calculatorExit price for a set risk
- Position size calculatorShares for a set risk
- Margin interest spreadsheetInterest on margin loans
- Trading cost spreadsheetCommissions, spreads and fees
- Trading risk management spreadsheetRisk per trade and exposure
- Trading journalLog every trade
- All templatesFree spreadsheets
Educational template only, not investment, tax or legal advice. Short selling can lose more than the money you deposit. Example data is fictional: tickers EXA to EXF and EXQ, prices, dates and rates are made up to show the formulas and are not market data. Sources: Investor.gov (investor.gov); SEC, Key Points About Regulation SHO (sec.gov); Regulation T, 12 CFR 220.12 (ecfr.gov); FINRA Rule 4210 (finra.org); IRS Publication 550 (irs.gov); IBKR Traders' Insight (interactivebrokers.com); SEC Staff Report, October 2021 (sec.gov). Retrieved 11 November 2026.