Home / Crypto & Blockchain / Wallet, Security & Tax / Cost Basis (Average Cost Method)

Formula & Calculator

Cost Basis (Average Cost Method)

Cost basis is what you originally paid for your crypto, used for calculating taxes. This formula calculates it using the average cost method: total amount invested divided by total coins held. For example, if you bought 1 BTC at 40,000 and later 0.5 BTC at 60,000, your total invested is 70,000 for 1.5 BTC, giving an average cost basis of 46,667 per BTC. Different accounting methods (FIFO, LIFO) can produce different tax results.

Crypto Tax Daily Life
VORZEP · INVESTMENT & CRYPTO TAX TOOLS

Average Cost Basis Calculator

Solve the average cost basis relation ACB = TAI / TCH for any of its three unknowns — average cost basis per unit, total amount invested, or total coins held — with step-by-step math, a clean ledger schematic, and companion metrics for gain/loss and break-even pricing.

ACB = TAITCH
Solve for
Total Amount Invested (TAI) The total money you have put into this position — the sum of every buy, including fees if your tax jurisdiction includes them in cost basis. Does not subtract sales; if you have sold some, use a running-ledger method instead.
USD
Total amount invested must be greater than zero.
Total Coins Held (TCH) The total quantity of the asset you currently hold — coins, shares, tokens, or units. For crypto this is the sum of every buy minus every sale. For stocks, it's your current share count.
units
Total coins held must be greater than zero.
Average Cost Basis (ACB) The average price paid per unit — total invested divided by total units held. In Canada and some other jurisdictions this is the legally required method for computing capital gains on identical properties. Many crypto tax tools also default to this method.
USD/unit
Average cost basis must be greater than zero.
AVERAGE COST BASIS (ACB)
100 USD/unit
10,000 USD total · 100 units held
MID-CAP CRYPTO / EQUITY SCALE
ACB = TAI / TCH
Step-by-step solution
Cost basis vs. market price
P&L curve Break-even point
Value vs. units held
Cost basis line Current position
Sensitivity
Companion metrics
Weighted-average ledger — how ACB is built from multiple buys

The single-line formula ACB = TAI / TCH is the end state of a running ledger. Below is the same math applied buy-by-buy, showing how each purchase moves the average.

Buy # Units Price / unit Amount Running TCH Running TAI Running ACB
Total — — — — — —
Cost basis calculation — live schematic
AVERAGE COST BASIS · ACB = TAI ÷ TCH TAI $10,000 total invested TCH 100 units total held ACB $100 per unit ACB = 10,000 ÷ 100 = 100 USD/unit Break-even: sell at 100 USD/unit to recover cost
Total amount invested (money in) Total coins held (units) Average cost basis per unit
What the average cost basis really measures
ACBavg cost / unit
=
TAI TCH total invested / total held

ACB blends every purchase into one number

The average cost basis is the "blended" price of everything you still own. If you bought 1 coin at $10,000, then 1 coin at $20,000, then 1 coin at $30,000, your ACB is $20,000 — the simple average. If the amounts are uneven (0.5 coins at $10k, 2 coins at $30k), it becomes a weighted average, which is exactly what TAI / TCH computes. The ledger card below shows this step by step.

Why tax authorities care

Canada (CRA), the UK (HMRC for share pools), and many other jurisdictions require the adjusted cost base or average cost method for identical properties — including crypto. Every purchase adds to the pool, every sale removes units at the current average, and the gain on any sale is (sale price − ACB) × units sold. In the US, this method is not the default for stocks, but crypto and certain securities can use it if applied consistently.

ACB is not "amount invested today"

A common confusion: ACB is total invested divided by total units held. If you have already sold some units, those units are removed from the pool at the ACB in force at the time — the remaining TAI and TCH continue to describe only what you still own. This is why a full ledger (buy, sell, buy) produces a different ACB than the naive sum of deposits divided by current units.

Fees, rewards, and airdrops complicate it

In most jurisdictions, purchase fees (exchange commissions, gas) are added to the cost basis, so TAI should include them. Staking rewards, airdrops, and mining income are usually taxable as income at their fair market value when received, and that same FMV becomes their cost basis — meaning they enter the pool at the day's price. Getting this wrong is the single most common crypto tax error. This calculator works on whatever TAI and TCH you give it; you are responsible for assembling them correctly.

How to Use This Calculator

The average cost basis relation links three quantities: ACB, TAI, and TCH. Pick which one you want the tool to solve, then fill in the other two.

1. Choose what to solve for

