SpreadAtlas

Grid trading fee calculator: how much of each grid step fees eat

A grid bot earns a small gap on each buy-sell pair, and pays a fee on both legs. Enter the range, the number of grids and the fee to see what is left per cycle.

Try:

—

Grid spacing (price)
—
Grid spacing (% of price)
—
Fees for one buy and one sell
—
Net profit per cycle
—
Money per grid
—
Profit per completed cycle on that amount
—
Spacing at which fees use up the gap (approx.)
—

Calculations run in your browser. Nothing you type is sent or stored. Results are estimates for information only, not investment advice.

Advertisement

How it works

A grid bot places buy orders below the price and sell orders above it, at equal steps. When the price falls through a step, it buys. When it rises back, it sells one step higher, and the gap is the profit. Each pair pays a fee on the buy and a fee on the sell.

Grid spacing % = (upper − lower) ÷ grids ÷ mid price × 100

Net per cycle ≈ spacing % − fee % × (1 + (mid + step) ÷ mid)

Worked example

A range of 90 to 110 with 20 grids has a spacing of 1, which is 1% at a mid price of 100. A buy and a sell at a 0.1% fee cost about 0.201%, so a completed cycle nets 0.799%. With 1,000 split over 20 grids, each grid holds 50 and earns about 0.40 per completed cycle. With 100 grids the spacing falls to 0.2%, which is slightly less than the fees, so each cycle loses a little.

More grids is not better

Tighter grids complete more often but earn less each time, and fees do not shrink with the spacing. The profit also assumes the price stays inside the range; if it leaves, the bot holds a position at a loss or sits idle. For the wider question of whether bots can cover their costs, see the bot vs. fees calculator.

Questions

Do grid bots always make money?

In a range-bound market they collect the gaps. In a strong trend they either hold a losing position or stop earning. Fees reduce the profit in both cases.

How should I choose the number of grids?

Keep the spacing several times larger than the round-trip fee. The calculator shows the net per cycle; if it is a small fraction of the spacing, use fewer grids.

Does this include the spread?

No. Limit orders in a grid usually avoid the spread, but a fill can be worse than the grid price in a fast market.

More calculators