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.
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.
| Grid | Buy | Sell | Order at start | Step | Net / grid | Net per cycle |
|---|---|---|---|---|---|---|
| 12 | 65,000.00 | 66,000.00 | Sell at 66,000.00 | 1.538% | 1.337% | 12.39 |
| 11 | 64,000.00 | 65,000.00 | Sell at 65,000.00 | 1.562% | 1.361% | 12.42 |
| 10 | 63,000.00 | 64,000.00 | Sell at 64,000.00 | 1.587% | 1.386% | 12.45 |
| 9 | 62,000.00 | 63,000.00 | Sell at 63,000.00 | 1.613% | 1.411% | 12.48 |
| 8 | 61,000.00 | 62,000.00 | Sell at 62,000.00 | 1.639% | 1.438% | 12.51 |
| 7 | 60,000.00 | 61,000.00 | Buy at 60,000.00 | 1.667% | 1.465% | 12.53 |
| 6 | 59,000.00 | 60,000.00 | Buy at 59,000.00 | 1.695% | 1.493% | 12.56 |
| 5 | 58,000.00 | 59,000.00 | Buy at 58,000.00 | 1.724% | 1.522% | 12.59 |
| 4 | 57,000.00 | 58,000.00 | Buy at 57,000.00 | 1.754% | 1.553% | 12.62 |
| 3 | 56,000.00 | 57,000.00 | Buy at 56,000.00 | 1.786% | 1.584% | 12.65 |
| 2 | 55,000.00 | 56,000.00 | Buy at 55,000.00 | 1.818% | 1.616% | 12.68 |
| 1 | 54,000.00 | 55,000.00 | Buy at 54,000.00 | 1.852% | 1.650% | 12.71 |
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):
- Arithmetic, bottom grid: "The Maximum Profit/Grid = (1 - c) * d / Grid Lower Limit - 2c"
- Arithmetic, top grid: "The Minimum Profit/Grid = (Grid Upper Limit*(1 - c)) / (Grid Lower Limit - d) - 1 - c". Binance's own worked example divides by (450 − 10), the upper limit minus d, which is the buy price of the top grid. The spreadsheet uses the worked example's version.
- Geometric, every grid: "The Profit/Grid = (1 - c) * r - 1 - c"
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
| Tab | What you type | What it calculates |
|---|---|---|
| Start here | Nothing | Steps, formulas in plain words, colour key, limits, sources, disclaimer |
| Summary | Nothing | Your 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 planner | Pair, 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 prices | Status 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 log | Fee 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 checks | Nothing (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 fills | Already filled with fictional data | The same tabs with every result visible: 12 grids, 9 end prices, 18 fills |
How to use it
- 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.
- 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.
- Type end prices in A29:A38: one below the range, a few inside, one above. Compare the bot's value with HODL.
- 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.
- 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.
- 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).
| Field | Formula |
|---|---|
| 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
- Levels: d = (66,000 − 54,000) ÷ 12 = 1,000. Levels 54,000, 55,000 … 66,000.
- Orders at start: the price is 60,450. Grids whose buy level is above it (61,000 to 65,000) hold sells at 62,000 to 66,000: 5 sells. The other 7 grids hold buys at 54,000 to 60,000.
- Quantity = 10,000 ÷ (5 × 60,450 + 399,000) = 0.01426025 BTC per grid. The start buy is 0.07130125 BTC (4,310.16 USDT, fee 4.31); 5,689.84 USDT waits in buy orders.
- Bottom grid: (1 − 0.001) × 55,000 ÷ 54,000 − 1 − 0.001 = 1.6500%, or 0.01426025 × 1,000 − fees 1.5544 = 12.7059 USDT per cycle.
- Top grid: (1 − 0.001) × 66,000 ÷ 65,000 − 1 − 0.001 = 1.3369%, 12.3922 USDT per cycle. Same price gap, higher price, smaller %.
- Most grids: with a 0.5% target net profit per grid, this range fits up to 26 grids before the top grid drops below 0.5%.
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 price | Where | BTC held | USDT held | Bot value | Bot P/L | HODL value | Bot − HODL |
|---|---|---|---|---|---|---|---|
| 45,000 | below range | 0.17102 | 0.00 | 7,696.04 | −2,308.27 | 7,436.72 | 259.32 |
| 50,000 | below range | 0.17102 | 0.00 | 8,551.16 | −1,453.15 | 8,263.03 | 288.13 |
| 54,000 | in range | 0.17102 | 0.00 | 9,235.25 | −769.06 | 8,924.07 | 311.18 |
| 57,000 | in range | 0.12829 | 2,352.94 | 9,665.20 | −339.11 | 9,419.85 | 245.35 |
| 60,450 | in range | 0.07130 | 5,689.84 | 10,000.00 | −4.31 | 9,990.00 | 10.00 |
| 63,000 | in range | 0.04278 | 7,470.59 | 10,165.78 | 161.47 | 10,411.41 | −245.64 |
| 66,000 | in range | 0.00000 | 10,248.56 | 10,248.56 | 244.25 | 10,907.20 | −658.64 |
| 70,000 | above range | 0.00000 | 10,248.56 | 10,248.56 | 244.25 | 11,568.24 | −1,319.68 |
| 75,000 | above range | 0.00000 | 10,248.56 | 10,248.56 | 244.25 | 12,394.54 | −2,145.98 |
- Below the range (45,000): every buy has filled. The bot holds only BTC and has lost 2,308.27 USDT. It loses less than holding (259.32 better), because it bought part of the coins lower. It still takes 184 completed cycles at the average 12.55 USDT to earn the loss back.
- Above the range (66,000 and higher): every sell has filled. The bot holds 10,248.56 USDT in cash and stops gaining. At 75,000, holding is worth 2,145.98 USDT more.
- A real path goes up and down, so the bot also collects grid profit on the way. The table shows the inventory effect alone; add your expected cycles × profit per cycle to it.
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
- Grid profit is not total profit. Binance defines "Total Profit" as "Grid Profit + Unrealized P&L". A fall through the range turns the grid into a pile of coins bought on the way down.
- Bots keep trading in a crash. Binance's grid guide warns: "Execution may even apply in situations of a rapid collapse or strong rise of a digital asset." It also states "Crypto trading carries a substantial risk and the possibility of both significant profits and losses."
- Volatility. The CFTC: "Uncertainty, changes in sentiment, economic conditions, or even a social media comment, can send market values rising or falling sharply" (CFTC, 14 Digital Asset Risks to Remember). The UK FCA warns that people who invest in high-return cryptoasset products "should be prepared to lose all their money" (FCA).
- Bot marketing. The CFTC's customer advisory "AI Won’t Turn Trading Bots into Money Machines" says "AI technology can't predict the future or sudden market changes." The CFTC's release on it adds that "claims of high or guaranteed returns are red flags of fraud" (CFTC release 8854-24). A grid's backtest or a high "APR" from a few calm days says nothing about the next month.
- Platform and tax. Your coins and cash sit on the exchange while the bot runs. Each sell can be a taxable disposal; the crypto tax spreadsheet can track them. Ask a tax professional.
Common mistakes
- Too many grids. A tiny step looks busy but fees eat it. Check the fee check and the break-even step before you start.
- Counting grid profit as the result. Add the value of the coins and cash the bot holds. The Summary's open buys and the scenario table show that part.
- Using the taker fee for grid orders, or forgetting fee discounts. Type the fee you actually pay on limit orders. A wrong fee changes the break-even step.
- A range set on one week's chart. The price can leave it within hours. Test end prices outside the range in the scenario table.
- Comparing with HODL only above the range. A grid lags holding in a rally and loses less in a fall within or just below the range; it is a different trade, not a better one.
- Typing gross fills. If the exchange took the buy fee in the coin, log the quantity that was actually sold, and type the fee in quote terms.
Limits
- Spot grids only, long side. Futures grids add leverage, funding and liquidation, which this file does not model.
- No live prices or exchange connection. Exchanges round levels and quantities, reserve coin for fees, and may set orders differently; their preview wins.
- The scenario is a one-way move with no round trips; it shows the holdings effect, not a forecast. Slippage and price gaps are ignored.
- Recalculation was tested in LibreOffice; the file uses only functions that exist in Excel 2016+ and Google Sheets.
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
- ROI calculatorReturn on the bot's investment
- Drawdown calculatorHow deep a fall through the range goes
- Crypto DCA bot trackerSafety orders and deal log
- Trading cost spreadsheetFees and their drag
- Crypto portfolio trackerHoldings and P/L
- Crypto trading journalManual trades and notes
- Backtesting spreadsheetTest rules on past data
- All templatesFree spreadsheets
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.