1. Calculators
  2. Quant & Algorithmic Trading

VWAP & TWAP Execution Calculator

Measure and plan executions against the three standard benchmarks. Calculate the VWAP of a session and how your fills compare with it, split an order into a TWAP schedule of child orders, and measure implementation shortfall against the arrival price.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

Enter the market’s volume and price by time bar to get the VWAP, and your fills to see how your average price compares with it.

What to compare
Market bars (time, typical price, volume)
TimePriceVolume shares
$
$
$
$
$
$
$
$
$
$
$
$
$
Your fills (time, price, shares)
TimeFill priceShares shares
$
$
$
$
$
Your order was a

Results

Slippage against VWAP+2.0 bpsYou paid more than the market average: a cost
Market VWAP
$50.2631
Your average fill price
$50.2730
15,000 shares in 5 fills
Slippage in dollars
$148.39
Positive = cost against VWAP
Your share of market volume
0.54%
Assumes your fills are inside the market volume
TWAP of the bars
$50.2562
Simple average of 13 bar prices
Market volume
2,800,000 shares

Your purchases averaged $50.2730 against a market VWAP of $50.2631: +2.0 bps, $148.39 worse than trading every share at VWAP. Compare over the window you were actually trading if the order did not span the whole session.

Bar prices and the running VWAP

Bar priceRunning VWAP
$50$50$50$50$50$519:3010:3011:3012:3013:3014:3015:30Your average $50.2730

The running VWAP at each bar uses all volume up to and including that bar; the last point is the session VWAP.

Volume profile

BarPriceVolume% of volumeCumulativeRunning VWAP
9:30$50.12410,00014.6%14.6%$50.1200
10:00$50.05265,0009.5%24.1%$50.0925
10:30$50.18210,0007.5%31.6%$50.1133
11:00$50.24180,0006.4%38.0%$50.1347
11:30$50.20150,0005.4%43.4%$50.1428
12:00$50.15120,0004.3%47.7%$50.1434
12:30$50.22115,0004.1%51.8%$50.1495
13:00$50.30130,0004.6%56.4%$50.1619
13:30$50.28145,0005.2%61.6%$50.1718
14:00$50.35170,0006.1%67.7%$50.1878
14:30$50.41205,0007.3%75.0%$50.2095
15:00$50.38260,0009.3%84.3%$50.2283
15:30$50.45440,00015.7%100.0%$50.2631

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the VWAP and TWAP calculator

The page has three tools.

VWAP. Enter the market’s bars (a time label, the typical price of the bar and its volume), for example 30-minute or 5-minute bars from your trading platform. Choose Market bars and my fills to add your own executions (time, price and shares) and the side of your order; the calculator then compares your average price with the VWAP.

TWAP. Enter the order quantity, the start and end times in minutes after the 9:30 ET open, and the slice interval. Optionally paste one price per interval to get the TWAP of those prices and, with exactly one price per slice, the average price of the schedule.

Execution benchmark. Enter the side, the arrival price, your average fill, the shares filled and the fees. The interval VWAP and any unfilled shares are optional.

The formulas

VWAP = Σ (Pi × Vi) ÷ Σ Vi
TWAP = (P1 + P2 + … + Pn) ÷ nPi is the price of bar or trade i and Vi its volume. Your own average fill price is the same weighted average over your fills, weighted by shares filled.
Slippage vs VWAP = s × (average fill − VWAP) ÷ VWAPs = +1 for a buy and −1 for a sell, so a positive figure is always a cost. Multiply by 10,000 for basis points and by (average fill − VWAP) × shares for dollars.

The TWAP schedule keeps the cumulative quantity proportional to elapsed time. The target at the end of slice k is Q × (tk − start) ÷ (end − start), rounded to whole shares, and each child order is the difference between successive targets. The children always add up to the order exactly, and a shorter final slice gets proportionally fewer shares.

Implementation shortfall, a measure introduced by André Perold in 1988, compares the real trade with a paper trade of the full intended quantity at the arrival price:

Shortfall = s × (fill − arrival) × filled + fees + s × (Pend − arrival) × unfilled
Shortfall (bps) = Shortfall ÷ (intended shares × arrival) × 10,000Pend is the price when the unfilled remainder was cancelled. The three terms are the execution cost, the explicit fees and the opportunity cost.

A worked example

VWAP. The example session of a fictional stock has 13 half-hour bars and 2,800,000 shares of volume. The VWAP is $50.2631 and the TWAP of the bars is $50.2562. A buy order of 15,000 shares filled in five pieces at an average of $50.2730: +2.0 bps against VWAP, a cost of $148.39. The order was 0.54% of the day’s volume, small enough not to distort the benchmark.