Pick ACB, TAI, or TCH from the toggle. The calculator rearranges ACB = TAI / TCH automatically for whichever you choose.

2. Use realistic presets

Presets cover the range: TAI from $100 (small trade) to $1M (whale position), TCH from 0.01 BTC (sat stacker) to 10,000 units (large holder), and ACB from $1 (micro-cap) to $50,000 (BTC or high-priced equity).

3. Assemble TAI from your full ledger

TAI is the sum of every buy — including fees if your jurisdiction includes them — minus the cost removed by any sales you have already made. If you have never sold, TAI is simply the total dollars you have deposited into the position.

4. Read the result and verdict

The result card shows the ACB in USD per unit plus the TAI and TCH that produced it. A colour-coded verdict classifies the price scale from micro-cap to blue-chip / BTC scale.

5. Check the ledger and schematic

The ledger below shows how multiple buys stack up to give the same ACB. The schematic shows TAI and TCH flowing through a division into the ACB. The chart plots the P&L curve against market price with the break-even point marked.

6. Switch to Advanced for depth

Advanced mode adds a log-log chart of value vs. units held, a sensitivity check, and companion metrics including break-even price, P&L at any market price, and per-unit fee drag.

What This Tool Offers

Built around the classic cost basis relation ACB = TAI / TCH, the fundamental link between money invested, units held, and average price.

Three-way solving

Solve for average cost basis, total amount invested, or total coins held. The calculator rearranges the formula for whichever variable you choose.

Clean ledger schematic

A money-purse ÷ coin-stack = cost-bar diagram with a live division symbol and dynamic fill, plus a live readout of the exact calculation.

Running weighted ledger

A full table showing how multiple buys stack up — units, price, amount, running TCH, running TAI, and running ACB at each step.

Multi-unit hints

Each field shows the value converted to related quantities — per-unit cost, break-even price, and per-unit fee drag at the current position size.

P&L visualisation

A P&L curve against market price with the break-even point marked, plus an advanced log-log chart of value vs. units held.

Tax-method reference

Reference tables covering ACB vs. FIFO vs. LIFO, typical ACB values by asset class, and how fees, rewards, and airdrops affect cost basis.

Reference Tables & Conversions

A live cost basis solver, a lookup grid, and typical values by asset.

Quick cost basis solver

USD
units
USD
= ACB $100/unit · unrealised P&L $5,000 (+50.00%) · break-even at $100/unit

Cost Basis Lookup — TAI = $10,000

Computed from ACB = TAI / TCH with TAI fixed at $10,000. Values in USD per unit.

TCH (units)ACB (USD/unit)Break-even market priceValue at 2× ACBValue at 0.5× ACB

Typical ACB Ranges by Asset Class

Representative average cost basis values. Your actual ACB depends entirely on when you bought.

AssetTypical ACB rangeNotes
Bitcoin (BTC)$1,000 – $100,000+Wide range depending on entry year; 2017 and 2021 buyers differ enormously
Ethereum (ETH)$100 – $4,000+Similar range to BTC but smaller in absolute dollars
Blue-chip stocks (AAPL, MSFT)$20 – $200+Depends on holding period; long-term holders have very low ACB
S&P 500 index ETF (SPY, VOO)$100 – $500Steady upward drift; older positions have lower ACB
Small-cap equity$1 – $50High volatility; ACB varies dramatically by entry
Gold (per oz)$300 – $2,000+Long-term store of value; ACB depends heavily on decade of purchase
Real estate (per property)Varies widelyACB includes purchase price plus capital improvements (not maintenance)
NFT (per token)$10 – $1,000,000+Extremely wide range; most NFTs are worthless after the 2021 boom

Cost Basis Method Comparison

Different jurisdictions and different tax situations favour different methods. This table shows the main options.

MethodHow it worksUsed whereNotes
ACB (Average Cost)One blended price for the whole poolCanada, UK, many crypto toolsSimplest to compute; every sale uses the same ACB
FIFO (First In, First Out)Oldest units sold firstUS default for stocks and cryptoCan amplify gains if prices have risen since the first buy
LIFO (Last In, First Out)Newest units sold firstUS (with election), some crypto toolsOften reduces gains if recent buys are higher priced
HIFO (Highest In, First Out)Most expensive units sold firstUS (specific identification), some cryptoMinimises gains; requires per-lot record-keeping
Specific IDYou choose which lot to sellUS (with broker support)Most flexible but highest record-keeping burden

Variable Reference

