Bitcoin Tax Calculator: FIFO, LIFO, and Specific Lot Methods Compared
Quick Answer
When you sell Bitcoin, the IRS requires you to calculate your gain or loss by subtracting your cost basis (what you originally paid) from your sale proceeds. But if you purchased Bitcoin at multiple different times and prices over the years, which purchase do you match against the sale? The accounting method you choose, whether FIFO, LIFO, HIFO, or specific lot identification, can dramatically change your tax bill. This guide compares every method with concrete examples so you can choose the approach that minimizes your tax liability while staying fully compliant with IRS rules.
Quick Answer
The IRS allows four primary cost basis methods for calculating Bitcoin taxes: FIFO (First In First Out), LIFO (Last In First Out), HIFO (Highest In First Out), and Specific Lot Identification. FIFO is the most conservative and commonly used method. HIFO and Specific Lot tend to minimize taxes by selling your highest-cost Bitcoin first. You must apply your chosen method consistently and maintain adequate records. You can switch methods between tax years, but you should document your reasoning and ensure consistency within each year.
Key Takeaways
- FIFO matches your earliest Bitcoin purchases against your sales, often resulting in the highest gains when prices have risen over time
- LIFO matches your most recent purchases against sales, which can reduce gains in a rising market but increase them in a falling market
- HIFO (Highest In First Out) matches your most expensive Bitcoin purchases against sales, typically minimizing taxable gains
- Specific Lot Identification lets you choose exactly which Bitcoin units to sell, offering maximum flexibility and tax optimization
- You can switch cost basis methods between tax years, but must apply the chosen method consistently within each year
- The IRS requires you to maintain records sufficient to substantiate your chosen method
- Most major exchanges default to FIFO, so you must actively select a different method if you want to use one
Understanding Cost Basis for Bitcoin
Before diving into specific methods, it is essential to understand what cost basis means and why it matters. Your cost basis is the original value of your Bitcoin for tax purposes, typically the purchase price plus any associated fees (such as exchange fees or network transaction fees at the time of purchase). When you sell Bitcoin, your taxable gain or loss equals the sale proceeds minus the cost basis.
If you bought Bitcoin in a single transaction, the calculation is straightforward. But most investors accumulate Bitcoin through multiple purchases at different prices over months or years. Each purchase creates a separate “lot” with its own cost basis. When you sell a portion of your holdings, the IRS requires you to determine which lots you are selling from. This is where cost basis methods come into play.
For example, suppose you made the following Bitcoin purchases:
- January 2024: 0.5 BTC at $42,000 = $21,000 cost basis
- June 2024: 0.3 BTC at $65,000 = $19,500 cost basis
- October 2024: 0.2 BTC at $58,000 = $11,600 cost basis
Total holdings: 1.0 BTC with an average cost basis of $52,100.
Now suppose you sell 0.5 BTC in March 2025 for $70,000 (proceeds = $35,000). Which 0.5 BTC did you sell? The answer depends on your chosen cost basis method, and each method produces a different tax result.
FIFO Method (First In First Out)
How FIFO Works
FIFO assumes that the first Bitcoin you purchased is the first Bitcoin you sell. It matches your earliest acquisitions against your disposals in chronological order. This is the default method used by most crypto exchanges and tax software.
FIFO Example
Using our purchase history above, if you sell 0.5 BTC under FIFO, you are deemed to be selling the January 2024 lot of 0.5 BTC that cost $21,000.
- Sale proceeds: 0.5 BTC x $70,000 = $35,000
- Cost basis (FIFO): $21,000
- Taxable gain: $14,000
This is a long-term gain since the January 2024 Bitcoin was held for more than one year.
When FIFO Results in Higher Taxes
FIFO tends to produce the highest gains in a rising market because it sells your oldest, lowest-cost coins first. If Bitcoin’s price has appreciated significantly since your earliest purchases, FIFO maximizes the difference between proceeds and cost basis, resulting in the largest taxable gain.
However, FIFO can be advantageous if your earliest purchases were at higher prices than later ones (for example, if you bought during a peak and accumulated more during a dip). In that scenario, FIFO would sell the higher-cost lots first, reducing your gain or increasing your loss.
Who Should Use FIFO
FIFO is best suited for investors who want simplicity and minimal record-keeping, those who have losses on early purchases and gains on later ones, and those who prefer a conservative approach that is unlikely to face IRS scrutiny. Many tax professionals recommend FIFO as the safest default because it is the most widely accepted and understood method.
LIFO Method (Last In First Out)
How LIFO Works
LIFO assumes that the last Bitcoin you purchased is the first Bitcoin you sell. It matches your most recent acquisitions against your disposals in reverse chronological order.
LIFO Example
Using our purchase history, if you sell 0.5 BTC under LIFO, you are deemed to be selling the October 2024 lot (0.2 BTC at $58,000 = $11,600) plus 0.3 BTC from the June 2024 lot (0.3 BTC at $65,000 = $19,500).
- Sale proceeds: 0.5 BTC x $70,000 = $35,000
- Cost basis (LIFO): $11,600 + $19,500 = $31,100
- Taxable gain: $3,900
Compare this to FIFO’s $14,000 gain. LIFO produces a significantly smaller gain because it sells the most recently purchased (and most expensive) Bitcoin first.
When LIFO Saves on Taxes
LIFO is most beneficial when Bitcoin prices have been rising and your most recent purchases were at higher prices than earlier ones. By selling the higher-cost lots first, you minimize the gain. In a falling market, however, LIFO can actually increase your tax liability because you would be selling lower-cost recent purchases against potentially lower sale prices.
LIFO Considerations
While LIFO can reduce your current tax bill, it leaves your lowest-cost lots in your portfolio. This means future sales could trigger larger gains. LIFO essentially defers tax liability rather than eliminating it. Additionally, LIFO is less commonly used in the crypto space, and some tax professionals caution that aggressive LIFO usage could draw IRS attention, particularly if not documented thoroughly.
HIFO Method (Highest In First Out)
How HIFO Works
HIFO selects the Bitcoin lots with the highest cost basis first. Unlike FIFO and LIFO, which use chronological ordering, HIFO sorts your lots by cost basis in descending order and sells from the most expensive lots first.
HIFO Example
Using our purchase history, the lots ranked by cost per Bitcoin are:
- June 2024: $65,000 per BTC
- October 2024: $58,000 per BTC
- January 2024: $42,000 per BTC
If you sell 0.5 BTC under HIFO, you sell from the June 2024 lot first (0.3 BTC at $65,000 = $19,500), then from the October 2024 lot (0.2 BTC at $58,000 = $11,600).
- Sale proceeds: 0.5 BTC x $70,000 = $35,000
- Cost basis (HIFO): $19,500 + $11,600 = $31,100
- Taxable gain: $3,900
In this particular example, HIFO produces the same result as LIFO because the most recently purchased lots also happen to be the highest-cost lots. However, HIFO and LIFO often produce different results when purchase prices fluctuate over time.
Why HIFO Typically Minimizes Taxes
HIFO is generally the most tax-efficient method because it always selects the highest-cost lots regardless of when they were purchased. This means it minimizes gains (or maximizes losses) on every sale. For investors with complex purchase histories spanning multiple price cycles, HIFO can produce meaningful tax savings compared to FIFO.
However, HIFO requires more detailed record-keeping than FIFO or LIFO because you need to sort your lots by cost basis rather than simply by date. Most crypto tax software handles this automatically, but manual tracking can be cumbersome for active traders.
Specific Lot Identification
How Specific Lot Identification Works
Specific Lot Identification gives you the most control over your tax outcome by allowing you to choose exactly which Bitcoin lots to sell. Rather than relying on a formula (first in, last in, highest in), you explicitly designate which purchase lots your sale comes from.
Specific Lot Example
Suppose you want to minimize your gain on the 0.5 BTC sale. You could specifically identify the June 2024 lot (0.3 BTC at $65,000) and the October 2024 lot (0.2 BTC at $58,000), achieving the same $3,900 gain as HIFO.
But Specific Lot also gives you strategic flexibility beyond just minimizing current taxes. For example, you might choose to sell a lot that produces a long-term gain rather than a short-term gain, even if the short-term gain is smaller, because the long-term rate is lower. Or you might deliberately realize some gains to use up capital loss carryforwards that would otherwise expire unused.
IRS Requirements for Specific Lot Identification
To use Specific Lot Identification, the IRS requires that you:
- Identify the specific lot at the time of the sale: You cannot retroactively decide which lots to sell after the fact. The identification must be made on or before the settlement date of the transaction.
- Maintain adequate records: You must keep documentation showing which lots were selected for each sale, including the date of acquisition, cost basis, and amount from each lot.
- Receive confirmation from the broker: If you are selling through an exchange that supports specific lot selection, you should receive confirmation of your lot selection. If the exchange does not support this feature, your own contemporaneous records serve as documentation.
When to Use Specific Lot
Specific Lot Identification is ideal for sophisticated investors who want maximum control over their tax outcomes, those with complex portfolios containing lots at widely varying prices, and anyone who wants to strategically manage the timing and character (short-term vs. long-term) of their gains. It requires the most diligent record-keeping but offers the greatest tax optimization potential.
Comparing All Methods Side by Side
Using our example (sell 0.5 BTC at $70,000/BTC, total proceeds $35,000):
| Method | Lots Sold | Cost Basis | Taxable Gain |
|---|---|---|---|
| FIFO | Jan 2024 (0.5 BTC) | $21,000 | $14,000 |
| LIFO | Oct 2024 (0.2 BTC) + Jun 2024 (0.3 BTC) | $31,100 | $3,900 |
| HIFO | Jun 2024 (0.3 BTC) + Oct 2024 (0.2 BTC) | $31,100 | $3,900 |
| Specific Lot | User’s choice | Varies | Varies |
In this example, FIFO produces a gain that is more than three times larger than LIFO or HIFO. At a 15% long-term capital gains rate, the tax difference is $2,115 ($14,000 x 15% = $2,100 vs. $3,900 x 15% = $585). This illustrates how significant the choice of cost basis method can be.
Switching Methods Between Years
The IRS generally allows taxpayers to change their cost basis method from one tax year to the next. There is no explicit requirement to use the same method every year. However, there are important caveats:
Consistency within a year: You must apply your chosen method consistently to all transactions within a single tax year. You cannot use FIFO for some sales and LIFO for others within the same tax return.
Documentation: If you switch methods, keep clear records documenting your reasoning and ensuring accurate calculations under the new method. The IRS may question frequent or arbitrary method switching.
Substantiation: Regardless of which method you use, you must be able to substantiate your calculations with transaction records. If audited, you will need to show how you determined the cost basis for each sale.
Tax avoidance vs. tax planning: While legally switching methods to minimize taxes is acceptable tax planning, deliberately inconsistent or fraudulent application of methods could be challenged by the IRS.
Which Method Saves the Most Tax
The answer depends on your specific situation, but here are general guidelines:
- Rising market with early low-cost purchases: HIFO or Specific Lot will save the most by selling high-cost lots first.
- Falling market or mixed prices: The optimal method depends on your specific purchase pattern. Run calculations using each method to determine the best outcome.
- Long-term vs. short-term optimization: Specific Lot Identification is the only method that lets you selectively realize long-term gains while deferring short-term gains, making it the most powerful tool for managing your overall tax rate.
- Simplicity preference: FIFO is the easiest to track and explain to the IRS, which matters if you are ever audited.
The best practice is to calculate your tax liability under multiple methods before filing your return, then choose the one that produces the most favorable outcome. Most crypto tax software allows you to toggle between methods and see the resulting tax difference instantly.
Related Guides
- Crypto Cost Basis Tracking - Master the fundamentals of tracking cost basis across wallets and exchanges
- Crypto Tax Reporting Guide 2026 - Complete step-by-step guide to filing your crypto taxes
- Short-Term vs Long-Term Capital Gains - How holding period affects your crypto tax rate
- Crypto Loss Harvesting Strategies - Strategic approaches to offset gains and reduce your tax bill
Frequently Asked Questions
Can I use different cost basis methods for different cryptocurrencies?
Yes, the IRS generally permits you to use different cost basis methods for different types of digital assets. For example, you could use FIFO for Bitcoin and HIFO for Ethereum. However, you must apply the chosen method consistently to all transactions for each specific asset within a given tax year. Some tax professionals recommend using the same method across all assets for simplicity and to avoid potential IRS questions, but there is no legal requirement to do so. If you use different methods, document your choices clearly.
Does my crypto exchange automatically use the best tax method for me?
No, most major crypto exchanges default to FIFO for cost basis calculations. This is the simplest and most widely accepted method, but it is rarely the most tax-efficient for investors in a rising market. Exchanges like Coinbase, Kraken, and Gemini typically do not offer HIFO or Specific Lot selection as default options. You may need to use dedicated crypto tax software to calculate your gains using alternative methods. Some exchanges are beginning to offer more flexibility with cost basis methods as reporting requirements become more stringent, but you should not assume your exchange is optimizing for your tax benefit.
Do I need IRS approval to switch from FIFO to HIFO?
No, you do not need IRS approval to change your cost basis method between tax years for cryptocurrency. Unlike some accounting method changes in traditional finance that require filing Form 3115 (Application for Change in Accounting Method), the IRS has not established such formal requirements for crypto cost basis methods. You simply use the new method when preparing your next tax return. However, you should maintain clear documentation of which method you used each year and be prepared to explain the change if audited. Some tax advisors recommend including a brief statement with your return noting the method used, though this is not required.
How do transaction fees affect my cost basis calculation?
Transaction fees you pay when purchasing Bitcoin are added to your cost basis, which reduces your taxable gain when you eventually sell. For example, if you bought 1 BTC for $50,000 and paid a $100 exchange fee, your total cost basis is $50,100. Similarly, fees paid when selling Bitcoin are subtracted from your sale proceeds, which also reduces your gain. If you sold that 1 BTC for $60,000 and paid a $100 fee, your net proceeds would be $59,900, and your gain would be $59,900 minus $50,100, which equals $9,800. Network (gas) fees paid to miners for processing your on-chain transaction are generally treated the same way as exchange fees for cost basis purposes.
What happens if I cannot determine my cost basis?
If you genuinely cannot determine your cost basis, perhaps because you lost records from early purchases or received Bitcoin without a clear acquisition value, you should make a good-faith estimate using the best information available. You might use historical price data from CoinDesk or CoinMarketCap to estimate the fair market value at the approximate time of acquisition. The IRS expects taxpayers to make reasonable efforts to establish cost basis. If you report a cost basis of zero, you will owe tax on the full sale proceeds, which is the worst-case scenario. If audited and the IRS determines your cost basis is inaccurate, they may impose accuracy-related penalties of 20% on the underpaid tax. Always keep backups of purchase confirmations and exchange records.
Is HIFO accepted by the IRS for cryptocurrency?
The IRS has not explicitly endorsed or prohibited any specific cost basis method for cryptocurrency in the same way it has for securities. However, IRS guidance (including Notice 2014-21 and subsequent updates) treats cryptocurrency as property for tax purposes. For property, the IRS generally accepts any reasonable and consistently applied method for identifying specific lots disposed of. HIFO is widely accepted by tax professionals as a legitimate method for crypto, and major crypto tax software platforms include it as an option. The key requirements are that the method is applied consistently within each tax year and that you maintain adequate records to substantiate your calculations.
Can specific lot identification save me more than HIFO?
Specific Lot Identification can produce results equal to or better than HIFO, but never worse, because it offers the same cost-minimization capability with additional flexibility. HIFO always selects the absolute highest-cost lots, which is optimal when your only goal is minimizing current gains. However, Specific Lot allows you to consider other factors beyond pure cost, such as the holding period (to prefer long-term over short-term gains), the size of individual lots, and strategic timing of gain recognition. For example, if your highest-cost lot is a short-term holding and your second-highest is a long-term holding, Specific Lot lets you choose the long-term lot to benefit from lower capital gains rates, even though it produces a slightly larger nominal gain. This flexibility makes Specific Lot the most powerful method for holistic tax planning.
Related Guides
Calculate Your Crypto Taxes Now
Use our free crypto tax calculator to estimate your capital gains, losses, and tax liability in seconds.
Open Free Calculator