Crypto Cost Basis Tracking: Methods, Tools, and Best Practices
Quick Answer
Accurate cost basis tracking is the foundation of proper cryptocurrency tax reporting. Every time you sell, trade, or dispose of cryptocurrency, you need to know your cost basis to calculate your capital gain or loss. For taxpayers who have made dozens, hundreds, or even thousands of crypto transactions across multiple exchanges and wallets over several years, maintaining accurate cost basis records can be one of the most challenging aspects of crypto tax compliance.
This guide covers everything you need to know about cryptocurrency cost basis tracking, including the different accounting methods approved by the IRS, how to handle complex situations like crypto-to-crypto trades and wallet transfers, record-keeping requirements, and the tools available to help you stay organized and compliant.
Quick Answer
Your cost basis in cryptocurrency is the original purchase price plus any associated acquisition costs (such as transaction fees). The IRS allows you to use specific identification to select which units of cryptocurrency you are selling, as long as you can adequately identify the specific units. If you cannot specifically identify the units, the IRS defaults to a FIFO (First-In, First-Out) method. Maintaining detailed records of every purchase, trade, transfer, and sale is essential for accurate cost basis tracking and for surviving an IRS examination.
Key Takeaways
- Cost basis equals your purchase price plus acquisition costs like trading fees.
- The IRS permits specific identification if you can adequately identify which units you are selling.
- Without specific identification, FIFO (First-In, First-Out) is the default method.
- FIFO, LIFO, and HIFO each produce different tax outcomes; choosing the right method can save thousands.
- Crypto-to-crypto trades are taxable events that require tracking cost basis for both assets involved.
- Wallet-to-wallet transfers are not taxable and do not change your cost basis.
- Inherited cryptocurrency receives a stepped-up basis equal to the fair market value at the date of death.
- The IRS requires you to maintain records sufficient to establish the amount of gain or loss on every transaction.
What Is Cost Basis for Cryptocurrency?
Cost basis is the original value of an asset for tax purposes, used to determine the capital gain or loss when you sell or dispose of it. For cryptocurrency, your cost basis is generally the amount you paid to acquire it, including:
Components of Cost Basis
- Purchase price: The amount you paid in U.S. dollars (or the dollar value of another cryptocurrency used to make the purchase).
- Transaction fees: Exchange fees, network fees (gas fees), and any other costs directly associated with acquiring the cryptocurrency.
- Acquisition-related costs: Wiring fees, exchange spread costs (in some cases), and other incidental costs of purchase.
For example, if you purchased 1 Bitcoin for $40,000 and paid a $100 exchange fee and a $20 network fee, your total cost basis is $40,120. When you later sell that Bitcoin for $65,000, your capital gain is $24,880 ($65,000 minus $40,120).
Why Cost Basis Matters
Your cost basis directly determines how much capital gains tax you owe. A higher cost basis means a lower taxable gain, and a lower cost basis means a higher taxable gain. Errors in tracking cost basis can result in overpaying or underpaying your taxes. Underpaying exposes you to penalties and interest, while overpaying means leaving money on the table.
The challenge with cryptocurrency is that many investors accumulate positions through numerous small purchases at different prices over time. Each purchase creates a separate “lot” with its own cost basis and acquisition date. When you sell a portion of your holdings, you need to determine which specific lots you are selling from.
Specific Identification vs. Averaging
The IRS allows two broad approaches to determining which cryptocurrency units you are selling:
Specific Identification
Under specific identification, you choose exactly which units of cryptocurrency you are selling by referencing the specific purchase transaction (lot) from which the units originated. This method gives you the most control over your tax outcome because you can select the lots that produce the most favorable gain or loss.
To use specific identification, you must be able to adequately identify the specific units of cryptocurrency being sold. The IRS has indicated that adequate identification requires:
- The specific cryptocurrency (e.g., Bitcoin, Ethereum)
- The date and time each unit was acquired
- The cost basis of each unit
- The date and time each unit was sold, exchanged, or otherwise disposed of
You can maintain this information through exchange records, wallet transaction histories, or specialized crypto tax software that tracks individual lots.
Averaging Methods
Some taxpayers attempt to use an average cost method (dividing total cost by total units held) to determine cost basis. However, the IRS has not approved average cost accounting for cryptocurrency. In IRS Revenue Ruling 2019-24 and subsequent guidance, the IRS has indicated that specific identification is the preferred method, and FIFO is the default when specific identification is not possible.
If you use an average cost method and are audited, the IRS may recalculate your gains and losses using FIFO, which could result in a significantly different (and usually higher) tax liability.
FIFO, LIFO, and HIFO Tracking
When you cannot specifically identify the units being sold, or when you choose to use a systematic method, three approaches are commonly discussed:
FIFO (First-In, First-Out)
FIFO assumes that the first units you purchased are the first units you sell. This is the IRS’s default method when specific identification is not available.
Example: You bought 0.5 BTC at $20,000 in January, 0.5 BTC at $30,000 in March, and 0.5 BTC at $50,000 in June. If you sell 0.5 BTC in December at $55,000, FIFO treats this as selling the January lot, resulting in a gain of $35,000 ($55,000 minus $20,000).
FIFO tends to produce the highest taxable gains during a rising market because the oldest (and therefore cheapest) lots are sold first.
LIFO (Last-In, First-Out)
LIFO assumes that the most recently purchased units are the first ones sold. This method can minimize short-term gains by selling recently acquired (and therefore higher-cost) units first.
Example: Using the same purchases as above, LIFO would treat the December sale as selling the June lot, resulting in a gain of only $5,000 ($55,000 minus $50,000).
LIFO tends to produce the lowest taxable gains during a rising market because the most expensive (most recent) lots are sold first. However, the IRS has not explicitly approved LIFO for cryptocurrency, and some tax professionals believe it may not survive scrutiny. Use LIFO with caution and consult a tax advisor.
HIFO (Highest-In, First-Out)
HIFO assumes that the units with the highest cost basis are sold first. This method minimizes gains (or maximizes losses) by always selecting the most expensive lots available.
Example: Using the same purchases, HIFO would also select the June lot (highest cost basis of $50,000), resulting in a gain of $5,000.
Like LIFO, HIFO has not been explicitly approved by the IRS for cryptocurrency. However, it is a form of specific identification (you are specifically identifying the highest-cost lots), which is an IRS-approved method. Many tax professionals consider HIFO to be a defensible application of specific identification if properly documented.
Choosing the Right Method
The method you choose can have a significant impact on your tax liability. Consider these factors:
- Current market conditions: In a rising market, HIFO and LIFO minimize gains. In a falling market, FIFO may produce better results.
- Holding period: Consider whether the lots you are selecting produce short-term or long-term gains. Short-term gains are taxed at ordinary income rates (up to 37%), while long-term gains are taxed at preferential rates (0%, 15%, or 20%).
- Consistency: The IRS expects you to use a consistent method from year to year. Switching methods without justification may attract scrutiny.
- Documentation: Whatever method you use, document your selection methodology clearly and maintain records that support your calculations.
For a detailed comparison of crypto tax calculation methods, see our guide on Bitcoin tax calculator methods.
Handling Multiple Purchases at Different Prices
Most cryptocurrency investors accumulate their positions through multiple purchases at different times and prices. Each purchase creates a separate tax lot with its own cost basis and holding period. Properly tracking these lots is essential for accurate tax reporting.
Creating Tax Lots
Every time you acquire cryptocurrency (through purchase, mining, staking, airdrop, or compensation), a new tax lot is created. Each lot has four key attributes:
- Acquisition date: When you obtained the crypto
- Cost basis: What you paid (in dollars) plus acquisition costs
- Quantity: How much of the cryptocurrency you acquired
- Holding period: Starts on the acquisition date and determines whether eventual gains are short-term or long-term
Partial Sales
When you sell only a portion of your cryptocurrency holdings, you must allocate the sale to specific lots. For example, if you hold 3 Bitcoin purchased at different times and prices, and you sell 1 Bitcoin, you need to determine which of the three lots (or which portions of the lots) were sold.
Example: Multiple Lots
| Lot | Date Acquired | BTC Quantity | Cost Basis | Cost per BTC |
|---|---|---|---|---|
| 1 | Jan 15, 2025 | 0.8 | $24,000 | $30,000 |
| 2 | Apr 10, 2025 | 0.5 | $17,500 | $35,000 |
| 3 | Sep 20, 2025 | 0.7 | $28,000 | $40,000 |
Total holdings: 2.0 BTC with a total cost basis of $69,500.
If you sell 1.0 BTC on December 15, 2025, for $45,000, the gain depends on which lots you sell from:
- FIFO: Sell from Lot 1 (0.8 BTC) + 0.2 BTC from Lot 2. Gain = ($45,000 x 0.8 - $24,000) + ($45,000 x 0.2 - $7,000) = $12,000 + $2,000 = $14,000
- HIFO: Sell from Lot 3 (0.7 BTC) + 0.3 BTC from Lot 2. Gain = ($45,000 x 0.7 - $28,000) + ($45,000 x 0.3 - $10,500) = $3,500 + $3,000 = $6,500
In this example, using HIFO instead of FIFO saves $7,500 in taxable gains.
Cost Basis After Crypto-to-Crypto Trades
One of the most complex aspects of cost basis tracking involves crypto-to-crypto trades. Since the IRS treats cryptocurrency as property, trading one cryptocurrency for another is a taxable event. You must calculate the gain or loss on the cryptocurrency you disposed of, and establish a new cost basis for the cryptocurrency you received.
How It Works
When you trade Crypto A for Crypto B:
- Calculate gain/loss on Crypto A: Subtract your cost basis in Crypto A from the fair market value of Crypto B at the time of the trade. This is your capital gain or loss on the disposition of Crypto A.
- Establish cost basis for Crypto B: Your cost basis in Crypto B is equal to the fair market value of Crypto B at the time of the trade (which is also equal to the fair market value of Crypto A that you traded for it, at the time of the trade).
- Start a new holding period: Your holding period for Crypto B begins on the date of the trade.
Example: ETH to BTC Trade
Suppose you bought 10 ETH at $2,000 each (cost basis $20,000) in March 2025. In December 2025, when ETH is worth $3,500 each, you trade all 10 ETH for 0.5 BTC (valued at $70,000 at the time of the trade).
- Gain on ETH: $35,000 (FMV of $35,000) - $20,000 (cost basis) = $15,000 long-term capital gain
- Cost basis in BTC: $70,000 (FMV at time of trade)
- Holding period for BTC: Begins December 2025
The $15,000 gain is reportable on your 2025 tax return, even though you never converted to U.S. dollars.
For more on the tax implications of these trades, see our guide on crypto-to-crypto trade taxes.
Transferred Crypto Between Wallets
Moving cryptocurrency between wallets or exchanges that you own is not a taxable event. Your cost basis and holding period remain unchanged. The transfer is simply a change in the location of your assets, similar to moving cash from one bank account to another at the same bank.
Key Points About Wallet Transfers
- No gain or loss recognition: You do not report a gain or loss when transferring crypto between your own wallets.
- Cost basis is preserved: The original cost basis carries over to the new wallet location.
- Holding period is preserved: The original acquisition date and holding period are maintained.
- Keep transfer records: Maintain records of the transfer (transaction hash, dates, sending and receiving wallet addresses) to demonstrate to the IRS that the transfer was between your own wallets and not a taxable disposition.
Common Transfer Scenarios
- Moving crypto from Coinbase to a Ledger hardware wallet
- Transferring from a software wallet to a centralized exchange for sale
- Sending crypto from one exchange to another (e.g., from Kraken to Gemini)
- Consolidating holdings from multiple wallets into a single wallet
Potential Pitfalls
Be aware that some transfers may have tax implications:
- Withdrawal fees: If the exchange charges a withdrawal fee denominated in the cryptocurrency being transferred (e.g., you send 1 BTC but the network fee is 0.0005 BTC and the exchange also deducts 0.001 BTC as a withdrawal fee), the fees may be treated as a disposition of a small amount of crypto.
- Wrapping tokens: Converting ETH to WETH (Wrapped ETH) or using a bridge to move assets between blockchains may be treated as a taxable exchange, depending on the specific mechanics.
- Address confusion: If you accidentally send crypto to the wrong address and cannot recover it, you may be able to claim a casualty loss, but the rules are complex.
Inherited Cryptocurrency Cost Basis (Step-Up)
When you inherit cryptocurrency from someone who has died, you receive a stepped-up basis (also called stepped-down basis if the value has declined). Your cost basis is the fair market value of the cryptocurrency on the date of the decedent’s death (or on the alternate valuation date, if the estate executor elects to use it).
How Step-Up Basis Works
The step-up in basis eliminates all unrealized capital gains that accumulated during the deceased person’s lifetime. If your grandfather bought Bitcoin at $100 and left it to you when it was worth $70,000, your cost basis is $70,000, not $100. If you sell it for $75,000, your taxable gain is only $5,000, not $74,900.
Implications for Estate Planning
The stepped-up basis makes inherited cryptocurrency extremely tax-efficient for the heir. This is one reason why holding appreciated cryptocurrency until death and passing it to heirs through an estate plan can be an effective long-term tax strategy.
Establishing the Step-Up Basis
To establish your cost basis in inherited cryptocurrency:
- Obtain the date of death.
- Determine the fair market value of the cryptocurrency on that date (use a reputable exchange price at a specific time, or a daily average).
- If the estate filed an estate tax return (Form 706), the values reported on that return should be consistent with your cost basis.
- Maintain records of the date-of-death valuation and the transfer of the crypto to your possession.
Community Property States
In community property states (Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin), both spouses’ community property may receive a full step-up in basis when one spouse dies. This can be particularly advantageous for married couples holding significant cryptocurrency.
Record-Keeping Best Practices
Maintaining comprehensive records is essential for accurate cost basis tracking and for defending your tax positions in the event of an audit. Here are the best practices for cryptocurrency record-keeping:
What to Record for Every Transaction
For each cryptocurrency transaction, maintain:
- Date and time: The exact date and time of the transaction
- Transaction type: Purchase, sale, trade, transfer, mining, staking, airdrop, etc.
- Cryptocurrency involved: The specific token or coin (e.g., BTC, ETH, SOL)
- Quantity: The exact amount of cryptocurrency
- Price: The price per unit in USD at the time of the transaction
- Total value: The total dollar value of the transaction
- Fees: All transaction fees, exchange fees, and network fees
- Counterparty: The exchange, wallet, or person on the other side of the transaction
- Transaction ID/hash: The blockchain transaction identifier
- Wallet addresses: The sending and receiving wallet addresses
Organizing Your Records
- Use a consistent format: Maintain a spreadsheet or use dedicated crypto tax software with standardized columns for all the information above.
- Keep source documents: Save exchange statements, trade confirmations, screenshots, and wallet transaction histories as PDFs.
- Reconcile regularly: Compare your records against exchange statements and blockchain explorers at least quarterly.
- Back up your data: Store copies of your records in multiple locations (cloud storage, local backup, physical copies of key documents).
- Document your methodology: Keep a written description of the accounting method you use (FIFO, specific identification, HIFO) and apply it consistently.
IRS Recordkeeping Requirements
The IRS requires taxpayers to maintain records sufficient to establish the amount of gross income, deductions, credits, and other items reported on their tax returns. For cryptocurrency, this means you must keep records that allow you to calculate the gain or loss on every transaction.
Specific IRS Guidance
IRS Notice 2014-21, Revenue Ruling 2019-24, and the IRS Virtual Currency FAQ all emphasize the importance of record-keeping for cryptocurrency transactions. The IRS specifically states that taxpayers must maintain records documenting:
- The receipt of virtual currency
- The fair market value of virtual currency at the time of receipt
- The basis of virtual currency acquired by purchase
- The fair market value of virtual currency at the time of exchange or sale
- The exchange records and receipts for all purchases and sales
How Long to Keep Records
The general statute of limitations for IRS audits is three years from the date you filed the return or the due date, whichever is later. However, the statute extends to six years if you underreport income by more than 25%. There is no statute of limitations for fraudulent returns or for failure to file a return. Given the complexity and evolving nature of crypto tax rules, keeping records for at least seven years is advisable.
What Happens If You Do Not Have Adequate Records
If you are audited and cannot produce adequate records to substantiate your cost basis, the IRS may:
- Assume a cost basis of zero, making your entire sale proceeds taxable as capital gains
- Use the information available to reconstruct your cost basis, which may not be favorable to you
- Disallow any claimed capital losses
- Impose accuracy-related penalties of 20% on any underpayment
For guidance on what attracts IRS attention to crypto returns, see our guide on IRS crypto audit triggers.
Tools for Crypto Cost Basis Tracking
Several software tools are available to help you track your cryptocurrency cost basis:
Crypto Tax Software
Specialized platforms like CoinTracker, Koinly, CoinLedger, TaxBit, and ZenLedger can automatically import your transaction history from exchanges and wallets, calculate your cost basis using various methods, and generate IRS-ready tax forms including Form 8949 and Schedule D.
Spreadsheet Tracking
For taxpayers with relatively simple crypto activity, a well-structured spreadsheet can be an effective tracking tool. Create columns for all the required information (date, type, crypto, quantity, price, fees, etc.) and update it after every transaction.
Exchange Records
Most major exchanges provide downloadable transaction histories and tax reports. However, relying solely on exchange records is risky because they do not capture transactions that occurred on other platforms or in self-hosted wallets.
Blockchain Explorers
For self-hosted wallet transactions, blockchain explorers like Etherscan, Blockchain.com, and others can provide a complete record of all transactions associated with a wallet address. These records can help you reconstruct your transaction history if other records are lost.
Frequently Asked Questions
1. Can I use different cost basis methods for different cryptocurrencies?
Yes, the IRS allows you to use different accounting methods for different types of property. You could use FIFO for Bitcoin and specific identification for Ethereum, for example. However, you should be consistent in the method you use for each specific cryptocurrency from year to year. Switching methods frequently without justification may raise audit concerns. Document your method election for each cryptocurrency and apply it consistently. If you decide to change methods, keep a written explanation of the reason for the change.
2. How do I track cost basis for crypto received from mining?
Cryptocurrency received from mining is taxed as ordinary income at its fair market value on the date you receive it. Your cost basis in the mined crypto is that same fair market value. For example, if you mine 0.01 BTC worth $500 on the day it is credited to your wallet, you report $500 of income and your cost basis in that 0.01 BTC is $500. Track each mining reward as a separate lot with its own acquisition date and cost basis. If you mine regularly, you will accumulate many small lots, which makes specific identification more complex but also more beneficial for tax optimization.
3. What if I lost my exchange records and cannot determine my cost basis?
If you have lost exchange records, start by trying to recover them. Most exchanges maintain records that you can access by logging into your account. If the exchange is defunct (such as FTX or Mt. Gox), you may be able to obtain records from bankruptcy proceedings or from email confirmations you received at the time of the transactions. You can also use blockchain explorers to trace transactions to and from your wallets. If you absolutely cannot reconstruct your cost basis, the IRS may treat it as zero, resulting in the maximum possible capital gains tax. In such cases, consider consulting a tax professional who can help you make a reasonable estimate using available evidence.
4. Do transaction fees increase my cost basis?
Yes, fees that are directly related to the acquisition of cryptocurrency are added to your cost basis. This includes exchange trading fees, network fees (gas fees) paid to acquire the crypto, and wire transfer fees used to fund the purchase. However, fees associated with selling (such as exchange fees deducted from sale proceeds) reduce your sale proceeds rather than increasing your cost basis. Properly accounting for fees can make a meaningful difference in your calculated gain or loss, especially for high-frequency traders who pay substantial fees over the course of a year.
5. How do I handle cost basis for crypto received through an airdrop?
Cryptocurrency received through an airdrop is taxed as ordinary income at its fair market value on the date you receive it (when you have dominion and control over the tokens). Your cost basis in the airdropped tokens is that same fair market value. If the airdropped tokens have no established market value at the time of receipt (for example, a new token that is not yet listed on any exchange), you may report zero income at the time of receipt and establish a cost basis of zero. When you eventually sell the tokens, the entire proceeds would be taxable as a capital gain. Some tax professionals recommend documenting that the tokens had no determinable value at the time of the airdrop.
6. Is there a de minimis exemption for small crypto transactions?
Currently, there is no de minimis exemption for cryptocurrency gains in the IRS tax code. Every transaction, no matter how small, is technically a taxable event that must be reported. This means even buying a cup of coffee with Bitcoin creates a reportable capital gain or loss. There have been legislative proposals to create a de minimis exemption for crypto transactions under a certain threshold (similar to the foreign currency de minimis rule), but as of 2026, none have been enacted. In practice, some taxpayers choose to aggregate small transactions, but this is not technically compliant with IRS guidance.
7. How do liquidity pool deposits affect my cost basis?
When you deposit cryptocurrency into a decentralized exchange liquidity pool, you are generally exchanging your tokens for liquidity pool (LP) tokens. This exchange is a taxable event. You must calculate the gain or loss on the tokens you deposited by comparing their fair market value at the time of deposit to your cost basis. Your cost basis in the LP tokens you receive is equal to the fair market value of the tokens you deposited. When you later withdraw from the liquidity pool and exchange LP tokens back for the underlying assets, you must again calculate gain or loss on the LP tokens. The cost basis of the underlying assets you receive upon withdrawal is their fair market value at the time of withdrawal.
Conclusion
Accurate cost basis tracking is not optional for cryptocurrency investors who want to comply with U.S. tax law. The complexity of multiple purchases, crypto-to-crypto trades, wallet transfers, and various accounting methods makes this a challenging but essential task. By understanding the rules, choosing the right accounting method, maintaining thorough records, and using appropriate tools, you can ensure accurate reporting and minimize your tax liability.
Whether you are a casual investor with a handful of transactions or an active trader with thousands of trades across multiple platforms, the principles are the same: track every acquisition, maintain documentation, and apply a consistent methodology. The time and effort you invest in cost basis tracking will pay dividends in tax savings and audit protection.
For more information on related topics, explore our guides on Bitcoin tax calculator methods, the 2026 crypto tax reporting guide, crypto-to-crypto trade taxes, crypto loss harvesting strategies, and IRS crypto audit triggers.
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