Regulations & Legal

What is FIFO vs LIFO for XRP tax calculation?

Last updated:

FIFO (First In, First Out) and LIFO (Last In, First Out) are cost basis accounting methods that determine which XRP units you're selling when you have multiple purchases at different prices. The method you choose significantly impacts your taxable gains or losses, and understanding both approaches is crucial for tax optimization.

FIFO (First In, First Out):

FIFO assumes you sell the oldest XRP you own first. This is the IRS default method if you don't specify another approach. With FIFO, the first XRP you purchased is considered the first XRP you sell.

Example of FIFO:

You made three XRP purchases: - January 2025: 1,000 XRP at $0.50 = $500 (Lot A) - June 2025: 1,000 XRP at $1.00 = $1,000 (Lot B) - March 2026: 1,000 XRP at $2.00 = $2,000 (Lot C)

In December 2026, you sell 1,500 XRP for $4,500 (at $3.00 per XRP).

FIFO Calculation: - First 1,000 XRP sold = Lot A (basis: $500) - Next 500 XRP sold = half of Lot B (basis: $500) - Total cost basis: $1,000 - Capital gain: $4,500 - $1,000 = $3,500 - Holding period: Long-term (Lot A held over 1 year) and long-term (Lot B held over 1 year)

LIFO (Last In, First Out):

LIFO assumes you sell the most recently acquired XRP first. This method is permitted by the IRS if consistently applied, though it's not the default.

Example of LIFO (same purchases):

Selling 1,500 XRP for $4,500 in December 2026:

LIFO Calculation: - First 1,000 XRP sold = Lot C (basis: $2,000) - Next 500 XRP sold = half of Lot B (basis: $500) - Total cost basis: $2,500 - Capital gain: $4,500 - $2,500 = $2,000 - Holding period: Short-term (Lot C held under 1 year) for 1,000 XRP, long-term for 500 XRP

Comparison of Tax Impact:

Using the example above, assuming you're in the 24% ordinary income bracket and 15% long-term capital gains bracket:

FIFO Result: - Capital gain: $3,500 (all long-term) - Tax: $3,500 × 15% = $525

LIFO Result: - Capital gain breakdown: - Short-term: ($3,000 - $2,000) × (1,000/1,500) = $667 short-term gain from Lot C - Long-term: ($1,500 - $500) × (500/1,500) = $1,333 long-term gain from Lot B - Tax calculation: - Short-term: Need to calculate properly based on per-unit basis - Actually: 1,000 units from Lot C: ($3,000 proceeds - $2,000 basis) = $1,000 short-term - 500 units from Lot B: ($1,500 proceeds - $500 basis) = $1,000 long-term - Total tax: ($1,000 × 24%) + ($1,000 × 15%) = $240 + $150 = $390

LIFO saves $135 in taxes in this scenario.

Other Cost Basis Methods:

Beyond FIFO and LIFO, the IRS permits additional methods:

1. Specific Identification:

You specifically identify which XRP lots you're selling at the time of sale. This offers maximum flexibility but requires meticulous recordkeeping and documentation BEFORE the sale.

Requirements for Specific Identification: - Identify specific lots before or at time of sale - Maintain adequate records showing which lots were sold - Receive confirmation (exchange statement, blockchain record) - Document identification method

Example:

Using the same three lots, you could specify selling: - 1,000 XRP from Lot C (highest basis: $2,000) - 500 XRP from Lot A (lowest basis: $250) - Total basis: $2,250 - Gain: $2,250

This gives you flexibility to optimize for either minimizing current taxes (sell high-basis lots) or maximizing long-term benefits (sell low-basis lots for long-term holding).

2. HIFO (Highest In, First Out):

Some cryptocurrency tax software offers HIFO, selling highest-basis XRP first to minimize gains. While not explicitly mentioned in IRS guidance, it's a form of specific identification.

Example: - Sell 1,000 from Lot C (basis $2,000) first - Then 500 from Lot B (basis $500) - Total basis: $2,500 (same as LIFO in this case)

3. Average Cost:

Generally NOT allowed for cryptocurrency by the IRS. Average cost basis is permitted for mutual fund shares but not for individual securities or property like XRP. Don't use this method.

Strategic Considerations:

