PnLLiquidationBreak-evenTarget ExitPosition SizerFunding CostAverage EntryScenarioMax LeverageFunding ArbHedge RatioCompound FundingCrypto ProfitCrypto DCAAverage Buy PriceTarget Sell PricePresent ValueFuture ValueNPVIRRCAGRAPY / APRBond PricePre-Trade CheckRisk / RewardPortfolio RiskCarry TradeDCA EntryAverage Down?Scale-OutFunding BreakevenRug Pull CheckerSwap Price ImpactBonding CurveMarket Cap CalculatorWallet CheckerImpermanent Loss CalculatorProbability CalculatorMarket-Implied OddsKelly CalculatorUp/Down Fair ValueSpread CheckerArbitrage CheckerBlack-Scholes CalculatorOptions Payoff CalculatorStraddle & Strangle CalculatorCovered Call & Protective Put CalculatorImplied Volatility CalculatorSpread & Iron Condor CalculatorBarrier Touch CalculatorAmerican Option CalculatorOption Greeks CalculatorOptions Profit CalculatorOptions Strategy PickerMax Pain CalculatorCash-Secured Put CalculatorPip Value CalculatorMargin Level CalculatorBreakeven CalculatorPnL CalculatorRisk/Reward CalculatorScenario CalculatorAverage Entry CalculatorMargin Required CalculatorCurrency ConverterPosition Size CalculatorSwap / Rollover CalculatorCorrelation CalculatorFibonacci Retracement CalculatorOpen AnalysisSession StructureValue MigrationBreakout AcceptanceVaR / CVaR CalculatorSharpe Ratio CalculatorHurst Exponent CalculatorCointegration TestPortfolio TearsheetGARCH Volatility CalculatorRisk Parity CalculatorDeflated Sharpe Ratio CalculatorKelly Growth-Security FrontierReturn Unsmoothing CalculatorEVT Tail Risk CalculatorMonte Carlo Simulation CalculatorEvent Study CalculatorOrder-Book Impact CalculatorDocs

Order-Book Impact & Capacity Calculator

RISK/STATS · ORDER-BOOK IMPACT · ADVANCED

Walk a supplied order book for a target notional (VWAP and price impact in bps), or solve for the max notional that stays inside an impact budget via bisection.

One level per line, any order. Size is in base-asset units (e.g. BTC).

Paste bid/ask levels to walk the book

Walking the book

A single displayed price (last trade, mid, top of book) doesn't tell you what YOU will actually pay for a given size: a large order consumes multiple price levels, each one worse than the last. This calculator walks the actual order book, level by level, until your target size is filled, and reports the volume-weighted average price (VWAP) you'd really get.

  • mid = (best bid + best ask) / 2
  • impact (bps) = (VWAP / mid − 1) × 10,000, buying
  • impact (bps) = (1 − VWAP / mid) × 10,000, selling

Both reduce to a positive "cost in bps" regardless of side: how much worse your average fill is than the price you saw right before clicking.

Capacity mode

Flip the question around: instead of "what's my impact at this size," ask "how large can I trade before impact exceeds my budget?" This calculator solves for that maximum notional via bisection. If the entire order book you supplied is still cheaper than your budget, the result is flagged as a lower bound: real market capacity could be higher, this calculator just can't see past what you gave it.

Where to go next

Once you know your real entry cost, size the position around your actual risk budget with the position size calculator, or check the full trade setup with Pre-Trade Check.

Use via API or MCP

This calculation is available as a deterministic API call for bots and AI agents.

EMBED ON YOUR SITE

<!-- TradingCalc widget: please keep the link below exactly as given (address and words) -->
<div class="tradingcalc-widget" data-widget="orderbook-impact-calculator"><a href="https://tradingcalc.io/orderbook-impact-calculator?utm_source=embed&amp;utm_medium=backlink&amp;utm_campaign=orderbook-impact-calculator">Order-Book Impact &amp; Capacity Calculator by TradingCalc.io</a></div>
<script async src="https://tradingcalc.io/embed.js"></script>

Free, no signup. Keep the text link in the code exactly as given, with its address and its words: it is the attribution and it points visitors to the full calculator. Change colors, size and start values or read the installation guide and FAQ.

FAQ
Q.01

What assumptions and edge cases does this calculator use?

Give at least one bid and one ask level (price and size in base units, in any order), the side, and exactly one of a trade size in dollars or an impact budget in basis points. If the book is too thin for the size, you get no price instead of a guess. Not covered: a book that moves while you trade, hidden liquidity, your own fees, and depth you did not paste in.

Q.02

What is "walking the book"?

Consuming order-book levels one at a time, best price first, until a target trade size is filled. Because each successive level is priced worse than the last, the volume-weighted average price (VWAP) you actually pay is worse than the top-of-book price for any size beyond what the best level alone can fill.

Q.03

Why is impact measured from the mid price, not the price I clicked at?

The mid ((best bid + best ask) / 2) is the price a trader actually sees on their screen right before submitting an order - the fairest available reference point. Measuring against a price computed with hindsight (e.g. after the fill) would understate the real cost of the trade.

Q.04

Why is impact always positive, whether I'm buying or selling?

It represents cost, not direction. Buying walks up the ask ladder (VWAP above mid); selling walks down the bid ladder (VWAP below mid). Both formulas flip sign so the result reads the same way: a positive number is always "how much worse than mid," regardless of side.

Q.05

What does "capacity is a lower bound" mean?

In budget mode, if the entire order book you supplied is still cheaper than your impact budget, the calculator has run out of book to walk - it reports the full loaded depth as the answer, but flags it as a lower bound, since the real market likely has more depth beyond what you pasted in.

Q.06

What units should size be in?

Base-asset units (e.g. BTC, not USD), matching how order books are normally displayed on an exchange. The calculator converts each level to notional internally (price times size) as it walks the book.