TWAP. Working 20,000 shares over the whole session (0 min to 390 min after the open) in slices of 30 minutes gives 13 child orders of 1,538 to 1,539 shares, a constant 51.3 shares a minute. With one price per slice, the schedule’s average price is $50.2546, practically the plain TWAP of $50.2546, because every slice is almost the same size.

Implementation shortfall. You decided to buy at an arrival price of $50 and filled 10,000 shares at an average of $50.08, paying $30 in fees. The shortfall is +16.6 bps, $830.00. The interval VWAP of $50.05 splits the price cost into +10.0 bps of market drift from arrival to VWAP and +6.0 bps of execution against VWAP.

VWAP, TWAP or arrival price?

Benchmark What it measures Suits Weakness
VWAP Your price against the average share traded Orders that follow the market’s volume over a day Large orders move the VWAP themselves; ignores drift before you started
TWAP Your price against the average over time Thin or erratic volume, or when the volume profile is unknown Trades too much in quiet periods and too little in busy ones
Arrival price The full cost of turning a decision into a position Alpha-driven trades where the price may run away Noisy: market drift dominates on single orders

VWAP is one of the most common benchmarks for agency execution because it is easy to compute. Its weakness is that it shares the market’s direction: if prices rise all day, a buyer can beat VWAP and still pay far more than the price at the moment of the decision. Arrival price captures that cost, which is why portfolio managers who trade on short-lived signals prefer implementation shortfall. The example shows the gap: execution against VWAP cost only +6.0 bps, while drift during the order cost +10.0 bps.

Common mistakes

  • Using the whole-day VWAP for an order that worked only part of the day. Compare with the VWAP of the interval when you were trading, or the benchmark rewards or punishes moves you did not take part in.
  • Ignoring your own share of volume. When your fills are a large part of the market volume, they pull the VWAP toward your price and make the result look better than it was. The calculator warns above 20%.
  • Leaving out unfilled shares. If a buy order was cancelled because the price ran away, the missed shares are a real cost. With 2,000 shares unfilled and the price at $50.30 on cancellation, the example shortfall rises from +16.6 bps to +23.8 bps.
  • Judging a single order. Shortfall on one order is dominated by random market moves; average it over many orders before judging a broker or algorithm.
  • Rounding TWAP slices carelessly. Rounding every child order down leaves shares unexecuted at the end; rounding the cumulative target, as here, keeps the schedule exact. With 25,000 shares over 14 slices of 20 minutes, most children are 1,852 shares and the shorter last slice gets 926.

What this calculator does not include

  • Bar prices are approximations. A bar’s typical price stands in for all the trades inside it; the true VWAP uses every trade. Finer bars give a closer figure.
  • No volume forecast. A real VWAP algorithm predicts the day’s volume curve; this page measures the VWAP after the fact. To estimate costs before trading, use the market impact calculator.
  • Times are minutes after a 9:30 ET open on a regular US session; early closes and other markets need their own offsets.
  • Delay cost between the investment decision and the order’s arrival at the desk is not separated; enter the decision price as the arrival price to include it.

Frequently asked questions

How is VWAP calculated?
Multiply each trade's or bar's price by its volume, add the results and divide by the total volume: VWAP = Σ(price × volume) ÷ Σ volume. For the example session the VWAP is $50.2631, against a simple average of the bar prices (the TWAP) of $50.2562, because the busiest bars traded at higher prices.
What is the difference between VWAP and TWAP?
VWAP weights each price by the volume traded at it, so it reflects where most shares actually changed hands. TWAP weights every time interval equally, regardless of volume. A VWAP algorithm trades more when the market is busy, typically near the open and close; a TWAP algorithm trades at a constant rate through the window.
Is it good to buy below VWAP?
For a buy order, an average price below the VWAP of the same period means you paid less than the average market participant, which is a saving against that benchmark. In the example the purchases averaged $50.2730, above the VWAP of $50.2631, a cost of +2.0 bps. Beating VWAP is not the same as a good trade: if the price kept rising after you were done, waiting for VWAP may have cost more than it saved.
What is implementation shortfall?
It is the difference between the result of a paper trade at the price when you decided to trade (the arrival price) and the real execution, including fees and the cost of any shares you did not get. It captures the whole cost of turning a decision into a position. In the example it is +16.6 bps on 10,000 shares.
How big should TWAP slices be?
Small enough that each child order is a modest share of the volume in its interval, and frequent enough that the schedule tracks time closely. The example splits 20,000 shares into 13 child orders of 1,538 to 1,539 shares.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.