Grid Spacing / Number of Grids Calculator
The two numbers people agonize over when setting up a grid: how many grids to split the range into, and how far apart to space them. They're two sides of the same coin — fix the range and the grid count and the spacing is fixed too, and it works the other way round as well. Below we convert between them for a geometric grid, and warn you when the spacing gets thin enough for fees to eat it. What you get is arithmetic, not a promise of profit.
How it works: this uses a geometric grid, where each pair of adjacent grids sits a fixed percentage apart (not a fixed dollar gap). Spacing from grid count: spacing% = ((upper ÷ lower) to the power of 1/N − 1) × 100. Grid count from a target spacing: grids = round( ln(upper ÷ lower) ÷ ln(1 + spacing%) ). A rule of thumb: each grid's spacing should be larger than a round trip of fees (about 2 × the one-way rate), otherwise the price gap on a single grid doesn't even cover the fee and you bleed out the more it trades. This tool runs entirely in your browser — nothing is sent, uploaded, or stored.
How this tool does the math
In a geometric grid the adjacent grids are laid out at the same ratio, so walking N grids from the lower bound up to the upper bound is the same as taking the "upper divided by lower" total multiple and raising it to the power of 1/N. That gives the step ratio for a single grid; subtract 1 and multiply by 100 and you have the spacing percentage. To go the other way, take the log of "upper divided by lower", divide it by the log of "1 plus the spacing", and you get roughly how many grids you need — rounded, because the grid count has to be a whole number.
The price-step preview just multiplies the lower bound up a few grids at that ratio so you can see where the first few grids land. It isn't your actual order price — Binance rounds to each pair's minimum price tick.
How to turn this number into a decision
Start with the result's comparison between spacing and the "round-trip fee floor". If the per-grid spacing is only a hair above the fees, you're squeezed hard between the price gap and the cost, and one wrong move means you worked for nothing. Get the spacing clearly above the round-trip fee and you finally have real room for profit. Once the spacing and grid count are set, take them over to the grid profit range simulator to estimate what a single grid can earn. Enter the fee rate your account actually pays — see how fees are calculated.
Nothing here is investment advice. Reference: Binance Help Center (spot grid trading). Features and precision follow whatever Binance's official page shows at the time.