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.
Calculate session VWAP and audit fills
Choose a market window, track its volume-weighted price, and compare your fills 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.
The upper axis shows price minus final VWAP. The largest volume bar is 400 units.
Review market rows and export exact CSV
| Time | Volume | Turnover | Running VWAP |
|---|---|---|---|
| 09:31:00 | 400 | 40,400 | 101 |
| 09:32:00 | 300 | 29,850 | 100.35714286 |
| 09:33:00 | 200 | 20,400 | 100.72222222 |
| Time | Price | Size | Fee |
|---|---|---|---|
| 09:31:00 | 101.2 | 60 | 0.6 |
| 09:32:00 | 100.6 | 40 | 0.4 |
| 09:33:00 | 100.25 | 20 | 0.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
- Choose trade prints or price bars and enter the start and end times.
- 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.
- Select buy or sell and add fills when you want to compare the execution with the final window benchmark.
- 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
Weighted Average Calculator
Calculate a weighted average from values that do not all contribute equally.
Stock Average Cost & Additional-Buy Calculator
Calculate stock average cost across purchase lots and fees. Explore an additional-buy budget, minimum shares for a target average and buy-versus-cash price scenarios.
Time-Weighted Return & Modified Dietz Calculator
Link portfolio returns around dated deposits and withdrawals. Compare a Modified Dietz estimate, plot the growth index, and audit investment gain.
