VWAP Calculator & Execution Audit

Paste market rows and set an inclusive time window. Plot cumulative VWAP and volume. Add optional fills to measure signed price difference, fees and basis-point cost against the recorded window benchmark.

Historical execution worksheet

Calculate session VWAP and audit fills

The fills cost more than the benchmark after fees.
Edit session window and execution data

Enter trade time, price and quantity.

Enter fill time, price, quantity, and optional total fee. Use a negative fee for a rebate.

Window VWAP

100.72222222

900 units from 09:31:00 through 09:33:00.

Recorded trade prices × quantities

Average fill price

100.84166667

120 units · buy side

Total signed fees +1.2.

Cost versus benchmark

+12.85162714 bp

Before fees +14.33333333 · after fees +15.53333333.

Positive cost is unfavorable for either side.

VWAP, fills and volume through the window

The line shows running VWAP relative to its final value. Diamonds mark fills and bars show market volume.

Running price difference and market volumeThe window ends at a benchmark of 100.72222222 on 900 entered units. The lower panel shows volume by timestamp.0.560-0.56Market volume09:3109:33Session time

The upper axis shows price minus final VWAP. The largest volume bar is 400 units.

Review market rows and export exact CSV
Market prints or bars grouped by timestamp
TimeVolumeTurnoverRunning VWAP
09:31:0040040,400101
09:32:0030029,850100.35714286
09:33:0020020,400100.72222222
In-window fills and signed fees
TimePriceSizeFee
09:31:00101.2600.6
09:32:00100.6400.4
09:33:00100.25200.2

Outside the window · 2 market rows, 1 fill.

Use one instrument, currency and session timezone. Both window endpoints are included.

How to use this calculator

  1. Choose trade prints or price bars and enter the start and end times.
  2. Paste market rows as CSV or TSV. Use a trade's time, price and quantity, or a bar's time, high, low, close and volume.
  3. Select buy or sell and add fills when you want to compare the execution with the final window benchmark.
  4. Read the cumulative chart and open the market and fill ledgers for the exact CSV.

The Formula

The mathematical logic powering this calculation is:

Window VWAP is the sum of market price × quantity divided by total entered market volume. In trade-print mode, use each recorded price and quantity. In price-bar mode, use (high + low + close)/3 as the representative price, then weight it by the bar's volume. That mode estimates VWAP from the bars. The transaction prices inside a bar are unavailable from those fields.

Select a single-instrument window within one session using HH:MM or HH:MM:SS. Include both endpoints and count same-time rows together in the market series. Bars enter according to the timestamps you supply, without splitting their volume. A zero-volume row contributes neither turnover nor volume. A window needs positive market volume. Use the same currency and timezone across all rows.

For the optional fill audit, average fill price is the sum of fill price × size divided by total fill size. Compare every in-window fill with the final window VWAP. A buy's before-fee cost is total fill value minus VWAP × fill size. A sell's cost reverses that difference. Add entered total fees to either side and enter a rebate as a negative fee. Basis points equal 10,000 × signed after-fee cost divided by VWAP × total fill size. Positive cost is unfavorable on either side.

Use up to 72 market rows and 48 fill rows. Prices are positive through 1,000,000. Market volumes range from 0 through 1 billion and fill sizes are positive through 1 billion. Prices and quantities accept up to six decimals. Signed fee amounts allow up to four decimals and absolute values through 1,000,000. The sums and comparisons use exact fractions. The result reflects the supplied market coverage and fills.

Worked Example

If you input:

  • Window: 09:31:00 through 09:33:00
  • Market: 900 units and 90,650 in turnover
  • Buy fills: 120 units at a 100.84166667 weighted average
  • Fees: 1.20 total

Result:

Window VWAP is 100.72222222. The buy fills cost 14.33333333 more than the benchmark before fees and 15.53333333 more after fees, equivalent to 12.85162714 basis points.

Frequently Asked Questions

How do I calculate VWAP from trades?

Multiply each trade price by its size, add those products and divide by the total traded size in the time window.

Can I calculate VWAP from high, low, close and volume?

You can estimate it by weighting each bar’s typical price by volume. The typical price is its high, low and close averaged together. The result depends on bar size and can differ from the trade-print calculation.

What does positive VWAP cost mean on a sell?

Selling below the reference price gives positive before-fee cost, as it reduces proceeds. Fees raise cost and rebates reduce it.

Can I use the VWAP calculator without any fills?

Yes. Leave the fill rows empty to calculate the benchmark, volume and running window chart.

What happens to trades with the same timestamp?

Their volumes and turnover are combined into one recorded point. Each entered amount still contributes to the sums.

Similar Calculators