Position size calculator
How much to buy so that the stop costs exactly the share of the balance you chose, with Hyperliquid's fees, lot and liquidation counted.
What it does
You choose how much of the balance a trade may lose and where the stop goes. The calculator tells you how many coins to buy. It is free and open to everyone at tarvis.trade/tools/position-size. In the dashboard it is under Position size and takes the balance from your account.
Prices, lot sizes, leverage limits and funding rates come live from Hyperliquid. Every perpetual listed there is available.
How to use it
-
Pick the coin and the balance
In the dashboard, pick an account and its balance fills in. On the public page, type it.
-
Set the risk
The share of the balance one trade may lose at the stop. The chips offer 0.5–3%, and the label shows the same amount in dollars.
-
Set the side, the leverage and the entry
Long or short. An entry at market uses the current mark price; a limit entry uses your price.
-
Place the stop, and the take if you have one
Under each field you see how far it is from the entry, in percent.
What it shows
| Number | What it means |
|---|---|
| Position size | Coins to buy, rounded down to the exchange's lot, so the loss never exceeds your risk |
| Position value | Size times the entry price |
| Loss at the stop | What the stop costs, fees included |
| Margin used | Position value divided by the leverage |
| Liquidation price | Where the exchange closes the position. It must lie beyond the stop. |
| Reward to risk | Profit at the take divided by the loss at the stop, both after fees |
| Funding now | What the position pays or receives per hour at the current rate |
The scale on the right puts the take, the entry, the stop and the liquidation on one line, with the money at each level.
How it counts
- Size. The risk in dollars divided by the loss per coin: the distance from the entry to the stop plus the fees of both fills.
- Fees. Hyperliquid's base tier: 0.045% at market, 0.015% for a limit order. The entry pays by its type, the stop fills at market, the take as a limit.
- Leverage. Capped at the exchange's limit for this coin at this position value.
- Liquidation. The price where the margin left equals the exchange's maintenance margin, which is half the initial margin at the coin's maximum leverage. Isolated margin counts the position's own margin; cross counts the whole balance.
Warnings
- Liquidation before the stop. The stop would never fire. Lower the leverage or switch to cross margin.
- Balance too small for the risk. At this leverage the margin needed is more than the balance, so the size was cut. Raise the leverage or move the stop closer.
- Leverage above the limit. The exchange allows less at this size, and the calculator uses its limit.
- Order under $10. Hyperliquid does not accept it.
Tarvis strategies size their own trades; the calculator is for trades you place by hand. In the dashboard it starts at the leverage of your risk step.
See also
- AI assistant Ask about your trading in plain language. It answers from your account's real activity, including why a trade was opened or skipped.
- Notifications Choose where your trade alerts go and which ones you want to receive.
- API tokens A read-only API for a bot or a channel. It reads one demo account, in percent, and cannot change anything.
- Ideas Vote on what we build next and follow each idea from review to launch.