Metric · Price and risk
VWAP Formula: How to Calculate It and Read the Line
VWAP is the average price of the session weighted by how many shares changed hands at each price. Heavy-volume prices pull it hard; quiet ones barely move it.
Formula
Sum of typical price × volume for each bar since the open, divided by total volume since the open
VWAP: The average price paid for a stock so far in the current session, with each price weighted by the number of shares that changed hands there.
Also shown as Volume-weighted average price, Volume weighted average price, Anchored VWAP.
By 10:30 a.m. a stock has traded 40,000 shares. Most of them changed hands near the morning’s low, a few near the high. A plain average of the bars would treat every bar the same. VWAP doesn’t. It gives each price a vote in proportion to its volume, so the line sits where the bulk of the session’s shares actually traded.
That’s why intraday traders watch it. A stock trading above its VWAP means the average buyer so far this session is sitting on a gain, while a stock trading below it means the average buyer is underwater, and some of those buyers may be waiting for a chance to get out near what they paid.
Working it out bar by bar
Most charting tools start with typical price for each bar: the high, the low and the close added together and divided by three. Multiply that by the bar’s volume. Keep a running total of those products and a running total of volume, and divide one by the other after every bar.
The two averages differ by almost 20 cents. Bar 4 carried 60% of the session’s volume at the lowest prices, so it dragged VWAP down toward $50, while the simple average gave the quiet bars at $50.40 and $50.50 just as much weight as the heavy one, which says more about the clock than about where shares really traded.
Why it resets every session
VWAP is cumulative from the open. Each new bar adds to the running totals, so the line gets steadier as the day goes on. Early on it swings with every bar. By the afternoon a single bar barely moves it, because each new bar is one small addition to running totals that already hold hours of trading, so even a heavy-volume bar shifts the line by only a few cents.
At the next open, both totals go back to zero. That’s the design. VWAP measures one session’s trading, and yesterday’s buyers aren’t part of today’s average.
Anchored VWAP keeps the same formula but starts the totals at a date you choose. Anchor it at an earnings release and the line shows the average price paid by everyone who has bought since the report, which makes it a quick way to see whether that whole group of post-earnings buyers is ahead or behind. It never resets until you move the anchor.
Reading price against the line
Above VWAP, buyers have been willing to pay more than the session’s average. Below it, sellers have pushed price under where most shares traded. Neither is a signal on its own.
Traders use the line in a few ways:
- As a reference for entries. Some only buy above VWAP, reasoning that the session’s buyers are in profit and less likely to sell in a hurry.
- As a level to watch on pullbacks. A stock in a strong intraday trend often dips toward VWAP and finds buyers there. Often isn’t always.
- As a check on fills. Large funds often measure a broker’s execution against the day’s VWAP, so a buy order filled below the line counts as a good fill and one filled well above it is the kind that has to be explained.
A move through VWAP on light volume means less than one on heavy volume. Look at the volume bars and at relative volume before reading anything into a cross.
VWAP and a moving average
They look alike on a chart. They aren’t built alike. A moving average uses a fixed number of bars and ignores volume, so a 20-bar line treats a 500-share bar the same as a 50,000-share bar. VWAP uses every bar since the open and weights each by volume. A 50 or 200-day moving average describes the trend across weeks or months; VWAP describes one session.
That difference sets the use. A long-term investor gets almost nothing from VWAP. A trader holding for minutes or hours gets a lot.
Where tools differ
Settings change the number, sometimes enough to matter.
- Price input. Most charts use typical price per bar. Some data feeds compute VWAP from each individual trade, which is more exact.
- Bar size. On a one-minute chart the typical prices are closer to real trade prices than on a 15-minute chart, so the line can differ slightly.
- Extended hours. Including pre-market trading can shift VWAP noticeably on a gap day.
- Bands. Many platforms draw standard-deviation bands around VWAP, and their width depends on the multiplier you set.
When two screens disagree, check these four first.
What it can’t tell you
VWAP says where the session’s shares traded, not where they should trade. In a stock with very little volume, a handful of trades sets the line, and it’s easy to read a pattern into noise. Late in the day the line has so much history behind it that it barely responds, even to a sharp move. And on a day with a large gap, the whole session can trade above or below VWAP without ever touching it.
Use it for what it is: one session’s average cost, weighted honestly. The rest of the metrics section covers the fields that describe the longer trend.
Related questions
Does VWAP include pre-market and after-hours trading?
It depends on the chart. Some platforms start the calculation at the regular-session open and ignore extended hours. Others include every trade from the start of pre-market. The two can differ noticeably on a day with a big pre-market move, so check the indicator's settings.
Can VWAP be used on a daily chart?
Standard VWAP resets every session, so on a daily chart each bar would be its own one-bar calculation, which tells you little. For multi-day work, traders use an anchored VWAP started from a chosen date, such as an earnings release or a major low.
Why does my VWAP differ from another platform's?
Platforms differ in the price they weight (typical price or each trade's actual price), whether extended hours count, and which trades are included. The differences are usually small in a liquid stock and larger in a thin one.