Liquidation Price Calculator
Model Long and Short liquidation boundaries, buffer percentage, and ROE target levels across isolated and cross margin.
Parameters
Liquidation buffer and price scale
- Margin buffer95.0%
- Maintenance floor5.0%
- Distance from entry
9.50%
0%100%
Adverse move before liquidation triggers
- Effective margin
10.00%
0%100%
Initial margin: 10.00%
Target prices by ROE
| ROE | Price move | Target price |
|---|---|---|
| +25% | 2.50% | 66,625.00 |
| +50% | 5.00% | 68,250.00 |
| +100% | 10.00% | 71,500.00 |
| +200% | 20.00% | 78,000.00 |
Liquidation margin boundary
Liquidation triggers when unrealized loss erodes posted margin down to the contract maintenance margin requirement.
- Isolated Long: Entry * (1 - 1/Leverage + Maintenance Margin Rate).
- Isolated Short: Entry * (1 + 1/Leverage - Maintenance Margin Rate).
- Cross margin replaces 1/Leverage with Wallet Balance divided by Position Notional.
- ROE target prices scale as Entry * (1 +/- (ROE% / Leverage) / 100).
Excludes funding fees, tiered MMR brackets, and liquidation clearance fees.
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
Why does cross margin move the liquidation price further away?
Cross margin uses your full wallet balance against the position notional, lowering effective leverage until losses consume the extra collateral.
What maintenance margin rate should I enter?
Major BTC and ETH perpetual contracts typically start near 0.4% to 0.5% MMR for base tiers and rise for larger notional brackets.