VWAP: Formula, Worked Calculation and How Day Traders Use It

VWAP is the volume-weighted average price: total dollars traded divided by total shares or contracts traded since the start of the session. On the eight hypothetical trades below it comes to 100.3194, below the 100.35 simple average of the prices, because the biggest trade was done at a lower price.

What VWAP is and the formula

VWAP stands for volume-weighted average price. It is the average price at which an instrument traded during a period, with each trade counted in proportion to its size. A 400-share trade moves it four times as much as a 100-share trade.

The formula is VWAP = sum of (price × volume) ÷ sum of volume, accumulated from the start of the session. Charting platforms usually compute it from bars rather than individual trades, using each bar's typical price, (high + low + close) ÷ 3, in place of the trade price. That is an approximation of the tick-by-tick figure, so two platforms can differ slightly.

Because it is a running total from the open, VWAP moves a lot early in the day and barely at all late in the day. By the afternoon, a single new trade adds only a small fraction of the volume already counted.

Worked example: VWAP from eight trades

The trades below are hypothetical, made up for this page, for an imaginary stock. For each trade, multiply price by size, add it to the running total of dollars, add the size to the running total of shares, then divide.

After trade 3: dollars = 20,000.00 + 30,030.00 + 10,030.00 = 60,060.00; shares = 200 + 300 + 100 = 600; VWAP = 60,060.00 ÷ 600 = 100.1000. After all eight trades: dollars = 180,575.00; shares = 1,800; VWAP = 180,575.00 ÷ 1,800 = 100.3194.

The simple average of the eight prices is higher. Add them: 100.00 + 100.10 + 100.30 + 100.20 + 100.50 + 100.40 + 100.60 + 100.70 = 802.80, and 802.80 ÷ 8 = 100.35. The difference, about 3 cents, comes from the weighting: the largest trade (400 shares) was at 100.20, below the simple average, and the 100 share trades at 100.30 and 100.70 count for little.

TradePriceSharesPrice × sharesRunning dollarsRunning sharesVWAP
1100.0020020,000.0020,000.00200100.0000
2100.1030030,030.0050,030.00500100.0600
3100.3010010,030.0060,060.00600100.1000
4100.2040040,080.00100,140.001,000100.1400
5100.5025025,125.00125,265.001,250100.2120
6100.4015015,060.00140,325.001,400100.2321
7100.6030030,180.00170,505.001,700100.2971
8100.7010010,070.00180,575.001,800100.3194

What is anchored VWAP?

Standard VWAP resets at the session open. Anchored VWAP starts the same calculation from a point you choose, such as a gap open, an earnings release, a swing low, or the first day of a month, and keeps accumulating from there. It answers a different question: what is the average price paid by everyone who traded since that event?

Using the same hypothetical trades, anchor at trade 4. Trade 4 is 400 shares at 100.20 = 40,080.00, so the anchored VWAP is 100.2000 after one trade. After trade 8 the anchored dollars are 120,515.00 and the anchored shares are 1,200, so anchored VWAP = 120,515.00 ÷ 1,200 = 100.4292. That is 11 cents above the session VWAP of 100.3194, because the anchored line leaves out the cheaper first three trades.

The line is only as meaningful as the event you anchor to. Anchoring at an arbitrary point gives an arbitrary line.

Trade (anchored at 4)Price × sharesRunning dollarsRunning sharesAnchored VWAP
440,080.0040,080.00400100.2000
525,125.0065,205.00650100.3154
615,060.0080,265.00800100.3312
730,180.00110,445.001,100100.4045
810,070.00120,515.001,200100.4292

How do intraday traders and institutions use VWAP?

Intraday traders mostly use it as a reference line. Price above VWAP means the average buyer since the open is in profit; below means the average buyer is underwater. Some traders only look for long trades while price holds above VWAP and short trades while it holds below, and some treat a pullback to VWAP as a place to enter in the direction of the day's move. None of these is a rule that works every time. VWAP is a description of where trades have happened, not a forecast.

Large investors use it differently: as a benchmark for execution quality. A buyer working a large order over the day can compare their average fill to the day's VWAP to judge whether they paid more or less than the typical trade. This is a widely described use, but we could not confirm it from a regulator or provider page for this edition, so treat it as general background.

For a small account the practical use is simpler. VWAP gives everyone looking at the same instrument the same reference, so it is a natural level for other traders to watch.

How would a trader read the example?

Suppose the hypothetical stock above is trading at 100.70 after trade 8, and VWAP is 100.3194. Price is 0.38 above VWAP, so the average participant since the open is in profit. A trader using VWAP as a bias filter would be looking at long setups only. A trader who treats VWAP as a level to buy pullbacks would wait for price to come back toward 100.32, and would put a stop below it, sized with a method such as ATR (see our ATR page).

Now take the other case: price falls to 100.00, 0.32 below VWAP. The average buyer is now at a loss, and a bounce back to VWAP is often where sellers appear. Both readings are descriptions, not guarantees. On a day with a strong trend price may never come back to the line, and a trader waiting for the pullback simply misses the move. The cost of waiting is real, and so is the cost of chasing.

VWAP is also a poor fit for the first few minutes of the session, when only a few trades are in the total and a single large print can move the line several cents.

Limits of VWAP and who should not rely on it

VWAP is not predictive. It lags by construction, because it averages everything since the anchor. It resets daily, so it is not useful on a multi-day swing view unless you anchor it. It needs real volume: on thinly traded instruments, or foreign-exchange pairs where there is no consolidated volume figure, a chart VWAP reflects only the volume your data feed sees. And on a strong trend day price can stay on one side of VWAP all session, so a rule that fades the line loses repeatedly.

You should not rely on it if you trade on very short timeframes without tick-level volume, or if you hold positions for weeks. If you trade futures, the session definition matters: some platforms reset VWAP at midnight, others at the start of regular trading hours, so the line can differ between charts. Nothing here is a recommendation, and trading carries a risk of loss.

QuestionVWAPSimple moving average
Weights each price by volume?YesNo
Resets?At the session start, or at an anchor you chooseNever; it rolls forward
LookbackEverything since the resetA fixed number of bars
Needs volume data?YesNo

Frequently asked questions

What is the VWAP formula?

VWAP = sum of (price × volume) ÷ sum of volume, accumulated from the start of the session. Charts often use each bar's typical price, (high + low + close) ÷ 3, as the price.

What is anchored VWAP?

A VWAP that starts accumulating from a point you choose, such as a gap, an earnings release or a swing low, instead of from the session open.

Should I buy above VWAP and sell below it?

Many intraday traders use that as a bias filter, but it is not a rule that works every time. On trend days price can stay on one side of VWAP all session.

Why is my VWAP different from another platform's?

Platforms differ in the price they use (trade price or typical price), the session start, and which volume they count. Check the settings on each.

Does VWAP work on forex?

Spot forex has no single consolidated volume figure, so a chart VWAP is based only on the volume your data source reports. Futures, which have exchange volume, are better suited.

Sources

This page explains a standard formula using hypothetical numbers we calculated ourselves; every figure can be checked from the arithmetic shown, so no outside source is needed.