Bitstairs
OKX AFFILIATE PARTNER · independent partner site, not an official OKX website · guides re-checked against OKX screens
Tools · T-04

Grid spacing calculator

Last checked: July 2026

Line illustration of a price chart with horizontal grid lines evenly spaced between a top and bottom bound

Set a range and a grid count — this works out the spacing between grids, the rough gap % at each level, and how much capital the whole setup needs.

grid spacing (equal price gap between adjacent grid lines)
gap % near the bottom of the range
gap % near the top of the range
total capital needed

This is an arithmetic grid — equal price gaps, not equal percentage gaps. That means the same dollar spacing represents a bigger percentage move near the bottom of your range than near the top, which is why the gap % is shown as a low-end and high-end figure instead of one flat number. The gap % is the theoretical gross profit on one grid cycle, before fees — it assumes price oscillates and fills both a buy and a sell at adjacent levels, which is the entire premise a grid strategy depends on.

A grid is not a guaranteed-profit strategy. It works when price oscillates inside your range. A strong one-directional move — up through your upper bound or down through your lower bound — leaves you holding an unbalanced position outside the range, with no more grid activity happening, until price comes back. Size the range and per-grid amount as money you can leave alone through that scenario.
OKAT52 Setting up a grid bot? Registering with this code still applies up to 20% less in trading fees* to every grid fill. Join OKX →
What's the difference between arithmetic and geometric grid spacing?
Arithmetic spacing (what this calculator uses) keeps the dollar gap between grid lines constant. Geometric spacing keeps the percentage gap constant instead, so the dollar gap grows as price rises. OKX's grid tool typically lets you pick either mode — check which one your actual bot is set to before comparing numbers.
Why does the gap % change across the range?
Because the spacing here is a fixed dollar amount, that same amount is a larger percentage of a lower price than a higher one. A $1,000 gap on a $25,000 base is 4%; the same $1,000 gap on a $34,000 base is under 3%. That's inherent to arithmetic grids, not a calculation error.
Common mistake: treating the gap % as guaranteed profit
The gap % shown is gross, before trading fees, and only realized if price actually oscillates through that pair of grid levels — both a buy and a later sell. A grid that never gets filled on both sides at a given level earns nothing there, and a breakout past your range stops new fills entirely on that side.
How do I pick the number of grids?
More grids means smaller spacing and more frequent, smaller fills; fewer grids means wider spacing and fewer, larger fills. There's no universally correct number — it depends on how much the asset typically oscillates within your chosen range and how much per-fill profit still clears your trading fees after the 20% rebate, if applicable.
×Bitstairs

Bitstairs is an independent OKX affiliate partner that maintains sign-up and troubleshooting guides in English, Romanian and Chinese. This is not an official OKX website — trading rules are whatever OKX's own pages say.