Position Size Calculator
Compute exact units, notional exposure, required margin, and 1R/2R/3R price targets from your stop-loss distance.
Parameters
Risk-to-reward price ladder
- Required margin57.1%
- 3R projected PnL42.9%
- Account margin load
4.0%
0%100%
Share of account balance committed as margin
- Stop distance
5.00%
0%100%
Risk-to-reward ladder (1R / 2R / 3R)
| Multiple | Target price | Projected profit | ROI on margin |
|---|---|---|---|
| 1R | 105.0000 | +$100.00 | +25.0% |
| 2R | 110.0000 | +$200.00 | +50.0% |
| 3R | 115.0000 | +$300.00 | +75.0% |
Position sizing formula
Position size scales inversely with stop distance so every trade risks the same fixed percentage of account equity.
- Risk Amount = Account Balance * (Risk % / 100).
- Position Units = Risk Amount / |Entry Price - Stop-Loss Price|.
- Required Margin = (Position Units * Entry Price) / Leverage.
- 1R, 2R, and 3R targets step outward by 1x, 2x, and 3x the stop distance.
Applies identically to crypto, forex, commodities, and equities.
Seed calculators with live Data API & MCP prices
Read API documentationFetch live spot, perpetual, or macro reference prices from Darvas REST API or MCP to automate sizing and risk calculations in your own scripts.
REST API (https://api.darvas.app/v1)
curl -H "Authorization: Bearer $DARVAS_API_KEY" \
"https://api.darvas.app/v1/crypto/prices/snapshot?ticker=BTC-USDT"MCP Server (https://api.darvas.app/mcp?mode=code)
POST https://api.darvas.app/mcp?mode=code
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "execute",
"arguments": {
"code": "async () => darvas.request({ method: 'GET', path: '/crypto/prices/snapshot', query: { ticker: 'BTC-USDT' } })"
}
}
}Frequently asked questions
Does higher leverage change my dollar risk?
No. Dollar risk is fixed by your stop-loss distance and position units. Higher leverage only reduces the initial margin locked for that position.
How is Long vs Short detected automatically?
When Entry Price is above Stop-Loss Price, the calculator sizes a Long setup. When Entry Price is below Stop-Loss Price, it sizes a Short setup.