Home › Guides › Futures Grid Liquidation

BOT TYPE GUIDEFREENO ACCOUNTAUTOMATED TRADE BOTSFutures GridLiquidationHow it works and where it breaksEDUCATION ONLY | NO SIGNALSEXAMPLE NUMBERS ARE LABELLEDAUTOMATED TRADE BOTSautomatedtradebots.com
A free page on futures grid liquidation. Education only, with example numbers labelled.
BOT TYPE GUIDE

Futures Grid Liquidation

Short answer

A long grid on leveraged futures buys more as price falls, so the position grows, the average entry drifts down and the margin tied up rises.

A long grid on leveraged futures keeps buying as price falls. This page shows the arithmetic of the average entry, the margin and the liquidation price against the grid floor.

The page explains how this kind of bot works, works through the arithmetic of its ladder or grid with tables, shows where it breaks, and gives you a fair way to test one before you risk money.

  • How the bot works, step by step
  • The arithmetic of the ladder or grid
  • Where it breaks and how to test it honestly
  • No advice, no signals, no profit promises

Last reviewed 28 October 2026. Education only, not advice.

Free, no account Runs in your browser Worked numbers shown Not advice Examples labelled

Ready to go further

Check a liquidation price yourself

Enter an entry price, leverage and maintenance rate and see where a position would be closed.

Reading time6 minutes
Worked exampleExact arithmetic
Tools linked1 on this page
Reviewed28 Oct 2026

What is included

  • How the bot works, step by step
  • The arithmetic of the ladder or grid, with tables
  • How it fails and how to test it honestly
  • The tools that check the numbers

Who it is for

  • People thinking of using this kind of bot
  • People already running one and wanting a stress test
  • Readers comparing bot types before buying
  • Not advice, and not a recommendation to use one
Liquidation price after the whole grid fills, against a lower bound of 9065.153x leveragebelow the floor87.7810x leveragebelow the floor92.6320x leverageabove the floorMade-up grid, average entry 97.00. Simplified formula. Calculated by us on 27 Oct 2026, exact.
The picture for this page. Example numbers are made up unless the page says they were calculated.

Key facts

  • A long grid on leveraged futures buys more as price falls, so the position grows, the average entry drifts down and the margin tied up rises.
  • Liquidation can arrive before price reaches the grid lower bound. The higher the leverage, the closer the liquidation price sits to the entry.
  • In a made-up grid of 90 to 110 with an average entry of 97.00 after it fills all the way down, the simplified liquidation price is 65.15 at 3x, 87.78 at 10x and 92.63 at 20x (calculated by us on 27 Oct 2026, exact).
  • At 20x the liquidation line rises above the price when the grid fills down to 94, which is above the lower bound of 90.
  • Real exchanges differ from the simplified formula: margin modes, fees, the maintenance rate and funding all change the number. Always check the figure your platform shows.

Why leverage changes what a grid is

On spot markets a grid bot that is stuck holding the asset has an unrealised loss, but it is still holding the asset and can wait. On leveraged futures the position is held with borrowed exposure. The exchange only needs the margin to cover losses, and if losses eat the margin, the exchange closes the position by force. That is liquidation. The guide on margin calls explains the broker version of the same event.

A long grid makes it worse in a particular way. Every time price falls to the next buy line, the bot adds a position. The total position grows, the average entry price moves down but always stays above the current price, and the margin needed rises at the same time. So the account becomes more exposed exactly as it gets less able to carry it.

The mechanism

The simplified isolated liquidation price for a long position is the one used by the liquidation price calculator:

Liquidation price = average entry x (1 - 1 / leverage + maintenance rate)
with a maintenance rate of 0.005 (0.5 percent) in this example

At 3x leverage the part in brackets is 1 - 0.3333 + 0.005 = 0.6717. At 10x it is 1 - 0.1 + 0.005 = 0.905. At 20x it is 1 - 0.05 + 0.005 = 0.955. So at 20x the price needs to fall only 4.5 percent below the entry to liquidate, and at 10x only 9.5 percent. Whether the number is right for any particular exchange is a separate question, and it is usually not exactly right.

A worked example

This is a made-up example. A long grid covers 90 to 110 in ten grids two apart, with 5 units per grid. The asset starts at 100. The bot buys 25 units at 100 to cover the sell orders above and leaves five buy orders of 5 units each at 98, 96, 94, 92 and 90. First, how the position and margin grow as the buy orders fill:

Grid filled down toUnits heldAverage entryPosition valueMargin at 3xMargin at 10xMargin at 20x
10025100.002500.00833.33250.00125.00
983099.672990.00996.67299.00149.50
963599.143470.001156.67347.00173.50
944098.503940.001313.33394.00197.00
924597.784400.001466.67440.00220.00
905097.004850.001616.67485.00242.50

