Skip to main content
All Articles
Financial Guide
6 min read July 2, 2026
Verified July 2026

How to Calculate Bitcoin Cost Basis Across Multiple Purchases

Most Bitcoin holders are calculating their cost basis wrong, and the IRS notices. A single misapplied accounting method across ten purchases can shift your taxable gain by thousands of dollars. Here is the exact framework to get it right.

How to Calculate Bitcoin Cost Basis Across Multiple Purchases

Key Takeaways

  • The IRS treats Bitcoin as property, not currency. Every sale, trade, or spend is a taxable event requiring an accurate cost basis.
  • Using FIFO by default when you bought heavily in 2021 can increase your taxable gain by $8,000 or more per 1 BTC sold, compared to specific identification.
  • Track every purchase price, date, quantity, and fee in a single ledger, then apply your chosen accounting method consistently across the tax year.
  • Tool: Run your capital gains calculation now →

File Smarter This YearSPONSORED

Stop leaving money on the table. TurboTax finds every deduction automatically.

Interactive Calculator
Full screen
Loading Calculator
calcmoney.io/calculatorsOpen full screen

What Cost Basis Actually Means for Bitcoin

Cost basis is the original value of an asset for tax purposes. For Bitcoin, that means the total dollar amount you paid to acquire each unit, including transaction fees.

When you sell, the IRS taxes the difference between your sale price and your cost basis. Get the basis wrong, and you either overpay tax or expose yourself to a deficiency notice.

The complexity multiplies fast. A single investor who dollar-cost-averaged $500 per month through 2022 and 2023 holds 24 separate lots, each bought at a different price. Selling any portion of that position requires the investor to determine which specific coins were sold and at what original cost.

The IRS confirmed in Revenue Ruling 2023-14 that cryptocurrency is property. That ruling applies all existing property tax rules to Bitcoin, including the requirement to track and report cost basis per lot.

The Four Accounting Methods the IRS Allows

First In, First Out (FIFO)

FIFO assumes your oldest coins sell first. If you bought 0.5 BTC in January 2021 at $35,000 and another 0.5 BTC in December 2022 at $16,500, selling 0.5 BTC today means the IRS considers you sold the January 2021 lot first.

FIFO is the default method most exchanges apply. It is rarely optimal for investors who bought at cycle peaks.

Last In, First Out (LIFO)

LIFO assumes your most recent purchases sell first. The IRS permits LIFO for cryptocurrency, though it can create short-term gain exposure if your recent purchases are less than a year old.

Highest In, First Out (HIFO)

HIFO lets you designate the highest-cost lot for each sale. This minimizes your taxable gain by reducing the spread between purchase price and sale price. It is legal, commonly used, and frequently the most tax-efficient method for investors with diversified purchase histories.

Specific Identification

Specific identification gives you the most control. You designate exactly which lot you are selling at the time of the transaction. The IRS requires that you record the designation contemporaneously, meaning before or at the point of sale, not retroactively at tax time.

This method demands disciplined record-keeping but produces the most favorable outcomes for sophisticated investors.

Why the Accounting Method Choice Matters in Dollar Terms

Here is a direct comparison using a realistic purchase history.

Purchase history:

DateBTC PurchasedPrice Per BTCTotal Cost
March 20210.25 BTC$55,000$13,750
November 20210.25 BTC$62,000$15,500
June 20220.50 BTC$20,000$10,000
January 20230.50 BTC$16,500$8,250

Total held: 1.5 BTC. Total invested: $47,500.

In June 2026, the investor sells 0.5 BTC at $95,000 per coin. Gross proceeds: $47,500.

Under FIFO: The March 2021 lot sells first. Cost basis: $13,750 for 0.25 BTC, then $15,500 for the remaining 0.25 BTC. Total basis: $29,250. Capital gain: $47,500 minus $29,250 equals $18,250. Both lots qualify as long-term. At the 15% federal long-term capital gains rate, tax owed: $2,737.50.

Under HIFO: The November 2021 lot ($15,500 for 0.25 BTC) and the March 2021 lot ($13,750 for 0.25 BTC) have the two highest per-unit costs. Total basis: $29,250. In this case HIFO and FIFO produce identical results because the two highest-cost lots are also the oldest.

Under specific identification targeting the highest-cost lots: If the investor instead identifies the November 2021 lot (0.25 BTC at $62,000/BTC, basis $15,500) and the June 2022 lot (0.25 BTC at $20,000/BTC, basis $5,000), total basis becomes $20,500. Capital gain: $47,500 minus $20,500 equals $27,000. Tax at 15%: $4,050.

That is a worse outcome. The point is that specific identification requires deliberate lot selection, not just the assumption that designating lots always lowers tax. The investor must analyze before executing.

