Short Sale Calculator
Profit/loss and return on margin for a short sale, including stock borrow fees.
Estimates only, not financial, tax, or legal advice. See our Terms and Privacy Policy.
Shorting a stock means borrowing shares and selling them now, hoping to buy them back cheaper later and pocket the difference. Unlike a long position, a short comes with ongoing costs (the stock borrow fee, charged for every day you hold the position) and is measured against margin required, not the full position value, since you never actually paid for the shares.
This calculator puts all of that together: gross profit, borrow costs, commission, and the resulting return on the margin you actually had to post.
How does this calculator work?
Enter the number of shares, your entry (short) price, and your exit (cover) price.
Enter your broker's margin requirement (commonly 50% under Reg T initial margin rules), the annualized stock borrow fee, how many days you held the position, and any commission.
The calculator computes gross profit, the borrow cost accrued over the holding period, net profit after costs, and your return on the margin actually required, both for the holding period and annualized.
Measuring return against the margin posted rather than the full position value is what magnifies both gains and losses, which is why a short is best entered with a deliberate risk budget. Traders who want defined downside instead often express the same bearish view with put options, whose fixed cost caps the loss a short leaves open. Comparing the result against simply holding for total return keeps the bet honest, and it always helps to weigh the probability the move actually happens.
Worked example
Short 100 shares at $50, cover at $40, with 50% margin, a 3% annual borrow fee, held 60 days, $10 commission.
- Gross profit
- $1,000
- Borrow cost
- $24.66
- Net profit
- $965.34
- Margin required
- $2,500
- Return on margin
- 38.61% (234.9% annualized)
How the numbers work
The $10 price drop on 100 shares is a $1,000 gross gain, but shorting isn't free: the $5,000 position accrues a 3% annual borrow fee for 60 days, about $24.66, plus $10 in commission, leaving $965.34 net.
Because you only had to post $2,500 in margin (50% of the $5,000 position), not the full $5,000, that $965.34 profit represents a 38.61% return on the capital actually at risk, a much bigger number than the raw 20% price move might suggest.
Measuring a short's return against margin required, not the full position value, is what makes shorting capital-efficient, but it cuts both ways: losses are also magnified relative to the margin posted, and an adverse move can trigger a margin call well before the position would be a total loss.
Short Sale Calculator glossary
- Short Sale
- Selling borrowed shares now with the obligation to return them later, profiting if the price falls and losing if it rises.
- Margin Requirement
- The percentage of a short position's value a broker requires you to post as collateral, commonly 50% under Reg T initial margin rules, though maintenance requirements and specific broker policies vary.
- Stock Borrow Fee
- An ongoing fee charged for borrowing the shares to sell short, typically quoted as an annualized rate and accrued daily on the position's value.
- Return on Margin
- Net profit divided by the margin actually required to hold the position, rather than the full notional value, since margin is the capital actually tied up.
Short Sale Calculator FAQs
Why does a short position have a borrow fee?+
You're borrowing someone else's shares to sell, and the lender charges for that privilege. Hard-to-borrow stocks (low share availability, high short interest) often carry much higher borrow fees than easily borrowed large-cap stocks.
What happens if the stock rises instead of falls?+
You lose money, and unlike a long position (where losses are capped at 100% of what you invested), a short position's potential loss is theoretically unlimited, since there's no ceiling on how high a stock's price can rise.
Why measure return on margin instead of return on the full position value?+
Margin is the actual capital committed to the trade, since you never paid the full value of the borrowed shares. Return on margin reflects the capital efficiency of the trade, which is usually the more relevant number for comparing it to other uses of that same capital.
Is short selling suitable for beginners?+
It carries risks that differ meaningfully from buying stock outright, including unlimited theoretical loss, margin calls, and borrow costs that erode returns even if the trade is directionally correct. It's generally considered an advanced strategy best approached with a solid understanding of margin mechanics.
Related Calculators
Position Size Calculator
Size a trade from a fixed percentage of account risk and your stop-loss distance.
InvestingStock Return / CAGR Calculator
Total return and compound annual growth rate for a stock holding, including dividends.
InvestingOptions Profit/Loss Calculator
Chart profit and loss at expiration for any single- or multi-leg options position, with exact breakevens.
InvestingProbability of Profit (POP) Calculator
Estimate the odds an options position finishes profitable at expiration, for any single- or multi-leg strategy.
InvestingDividend Yield Calculator
Calculate a stock's dividend yield and the income a given share count produces.
InvestingSharpe Ratio Calculator
Compute Sharpe and Sortino ratios directly from a pasted return series, with an optional benchmark comparison.