Back to Tools

Trading and Crypto

Position Size Calculator

Find how many shares, coins or units to trade so that, if your stop-loss is hit, you lose no more than the amount you chose to risk.

Risk per trade as

The most you're willing to lose if the stop-loss is hit.

Below the entry for a long, above for a short.

Quantity

Total to open and close the trade.

Your position size will appear here

Enter your account balance, how much to risk, and your entry and stop-loss prices.

The method

How it works

Position sizing starts from the loss you're prepared to accept, not from how much you'd like to buy. The calculator turns your risk into dollars, takes off any fees, and divides by how far the price can move against you before your stop-loss closes the trade.

The answer is rounded down to a whole unit, or to 8 decimal places for fractional quantities, so the loss at the stop never exceeds your limit. It also shows what the position is worth and how that compares with your account.

The formulas

  • Risk amount = balance × risk %
  • Risk per unit = |entry − stop|
  • Units = (risk amount − fees) ÷ risk per unit
  • Position value = units × entry

Worked example: a stock trade

A $10,000 account risking 1% has $100 to risk. Buying at $50 with a stop at $47 risks $3 a share, so 100 ÷ 3 = 33.3, rounded down to 33 shares. That's a $1,650 position, and the loss at the stop is 33 × 3 = $99.

Worked example: crypto

A $20,000 account risking 1% has $200. Buying BTC at $60,000 with a stop at $57,000 risks $3,000 per coin, a 5% stop distance. 200 ÷ 3,000 = 0.06666666 BTC with fractional quantities, a position worth about $4,000.

What you get

Key features

  • Risk stays within your limit

    The quantity is always rounded down, so the loss at your stop is never more than the amount you chose to risk.

  • Percent or fixed amount

    Risk a percentage of your account or a set dollar amount, and take expected fees out of the budget.

  • Long or short, shares or crypto

    A stop below the entry is a long, above it a short. Choose whole units or fractional quantities to 8 decimals.

  • Private by design

    Your figures stay in this page in your browser. Nothing is saved or sent anywhere, and there are no live prices.

Read before relying on it

Assumptions

  • The loss at the stop is worked out at exactly your stop-loss price. In fast markets, or when a price gaps overnight, a stop order can fill at a worse price, so the real loss can be larger.
  • Fees are one estimated total for opening and closing the trade, taken out of the risk budget. Spreads, borrow fees and funding aren't added unless you include them there.
  • Quantities are rounded down to whole units or to 8 decimal places. Your broker or exchange may have its own minimum size or step, so check the size it accepts.
  • The position value is the quantity times the entry price. When it's larger than your account, the trade needs margin or leverage; margin rules differ by broker and account type and aren't modelled.
  • Amounts are shown in dollars but work in any currency, as long as the balance, prices and fees use the same one.

It's an arithmetic tool for trades you plan, not investment advice or a trading signal. The figures stay in your browser: they aren't saved or sent anywhere, and refreshing the page clears them.

Questions

Frequently asked questions

Where this comes from

Sources

Standard formula, see How it works.

Last reviewed: October 2026. Built and maintained by FinCalcBox; see About.