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
Decide how much you're willing to lose on the trade, then divide it by the distance from your entry to your stop-loss. With a $10,000 account and 1% risk, that's $100. If you buy at $50 with a stop at $48, each share risks $2, so the position is $100 ÷ $2 = 50 shares, worth $2,500.
That's your decision, and this calculator doesn't recommend one. Many trading guides mention risking a small fixed share of the account, such as 1% or 2%, so that a run of losing trades doesn't wipe out the account. Whatever you choose, the calculator shows what that percentage means in dollars and units.
So the loss at your stop never goes over the amount you set. $100 of risk with a $3 stop distance allows 33.3 shares; you can't buy a third of a share at many brokers, and 34 shares would risk $102, so the calculator shows 33 shares and $99 of risk. Switch to fractional quantities for crypto or brokers that allow fractional shares.
Because the size depends on how close your stop is. A tight stop means little risk per unit, so the same dollar risk allows many units. On a $1,000 account, risking $20 with a $0.50 stop gives 40 shares at $100, a $4,000 position, four times the account. You'd need margin or leverage to take it, or a smaller size.
Yes. Put your stop-loss above the entry price and the calculator treats it as a short. The risk per unit is still the distance between entry and stop: short at $50 with a stop at $52.50 and $100 of risk, and the position is 40 shares.
If you know them, yes. Enter the total you expect to pay to open and close the trade, and the calculator takes it out of your risk budget before sizing the position, so fees plus the loss at the stop still add up to your risk amount.
Keep going
Related calculators
- Risk-Reward CalculatorRisk-reward ratio, break-even win rate and expectancy
- Trade P&L CalculatorProfit or loss on long or short stock, crypto and other trades after fees
- Stock Profit CalculatorProfit or loss on a share trade after buy and sell fees
- Percentage CalculatorPercent of a number, percentage change, increase, decrease and difference
More tools like this are in Trading & Crypto Calculators.
Where this comes from
Sources
Standard formula, see How it works.
Last reviewed: October 2026. Built and maintained by FinCalcBox; see About.