Short Selling in Stocks: Formula, Worked Example and Margin Risks

A short sale in the stock market means selling shares you do not own, usually after borrowing them through a broker, and later buying them back to return to the lender. The trade profits only when the buyback cost plus borrowing and transaction costs is below the sale proceeds. This page provides the calculation and a reproducible example; it is not an interactive calculator.

What a short sale is—and what this page does not do

Investor.gov defines a short sale as the sale of a stock the investor does not own, normally settled by delivering borrowed securities. The investor later closes the position by returning the borrowed stock, generally by buying it in the market. A broker may charge interest on the stock loan; if the borrowed stock pays a dividend, the short seller is responsible for paying the dividend to the lender.

The earlier title and introduction said this article was a calculator and described a form that could accept a stock ticker, entry price, share count and interest rate. No such input form or calculation tool was present. This revision removes that false promise. The formula below can be checked with a calculator or spreadsheet, but this page cannot place an order, find a borrowable security, or determine whether a short sale is suitable for you.

Short-selling formula

A basic stock short sale is calculated as:

See also  Tata Motors Share Price: Everything You Need To Know

Gross profit or loss = entry sale price − exit buyback price, multiplied by the number of shares.

Estimated net result = gross result − borrowing costs − commissions and fees − dividends or other charges owed on the borrowed shares.

Actual broker statements may apply minimum charges, interest-rate changes, collateral requirements and tax rules. A calculation is an estimate unless every input comes from the broker’s own contract and statement.

Worked example

Suppose an investor sells short 100 shares at $40. The short position is later bought back at $32. For illustration, assume the borrowed position costs $28 in stock-loan interest and $6 in commissions for the two trades. There is no dividend charge in this example.

  • Entry proceeds: 100 × $40 = $4,000.
  • Buyback cost: 100 × $32 = $3,200.
  • Gross gain: $4,000 − $3,200 = $800.
  • Estimated net gain after the stated charges: $800 − $28 − $6 = $766.

If the stock instead rose to $48 and the same borrowing and trading charges applied, the gross result would be 100 × ($40 − $48) = −$800, or a loss of $800 before costs. After $28 of borrowing cost and $6 of commissions, the estimated loss would be $834. A short position’s potential loss is not limited to the original sale proceeds because the buyback price can rise above the entry price.

Costs that a simple price comparison can miss

Short sellers are subject to margin rules, and borrowing shares may require available inventory, collateral and continuing interest payments. A stock that pays dividends can create an obligation for the short seller to make the lender whole. These are charges or restrictions that may not be obvious from a headline “short” profit calculation. Check the broker’s current contractual terms instead of assuming that the entry and exit prices are the full answer.

See also  Stockedge 101: Everything You Need To Know

Margin calls and forced buybacks

A short position can move against the investor quickly. When account equity or margin capacity falls below the broker’s required level, a margin call can require more cash or securities; the broker’s rules and market conditions may also affect how or when a position is closed. A short squeeze occurs when rising prices prompt short sellers to buy back shares, which can add further upward pressure. The possibility of a forced or disorderly buyback is a risk to evaluate before entering the trade, not a promised return.

Short selling versus a real-estate short sale

In real estate, a short sale usually describes a sale of property for less than the balance owed on its mortgage, with the lender’s involvement. In securities, a stock short sale is the sale of borrowed shares followed by a later buyback. These are different transactions. This article is about a stock short sale; it does not provide advice on a distressed property sale.

How to check a short-sale idea

  1. Identify the exact security and the broker’s borrow terms; a name that appears in an article is not evidence that it is available to short.
  2. Write down the entry sale price, maximum acceptable buyback price, share count and every disclosed charge.
  3. Use the formula above with a conservative exit price and a separate margin scenario; do not treat the most favorable quote as a guaranteed result.
  4. Confirm data rights, fees and order mechanics at the broker’s current contract level.
  5. Record when the prices and terms were checked. A dated calculation is not a live quote.

Sources and review date

See also  The Fourth Option: What Are The Other Options?

Sources reviewed November 26, 2026. The example is hypothetical and excludes unstated broker-specific terms. This is educational information, not investment advice, a recommendation to short any security, or a promise that a position can be opened or closed at the prices shown.