SymbolMeaningTypical rangeUnits
ACBAverage cost basis per unit0.000001 – 1,000,000USD / unit
TAITotal amount invested0.01 – 10⁹USD
TCHTotal coins held0.000001 – 10¹²units
FMVFair market value (current price)—USD / unit
P&LUnrealised profit or loss—USD

What Does ACB = TAI / TCH Measure?

The average cost basis relation connects three quantities that every investor and every crypto tax tool works with: the average price paid per unit (ACB), the total money put into the position (TAI), and the total number of units held (TCH). Together they describe the "blended entry" of a position and are the foundation for computing capital gains when units are eventually sold.

Average Cost Basis Formula

The defining relationship is:

ACB = TAI / TCH

Rearranged to solve for the other two unknowns:

TAI = ACB × TCH
TCH = TAI / ACB

From these, additional metrics follow directly:

Unrealised P&L = (FMV − ACB) × TCH
Break-even price = ACB
Return % = (FMV − ACB) / ACB × 100

Cost Basis Variables

SymbolMeaningNotes
ACBAverage cost basis per unitTotal invested ÷ total units held
TAITotal amount investedSum of every buy, less cost removed by prior sales
TCHTotal coins heldSum of every buy minus every sale (current holdings)
FMVFair market valueCurrent market price per unit
P&LProfit or loss(FMV − ACB) × TCH; positive is a gain

How Each Variable Affects Your Tax Position

ACB is not just an accounting artefact — it directly determines how much tax you owe when you sell. Because capital gains are calculated as (sale price − ACB) × units sold, a higher ACB means a smaller taxable gain. Every legitimate cost — the purchase price, exchange fees, gas fees, and in some jurisdictions transfer fees — should be included in TAI to push the ACB up. In contrast, a lower ACB means a bigger taxable gain, which is why long-held positions bought cheaply can produce a painful tax bill even if the position is not sold for cash.

For a Canadian crypto investor, ACB is the legally required method: every purchase adds to the pool, every sale subtracts units at the current average, and the average is recomputed each time. For a US investor holding stocks, FIFO is the default but specific identification can be used with proper records. For a UK investor, "share pooling" produces the same result as ACB for identical assets, with special rules for same-day and 30-day matching. The math is identical across all of them — the difference is which lot leaves the pool first when you sell. This calculator computes the pool average regardless of the disposal method you use.

Cost Basis Calculation Examples

Given: TAI = $10,000, TCH = 100 units — solve for ACB
ACB = 10,000 / 100 = $100.00 per unit
Given: ACB = $100, TCH = 100 units — solve for TAI
TAI = 100 × 100 = $10,000
Given: TAI = $10,000, ACB = $100 — solve for TCH
TCH = 10,000 / 100 = 100 units
Multiple buys: 0.5 BTC at $20,000 + 0.3 BTC at $40,000 + 0.2 BTC at $60,000
TAI = 10,000 + 12,000 + 12,000 = $34,000
TCH = 0.5 + 0.3 + 0.2 = 1.0 BTC
ACB = 34,000 / 1.0 = $34,000 per BTC

Frequently Asked Questions

Cost basis is the total amount you paid to acquire an asset, expressed either as a total or as a per-unit average. When you sell, your taxable capital gain is the sale proceeds minus your cost basis. A higher cost basis means a smaller gain and less tax; a lower cost basis means a bigger gain and more tax. Getting it right is not optional — tax authorities require you to report it, and getting it wrong in either direction can trigger penalties. For crypto in particular, cost basis tracking is the single most complex part of tax compliance because assets move between exchanges, wallets, and chains.

In most jurisdictions, yes. The IRS in the US allows (and in some cases requires) capitalisable costs like broker commissions, exchange fees, and transfer costs to be added to the cost basis. Canada's CRA includes "outlays and expenses" such as commissions in the adjusted cost base. The UK's HMRC includes incidental costs of acquisition. In practice, if you paid a fee to acquire the asset — trading fee, gas fee, wire fee — it usually increases your ACB. If you paid a fee to sell, it usually reduces your proceeds rather than increasing your ACB. This calculator's TAI is the total you put in; you decide what to include.

In most jurisdictions — including the US, Canada, UK, and Australia — staking rewards and airdrops are taxable as ordinary income at their fair market value on the day you receive them. That same FMV becomes your cost basis for those units going forward. In practice this means: (1) you owe income tax on the value received, and (2) when you later sell, your gain is calculated from that FMV, not from zero. The way to record it in a ledger is to add a "buy" entry at the reward's FMV on the receipt date. Getting this wrong is by far the most common crypto tax error.

