Finance & Money Calculators

Crypto Cost Basis Tracker

Track cryptocurrency cost basis, average purchase price, exchange fees, and capital gains or losses across multiple trades and fiat currencies.

Crypto Cost Basis Tracker — Online Calculator

Crypto Cost Basis Tracker

Transactions

TypeAmount (Coins)Price per Coin ($)Fee ($)Date
Advertisement

Track your cryptocurrency investments and calculate average cost basis, realized gains, and unrealized gains easily.

How It Works

The Crypto Cost Basis Tracker uses the Average Cost Basis (ACB) method to calculate your crypto portfolio's overall costs.

  1. Enter Buys: For every purchase, enter the amount of coins, the price you paid per coin, and any exchange fees. The calculator adds this to your total holdings and adjusts your average cost per coin.
  2. Enter Sells: For every sale, enter the amount of coins sold, the price per coin, and the fee. The calculator uses your current average cost to determine the cost of the coins sold, and subtracts it from your proceeds to calculate your Realized Gains.
  3. Current Price: Optionally, enter the current market price of the coin to see your Unrealized Gains on the coins you still hold.

Formula and Assumptions

This calculator uses the Average Cost method:

  • Total Cost Basis = Sum of (Amount × Purchase Price + Fees) for all buys, minus the cost basis of any sold coins.
  • Average Cost Per Coin = Total Cost Basis / Total Holdings.
  • Proceeds from Sale = (Amount Sold × Sale Price) - Sale Fees.
  • Realized Gain = Proceeds - (Amount Sold × Average Cost Per Coin).

Assumption: This tool assumes all transactions entered are for the same cryptocurrency asset. It does not account for complex tax scenarios like wash sales, specific lot identification (HIFO/LIFO), or crypto-to-crypto trades which may be treated as taxable events depending on your jurisdiction.

Worked Example

Suppose you make the following transactions for Bitcoin:

  1. Buy 1 BTC at 40,000witha40,000 with a 100 fee.
    • Cost Basis: $40,100
    • Holdings: 1 BTC
    • Average Cost: $40,100
  2. Buy 0.5 BTC at 60,000witha60,000 with a 50 fee.
    • New Cost Basis: 40,100+40,100 + 30,050 = $70,150
    • Holdings: 1.5 BTC
    • Average Cost: $46,766.67
  3. Sell 0.5 BTC at 50,000witha50,000 with a 50 fee.
    • Cost of coins sold: 0.5 × 46,766.67=46,766.67 = 23,383.33
    • Proceeds: (0.5 × 50,000)−50,000) - 50 = $24,950
    • Realized Gain: 24,950−24,950 - 23,383.33 = $1,566.67

Result Interpretation

  • Total Holdings: The exact amount of cryptocurrency you currently own.
  • Average Cost: The break-even price for your current holdings. If the current market price is above this number, you are in profit.
  • Total Cost Basis: The total amount of money you have invested in your current holdings, including fees.
  • Realized Gains: The actual profit (or loss) you have locked in by selling coins.
  • Unrealized Gains: The theoretical profit (or loss) you would make if you sold all your current holdings at the specified current price.

FAQs

Can I use this for taxes?

While this calculator provides a good estimate using the Average Cost method, tax authorities in different countries have specific rules. For example, the IRS in the US often defaults to FIFO (First-In, First-Out) or specific identification. Always consult a tax professional for official reporting.

Why do fees matter?

Exchange fees increase your cost basis when buying and decrease your proceeds when selling. Including them reduces your taxable gains and saves you money on taxes.

What about crypto-to-crypto trades?

In many jurisdictions, trading one crypto for another is considered a taxable event (a sell of the first, a buy of the second). You should log the sale of the first coin using its fair market value in fiat at the time of the trade.

Sources & Review

  • Calculation methodologies are based on standard accounting practices for Average Cost Basis tracking.
  • Last Reviewed: September 2026

Related Tools

Related Tools