Home › Templates › Crypto grid trading spreadsheet

Grid Trading Spreadsheet: Crypto Grid Bot Calculator and Fills Log

A free grid trading spreadsheet for Excel and Google Sheets. Type a range, the number of grids, arithmetic or geometric spacing, the investment and your fees. The sheet lists every grid level and the order placed at the start, the quantity per grid, the net profit per grid after fees (minimum and maximum), a fee break-even check, and what the bot holds if the price leaves the range, next to simply holding the coin. A fills log adds up realized grid profit and fees by month.

Download Excel template (.xlsx) 209 KB · up to 100 grids + 300 fills · no macros · Excel 2016+ and Google Sheets · v1.0, 11 Nov 2026

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no API key and no exchange connection: you type the settings and copy fills from your bot's order history.

Preview: the Example planner tab. Fictional BTC/USDT settings: range 54,000–66,000 USDT, 12 arithmetic grids, 10,000 USDT invested, bot started at 60,450, fee 0.1% per order. Not market data and not a suggested setting.
1.34% – 1.65%net profit per grid after fees (top grid – bottom grid)
12.39 – 12.71USDT per completed buy/sell cycle
0.200%break-even grid step at a 0.1% fee
5 sell / 7 buyorders at the start; 0.01426025 BTC per grid
−10.7%price move to the lower limit, where the bot holds only BTC
GridBuySellOrder at startStepNet / gridNet per cycle
1265,000.0066,000.00Sell at 66,000.001.538%1.337%12.39
1164,000.0065,000.00Sell at 65,000.001.562%1.361%12.42
1063,000.0064,000.00Sell at 64,000.001.587%1.386%12.45
962,000.0063,000.00Sell at 63,000.001.613%1.411%12.48
861,000.0062,000.00Sell at 62,000.001.639%1.438%12.51
760,000.0061,000.00Buy at 60,000.001.667%1.465%12.53
659,000.0060,000.00Buy at 59,000.001.695%1.493%12.56
558,000.0059,000.00Buy at 58,000.001.724%1.522%12.59
457,000.0058,000.00Buy at 57,000.001.754%1.553%12.62
356,000.0057,000.00Buy at 56,000.001.786%1.584%12.65
255,000.0056,000.00Buy at 55,000.001.818%1.616%12.68
154,000.0055,000.00Buy at 54,000.001.852%1.650%12.71
grid range 54,000–66,0007,0008,0009,00010,00011,00012,00013,00045k50k55k60k65k70k75k10,000 invested━ Grid bot value┅ HODL valueUSDT at the end price (x axis), one-way move, fictionalEnd price (USDT)

How a spot grid bot works

A grid bot splits a price range into equal steps. It keeps a buy order below the price and a sell order above it. When a buy fills, the bot places a sell one level higher; when that sell fills, it places a buy one level lower. Each completed buy and sell pair is one cycle of grid profit.

Binance's guide shows the order book at the start. With a range of 40,000 to 60,000 USDC, 5 arithmetic grids and a price of 50,100, the levels are "60,000 USDC, 56,000 USDC, 52,000 USDC, 48,000 USDC, 44,000 USDC, and 40,000 USDC". The bot places sells at 60,000 and 56,000, no order at 52,000, and buys at 48,000, 44,000 and 40,000 (Binance, What Is Spot Grid Trading). The spreadsheet uses the same rule, and its Exchange checks tab rebuilds this example: all five orders match.

Two spacing modes exist. Binance: arithmetic means "Each grid has an equal price difference", geometric means "Each grid has an equal price difference ratio".

Arithmetic: d = (upper − lower) ÷ grids  ·  level k = lower + d × k

Geometric: r = (upper ÷ lower)1 ÷ grids  ·  level k = lower × rk

Profit per grid after fees

Every cycle pays two fees: one on the buy and one on the sell. Binance's "Spot Grid Trading Parameters" page publishes the profit per grid with a trading fee c (Binance, Spot Grid Trading Parameters):

