Tool
Average price across several purchases
Enter the quantity and price for each purchase. Empty rows are ignored; completed rows are weighted by quantity.
Formula
Average price = sum of (quantity × price) ÷ total quantity. If you just average the prices and ignore how much you bought each time, you get the wrong answer when the buys were different sizes.
Example: two buys at different prices
You bought 0.01 BTC at 60,000 USDT and later 0.03 BTC at 50,000 USDT. The cost is 0.01 × 60,000 + 0.03 × 50,000 = 600 + 1,500 = 2,100 USDT for 0.04 BTC, so the average price is 2,100 ÷ 0.04 = 52,500 USDT. Just averaging the two prices gives 55,000, which is too high, because the cheaper buy was three times larger. The prices are made up for the example.
How to include the trading fee
On Binance Spot (the normal market for buying and selling coins), the trading fee is taken from the coin you receive, so after a buy you hold slightly less than the amount in the order. To get your real cost per coin with the fee included, enter the quantity that actually arrived and, as the price, the total you spent divided by that quantity. Example: 600 USDT bought 0.01 BTC, the 0.1% fee was taken in BTC and 0.00999 BTC arrived, so enter 0.00999 and 600 ÷ 0.00999 ≈ 60,060.06. If you pay fees in BNB, the quantity is not reduced: add the value of the BNB fee to the amount spent before dividing. The fee rule is described in our maker and taker fee guide.
Where to find your prices and quantities
Take them from the trade history of your Spot orders, not from the order you placed. One order can be filled in several parts at different prices (each part is called a fill), and each fill shows its own price, quantity and fee. Enter every fill as its own row, or add up the fills from the same order first.
More than four purchases, and partial sales
The calculator has four rows. For a longer history, calculate the first four, then enter the result as one row (total quantity at the average price) and continue with the next purchases; the result is the same. With this method, selling some of your coins does not change the average price of the coins you still hold; only new buys change it. Tax rules where you live may require a different method, such as first in, first out, so check them separately.
What the average leaves out
Taxes, deposit costs and withdrawal costs are not added for you. To include them in what you paid in total, first turn all costs into one currency, then use the adjusted numbers as described above.