Size every trade from the risk, not from a gut feeling. Enter your account size, the share of the account you risk per trade (1 to 3%, with 1% the common standard), the entry and the stop. The calculator shows what you lose if the stop is hit, the stop distance and the position size, plus the total risk of all your open trades.
The formula: position size = (account × risk %) ÷ stop distance %. Leverage does not change your loss at the stop; it only lowers the margin the exchange holds.
See also the liquidation price calculator. For education only, not financial advice.