A Worked Example: DCA Investor Over 12 Months

Consider an investor who bought $1,000 of Bitcoin on the first of every month from January through December 2025. Bitcoin's price varied significantly across that period.

Assume an average purchase price across those 12 months of $72,400 per BTC. At $1,000 per month, the investor acquired approximately 0.01381 BTC per month, totaling roughly 0.16575 BTC. Total invested: $12,000.

In March 2026, BTC trades at $95,000. The investor sells 0.05 BTC. Gross proceeds: $4,750.

Under FIFO, the January and February 2025 lots sell first. Assume January's price was $94,000/BTC and February's was $84,000/BTC. The investor acquired 0.01064 BTC in January (basis: $1,000) and 0.01190 BTC in February (basis: $1,000). Together: 0.02254 BTC. Remaining 0.02746 BTC comes from the March 2025 lot, purchased at $68,000/BTC. Basis for 0.02746 BTC: $1,866.28. Total FIFO basis: $3,866.28. Gain: $4,750 minus $3,866.28 equals $883.72. Short-term gain applies to any lot held under 12 months. January 2025 to March 2026 is 14 months, long-term. February is 13 months, long-term. March 2025 to March 2026 is exactly 12 months. The IRS requires more than 12 months for long-term treatment. So the March lot is short-term.

This split holding period creates a blended tax calculation. The short-term portion of the gain taxes at ordinary income rates, potentially 22% to 37% depending on the investor's bracket.

Under HIFO, the investor designates the February 2025 lot (highest per-unit cost at $84,000) and portions of other high-cost months first. This compresses the taxable gain and may shift more of the position into long-term territory.

The difference in tax between FIFO and HIFO in this scenario can easily reach $400 to $700 on a $4,750 sale. Across a full year of rebalancing, that delta compounds.

How to Build and Maintain a Cost Basis Ledger

Every Bitcoin holder with more than two purchases needs a running ledger. The minimum data fields required:

  • Purchase date
  • Quantity purchased (to eight decimal places)
  • Price per BTC at purchase
  • Transaction fee in dollars
  • Exchange or wallet source
  • Lot identifier

The transaction fee increases your cost basis. If you paid $12.50 to buy $1,000 of Bitcoin, your basis is $1,012.50, not $1,000. That $12.50 reduction in taxable gain is small per transaction and significant across years of active buying.

Keep this ledger in a spreadsheet or dedicated crypto tax software. Coinbase, Kraken, and other major exchanges export transaction histories in CSV format. Import those files at least quarterly. Waiting until April to reconstruct two years of trades from memory is how investors make expensive errors.

What Happens When You Move Bitcoin Between Wallets

Moving Bitcoin between your own wallets is not a taxable event. The cost basis follows the coin. If you move 0.1 BTC from Coinbase to a hardware wallet, the original purchase date and price remain unchanged.

The complication arises when exchanges lose transaction history after a certain date, or when investors switch platforms. If you cannot document the original purchase price, the IRS may treat the entire proceeds as gain. Reconstruct what you can using bank statements, email confirmations, and exchange support tickets.

The Specific Identification Requirement in Practice

The IRS requires that specific identification be made before the sale. This means logging the lot designation in writing, through your exchange's interface or in your own records, before you click sell.

Some exchanges support lot-level selection natively. Others do not. If your exchange does not support it, document the designation yourself with a timestamped record showing the lot date, quantity, and cost basis, and retain that record with your tax files.

Retroactive lot selection is not permitted. Investors who claim specific identification without contemporaneous records face the risk of the IRS defaulting their method to FIFO, which may increase their liability.

Run Your Numbers Before the Next Sale

The difference between a thoughtful cost basis strategy and a default one is not theoretical. On a $50,000 Bitcoin position with varied purchase dates, the gap between FIFO and HIFO tax outcomes can exceed $4,000 in a single tax year.

Before your next sale, pull your full purchase history, sort it by price per unit, and model the tax outcome under at least two methods. The CalcMoney capital gains calculator lets you input individual lots with purchase dates and prices, apply your chosen accounting method, and see the after-tax proceeds in real time.

The math takes ten minutes. The tax savings can run into four figures.

You Might Also Like

Calculate your Bitcoin capital gains now →
Featured Partner
FIDELITY

Put These Numbers to Work

Open a Fidelity brokerage account. $0 commissions, no account minimums, fractional shares available.

Run the Numbers

Affiliated. We may earn a commission.

OR

One money insight per week.

Calculator deep-dives, rate alerts, and financial analysis written for real decisions. Unsubscribe anytime.

1 email/week. No spam. Unsubscribe in one click.

Free Tools

Run the actual numbers

Stop estimating. Plug in your numbers and get a precise answer in seconds. Free, no signup required.

Open Free Calculators