How Cryptocurrency Is Taxed
The Internal Revenue Service (IRS) treats cryptocurrency as property, not as currency, for federal tax purposes. This classification, established in IRS Notice 2014-21 and reinforced through subsequent guidance, means that the general tax principles applicable to property transactions apply to transactions involving virtual currency. Every time you dispose of cryptocurrency, whether by selling, trading, spending, or otherwise transferring it, you may trigger a taxable event that must be reported on your federal income tax return.
Because crypto is treated as property, gains and losses are calculated using the same framework as stocks, bonds, and real estate. You determine your cost basis (what you originally paid for the asset, including fees), compare it to the fair market value at the time of disposal, and report the resulting gain or loss. The tax rate you pay depends on how long you held the asset before disposing of it.
This property classification has significant implications. Unlike spending U.S. dollars, spending cryptocurrency to purchase goods or services is a taxable disposition. Exchanging one cryptocurrency for another is also a taxable event. Even receiving crypto as payment for services, through mining, or via staking rewards creates taxable income at the time of receipt.
Taxable Crypto Events
Understanding which cryptocurrency activities create tax obligations is essential for accurate reporting. The following events are considered taxable by the IRS.
Selling Cryptocurrency for Fiat Currency
When you sell cryptocurrency (such as Bitcoin, Ethereum, or any other digital asset) for U.S. dollars or another fiat currency, you realize a capital gain or loss. The gain or loss equals the difference between your sale proceeds and your cost basis in the crypto sold. This is the most straightforward taxable event and is reported on Form 8949 and Schedule D.
Trading One Cryptocurrency for Another
Exchanging one cryptocurrency for another is treated as two separate transactions: a disposition of the crypto you gave up and an acquisition of the crypto you received. You must calculate the fair market value of the crypto you received at the time of the trade, compare it to your cost basis in the crypto you gave up, and report the resulting gain or loss. This applies to all crypto-to-crypto swaps, including on decentralized exchanges.
Spending Cryptocurrency on Goods or Services
Using cryptocurrency to purchase goods or services is a taxable disposition. The IRS treats this the same as selling the crypto for its fair market value and then using the proceeds to make the purchase. If the fair market value at the time of spending exceeds your cost basis, you have a capital gain. This applies whether you are buying a car, paying for a meal, or making any other purchase with crypto.
Earning Cryptocurrency
Receiving cryptocurrency as compensation, whether through employment, freelance work, mining, staking rewards, airdrops, or hard forks, is treated as ordinary income. The amount included in your gross income equals the fair market value of the crypto at the time you received it. This income is subject to ordinary income tax rates and, for self-employed individuals, may also be subject to self-employment tax.
Non-Taxable Crypto Events
Not every interaction with cryptocurrency triggers a tax obligation. The following activities are generally not taxable events.
- Buying cryptocurrency with fiat currency: Simply purchasing crypto with dollars does not create a taxable event. Your tax obligation arises only when you later dispose of the asset.
- Holding cryptocurrency: Unrealized gains and losses (changes in value while you continue to hold) are not taxed. You only owe taxes when you sell, trade, or otherwise dispose of your holdings.
- Transferring between your own wallets: Moving crypto from one wallet or exchange to another that you own is not a taxable event, though you should maintain records of transfer fees as they may adjust your cost basis.
- Gifting cryptocurrency below the annual exclusion: Giving crypto as a gift is generally not taxable to the giver if the gift's fair market value is below the annual gift tax exclusion ($18,000 per recipient for 2024). The recipient inherits the giver's cost basis and holding period.
- Donating cryptocurrency to a qualified charity: Donating appreciated crypto held for more than one year to a qualified 501(c)(3) organization may allow you to claim a charitable deduction equal to the fair market value without recognizing the capital gain.
Crypto Capital Gains Tax Rates
The tax rate on cryptocurrency gains depends on your holding period. Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate. Long-term capital gains apply to assets held for more than one year and benefit from preferential lower rates.
| Taxable Income (Single Filers, 2024) | Short-Term Rate (Ordinary Income) | Long-Term Capital Gains Rate |
|---|---|---|
| Up to $11,600 | 10% | 0% |
| $11,601 - $47,150 | 12% | 0% |
| $47,151 - $100,525 | 22% | 15% |
| $100,526 - $191,950 | 24% | 15% |
| $191,951 - $243,725 | 32% | 15% |
| $243,726 - $609,350 | 35% | 20% |
| Over $609,350 | 37% | 20% |
Additionally, high-income taxpayers may owe the 3.8% Net Investment Income Tax (NIIT) on crypto gains if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This effectively raises the maximum long-term capital gains rate on crypto to 23.8%.
How to Calculate Crypto Gains and Losses
Accurately calculating your cryptocurrency gains and losses requires understanding cost basis and the methods available for determining which units of crypto you disposed of in each transaction.
What Is Cost Basis?
Your cost basis in a cryptocurrency is the amount you paid to acquire it, including any transaction fees, exchange fees, or gas fees incurred at the time of purchase. When you sell or trade crypto, your capital gain or loss equals the difference between the amount you received (or the fair market value of what you received) and your cost basis.
Adjusted basis accounts for additional factors that modify your original cost basis. For example, if you received crypto through mining, your cost basis is the fair market value at the time you received it (which you already reported as ordinary income). Transfer fees paid when moving crypto between wallets may also increase your cost basis in the transferred asset.
Cost Basis Identification Methods
When you have acquired the same cryptocurrency at different times and prices, you must select a method for identifying which specific units you are disposing of. The method you choose can significantly affect the size of your taxable gain or loss.
| Method | How It Works | Best Used When |
|---|---|---|
| FIFO (First In, First Out) | The earliest-acquired units are treated as sold first. This is the IRS default method if you do not specifically identify which units you are selling. | In a generally rising market, FIFO tends to produce larger gains because the oldest (and typically cheapest) units are sold first. It may be beneficial if you want to convert short-term holdings into long-term holdings more quickly. |
| LIFO (Last In, First Out) | The most recently acquired units are treated as sold first. | In a rising market, LIFO often results in smaller gains because the most recently purchased (and typically more expensive) units are sold first. However, these gains are more likely to be short-term. |
| Specific Identification | You choose exactly which units to sell by identifying them by date and time of acquisition, cost basis, and amount. You must be able to document the specific units at the time of the transaction. | Provides the most flexibility and allows you to optimize for the lowest tax outcome in each transaction. Requires detailed record-keeping and the ability to specify lots on your exchange or wallet. |
| HIFO (Highest In, First Out) | A variation of specific identification where you always sell the units with the highest cost basis first, minimizing your current taxable gain. | When your primary goal is to minimize taxes in the current year. Widely supported by crypto tax software. Note that this is a strategy within specific identification, not a separate IRS-recognized method. |
Common Taxable Scenarios with Examples
The following examples illustrate how crypto taxes are calculated in common situations. All examples use simplified numbers for clarity.
Scenario 1: Buy and Sell Bitcoin
You purchase 0.5 BTC for $15,000 in January 2023. You sell the 0.5 BTC for $22,000 in March 2024. Your cost basis is $15,000 and your proceeds are $22,000. Because you held the asset for more than one year, the $7,000 gain is a long-term capital gain and qualifies for the preferential 0%, 15%, or 20% rate depending on your total taxable income.
Scenario 2: Crypto-to-Crypto Swap
You acquired 10 ETH for $2,000 each ($20,000 total) in June 2023. In August 2023, when ETH is worth $2,500 each, you swap all 10 ETH for 50,000 USDC on a decentralized exchange. The fair market value of the 50,000 USDC received is $50,000 (assuming a 1:1 peg). Wait, let us recalculate: 10 ETH at $2,500 each equals $25,000 in value, so you would receive approximately 25,000 USDC. Your gain is $25,000 minus $20,000, which equals a $5,000 short-term capital gain because you held the ETH for less than one year. Your cost basis in the USDC is $25,000.
Scenario 3: DeFi Yield Farming
You provide liquidity to a decentralized finance (DeFi) protocol and earn 500 tokens as a yield reward over several months. At the time each batch of tokens is received, they have a combined fair market value of $1,200. This $1,200 is reported as ordinary income in the year you received the tokens. Your cost basis in the 500 tokens is $1,200. If you later sell those tokens for $1,800, you have an additional $600 capital gain (short-term or long-term depending on your holding period).
Scenario 4: NFT Sale
You purchase an NFT for 2 ETH when ETH is priced at $1,500 (cost basis of $3,000 for the NFT, and you also realize a gain or loss on the ETH used to buy it if your ETH cost basis differs from $1,500). You later sell the NFT for 5 ETH when ETH is priced at $2,000. The proceeds are 5 ETH multiplied by $2,000, equaling $10,000. Your gain on the NFT sale is $10,000 minus $3,000, which equals a $7,000 capital gain. The ETH you receive has a cost basis of $2,000 each. Note that using ETH to buy the NFT was itself a taxable event on the ETH disposition.
IRS Reporting Requirements
Cryptocurrency transactions must be reported to the IRS using specific forms and schedules. Failure to report can result in penalties, interest, and in severe cases, criminal prosecution.
The Digital Asset Question on Form 1040
Since 2019, the IRS has included a question on the front page of Form 1040 asking: "At any time during the tax year, did you receive, sell, exchange, or otherwise dispose of any digital assets?" You must answer "Yes" if you engaged in any taxable crypto transaction during the year. Beginning with the 2024 tax year, you must also answer "Yes" if you received digital assets as payment for property or services, or as a reward or award. Simply holding crypto without any transactions may allow you to answer "No," but receiving staking rewards or mining income means you should answer "Yes."
Form 8949: Sales and Other Dispositions
Each individual crypto sale, trade, or disposal is reported on Form 8949. For each transaction, you report the description of the asset, date acquired, date sold, proceeds, cost basis, and the resulting gain or loss. If you had dozens or hundreds of transactions, each one requires a separate line. Crypto tax software can generate a completed Form 8949 for you.
Schedule D: Capital Gains and Losses Summary
Schedule D summarizes the totals from your Form 8949 entries. It separates short-term and long-term gains and losses, calculates net capital gain or loss, and determines whether you owe capital gains tax or can claim a loss deduction. Up to $3,000 of net capital losses ($1,500 if married filing separately) can be deducted against ordinary income, with excess losses carried forward to future years.
Schedule 1 and Schedule C for Crypto Income
Cryptocurrency received as ordinary income (mining, staking, airdrops, or payment for services) is reported on different schedules depending on the context. If crypto mining or staking is conducted as a trade or business, income and expenses are reported on Schedule C. If you receive crypto as an employee, it appears on your W-2. Other crypto income may be reported on Schedule 1 as "Other Income."
Crypto Tax Software Comparison
Given the complexity of tracking potentially hundreds of transactions across multiple exchanges and wallets, crypto tax software has become an essential tool for most crypto investors. These platforms import your transaction history, calculate gains and losses, and generate the IRS forms you need.
| Software | Supported Exchanges | DeFi/NFT Support | Free Tier | Paid Plans (Annual) |
|---|---|---|---|---|
| CoinTracker | 300+ exchanges, wallets | Yes, including DeFi and NFTs | Up to 25 transactions | From $59 to $199+ |
| Koinly | 350+ exchanges, 100+ wallets | Yes, strong DeFi coverage | Portfolio tracking only | From $49 to $279 |
| TaxBit | 500+ integrations | Yes, DeFi and NFTs | Free for individual taxpayers | Free basic; enterprise plans available |
| CoinLedger | 350+ exchanges | Yes, including DeFi protocols | Free to import and preview | From $49 to $299 |
| TokenTax | Major exchanges supported | Yes, DeFi and margin trading | No free tier | From $65 to $3,499 |
When choosing crypto tax software, consider the number of transactions you need to process, whether you use DeFi protocols or trade NFTs, and whether the platform integrates with your preferred tax filing software (such as TurboTax or H&R Block). Most platforms allow you to import transactions via API connection or CSV file upload.
Tax-Loss Harvesting for Crypto
Tax-loss harvesting involves selling cryptocurrency that has declined in value to realize a capital loss, which can then offset capital gains from other transactions. This strategy can significantly reduce your crypto tax bill in volatile markets where some holdings may be underwater while others have appreciated.
One important distinction for crypto investors: as of the 2024 tax year, the wash sale rule does not explicitly apply to cryptocurrency. The wash sale rule, codified in IRC Section 1091, prevents investors from claiming a loss on a security if they purchase a "substantially identical" security within 30 days before or after the sale. This rule applies to stocks, bonds, and options, but the IRS has not formally extended it to cryptocurrency, which is classified as property rather than a security.
Under current rules, a crypto investor could sell Bitcoin at a loss, immediately repurchase Bitcoin, and still claim the capital loss on their tax return. This is not possible with stocks or ETFs due to the wash sale rule. However, this strategy should be executed thoughtfully and documented thoroughly, as future regulatory changes could be applied retroactively.
For broader strategies on minimizing investment taxes, see our guide on Tax-Efficient Investing.
Staking and Mining Income
Cryptocurrency earned through staking or mining is treated as ordinary income by the IRS. The taxable amount equals the fair market value of the crypto at the time you gain dominion and control over it, meaning the moment it is deposited into your wallet or account.
Mining Income
If you mine cryptocurrency, the fair market value of the coins at the time they are received is included in your gross income. If mining is conducted as a business (which it typically is if done with regularity and profit motive), income and related expenses (electricity, hardware depreciation, internet costs) are reported on Schedule C. Self-employment tax applies to net mining income. If mining is treated as a hobby, income is reported on Schedule 1 but expenses are not deductible under current tax law (the Tax Cuts and Jobs Act suspended the miscellaneous itemized deduction for hobby expenses through 2025).
Staking Rewards
Staking rewards received through proof-of-stake networks are taxable as ordinary income when received. The IRS confirmed this position in Revenue Ruling 2023-14. Your cost basis in staking rewards equals the fair market value you reported as income. When you later sell or trade those staking rewards, you will calculate a capital gain or loss based on the difference between your sale proceeds and this cost basis.
Validators who operate staking infrastructure as a business report staking income on Schedule C and can deduct related business expenses. Individual stakers who delegate to a validator pool typically report staking income on Schedule 1 as "Other Income."
DeFi and NFT Tax Considerations
Decentralized finance (DeFi) and non-fungible tokens (NFTs) present some of the most complex tax situations in the cryptocurrency space. The IRS has issued limited specific guidance on many DeFi activities, requiring taxpayers to apply general tax principles to novel transaction types.
Liquidity Pool Participation
When you deposit tokens into a DeFi liquidity pool, you typically receive liquidity provider (LP) tokens in return. Whether this deposit constitutes a taxable event is a subject of debate among tax professionals. A conservative approach treats the deposit as a taxable swap (disposing of the deposited tokens and acquiring LP tokens). When you withdraw from the pool, that is treated as another taxable swap. Trading fees earned while providing liquidity may be treated as ordinary income or as part of the gain upon withdrawal.
Wrapping and Bridging Tokens
Converting ETH to Wrapped ETH (WETH) or bridging tokens from one blockchain to another raises similar questions. Some tax professionals argue these are non-taxable like-kind exchanges or transfers, while others treat them as taxable dispositions. The IRS has not issued definitive guidance. A conservative approach is to treat wrapping and bridging as taxable events and document your position thoroughly.
NFT Transactions
NFTs are generally treated as property, similar to other digital assets. Creating (minting) an NFT may not be taxable, but selling it generates a capital gain or loss. The tax treatment of NFT royalties (payments received by creators on secondary sales) is typically ordinary income. In March 2023, the IRS issued Notice 2023-27 indicating that certain NFTs may be treated as collectibles, which are subject to a higher maximum long-term capital gains rate of 28%. This determination depends on whether the NFT represents rights to an underlying collectible asset.
For a foundational understanding of cryptocurrency investing, see our guide on Cryptocurrency Investment Basics.
Record-Keeping Best Practices
Maintaining thorough records of all cryptocurrency transactions is critical for accurate tax reporting and audit defense. The IRS recommends keeping records that establish the following for each transaction.
- Date and time of acquisition: When you purchased, received, or otherwise acquired each unit of cryptocurrency, including the timestamp.
- Cost basis at acquisition: The fair market value at the time of acquisition, plus any fees paid. For purchased crypto, this is the purchase price plus exchange fees. For earned crypto, this is the fair market value at the time of receipt.
- Date and time of disposition: When you sold, traded, spent, or otherwise disposed of the cryptocurrency.
- Fair market value at disposition: The price at which you sold or the fair market value of what you received in exchange.
- Transaction fees: Exchange fees, gas fees, network fees, and any other costs associated with each transaction.
- Wallet and exchange addresses: Records of which wallets and exchanges were involved, along with transaction hashes for on-chain transactions.
- Purpose of each transaction: Whether the transaction was a purchase, sale, swap, payment for services, gift, donation, or other type of transfer.
Export your transaction history from every exchange and wallet you use. Many platforms only retain historical data for a limited period, so download your records regularly. Store backups in multiple locations. If you use DeFi protocols, record the contract addresses and blockchain explorer links for each transaction, as on-chain data serves as a permanent audit trail.