How the calculation works
The formula is lots = (balance × risk%) ÷ (stop pips × pip value). You decide the two inputs that are actually yours to control, how much of the account one trade may cost you, and where the trade is wrong (the stop). The lot size is then a calculation, not a feeling. Doubling your stop distance halves your size; it never has to mean doubling your risk.
JPY pairs are the classic trap, twice over. First, they quote to 2–3 decimals, so one pip is 0.01 and not 0.0001, miss that and a 25-pip stop counts as 2,500 pips and your size comes out 100× too small. Second, the pip value tracks the USD/JPY rate: roughly $6.67 per pip per lot at 150.00, where an older 110.00 rate would have implied $9.10. This calculator uses the same values as the RB Trading journal so the two never disagree. Futures use tick size and tick value; indices convert their home-currency point value to USD. All are approximations, your broker's contract specification is the authority.
Sizing a perp: units, fees and liquidation
A perpetual future is sized in units of the asset, not lots: 0.047 BTC, 2.5 ETH or 4.587 units of the S&P 500. One unit of a USDT perp moves $1 for every 1.00 the price moves, so the stop distance in price is the loss per unit. The fee to open and the fee to close are paid on the position value, so they come off the risk too: units = cash at risk ÷ (stop distance + (entry + stop) × fee %). Sizes round down to the exchange's step, so a trade never risks more than you planned.
Example: a $10,000 account risking 1% on a BTC perp long at 100,000 with the stop at 98,000 and a 0.05% fee each side. Per unit the stop costs 2,000 and the two fees 99, so the size is $100 ÷ 2,099 = 0.047 BTC, worth $4,700. At 10x it ties up $470 of margin and the liquidation estimate is about 90,500, well past the stop. At 50x the estimate moves to about 98,500, above the 98,000 stop, so the exchange would close the trade before your stop could. The calculator flags that and tells you the most leverage the stop allows.
Leverage is not risk. It decides how much margin the trade locks up and how close liquidation sits; the stop decides what you lose. The liquidation figure here is the standard isolated-margin estimate. Your exchange's own figure, which counts its fee tiers and mark price, always wins. For the maths behind it, see liquidation vs stop loss and the liquidation price calculator.
Sizing is half the job. Tracking it is the other half.
Knowing your size is worthless if you don't know whether your 1%-risk trades actually perform better than the days you "felt confident" and doubled it. The free RB Trading journal logs risk % on every trade and shows you the win rate at each risk level, most traders find their oversized trades lose more often, not just bigger.
Track your next 50 trades free →