After the last fill, the bot holds 50 units at an average of 97.00, worth 4850.00 at entry. At 3x that needs 1616.67 of margin, at 10x 485.00 and at 20x 242.50. The margin at higher leverage is small, which is the attraction, and also why liquidation is close. Now the liquidation price after each fill, using the formula above:

Grid filled down toAverage entryLiquidation at 3xLiquidation at 10xLiquidation at 20xPrice at or under the 20x line?
100100.0067.1790.5095.50No
9899.6766.9490.2095.18No
9699.1466.5989.7294.68No
9498.5066.1689.1494.07Yes: liquidated at 20x
9297.7865.6788.4993.38Yes: liquidated at 20x
9097.0065.1587.7892.63Yes: liquidated at 20x

At 3x, the liquidation price is far below the floor of the grid (65.15 against 90), so the grid reaches its lower bound first. At 10x, it is 87.78, which is 2.5 percent under the floor. The grid would not liquidate inside the range, but a price that continues only a little below 90 would. At 20x, the liquidation price when the grid has filled down to 94 is 94.07, which is above the 94 fill price itself. The position is liquidated at or before that buy order, well before the lower bound of 90 is reached. Calculated by us on 27 Oct 2026, exact.

Price falling through the grid against two liquidation lines86909498102fill 100fill 98fill 96fill 94fill 92fill 90Lower bound of the grid 90price meets 20x lineGrid fills (grey: price, orange: 10x liquidation, red dashed: 20x liquidation)Made-up example. Average entry and liquidation price recalculated after each fill.
Price steps down the grid while each fill shifts the liquidation lines. The 10x line stays under the lower bound. The 20x line crosses the price part way down the range.

How to check the liquidation price against the lower bound

  1. Work out the average entry if every buy order fills, not only the ones filled now. Total cost divided by total units.
  2. Take the liquidation price your platform shows for that full position. If the platform cannot show it before the orders fill, use the formula above as a rough guide only.
  3. Compare it with the lower bound. If the liquidation price is above the lower bound, the grid is not able to work down to its own floor.
  4. Check how far below the floor it is in percent, not only whether it is below. A 2 or 3 percent gap is one candle on a volatile asset.
  5. Repeat for the case where you add margin and the case where leverage is lower. More margin moves the liquidation price down, and the figure is not the same on every platform.
The formula here is simplified. Real exchanges apply their own maintenance rates by position size, include fees in the calculation, treat isolated and cross margin differently and may use a mark price that differs from the last traded price. Treat the table as arithmetic that shows the pattern, never as the number to rely on.

Funding costs

On perpetual futures, long and short holders pay each other a funding rate at set intervals. If the rate is positive, longs pay. A grid stuck holding its full position pays it on the whole position value. As a made-up example, take 0.01 percent per 8 hours on the 4850.00 position. That is 0.485 per interval, 1.455 per day, and 43.65 over 30 days. A completed grid in this example earns a gross 10 (5 units over a gap of 2), so about 4.4 completed grids a month are needed just to pay that funding, before fees. Funding rates change and can be negative, so this is only the shape of the cost. It is highest when the bot is stuck, which is when it is also earning nothing.

What to take from it

Leverage lets a grid hold a bigger position for the same money. It also moves the point of forced closure up toward the entry price. A grid built for a 90 to 110 range with a 20x position is not really a 90 to 110 grid: it is a grid that works down to wherever the liquidation line meets the price. For the broader picture of how a grid fails when price trends, see grid trading.

FAQ

Frequently Asked Questions

Can a futures grid bot be liquidated?

Yes. A long grid adds positions as price falls, and if price drops far enough that losses use up the margin, the exchange closes the position. With high leverage this can happen before the lower bound of the grid.

How do I find the liquidation price of a grid?

Work out the average entry if every buy order fills, then use your platform liquidation figure for that full position. The simplified formula is entry x (1 - 1/leverage + maintenance rate), but your platform may differ.

Does lower leverage fix it?

It moves the liquidation price further from the entry, so it takes a bigger fall. It does not remove the risk. In the example, 3x sits far below the floor and 10x only about 2.5 percent below it.

Does adding margin help?

More margin lowers the liquidation price for the same position, at the cost of more money at risk. Whether extra margin is added automatically depends on the platform and margin mode.

Why does funding matter for a grid?

A grid holding a large long position pays funding when the rate is positive. It is paid on the whole position, and it is largest when the grid is stuck and earning nothing.

Are the numbers on this page real?

Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.

Can I use this to decide whether to run a bot?

It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.

Is this financial advice?

No. It is general education about how leverage and grids interact. All prices and rates are made up and real exchanges differ.

Know the Risk Before You Run It

Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.

Trading carries a risk of loss