Start investing in Bitcoin with Pix, in a few minutesSponsoredOpen free account
Crypto

Average price calculator: various purchases, profit and current loss

Add as many purchases as you want, include the rates and see how much each unit cost on average and how the position is now.

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.

By Boletim Bitcoin newsroom

. 8 min reading.

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

  1. Launch the purchasesFor each purchase, inform the quantity purchased, the price per unit and the fee paid, if any.
  2. Add more linesClick "+ Add Purchase" to include as many purchases as you like. Empty lines are ignored.
  3. Enter current priceEnter the price of now or choose the currency and click "Use live price" to search for CoinGecko.
  4. 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.

Boletim Bitcoin logo
Image: Pexels (free license)

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:

BuyAmountPrice per unitCost
10.01 BTCR$ 300.000R$ 3.000
20.02 BTCR$ 250.000R$ 5.000
30.01 BTCR$ 350.000R$ 3.500
Total0.04 BTCR$ 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

0.04 BTCtotal quantity
R$ 11.500total invested
R$ 287.500average price
+11,30%Result with hypothetical price of BRL 320,000

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.

Tip: "Make Average Price" Buying more than one asset that only falls is a common trap. Before increasing a position in the loss, ask if you would buy this asset today if you didn't have any. If the answer is no, lowering the average price only increases the error exposure. Read up risk management.

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.

Warning: Strategies that double the position with each fall, such as the martingale, lower the average fast price, but multiply the capital at risk. See the risks in martingale on BingX before using.

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 BingX

Common 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:

ColumnWhat to write down
DateBuy or sell day
TypeBuying, selling or transferring
AmountUnits purchased or sold
PricePrice per unit, in the currency of the transaction
RateAmount of fee charged
Accumulated amountSum of purchases minus sales
Accrued costPurchase cost minus the average cost of what was sold
Average priceCumulative 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 account

Transparency: 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

  1. CoinGecko: Public Price API documentation
  2. BingX Learn: Trading fees (updated 1/16/2026)
  • average price
  • calculator
  • DCA
  • crypto
  • profit and loss
  • bitcoin

This content is informative and is not an investment recommendation. found an error? Write to contato@boletimbitcoin.com.

Read also

Start in crypto today

Open your free account, deposit with PIX and access Spot, Futures, Copy Trading and Trading Robots in one app.

  • Easy deposits
  • Copy trading
  • Grid and DCA bots
  • All-in-one app
Advertising. Crypto involves risk, invest responsibly.
Create free account