Crypto Cost-Basis Tracker — Track Average Cost Basis Across Purchases

Track cost basis across crypto purchases for accurate gain/loss reporting

Reviewed for accuracy June 21, 2026 by Gary S.

Purchase lots

Total quantity held0.75
Total cost basis$26,250.00
Average cost basis per unit$35,000.00
Current value$48,750.00
Unrealized gain/loss$22,500.00 (+85.71%)

85.7% gain — $22,500 unrealized profit

Your $26,250 cost basis has grown to $48,750 — a 85.7% ($22,500) unrealized gain. At this gain level, tax planning before selling is important: long-term rates (0%/15%/20%) vs short-term ordinary income rates can save thousands.

  • Avg cost basis: $35,000 — current price 85.7% above cost
  • Total cost basis: $26,250 across 2 lots (0.75 units)
Model taxes on your gain with the Capital Gains Tax Calculator

Share on r/personalfinance, Twitter/X, or LinkedIn 📊

How to use Crypto Cost-Basis Tracking Tool

Free crypto cost-basis tracker. Enter each purchase lot and a current price to calculate total cost basis, average cost per coin, and unrealized gain or loss.

Anyone who has bought crypto across multiple purchases at different prices faces a tracking problem most exchanges do not solve cleanly: what is the actual average cost basis across all those purchases, and what is the real unrealized gain or loss right now? Buying small amounts repeatedly over time (a common pattern, whether deliberate dollar-cost averaging or just periodic purchases) means cost basis is spread across many different prices, and without tracking each lot, it is easy to lose track of the true blended cost. This tool adds up cost basis across any number of purchase lots and compares the total against a current price to show the real picture.

How to use this Crypto Cost-Basis Tracking Tool

  1. 1Add a row for each purchase: the quantity bought and the price paid per unit at that time.
  2. 2Add as many purchase lots as needed — there is no limit, so a full purchase history can be entered.
  3. 3Enter the current price per unit.
  4. 4Read the total quantity held, total cost basis, average cost basis per unit, current value, and unrealized gain or loss in both dollars and percentage.

Crypto cost basis formula explained

Total cost basis is the sum of (quantity × price paid) across every purchase lot — this is the total amount actually spent acquiring the position, regardless of how many separate purchases it took. Average cost basis per unit divides that total by the total quantity held, giving a single blended cost figure. Comparing total cost basis against the current value (total quantity × current price) reveals the unrealized gain or loss, the difference between what was paid and what the position is worth today.

Total Cost Basis = Σ(Quantity × Price Paid); Average Cost Basis = Total Cost Basis ÷ Total Quantity; Unrealized Gain = (Total Quantity × Current Price) − Total Cost Basis
VariableMeaning
QuantityAmount of the asset purchased in a given lot
Price PaidPrice per unit at the time of that specific purchase
Current PriceCurrent market price per unit

Cost basis example: three purchases (0.5 + 0.25 + 0.1 units), current price $65,000

  1. 01Lot 1: 0.5 units at $30,000 = $15,000 cost basis.
  2. 02Lot 2: 0.25 units at $45,000 = $11,250 cost basis.
  3. 03Lot 3: 0.1 units at $60,000 = $6,000 cost basis.
  4. 04Total quantity: 0.5 + 0.25 + 0.1 = 0.85 units. Total cost basis: $15,000 + $11,250 + $6,000 = $32,250.
  5. 05Average cost basis: $32,250 ÷ 0.85 = $37,941.18 per unit.
  6. 06Current value: 0.85 × $65,000 = $55,250. Unrealized gain: $55,250 − $32,250 = $23,000 (+71.32%).

Result

Across three separate purchases at very different prices, the blended average cost basis works out to $37,941.18 per unit, well below the current $65,000 price — an unrealized gain of $23,000, or 71.32%, on the total amount invested.

What affects accurate crypto cost-basis tracking?

Cost basis accounting methods

This calculator uses average cost across all lots, which is one common approach. Other accepted methods include FIFO (first-in-first-out, where the earliest purchases are considered sold first) and specific identification (choosing which exact lot is being sold). The right method for tax reporting purposes can depend on jurisdiction and should be confirmed with a tax professional.

Fees affect true cost basis