All three are one formula applied to one grid: net profit per grid = (1 − c) × sell ÷ buy − 1 − c. The planner applies it to every row, so the minimum and maximum come out on their own.

Binance's worked example, rebuilt

Binance: upper limit 450, lower limit 400, 5 grids, fee 0.1%. Its page shows "Maximum Profit/Grid = (1 - 0.1%) * 10 / 400 - 2 * 0.1% = 2.29%", "Minimum Profit/Grid = (450 * (1 - 0.1%)) / (450 - 10) - 1 - 0.1% = 2.07%" and, for a geometric grid, "= 2.18%". The Exchange checks tab gives 2.2975%, 2.0705% and 2.1812%. All three match when cut to two decimals. Note that 2.2975% rounds to 2.30%; Binance shows 2.29%, so it truncates.

In money: one buy/sell pair

OKX writes the same thing in the quote currency: "Grid Profit = Gross Profit – Buy Fee – Sell Fee" (OKX, Spot Grid PnL). Its example sells 0.00005216 BTC bought at 100,000 for 101,000 USDT: gross profit 0.05216, buy fee 0.005216, sell fee 0.00526816, grid profit 0.04167584 USDT. The Fills log uses this formula, and its default fee (rate × quantity × price) reproduces all four OKX figures exactly. Bybit's help page gives "Grid Profit = Sell quantity * Sell price * (1-Fee rate) - Buy quantity * Buy price" with an example of 341.81 USDT on a 4,000 grid interval, which the checks tab also reproduces (Bybit, P&L Calculations (Spot Grid Bot)). KuCoin states the gross version: "Grid Profits = Price gap between grids * Buy-in amount of each grid * No. of filled orders" (KuCoin, FAQ for Spot Grid).

The fee break-even check

Set the net profit per grid to zero and solve for the step. A grid only earns if sell ÷ buy is above (1 + c) ÷ (1 − c):

Break-even grid step = (1 + c) ÷ (1 − c) − 1 ≈ 2 × fee

At a 0.1% fee that is 0.2002%. The planner flags a setup as Loss when the smallest grid is below break-even, Thin when fees take more than half of the smallest step, and Below your target when the smallest grid misses the net profit you typed. It also shows the most grids you can fit in the range before the smallest grid drops below your target. KuCoin's FAQ notes the same limit from the exchange side: "Only when the grid profits are greater than trading fees will the Classic Grid place the order."

What's inside the spreadsheet

TabWhat you typeWhat it calculates
Start hereNothingSteps, formulas in plain words, colour key, limits, sources, disclaimer
SummaryNothingYour planner and fills next to the Example: profit per grid, fee check, most grids, quantity, capital, realized grid profit, fees, average profit per cycle, open buys and their average cost, grid profit by month, two charts
Grid plannerPair, lower and upper price, number of grids (2–100), Arithmetic or Geometric, investment, start price, maker fee, taker fee, target net profit per grid; up to 10 end pricesStatus check, d or r, smallest and largest step, net profit per grid (min and max), break-even step, fee check, most grids for your target, orders at start, quantity per grid, base bought and quote reserved, start fee, profit per cycle in quote; one row per grid; range-exit scenarios vs HODL
Fills logFee rate; per fill: bot, buy date, buy price, quantity, buy fee (optional), sell date, sell price, sell fee (optional)Row status (Open, Closed, or the problem), buy cost, sell proceeds, fees used, grid profit, profit %, days held, month, open cost
Exchange checksNothing (inputs are the published examples)Binance profit per grid (arithmetic min and max, geometric), Binance order placement, OKX grid profit, Bybit grid profit, each marked "Matches"
Example planner / Example fillsAlready filled with fictional dataThe same tabs with every result visible: 12 grids, 9 end prices, 18 fills