ACB (average cost basis) blends every purchase into one price and uses that for every sale — simple but you lose the ability to choose which lot to sell. FIFO (first in, first out) sells your oldest units first; this is the US default for stocks and crypto. LIFO (last in, first out) sells your newest units first; often reduces gains if you bought recently at higher prices. HIFO (highest in, first out) sells your most expensive units first; minimises gains but requires per-lot records. The method you use can change your tax bill by thousands of dollars, and switching methods mid-stream usually requires permission from the tax authority. Canada and the UK effectively require ACB for identical properties; the US allows specific identification for stocks and certain crypto holdings with proper records.

Under ACB, a sale does not change the average price per unit — it just reduces both TAI and TCH proportionally, leaving the ratio (and therefore the ACB) unchanged. Example: you hold 100 units at $100 ACB, so TAI = $10,000. You sell 40 units at $150. The cost removed from the pool is 40 × $100 = $4,000, so TAI becomes $6,000 and TCH becomes 60 units. ACB = 6,000 / 60 = $100 — unchanged. Your taxable gain is (150 − 100) × 40 = $2,000, and the remaining position continues at the same ACB. This is the defining property of the average cost method.

Moving an asset between your own wallets or exchange accounts is not a taxable event in most jurisdictions — you still own the same asset, just at a different address. Crucially, your cost basis does not change: the units keep the ACB they had before the transfer. However, the transfer fees (gas, network fees) may be added to the cost basis in some jurisdictions, or treated as a separate disposal in others — the rules are not fully settled. From an accounting standpoint, treat the move as an internal transfer: TAI and TCH stay the same, and the transfer fee is a small additional cost that may increase ACB. Do not record a transfer as a sell + buy, which is a common mistake that artificially resets the ACB.

In most jurisdictions — including the US, Canada, UK, Australia, and most of Europe — trading one crypto for another is a taxable disposal of the first asset and an acquisition of the second. You realise a gain or loss on the first asset based on its ACB and the FMV of what you received, and the second asset enters your pool at that same FMV on the trade date. Example: you swap 1 BTC with ACB $30,000 for 15 ETH worth $45,000. You realise a $15,000 gain on the BTC, and your ETH pool gains 15 units at $3,000 each ($45,000 TAI). This is different from moving coins between your own wallets, which is not taxable.

Calculating...

Variables

Symbol Quantity Unit
Avg Cost Basis Average cost basis per coin currency
Total Amount Invested Total money invested across all purchases currency
Total Coins Held Total coins currently held coins

What it means

The average cost basis is used in accounting to determine the cost of assets when sold. It is calculated by dividing total investment by total coins held. This method is used for tax purposes in many countries. Understanding this helps in calculating gains/losses and in preparing tax returns.

Worked example

Average Cost Basis – Two Detailed Examples

Real‑World
Scenario: An investor has invested $50,000 total and holds 1.2 BTC. Average cost basis = 50,000 / 1.2 = $41,667 per BTC. This averages the cost across all purchases. When selling, this average is used to calculate gain/loss.
ParameterValue
Total Invested$50,000
Total Coins Held1.2 BTC
1Avg Cost = 50000 / 1.2 = $41,667
Result $41,667 ✓ Average cost
Scenario: Another investor spends $10,000 to buy 4 ETH, giving an average of $2,500 per ETH. This simple method is often used for tax reporting in countries that allow it. The investor uses this to track their overall entry price.
ParameterValue
Invested$10,000
Coins4 ETH
1Avg = 10000 / 4 = $2,500
Result $2,500 ✓ ETH average
Insight: The average cost method divides total investment by total coins held. It simplifies cost basis calculation but may not be allowed in all jurisdictions.

Common mistakes

  • Average cost basis: Total amount invested (including fees) divided by total coins held.
  • Used for: Calculating capital gains when selling a portion of holdings.
  • FIFO vs LIFO: This is the average cost method; other methods may be used.
  • Consistency: Use the same method for tax reporting.

Applications

Cost basis (average cost method) divides the total amount invested by the total number of coins held, giving the average cost per coin. This is a common method for calculating cost basis for tax purposes. By using the average cost, investors can simplify tracking and reporting. Understanding the average cost basis is essential for calculating gains and losses.

  • Calculating cost basis for tax reporting
  • Simplifying accounting for multiple purchases
  • Tracking average purchase price for performance
  • Determining break‑even prices
  • Educational understanding of cost basis methods

Suggest an improvement

Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.

Page details

1,644

Views
  • Published July 15, 2026
  • Last updated August 1, 2026