Transaction fees paid at the time of purchase are generally added to cost basis, increasing the true cost beyond just quantity × price. This calculator focuses on quantity and price paid; if fees were significant, including them in the price-paid figure for each lot gives a more accurate total.

Unrealized vs realized gains

The gain or loss shown here is unrealized — it reflects the position's current paper value, not a completed sale. Unrealized gains are generally not a taxable event; tax consequences typically apply only when the asset is actually sold, traded, or otherwise disposed of, at which point the gain becomes realized.

Tracking purchases across multiple exchanges or wallets

Purchases of the same asset spread across different exchanges or wallets all count toward the same overall cost basis position. Consolidating every purchase into one tracker, regardless of where it happened, is necessary for an accurate total picture.

Tips and things to know

  • Record each purchase as soon as it happens rather than trying to reconstruct a full purchase history later — exchange records can be incomplete or hard to access after the fact, especially across multiple platforms or after account closures.
  • Keep a permanent record of every purchase (date, quantity, price, fees) outside of any single exchange, since exchanges can change reporting formats, shut down, or restrict historical data access.
  • Average cost basis is simpler to track but is not always the method required or most tax-advantageous for a given jurisdiction — confirm the appropriate method with a tax professional before relying on this calculator's output for actual tax filing.
  • Recalculate after every new purchase or sale, since selling part of a position changes the remaining cost basis depending on which accounting method applies.
  • Use the Capital Gains Tax Calculator alongside this tool once a sale is being considered, to estimate the actual tax owed on a realized gain based on the cost basis calculated here.

Crypto Cost-Basis Tracking Tool — bottom line

Accurate cost basis tracking is the foundational requirement for correct cryptocurrency tax reporting, and it is the area where most crypto investors have the least clarity. The IRS treats cryptocurrency as property, meaning every sale, trade, or conversion is a taxable event — and the tax owed is determined by the cost basis of the specific units sold. Without accurate records, there is no way to calculate the gain correctly; the IRS default when cost basis cannot be substantiated is treating it as zero, which maximizes the taxable gain. The most common mistake is not tracking purchases in real time. Reconstructing a full purchase history from exchange records months or years later is difficult — exchanges change reporting formats, get acquired or shut down, or limit accessible history. Keeping a simple spreadsheet updated at the time of each purchase takes 30 seconds per transaction and prevents a reconstruction problem that can take hours or be impossible to complete accurately. Second mistake: treating crypto-to-crypto trades as non-taxable events. A trade between two cryptocurrencies on an exchange is generally a taxable event — it is treated as selling the first asset and buying the second, at the current price. Many investors are surprised to learn that frequent trading within an exchange generates a new taxable event with each trade, not just when fiat currency is withdrawn. Third: not considering which accounting method minimizes tax before executing a sale. FIFO, LIFO, and specific identification can produce very different realized gains on the same set of purchases. Calculate the tax impact under each method before selling, using the Capital Gains Tax Calculator alongside this tracker.

Official resources and further reading

Related tools you might need

Frequently asked questions

Cost basis is the total amount actually paid to acquire an asset, including the purchase price and typically any transaction fees. It is the baseline used to calculate gain or loss when the asset is later sold or otherwise disposed of.

From our guides

All guides →
Your pipeline
Cash Flow
Income
Capital
Wealth

Next logical step

As your investments grow, revisit your cash survival baseline. Your liquidity runway should scale with your assets — not stay frozen at the number you set years ago.

Emergency Fund Calculator

Calculate your emergency fund target and time to reach it

Educational content only — not financial advice

The tools and calculators on Garypedia are provided solely for informational and educational purposes. They do not constitute financial, investment, tax, accounting, or legal advice of any kind. While reasonable care is taken to ensure the accuracy of formulas, figures, and data sources referenced, no warranty — express or implied — is made as to their completeness or suitability for any particular purpose. Garypedia, its operators, and contributors expressly disclaim all liability for any loss, damage, or adverse outcome — whether direct, indirect, or consequential — arising from reliance on any result produced by these tools. All outputs are estimates based on the inputs you provide; individual circumstances vary significantly. You should independently verify any figures and seek guidance from a suitably qualified and regulated financial, tax, or legal professional before making any financial decision.