How to use it

  1. Open Grid planner. Type the lower and upper price, the number of grids, the spacing, the investment in the quote currency, the price when the bot starts, and your fees. Grid orders are limit orders that rest in the order book, which usually pay the maker fee; the start buy is a market order, so use the taker fee. Check your exchange's fee page.
  2. Check Status (F4) says OK and read the Fee check (F12). If it says Loss or Thin, widen the step: fewer grids or a wider range.
  3. Type end prices in A29:A38: one below the range, a few inside, one above. Compare the bot's value with HODL.
  4. Compare the levels and the quantity with your exchange's preview before you start. Exchanges round prices and quantities and reserve some coin for fees.
  5. While the bot runs, copy each filled buy into Fills log; add the sell when it fills. Leave the fee cells blank to use the rate in B4, or type the fee your exchange shows, in the quote currency.
  6. Read the Summary: grid profit and fees by month, open buys and their average cost.

Running a DCA bot with safety orders instead of a grid? Use the crypto DCA bot tracker. To see the whole holding, including coins the bot ends up with, use the crypto portfolio tracker.

The formulas

Exact formulas from the Grid planner. In the file, each one is wrapped in a check, for example IF($F$4="OK", …, ""), so cells stay blank until the inputs pass. Row 42 is the first grid; $B$5 lower, $B$6 upper, $B$7 grids, $B$10 start price, $B$11 maker fee, $B$12 taker fee. Columns K:N are numeric helpers (used, buy, sell, 1 = sell order at start).

FieldFormula
Price difference d (F5)=IF($B$8="Arithmetic",($B$6-$B$5)/$B$7,"")
Price ratio r (F6)=IF($B$8="Geometric",($B$6/$B$5)^(1/$B$7),"")
Buy price, grid row (B42)=IF($B$8="Arithmetic",$B$5+$F$5*($A42-1),$B$5*$F$6^($A42-1))
Order at start (D42)=IF($B42>$B$10,"Sell at "&TEXT($C42,"#,##0.00"),"Buy at "&TEXT($B42,"#,##0.00"))
Net profit per grid (F42)=(1-$B$11)*$C42/$B42-1-$B$11
Net profit per cycle, quote (H42)=$G42*($C42-$B42)-$J42
Fees per cycle (J42)=$B$11*$G42*($B42+$C42)
Quantity per grid (F16)=$B$9/($F$14*$B$10+SUMPRODUCT($K$42:$K$141,1-$N$42:$N$141,$L$42:$L$141))
Break-even grid step (F11)=(1+$B$11)/(1-$B$11)-1
Most grids at or above target (F13)=IF(((1+$B$11+N($B$13))/(1-$B$11)-1)<=0,"No limit (no fees, no target)",MAX(0,IF($B$8="Arithmetic",INT(($B$6-$B$5)*(1+((1+$B$11+N($B$13))/(1-$B$11)-1))/($B$6*((1+$B$11+N($B$13))/(1-$B$11)-1))+0.000000001),INT(LN($B$6/$B$5)/LN(1+((1+$B$11+N($B$13))/(1-$B$11)-1))+0.000000001))))
Grid bot value at end price (E29)=$C29*$A29+$D29
HODL value (G29)=$B$9*(1-$B$12)*$A29/$B$10

Fills log, grid profit (row 7): =IF($J7="Closed",$M7-$K7-$L7-$N7,""). Buy fee used: =IF(OR($J7="Open",$J7="Closed"),IF(ISNUMBER($E7),$E7,$B$4*$K7),"").

Quantity per grid = investment ÷ (sell orders × start price + sum of the buy-order prices)

Binance shows a single "Qty Per Order" for a grid, and the file uses the same quantity on every grid. The grids above the start price need coins to sell, so the bot buys them at the start at market. The rest of the money waits in buy orders.

Worked example from the sample data

Setting up the example grid

If the price leaves the range

Binance: "If the BTC price rises above 60,000 USDC or falls below 40,000 USDC, the strategy will be suspended." The scenario table moves the price one way from the start to each end price, with no round trips on the way:

