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.
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 | — | — | — | — | — | — |
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
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 price | Value at 2× ACB | Value at 0.5× ACB |
|---|
Typical ACB Ranges by Asset Class
Representative average cost basis values. Your actual ACB depends entirely on when you bought.
| Asset | Typical ACB range | Notes |
|---|---|---|
| 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 – $500 | Steady upward drift; older positions have lower ACB |
| Small-cap equity | $1 – $50 | High 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 widely | ACB 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.
| Method | How it works | Used where | Notes |
|---|---|---|---|
| ACB (Average Cost) | One blended price for the whole pool | Canada, UK, many crypto tools | Simplest to compute; every sale uses the same ACB |
| FIFO (First In, First Out) | Oldest units sold first | US default for stocks and crypto | Can amplify gains if prices have risen since the first buy |
| LIFO (Last In, First Out) | Newest units sold first | US (with election), some crypto tools | Often reduces gains if recent buys are higher priced |
| HIFO (Highest In, First Out) | Most expensive units sold first | US (specific identification), some crypto | Minimises gains; requires per-lot record-keeping |
| Specific ID | You choose which lot to sell | US (with broker support) | Most flexible but highest record-keeping burden |
Variable Reference
| Symbol | Meaning | Typical range | Units |
|---|---|---|---|
| ACB | Average cost basis per unit | 0.000001 – 1,000,000 | USD / unit |
| TAI | Total amount invested | 0.01 – 10⁹ | USD |
| TCH | Total coins held | 0.000001 – 10¹² | units |
| FMV | Fair market value (current price) | — | USD / unit |
| P&L | Unrealised 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:
Rearranged to solve for the other two unknowns:
TCH = TAI / ACB
From these, additional metrics follow directly:
Break-even price = ACB
Return % = (FMV − ACB) / ACB × 100
Cost Basis Variables
| Symbol | Meaning | Notes |
|---|---|---|
| ACB | Average cost basis per unit | Total invested ÷ total units held |
| TAI | Total amount invested | Sum of every buy, less cost removed by prior sales |
| TCH | Total coins held | Sum of every buy minus every sale (current holdings) |
| FMV | Fair market value | Current market price per unit |
| P&L | Profit 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
ACB = 10,000 / 100 = $100.00 per unit
TAI = 100 × 100 = $10,000
TCH = 10,000 / 100 = 100 units
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.
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| Parameter | Value |
|---|---|
| Total Invested | $50,000 |
| Total Coins Held | 1.2 BTC |
| Parameter | Value |
|---|---|
| Invested | $10,000 |
| Coins | 4 ETH |
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
Related calculators · Wallet, Security & Tax
Recently updated formulas
Suggest an improvement
Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.