Average price calculator
Always use the same currency for all purchases and at the current price. The live price comes from CoinGecko's public API.
In short: The average price is the total cost of purchases, including fees, divided by the total amount purchased. The calculator below adds as many purchases as you want, shows the average price, the total invested and, with the current price typed or searched live at CoinGecko, the profit or loss of the position and how much the price needs to rise to tie. It serves for crypto, stocks, ETFs or any asset.
Those who buy little by little, every month or with each fall, end up with a shopping list at different prices. Knowing the average price is essential for two reasons: it shows whether the position is in profit or loss and is the basis of the acquisition cost that goes to the tax return.
How to use the calculator
- Launch the purchasesFor each purchase, inform the quantity purchased, the price per unit and the fee paid, if any.
- Add more linesClick "+ Add Purchase" to include as many purchases as you like. Empty lines are ignored.
- Enter current priceEnter the price of now or choose the currency and click "Use live price" to search for CoinGecko.
- CalculateSee average price, total invested, current value, profit or loss and draw price.
The three purchases that already appear are an example with hypothetical values. Delete and put yours. Always use the same currency: if the purchases were in reais, the current price must be in reais; whether they were in dollars or USDT, in dollars.

The average price formula
The weighted average price is simple:
Average price = (sum of quantity x price of each purchase + fees) / total quantity
The "weighted" is important. It is not enough to take the average price, because a large purchase weighs more than a small one. If you bought it very cheap and too expensive, its average price is close to cheap.
Numerical example explained
With the values that come in the tool, all hypothetical:
| Buy | Amount | Price per unit | Cost |
|---|---|---|---|
| 1 | 0.01 BTC | R$ 300.000 | R$ 3.000 |
| 2 | 0.02 BTC | R$ 250.000 | R$ 5.000 |
| 3 | 0.01 BTC | R$ 350.000 | R$ 3.500 |
| Total | 0.04 BTC | R$ 11.500 |
The average price is R$ 11,500 / 0.04 = R$ 287.500 by Bitcoin. Note that the simple average of the three prices would give R$ 300,000, but the second purchase, bigger and cheaper, pulls the average price down.
With the current hypothetical price of R$ 320,000, the position is worth 0.04 x 320,000 = R$ 12,800. The profit is BRL 12,800 - BRL 11,500 = R$ 1.300, or 11.30% of the invested. If the price dropped to R$250,000, the position would be worth R$10,000, and the loss would be R$1,500. The tie price is the average price itself, R$ 287,500.
With fees
Now put R$ 10 of fee on each purchase. The total cost rises to R$11,530, and the average price to R$288,250. Small rates seem irrelevant, but in many small purchases they weigh. Compare costs in our fee comparator.
Example with three purchases
And when do you sell a part?
In the average cost method, selling a part reduces the quantity, but does not change the average price of what is left. If in the example you sold 0.01 BTC, I would still have 0.03 BTC at an average price of R$ 287,500, and the cost of what was sold would be 0.01 x 287,500 = R$ 2,875. It is this cost that enters the profit of the sale account.
To calculate the tax for this sale, use the crypto tax calculator, which separates the rules of national and foreign brokerage. the guide of Cryptocurrency Income Tax Explains the statement.
Average price and recurring purchases
Buying the same value every month, a strategy known as DCA, makes you buy more units when the price is low and less when you are high. The effect is to smooth the average price over time. This does not guarantee profit, but reduces the weight of having bought everything in a single bad moment. To test with real historical prices, use the Bitcoin DCA calculator.
Average price in futures
In leveraged contracts, the broker automatically calculates the average entry price automatically when you increase the position. The difference is that with leverage, each additional purchase also moves the settlement price. Increasing a losing position in futures can bring settlement closer instead of pushing it away. Before, use the settlement calculator and understand perpetual futures.
What the calculator doesn't do
- Does not convert coins. If you bought part in reais and part in USDT, convert everything to the same currency before, using the quote for each date. the quotation of USDT in reais help.
- Does not store data. When closing the page, the values disappear. Write down purchases in a spreadsheet.
- Does not provide price. The profit shown is now, with the price entered or sought.
- Reference live price. CoinGecko adds several brokers, and the price of yours may be a little different.
For those who prefer a single-operated profit view, the crypto profit calculator Makes the account of a purchase and a sale. And to understand how much of your portfolio is at risk in each operation, see the Position size calculator.
Buy slowly, at a low rateAt BingX, the default spot rate is 0.1% and the deposit in reais is by PIX.Meet BingXCommon mistakes when calculating the average price
- Forget small purchases. Low-value recurring purchases add up to a year. Export the broker's complete history instead of relying on memory.
- Mix coins. Add up purchases in reais with purchases in USDT without converting distorts the result. Convert everything to a currency, using the quotation for each date.
- Ignore fees. Without the fees, the average price is lower than the real one, and the profit seems greater than it is.
- Count transfers such as purchases. Sending Bitcoin from one brokerage to another or to your wallet is not a purchase. If you count again, the quantity doubles and the average price is wrong.
- Add different assets. Each crypto has its average price. BTC and ETH do not mix in the same account.
How to keep the average price on a spreadsheet
The calculator is great for a quick conference, but day-to-day control works best in a simple spreadsheet, with one line per operation. The minimum columns:
| Column | What to write down |
|---|---|
| Date | Buy or sell day |
| Type | Buying, selling or transferring |
| Amount | Units purchased or sold |
| Price | Price per unit, in the currency of the transaction |
| Rate | Amount of fee charged |
| Accumulated amount | Sum of purchases minus sales |
| Accrued cost | Purchase cost minus the average cost of what was sold |
| Average price | Cumulative cost divided by the amount accumulated |
With this structure, each sale uses the average price of the previous line to calculate the cost, and the profit from the sale automatically comes out. It is the same logic that accountants use for stocks and that it helps to fill the declaration of assets at the cost of acquisition. To understand how the broker charges each operation, see BingX fees, and to compare the cost between brokers, the fee comparator. Those who are starting can read the Guide of crypto for beginners.
A final tip: review the spreadsheet whenever you make a large purchase or a sale. Checking the result with the calculator on this page, typing the totals, is a quick way to find typing errors before they reach the tax return. If the two numbers hit, the control is in order.
Video: DCA and Average Price on Bitcoin
The video explains how regular contributions affect the average purchase price over time.
Build your position with recurring purchasesOpen BingX account and program automatic contributions in the amount you prefer.Open accountTransparency: The Boletim Bitcoin can receive commission for registrations made through BingX's links, at no extra cost for you. That doesn't change what we write about risks and costs.
Educational tool. Crypto is volatile and you can lose money. It is not a recommendation to buy or sell.
Frequently asked questions
How to calculate the average price of several purchases?
Add up the cost of all purchases, including fees, and divide by the total amount purchased. It is an average weighted by the quantity of each purchase.
Does selling a part change the average price?
In the average cost method, no. The sale reduces the quantity, but the average price of what is left remains the same.
Should I include fees in the average price?
Yes, if you want the real cost. Documented fees increase the acquisition cost and therefore the average price.
Where does the live price come from?
From CoinGecko's public API, to Bitcoin, Ether and Solana, in reais or dollar. The price may have small differences from your brokerage.
Does the calculator work for actions?
Yes. The formula is the same for any asset. Just enter the current price manually, as the live price only covers the cryptos on the list.
References
This content is informative and is not an investment recommendation. found an error? Write to contato@boletimbitcoin.com.