End priceWhereBTC heldUSDT heldBot valueBot P/LHODL valueBot − HODL
45,000below range0.171020.007,696.04−2,308.277,436.72259.32
50,000below range0.171020.008,551.16−1,453.158,263.03288.13
54,000in range0.171020.009,235.25−769.068,924.07311.18
57,000in range0.128292,352.949,665.20−339.119,419.85245.35
60,450in range0.071305,689.8410,000.00−4.319,990.0010.00
63,000in range0.042787,470.5910,165.78161.4710,411.41−245.64
66,000in range0.0000010,248.5610,248.56244.2510,907.20−658.64
70,000above range0.0000010,248.5610,248.56244.2511,568.24−1,319.68
75,000above range0.0000010,248.5610,248.56244.2512,394.54−2,145.98

The fills log

Example fills holds 18 fictional fills of 0.01426 BTC: 15 closed cycles and 3 open buys. Row 3: bought at 60,000, sold at 61,000. Gross 0.01426 × 1,000 = 14.26; fees 0.8556 + 0.8699; grid profit 12.5345 USDT. All closed cycles: 189.99 USDT grid profit after 25.34 USDT of fees (by month: Aug 89.20, Sep 63.13, Oct 37.66). The 3 open buys cost 2,440.90 USDT, an average of 57,057 per BTC. They are not profit until they sell, and they lose value if the price keeps falling.

Risks a spreadsheet cannot show

Common mistakes

Limits

FAQ

How is profit per grid calculated?

Binance's help page gives it as a share of the buy: for a geometric grid, profit per grid = (1 − c) × r − 1 − c, where r is the price ratio between levels and c is the trading fee. For an arithmetic grid it is a range: largest at the bottom grid, (1 − c) × d ÷ lower price − 2c, and smallest at the top grid. In money, one buy/sell pair earns quantity × (sell − buy) minus the buy fee and the sell fee, which is how OKX shows it.

What is the difference between arithmetic and geometric grids?

An arithmetic grid has the same price gap between levels, for example every 1,000. A geometric grid has the same percentage gap, for example every 1.6%. With arithmetic spacing the profit per grid is higher at the bottom of the range than at the top; with geometric spacing it is the same on every grid.

How many grids should a grid bot have?

There is no right number, but fees set a ceiling. Each grid must move more than about two fees, because every cycle pays a buy fee and a sell fee: break-even step = (1 + c) ÷ (1 − c) − 1, about 0.2% at a 0.1% fee. More grids mean smaller steps, more fills and less profit per fill. The planner shows the most grids that keep each grid above a net profit target you set.

What happens when the price goes outside the grid range?

Binance says that if the price leaves the range, the strategy is suspended and resumes when the price returns. Below the range, every buy order has filled, so the bot holds only the coin and carries its loss. Above the range, every sell has filled, so the bot holds only cash and misses further gains. The scenario table shows both cases next to simply holding.

Is grid trading profitable?

Grid profit only counts completed buy/sell pairs. The total result also includes the coins the bot holds, which can lose more than the grid earns if the price falls through the range. Fees, rounding and price gaps change results further. The CFTC warns that "claims of high or guaranteed returns are red flags of fraud" and that AI technology "can't predict the future or sudden market changes." This template shows the maths; it does not predict returns.

Can I use this grid bot calculator in Google Sheets?

Yes. In Google Sheets choose File → Import → Upload and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. The file has no macros and uses functions that exist in Excel 2016+, Google Sheets and LibreOffice.

Related tools and templates

Educational template only, not investment, tax or trading advice. No exchange or bot is recommended, and no platform paid for or reviewed this page. Example data is fictional: the prices, settings and fills are made up to show the formulas and are not market data or any exchange's results. Sources: Binance Spot Grid Trading Parameters and What Is Spot Grid Trading (binance.com, binance.com); OKX (okx.com); Bybit (bybit.com); KuCoin (kucoin.com); CFTC (cftc.gov, cftc.gov); FCA (fca.org.uk). Retrieved 11 November 2026.