Skip to main content

Quant Analytics: from scratch to pro · Microstructure, execution and costs · Advanced

Execution: TWAP, VWAP and implementation shortfall

Getting a large order done is a trade-off between paying impact by rushing and carrying price risk by waiting. Implementation shortfall measures the full cost against the decision price, and simple schedules such as TWAP and VWAP are the usual way to spread an order.

4 min read Reviewed Revision 1

In this lesson

  • Compute implementation shortfall and split it into execution, opportunity and fee components
  • Compute TWAP and VWAP and say what each benchmark misses
  • Explain the trade-off between impact cost and price risk in the Almgren-Chriss framework
  • Choose a benchmark that matches the question being asked

Read first: Slippage and market impact: the square-root rule

Selling 100,000 shares: expected cost and risk against horizon

  • expected impact cost
  • risk (1 standard deviation)
0 50000 100000 150000 200000 123456810 Days to complete the sale
Currency units. Computed from the model formulas with illustrative parameters (linear temporary impact of 5e-6 per share per share-a-day, price volatility of 1.00 a day), not from market data.

Worked numbers

Each result is recomputed from the formula shown.

WhatFormulaResult
cost of the filled shares6000 * 50.10 + 3000 * 50.20451,200
average fill pricefill_cost / 900050.1333
execution cost9000 * (avg_fill - 50.00)1,200
opportunity cost on unfilled shares1000 * (50.50 - 50.00)500
fees at 0.01 a share9000 * 0.0190
implementation shortfallexec_cost + opp_cost + fees1,790
shortfall in basis points of the paper tradeshortfall / (10000 * 50.00) * 1000035.8 basis points
paper gain at 50.5010000 * (50.50 - 50.00)5,000
actual gain after fees9000 * 50.50 - fill_cost - fees3,210
TWAP of five intervals(50.10 + 50.15 + 50.30 + 50.20 + 50.25) / 550.20
VWAP of five intervals(50.10 * 100 + 50.15 * 200 + 50.30 * 400 + 50.20 * 200 + 50.25 * 100) / 100050.225
TWAP below VWAP in basis points(vwap - twap) / vwap * 100004.98 basis points
expected impact cost, one day5e-6 * 100000 * 100000 / 150,000
expected impact cost, five days5e-6 * 100000 * 100000 / 510,000
price-risk standard deviation, one day1.00 * 100000 * sqrt(1 / 3)57,735
price-risk standard deviation, five days1.00 * 100000 * sqrt(5 / 3)129,099

Check yourself

A decision to buy 10,000 shares at 50.00 fills 9,000 at an average of 50.1333. What is the execution cost?

9,000 x (50.1333 - 50.00) = 1,200. This is the cost on the shares that filled.

The remaining 1,000 shares were never bought and the price ended at 50.50. What is the opportunity cost?

1,000 x (50.50 - 50.00) = 500. It is the gain missed on the unfilled part. It is a cost when the price moves in the direction of the trade.

Why can an order beat VWAP and still have a large implementation shortfall?

VWAP is the average price of the day. If the market has already moved away from the decision price before the order starts, even a perfect VWAP fill carries a large shortfall.

In a linear-impact model, selling over five days instead of one cuts expected impact cost by what factor, and what grows?

Expected cost is eta x X^2 / T, so it falls by a factor of 5. The risk of price moves while holding the unsold part grows, here by sqrt(5 / 1) = 2.24 times.

Key terms

Implementation shortfallVWAPTWAPMarket impact

Sources

  • The Implementation Shortfall: Paper versus Reality. The Journal of Portfolio Management 14(3), 4-9 (André F. Perold), 1988. Accessed 9 Nov 2026
  • Optimal execution of portfolio transactions. Journal of Risk 3(2), 5-39 (Robert Almgren, Neil Chriss), 2000. Accessed 9 Nov 2026
  • Trades, Quotes and Prices: Financial Markets Under the Microscope. Cambridge University Press (Jean-Philippe Bouchaud, Julius Bonart, Jonathan Donier, Martin Gould), 2018. Accessed 9 Nov 2026
  • Trading and Exchanges: Market Microstructure for Practitioners. Oxford University Press (Larry Harris), 2003. Accessed 9 Nov 2026

Informational content. Not investment advice.