How Do You Calculate Crypto Position Size?
Crypto position size = maximum dollar risk ÷ risk per token unit, where maximum dollar risk is account balance × risk percentage, and risk per unit is the difference between entry price and stop price. Leverage changes how much margin the position ties up, not the planned dollar risk — but it adds a separate risk of liquidation before the stop is reached, which the calculator below flags separately.
Crypto Position-Size Calculator
Enter account balance, risk percentage, entry and stop price. Switch to Leveraged to add a margin multiplier and see an approximate liquidation price; add exchange fees, slippage, and an exchange minimum order value for a more complete cost picture.
What This Calculator Does
It converts a dollar risk budget into a token quantity, then reports the practical numbers that follow from that quantity: how much notional value that represents, how much margin a leveraged trade requires, what fees and slippage do to the realized loss, and — for leveraged trades — roughly how far price can move against you before the exchange force-closes the position.
It does not predict price, recommend an asset, or replace the liquidation calculation shown on your exchange. It only turns the numbers you enter into a consistent, risk-based size.
Required Inputs
- Account balance — the equity you're sizing the trade against, in your quote currency (usually USD or a stablecoin).
- Risk % per trade — the share of that balance you're willing to lose if the stop is hit and fills exactly.
- Direction — long (buying, profiting if price rises) or short (profiting if price falls).
- Entry price — the price you plan to open the position at.
- Stop price — the price at which the trade idea is invalidated and you plan to exit.
Optional Advanced Inputs
- Trading pair — a label only (e.g. "SOL/USDT"); it doesn't affect the math, it just tags your results.
- Trade type — Spot or Leveraged. Spot requires full notional value in cash; Leveraged uses margin and unlocks the liquidation estimate.
- Leverage — the margin multiplier for a leveraged trade (e.g. 5 for 5x). Ignored for spot trades.
- Exchange fee % per side — your taker (or maker) fee rate; applied once on entry and once on exit.
- Estimated slippage % per side — how far the average fill price might drift from the quoted price on entry and exit, given the pair's typical liquidity.
- Token quantity precision — how many decimal places the exchange allows for order size (0 for whole units, up to 18 for very small fractional amounts).
- Exchange minimum order value — the smallest notional value your exchange accepts for this pair; the calculator flags an order below it.
- Profit target price — an optional target used to compute a reward-to-risk ratio.
What the Results Mean
| Output | What it tells you |
|---|---|
| Max planned risk | Account balance × risk % — the dollar amount you're budgeting to lose. |
| Risk per unit | |Entry price − stop price| — the loss on one token if the stop fills exactly. |
| Token quantity | Max planned risk ÷ risk per unit, rounded down to your chosen decimal precision. |
| Notional value | Token quantity × entry price — the total dollar size of the position, regardless of leverage. |
| Margin required | Notional value ÷ leverage — the capital locked up to open the trade (equals notional value for spot). |
| Effective exposure | Same as notional value — the amount that actually moves dollar-for-dollar with price. |
| Loss at stop | Token quantity × risk per unit, before fees or slippage. |
| Loss after costs | Loss at stop plus round-trip fee and slippage cost. |
| Risk % of account | Loss after costs ÷ account balance — your real planned risk once costs are included. |
| Fee burden vs. planned risk | Round-trip fees and slippage as a percentage of the loss at stop — how much costs eat into your risk budget. |
| Est. liquidation price (leveraged only) | A simplified estimate of where the exchange would force-close the position, ignoring maintenance-margin tiers, funding, and fees. |
| Distance to liquidation | How far price would need to move from entry to reach the estimated liquidation price, as a percentage. |
Three warning conditions are checked automatically: the estimated liquidation price sitting at or before your stop, a spot notional value larger than your account balance, and a margin requirement over 50% of your account (a concentrated position).
The Formulas
For a long trade:
Risk per unit = Entry price − Stop price
Quantity = Max planned risk ÷ Risk per unit (rounded down to the chosen decimal precision)
For a short trade, risk per unit flips: Risk per unit = Stop price − Entry price.
Notional value = Quantity × Entry price. Margin required = Notional value ÷ Leverage (leverage is 1 for spot, so margin required equals notional value).
Round-trip cost = notional value × (fee % + slippage %) × 2, applied once for entry and once for exit. Loss after costs = Loss at stop + round-trip cost.
The liquidation estimate uses the standard simplified isolated-margin formula:
- Long: Liquidation price ≈ Entry price × (1 − 1 ÷ Leverage)
- Short: Liquidation price ≈ Entry price × (1 + 1 ÷ Leverage)
This ignores maintenance-margin requirements, funding payments, and fees, all of which typically move the real liquidation price closer to entry than this estimate suggests. It's a distance check, not a substitute for the number your exchange shows before you submit an order.
Worked Example
Hypothetical example — for education only.
A trader has a $10,000 account and risks 1% per trade. They plan a long entry on a token at $100 with a stop at $95, using 10x leverage, a 0.1% exchange fee per side, and 0.05% estimated slippage per side.
- Max planned risk: $10,000 × 1% = $100
- Risk per unit: $100 − $95 = $5
- Quantity: $100 ÷ $5 = 20 units
- Notional value: 20 × $100 = $2,000
- Margin required: $2,000 ÷ 10 = $200
- Loss at stop: 20 × $5 = $100
- Round-trip cost: $2,000 × (0.1% + 0.05%) × 2 = $6
- Loss after costs: $100 + $6 = $106 (1.06% of the account, slightly over the 1% target)
- Estimated liquidation price: $100 × (1 − 1/10) = $90, a 10% move away — beyond the $95 stop, so the stop would be hit first in this estimate
Changing only the leverage to 20x moves the estimated liquidation price to $100 × (1 − 1/20) = $95 — the same level as the stop. At that leverage, the calculator flags that liquidation may occur at or before the stop, meaning the exchange could close the position for reasons unrelated to the trade thesis before the planned exit is ever reached.
How to Interpret the Results
Treat loss after costs, not the raw quantity, as the number that matters — it's the closest estimate of what a losing trade actually costs once fees and slippage are included. If risk % of account comes out noticeably above your target, fees or slippage are eating into the budget and the position should be sized down, not up.
For leveraged trades, check distance to liquidation against your stop distance. If liquidation sits closer to entry than the stop, the position's real risk isn't the planned stop — it's an earlier, exchange-determined exit that a plain position-size formula doesn't otherwise account for.
Common Mistakes
- Sizing off margin instead of notional value — leverage reduces the cash tied up, not the dollar amount exposed to price movement.
- Ignoring round-trip fees on frequent trades — a fee that looks negligible on one trade compounds quickly across many.
- Treating the liquidation estimate as exact — real exchanges layer in maintenance margin and funding, which usually move the actual liquidation price closer to entry.
- Setting leverage high enough that liquidation sits inside the stop distance — the position can be closed by the exchange before the trade thesis is even tested.
- Skipping the exchange minimum order value — a mathematically correct but too-small order can simply be rejected.
- Rounding the quantity up instead of down, which quietly pushes the realized risk above the budget.
- Forgetting funding payments on multi-day leveraged positions — this calculator does not include funding cost, and it can add up over a long hold.
Limitations and Edge Cases
- The liquidation price is a simplified isolated-margin estimate. It excludes maintenance-margin tiers, insurance-fund mechanics, cross-margin effects, and funding — all of which vary by exchange and typically bring the real liquidation price closer to entry.
- Funding-rate cost for holding a leveraged position over time is not calculated here; it accrues periodically and depends on market conditions that change continuously.
- Fees and slippage are entered as flat percentages. Real exchanges often use tiered fee schedules based on trading volume or token holdings, and slippage varies with order size and current order-book depth. Check your exchange's published fee schedule and the live order book for your pair before relying on the estimates entered here.
- Crypto markets trade continuously, so a stop set while a trader is away can be triggered — or a position liquidated — outside normal waking hours, with no market close to limit the move.
- Extremely low-priced or high-supply tokens can produce very large raw quantities; check that your entered decimal precision matches what the exchange actually allows for that pair.
- This tool assumes a single position sized in isolation. It does not account for correlation with other open positions or total portfolio risk.
Privacy and Data Handling
All calculations run in your browser. Values you type into this calculator are not sent to Swoopr's servers, stored, or logged — closing or reloading the page clears them. No account or sign-in is required to use this tool.
Crypto Position Sizing FAQs
How do you calculate crypto position size?
Multiply account balance by your risk percentage to get the maximum dollar risk, then divide that by the difference between entry and stop price: quantity = (account balance × risk %) ÷ |entry price − stop price|.
Does leverage change how much I'm risking?
Leverage changes how much margin is tied up, not the planned dollar risk from entry to stop. It does add a separate risk: the position can be liquidated by the exchange before the stop is reached, which a plain position-size formula does not account for.
Is the liquidation price on this calculator exact?
No. It's a simplified isolated-margin estimate that ignores maintenance-margin tiers, funding payments, and fees. Exchanges typically liquidate earlier than this estimate. Always confirm the actual liquidation price shown by your exchange before opening a leveraged position.
What is notional value in a crypto trade?
Notional value is the total dollar value of the position — token quantity multiplied by price — regardless of how much margin was used to open it. It's the amount actually exposed to price movement.
Why is my calculated quantity smaller than expected?
The calculator floors (rounds down) the token quantity to the decimal precision you set, so the position never exceeds your planned dollar risk. Rounding up would let the actual risk exceed the budget you entered.
How is this different from the stock position-size calculator?
The core formula is the same. This version adds leverage, margin, an approximate liquidation-price check, and round-trip exchange fees and slippage as percentages — all relevant to how crypto exchanges price and settle trades, and mostly not applicable to a cash equity purchase.
Related Tools
- Stock position-size calculator — the same core formula for cash equity trades, without leverage or liquidation.
- Crypto order types explained — market, limit, stop-market, stop-limit, and OCO orders on a crypto exchange.
- Hot vs. cold wallets — where the coins backing a position are actually held.
- Wallet security score — a checklist-based score for your wallet's custody and backup practices.