How this calculator works
A grid bot places buy orders below the current price and sell orders above it, evenly spaced between a lower and an upper price. Each time the price moves up one grid, a sell fills; each time it moves back down, the matching buy fills. Every completed buy-and-sell pair banks one grid profit. The calculator follows this setup:
- Grid lines: arithmetic grids use an equal price distance between lines; geometric grids use an equal percentage.
- Quantity per grid: every grid holds the same amount of the coin. The calculator picks the amount so that the waiting buy orders plus the coin bought at the start cost exactly your investment.
- Profit of one cycle = quantity × (upper line − lower line) − fee × quantity × (lower line + upper line).
- Break-even step = (1 + fee) ÷ (1 − fee) − 1. With a 0.1% fee per side that is about 0.2002%.
- Range exit: the value of the bot after a one-way move to a price outside the range, compared with simply buying the coin at the start price.
Worked example: 20 grids between $50,000 and $70,000
With $10,000 invested, the start price at $60,000 and a 0.1% fee per trade, an arithmetic grid with 20 lines places 10 buy orders and starts with coin for 10 sell orders. Each grid order is about $500.00. The grid step is $1,000, which is 2.00% of the price at the bottom and 1.45% at the top. After fees one completed cycle nets between 1.25% and 1.80%, about $7.68 on average.
A geometric grid with the same range and grid count has an equal 1.70% step in every grid, so each cycle nets 1.49%.
More grids does not mean more profit
Splitting the same range into more grids makes each step smaller and each order smaller. The profit per cycle falls, and the fees take a bigger share. More cycles complete, but only if the price actually travels that far. Here is a geometric grid on the same $50,000 to $70,000 range:
| Grids | Step per grid | Net per cycle | Order size | Average profit per cycle | Profit if every grid completes once |
|---|---|---|---|---|---|
| 5 | 6.96% | 6.75% | $2,000.00 | $136.77 | $683.86 |
| 10 | 3.42% | 3.22% | $1,000.00 | $33.10 | $331.02 |
| 20 | 1.70% | 1.49% | $500.00 | $7.72 | $154.43 |
| 50 | 0.68% | 0.47% | $200.00 | $0.98 | $49.18 |
| 100 | 0.34% | 0.14% | $100.00 | $0.14 | $14.18 |
| 200 | 0.17% | -0.03% | $50.00 | -$0.02 | -$3.30 |
Going from 20 to 200 grids shrinks the net profit per cycle from 1.49% to -0.03%. At 200 grids the step is only a little above what the fees take, so a small change in your fee tier or a bit of slippage can wipe out the edge.
How fees set the smallest useful grid
Every cycle pays a fee on the buy and on the sell. If the grid step is smaller than the two fees together, the cycle loses money even though the bot reports a “profit” in price terms. The table shows the break-even step for common fee levels, and how many geometric grids fit in the $50,000 to $70,000 range while each cycle still nets about 0.3%:
| Fee per trade | Break-even grid step | Most grids for about 0.3% net per cycle |
|---|---|---|
| 0.02% | 0.040% | 99 |
| 0.05% | 0.100% | 84 |
| 0.10% | 0.200% | 67 |
| 0.20% | 0.401% | 48 |
Fee levels depend on the exchange, your trading volume and whether you pay in the exchange token, so check your own tier before you rely on any number here.
What happens when price leaves the range
This is the part most grid bot calculators leave out. Using the example above:
| Price moves one way to | Value of the bot | Profit or loss | Value if you had just bought | Profit or loss from just buying |
|---|---|---|---|---|
| 10% below the range ($45,000) | $7,852.41 | -$2,147.59 | $7,492.51 | -$2,507.49 |
| Bottom of range ($50,000) | $8,724.90 | -$1,275.10 | $8,325.01 | -$1,674.99 |
| Start price ($60,000) | $9,994.77 | -$5.23 | $9,990.01 | -$9.99 |
| Top of range ($70,000) | $10,468.92 | $468.92 | $11,655.01 | $1,655.01 |
| 10% above the range ($77,000) | $10,468.92 | $468.92 | $12,820.51 | $2,820.51 |
If the price falls to the bottom of the range, the bot has bought every grid on the way down and holds coins worth less than it paid, a loss of -$1,275.10, which would take about 167 average cycles to earn back. That is still a smaller loss than buying and holding, because the bot bought gradually. If the price rises to the top, the bot has sold everything and holds cash, earning $468.92, while a holder would have made $1,655.01. Above the range the bot earns nothing more while the coin keeps rising.
Arithmetic or geometric grid?
- Arithmetic works well for a tight range, where the percentage difference between the lowest and highest line is small. The bottom grids have a larger percentage step than the top grids.
- Geometric works better for a wide range, such as a range that spans 40% or more, because each grid earns about the same percentage.
Choosing a range
A narrow range gives more cycles but a higher chance of the price leaving it. A wide range survives bigger moves but spreads the money across more grids, so each grid is smaller. Many traders pick the range from support and resistance levels they can see on the chart; the Fibonacci retracement calculator can help mark them. To see how the position behaves if the price falls through the bottom, you can also check the maths of averaging down with the average price calculator.
What this calculator does not model
- Futures grids. Grids on perpetual futures add leverage, liquidation risk and funding payments. Use the liquidation price calculator and the funding fee calculator for those parts.
- Slippage and minimum orders. Exchanges reject orders below a minimum size, and thin books fill at worse prices.
- Trailing grids and stop-losses. Some bots move the range or close the bot at a stop price, which changes the outcome.
- Tax. Every completed cycle can be a taxable event in many countries.
- The future. The cycles-per-day input is your own guess. The calculator does not predict how often the price will cross your grid lines.
Before you run a real bot, practise reading the range and the risks with virtual funds in crypto paper trading, and read why win rate and risk-reward matter together.