Bitcoin VWAP: Why the Same Three Prices Can Give Two Averages

Three bitcoin trades go through at $60,000, $60,500 and $62,000 per BTC. What was the average price paid per bitcoin? It depends on how much changed hands at each price. In the worked example below, Bitcoin VWAP is $61,150. Reverse the sizes of the first and last trades and it falls to $60,550. The price list itself never changes.

Purple illustration of a webpage with the words “New Blog Post”.
Default illustration for Fradiqueland Blog.

Calculate Bitcoin VWAP from the trade sizes

VWAP stands for volume-weighted average price. For these trades, multiply each execution price in dollars per BTC by the quantity of BTC traded. Add the dollar amounts and divide by total BTC. The result is a price in dollars per BTC, so it can be compared directly with any price in the list.

Illustrative BTC/USD trades in one window. All values are invented for this calculation.
TradePrice per BTCBTC tradedDollars exchanged
A$60,0000.20$12,000
B$60,5000.30$18,150
C$62,0000.50$31,000

The three trades exchange $61,150 for exactly 1.00 BTC. Dividing the two totals gives $61,150 per BTC. A plain average of the three listed prices gives $60,833.33, rounded to cents. That answers a different question: what price do you get if every line in the table has one vote? Here half the bitcoin traded at the highest price, so the weighted result sits closer to it.

Swap the quantities and check what moves

Keep trade B as it is. Move the 0.50 BTC quantity to trade A and the 0.20 BTC quantity to trade C. Now the dollar amounts are $30,000, $18,150 and $12,400. They add up to $60,550 for the same 1.00 BTC. Moving 0.30 BTC from the $62,000 trade to the $60,000 trade reduces total dollars exchanged by $600. That gives you a second way to check the difference.

The opening price, closing price and simple average all survive this swap unchanged. If a chart gives only those numbers, you cannot recover which of the two Bitcoin VWAP values belongs to it. Even knowing the total volume was exactly one bitcoin leaves out where that volume traded.

Split a fill and keep the same average

Go back to the original table. Imagine the last trade arrives in two messages, each for 0.25 BTC at $62,000. Each contributes $15,500. The combined value remains $31,000 and the combined quantity remains 0.50 BTC. Bitcoin VWAP is still $61,150. A plain average over the four messages, however, becomes $61,125. Counting messages has given the last price two votes.

This is a practical spreadsheet check. Keep one column for quantity and another for price times quantity. Split a row at one price into two smaller fills. If your result moves, check whether the formula is averaging rows or rounding the value of each fill before summing it. For the original three rows, put prices in B2:B4 and BTC quantities in C2:C4. Enter =B2*C2 in D2 and copy it down. Then enter =SUM(D2:D4)/SUM(C2:C4). Use full precision for intermediate values and round only the displayed result.

Label the window before comparing two figures

Stop the original window after trade B. Only $30,150 and 0.50 BTC have changed hands. The volume-weighted average price for that shorter window is $60,300. The third trade is the reason the full-window value is higher. When comparing two reported values, identify the start and end time, the trading venue, the currency pair and whether the data contain actual trade sizes. Two correctly calculated figures can describe different sets of fills.

To reproduce the exercise, record the window and its two totals next to the final number. If volume is zero, leave the result undefined: there is no traded bitcoin to divide by. For a different question about exactly these boundaries, see the two-path Bitcoin drawdown example, which shows why a closing price alone also hides the route taken during the window.

Working with chart data from a tool such as the one in Antonio Fradique’s MarketTrace demonstration? Check the export before using the spreadsheet. A column headed “close” gives one price for the interval. Multiplying it by interval volume is an approximation when fills took place at several prices. Label that approximation separately from a calculation based on the individual trades.

Leave a Comment

Scroll to Top