When FIFO Works Best: - Rising XRP prices over time (lower early basis = lower taxes) - When you want long-term capital gains treatment - Simpler recordkeeping (it's the default) - When oldest lots have highest basis (prices were declining)

When LIFO Works Best: - Falling XRP prices over time (higher recent basis = lower gains or losses) - Harvest losses from recent purchases - Short-term tax planning - When you want to preserve low-basis lots for future long-term treatment

When Specific Identification Works Best: - Maximum flexibility for tax optimization - Complex portfolio with many lots - Strategic tax planning across multiple years - Need to control short-term vs. long-term characterization - Harvesting specific losses while preserving gains

Practical Example - Tax Loss Harvesting:

You own: - Lot A: 2,000 XRP at $3.00 = $6,000 (now worth $4,000, unrealized $2,000 loss) - Lot B: 2,000 XRP at $1.00 = $2,000 (now worth $4,000, unrealized $2,000 gain)

You want to harvest losses without triggering gains:

With FIFO (default): Selling 2,000 XRP sells all of Lot A, harvesting $2,000 loss. Perfect.

With Specific Identification: You can specify selling only Lot A, same result but with explicit documentation.

If you needed to sell 3,000 XRP: - FIFO: Sells all Lot A ($2,000 loss) + 1,000 from Lot B ($1,000 gain) = net $1,000 loss - Specific ID: Could sell all of Lot A + something else, or structure differently

Consistency Requirements:

The IRS requires consistent application of your chosen method:

Same method per exchange/wallet: You can use different methods for different exchanges or wallets, but must be consistent within each.

Example: FIFO for Coinbase account, Specific ID for hardware wallet holdings = ALLOWED

Changing between sales: Changing from FIFO to LIFO between sales within same account = GENERALLY ALLOWED but risky; maintain clear documentation

Per-sale documentation: For specific identification, you must document which method applies to each sale

Software Implementation:

Cryptocurrency tax software handles these methods:

CoinTracker, TaxBit, ZenLedger, Koinly: - Let you choose FIFO, LIFO, HIFO, or Specific ID - Calculate gains/losses under each method - Show tax comparison across methods - Generate Form 8949 with your chosen method - Some allow different methods per wallet

Recommended approach: 1. Import all transactions 2. Run calculations under each method 3. Compare total tax liability 4. Choose optimal method 5. Use consistently going forward (or document changes)

Documentation Requirements:

For any method, maintain:

For FIFO/LIFO: - Complete transaction history in chronological order - Purchase dates, amounts, prices - Sale dates, amounts, prices - Clear indication of method used

For Specific Identification (additional): - Pre-sale documentation identifying specific lots - Exchange confirmations showing lot identification - Wallet transaction records linking sales to purchases - Contemporary written records of intent

Example Documentation: "On December 15, 2026, I sold 1,000 XRP from Lot #3 (purchased March 10, 2025) at $2.50 per XRP. Transaction ID: abc123..."

Common Mistakes:

1. Using average cost: Not allowed for cryptocurrency; IRS will likely default to FIFO

2. Not documenting specific identification: Without proof, IRS will apply FIFO

3. Inconsistent application: Switching methods to cherry-pick best outcome on each trade without documentation

4. Forgetting holding period: LIFO often creates more short-term gains

5. Not considering wash sales: While not applicable to crypto currently, track in case rules change

6. Ignoring exchange-level differences: Not tracking which exchange holds which lots

State Tax Considerations:

Most states follow federal cost basis methods. However: - Some states may have different rules - Check state-specific guidance - Some states don't tax capital gains (TX, FL, NV, WA, AK, SD, WY, NH, TN)

IRS Audit Considerations:

During an audit: - IRS will default to FIFO if you can't prove another method - Specific identification requires strongest documentation - Contemporaneous records (created at time of sale) strongest evidence - After-the-fact reconstruction may be challenged

Long-Term Strategy:

Consider your multi-year tax situation:

Year 1 (accumulation): FIFO might create lower basis now but higher future taxes

Year 2-5 (holding): Preserve low-basis lots for long-term treatment

Year 6+ (distribution): Use specific identification to control tax impact

Planning for different scenarios: - Low-income years: Realize gains (0% LTCG bracket) - High-income years: Harvest losses - Mixed years: Use specific identification for precision

Advanced Techniques:

1. Separate wallet segregation: Keep different tax-lot purposes in different wallets: - Wallet A: Low-basis long-term holds (never sell) - Wallet B: Trading XRP (use LIFO or specific ID) - Wallet C: Loss harvesting candidates

2. Annual tax planning: Near year-end, calculate: - Gains/losses under each method - Short-term vs. long-term mix - Impact on total tax liability - Choose optimal method for remaining sales

3. Estate planning: Low-basis lots receive step-up at death. Consider: - Holding low-basis lots until death - Gifting high-basis lots during life - Strategic sales of high-basis lots

Important Disclaimer: Cost basis accounting methods significantly impact tax liability and require careful recordkeeping and consistent application. This information is educational only and not tax advice. The optimal method depends on your specific purchase history, price movements, holding periods, income levels, and overall tax situation. Consult a qualified tax professional or CPA specializing in cryptocurrency taxation to choose and implement the best cost basis method for your circumstances, and ensure your documentation meets IRS requirements for your chosen method.

Official Resources: - IRS Publication 550 (Investment Income and Expenses): https://www.irs.gov/forms-pubs/about-publication-550 - IRS Publication 551 (Basis of Assets): https://www.irs.gov/forms-pubs/about-publication-551 - IRS Topic No. 703 (Basis of Assets): https://www.irs.gov/taxtopics/tc703

Was this helpful?

Related Questions

Go Deeper

Expand your knowledge with these related lessons

Cost Basis Methods and Calculations

55 minintermediate

Tracking Your XRP Cost Basis

Cost basis tracking spreadsheet with automated calculation methods

44 minbeginner

Capital Gains Fundamentals - Understanding Your Tax Bill

55 minintermediate

Have more questions?

Browse our complete FAQ or contact support.