The IRS treats crypto the same as stocks or real estate

When you sell cryptocurrency for more than you paid for it, the profit is capital gains — and the IRS taxes it. The tax rate depends on how long you held the crypto before selling. If you held it less than a year, it's taxed as ordinary income at your regular tax rate. If you held it a year or longer, it's taxed at a lower long-term capital gains rate, which ranges from 0% to 20% depending on your total income.

The IRS does not treat crypto as a special category. It's property. Every time you sell, trade, or exchange crypto for something else of value — including trading one coin for another — you trigger a taxable event. You owe tax on the difference between what you paid and what you received, regardless of whether you made money overall that year.

You report these gains on Schedule D (Form 1040) when you file your tax return. If you sold crypto during the year and did not report it, the IRS can assess back taxes, penalties, and interest. Exchanges like Coinbase and Kraken now send Form 8949 (Sales of Capital Assets) to both you and the IRS, so underreporting is increasingly difficult to hide.

Key Takeaways

  • Selling crypto for a profit creates a taxable capital gain; the tax rate depends on whether you held it less than one year (ordinary income rates) or one year or more (0%, 15%, or 20%).
  • Trading one cryptocurrency for another is a taxable event, even if you do not convert to dollars.
  • You must report all crypto sales on Schedule D of your tax return, and major exchanges now report your transactions to the IRS.
  • Losses on crypto sales can offset gains and reduce your tax bill, and unused losses can carry forward to future years.
  • Staking rewards, airdrops, and mining income are taxed as ordinary income in the year you receive them, separate from capital gains on later sales.

Short-term vs. long-term capital gains rates

The holding period matters. If you sell crypto within one year of buying it, your profit is short-term capital gain and taxed at your ordinary income tax rate — the same rate you pay on wages or salary. For 2024, that ranges from 10% to 37% depending on your income bracket.

If you hold the crypto for more than one year before selling, your profit is long-term capital gain and taxed at a preferential rate. The long-term rate is 0%, 15%, or 20%, depending on your total taxable income. Most people fall into the 15% bracket. The 0% rate applies only to lower-income filers; the 20% rate applies to high earners. These rates are significantly lower than short-term rates for most taxpayers, which is why holding period matters.

The holding period clock starts the day after you buy and ends the day you sell. If you buy on January 15 and sell on January 15 of the following year, you have held it exactly one year and may have access to for long-term treatment. If you sell on January 14, it's short-term.

How to calculate your gain or loss

Your capital gain is the sale price minus your cost basis. Cost basis is what you paid for the crypto, including fees and commissions. If you bought 1 Bitcoin for $30,000 plus $100 in exchange fees, your cost basis is $30,100. If you later sell that Bitcoin for $45,000, your gain is $14,900.

If you bought crypto in multiple transactions at different prices, you must track each purchase separately. When you sell, you choose which batch of coins you are selling — this is called your cost basis method. The most common methods are:

  • First In, First Out (FIFO): You sell the oldest coins first. This often results in higher gains if prices have risen.
  • Specific Identification: You choose exactly which coins you are selling, allowing you to pick the batch with the highest cost basis to minimize gain.
  • Average Cost: You use the average price of all coins you own to calculate gain.

Most exchanges default to FIFO, but you can use a different method if you keep detailed records and tell your tax preparer which method you used. Specific identification often results in the lowest tax bill, but requires careful record-keeping.

Losses offset gains and reduce your tax bill

If you sell crypto for less than you paid, you have a capital loss. You can use losses to offset gains. If you sold crypto at a $5,000 gain and also sold some at a $2,000 loss, your net gain is $3,000 and you owe tax only on that amount.

If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income (like wages). If your loss is larger than $3,000, the remainder carries forward to future years. You can keep using it year after year until it is fully used up.

This is why tracking losses matters. Many people ignore small losses and miss the chance to reduce their tax bill. If you sold crypto at a loss, report it on Schedule D even if you did not sell anything at a gain.

Staking rewards and mining are separate from capital gains

When you receive crypto through staking, mining, or airdrops, that income is taxed as ordinary income in the year you receive it, not as capital gain. The taxable amount is the fair market value of the crypto on the day you received it. If you staked Ethereum and received 0.5 ETH worth $1,500 on June 15, you report $1,500 as income on your 2024 tax return.

Later, when you sell that staked crypto, you calculate capital gain or loss based on the difference between the sale price and the value on the day you received it (your new cost basis). If you received 0.5 ETH worth $1,500 and sold it for $2,000 six months later, your short-term capital gain is $500.

This creates a two-step tax event: first, ordinary income when you receive the crypto; second, capital gain or loss when you sell it. Many people forget to report the first step and end up with an incorrect cost basis.

Reporting requirements and IRS forms

You report capital gains and losses on Schedule D (Form 1040), which you attach to your main tax return. If you had more than one transaction, you also file Form 8949 (Sales of Capital Assets), which lists each sale individually. Your tax software usually handles this automatically if you enter your transactions correctly.

Cryptocurrency exchanges that process more than $20,000 in transactions and more than 200 transactions in a year must send you a Form 1099-DA (starting in 2025 for 2024 transactions). This form reports your sales to both you and the IRS. Even if you do not receive a 1099-DA, you must report all sales. The IRS matches exchange reports to tax returns, so omitting a sale is a red flag.

If you used multiple exchanges or moved crypto between wallets, you are responsible for compiling the complete list of all sales. Many people use third-party tax software like CoinTracker or Koinly to import transaction history from exchanges and calculate gains automatically. These tools cost $50 to $300 per year but save time and reduce errors.

State taxes on crypto capital gains

Most states tax capital gains the same way the federal government does. Your state income tax rate applies to your capital gain in addition to federal tax. A few states have no income tax (Texas, Florida, Nevada, and others), so residents pay only federal tax. A few states tax capital gains at a special rate separate from ordinary income.

California, for example, taxes all capital gains as ordinary income with no preferential rate, so long-term and short-term gains are taxed the same. New York taxes capital gains at ordinary rates. You need to know your state's rules because they affect your total tax bill. Your tax preparer or software should calculate state tax automatically based on where you live.

Frequently Asked Questions

Do I owe tax if I bought crypto but never sold it?

No. You owe tax only when you sell, trade, or exchange crypto. Simply holding it, even if the price goes up, does not trigger a tax event. Tax is due only when you realize the gain by converting it to something else.

What if I traded Bitcoin for Ethereum instead of selling for dollars?

That is a taxable event. Trading one crypto for another counts as a sale of the first crypto. You owe capital gains tax on the difference between what you paid for the Bitcoin and the fair market value of the Bitcoin on the day you traded it. The Ethereum becomes your new property with a new cost basis equal to its value on the trade date.

Can I use crypto losses to offset other income like my salary?

Only up to $3,000 per year. You can use capital losses to offset capital gains dollar-for-dollar, but if losses exceed gains, you can deduct only $3,000 of the excess against ordinary income like wages. Any remaining loss carries forward to future years.

What happens if I do not report crypto sales?

The IRS can assess back taxes, penalties of 20% or more, and interest on the unpaid amount. Exchanges now report transactions to the IRS, so underreporting is increasingly detected. If you missed reporting in a prior year, you can file an amended return to correct it and reduce penalties.

Is there a way to avoid capital gains tax on crypto?

No legal way to avoid it entirely, but you can minimize it by holding crypto longer than one year to may have access to for lower long-term rates, using losses to offset gains, and choosing a cost basis method that results in the lowest gain. Gifting crypto to charity may also provide a deduction, but you still owe tax on any sales you make.