Free tool · no sign-up

Grid bot calculator

Enter your price range, number of grids, investment and leverage to see the net profit per grid, the liquidation price and the open loss if price leaves the range. Everything is calculated in your browser; nothing is sent anywhere.

Grid type
Advanced: fee and maintenance margin

The defaults are common base rates for perpetual futures. You can enter the rates of your own exchange and pair.

Result

    Try this setup on live data, with a virtual balance

    Fixed values of the setup only. Funding, slippage and how often price moves inside the range are not included.

    How it is calculated

    The math in plain words

    Bots in the Botrader app use the same formulas.

    Grid step

    The range is split into equal parts: step = (upper − lower) / number of grids. As a percentage it is shown against the middle of the range.

    Net profit per grid

    A buy and a sell one line higher make one cycle. Gross profit is quantity × step; the fees of both orders are deducted. Fees are larger on higher lines, so the net profit is shown as a range.

    Order size

    The common futures grid formula is used: 0.8 × investment × leverage / sum of line prices. For long and short grids the risk of the starting position is added to the denominator.

    Liquidation price

    The worst case is assumed: every order on the losing side has filled and the only collateral is the investment. When collateral plus open P/L falls to the maintenance margin, the position is closed.

    Open loss outside the range

    When price leaves the range the grid stops, but the position stays. This row shows that open P/L and how many full cycles it takes to cover it. It is why the total result can be negative while grid profit is positive.

    Why there is no earnings estimate

    Daily or monthly earnings depend on how many times price moves back and forth inside the range, which nobody knows in advance. Instead of a guess, you can run the same setup on live prices with a virtual balance in Botrader.

    Questions about the calculator

    How is grid bot profit calculated?

    Every full cycle (a buy and a sell one line higher) earns quantity × grid step before fees, and the fees of both orders are deducted. Total profit depends on the number of cycles; the P/L of the open position and funding fees come on top.

    How large should the profit per grid be?

    At least large enough to cover the fees of both orders comfortably. If the step is very narrow, most of the profit goes to fees; if it is very wide, price touches the lines rarely and there are fewer cycles. The calculator warns when fees take more than a fifth of the gross profit.

    Why is the liquidation price a worst case?

    A grid bot buys as price falls (long) or sells as price rises (short). When price reaches the end of the range every order has filled and the position is at its largest. The calculator shows the liquidation price at that point. The real value can differ slightly because exchanges use maintenance margin tiers per pair.

    Are funding fees included?

    No. The funding rate changes every few hours with the market of the pair. In the Botrader app bots run with real funding rates; the calculator only shows values that depend on the setup.

    Is my input sent anywhere?

    No. The calculation runs entirely in your browser; the values you enter are not sent to a server or stored.

    Will the result match a bot in Botrader?

    Setup values (step, order size, liquidation) use the same formulas. The app also applies the real price and quantity steps of the pair, slippage and funding, so small differences are possible.

    Make your mistakes here, not on the exchange

    Sign up in a minute and get the 6-day full trial. No card, no keys.