$LevyIO

Crypto Tax Calculator

Calculate capital gains tax on cryptocurrency sales. Supports short-term and long-term rates, NIIT, and cost basis methods for Bitcoin, Ethereum, and all crypto.

How Cryptocurrency Is Taxed in the United States

The IRS has classified cryptocurrency as property, not currency, since Notice 2014-21. That single classification drives nearly every tax question that follows. Each time you dispose of crypto — by selling it for dollars, swapping it for another token, spending it on goods or services, or gifting above the annual exclusion — you realize either a capital gain or a capital loss equal to the difference between the asset's fair market value at disposal and your cost basis.

Because of the property classification, trading one cryptocurrency for another is a taxable event, even if no dollars hit your bank account. Converting ETH to USDC, bridging assets across chains, closing a leveraged perpetual, or unwrapping wETH can all produce taxable outcomes. This is the part most new crypto taxpayers miss, and it is the most common reason returns are amended after the fact.

Short-Term vs Long-Term Holding Periods

The holding period begins the day after you acquired the asset and ends on the day you dispose of it. If the period is one year or less, any gain is short-term and is taxed at your ordinary income rate — the same schedule that applies to wages, ranging from 10% to 37% for 2026. Long-term gains, held for more than one year, receive the preferential capital gains schedule of 0%, 15%, or 20%, depending on your taxable income.

The calculator above applies these rates after stacking your crypto gain on top of your other income, so the marginal bracket used reflects the real tax you would owe if the gain were added to your return this year.

Cost Basis Methods Explained

When you hold multiple lots of the same coin acquired at different prices, the lot you "sell" determines your gain or loss. The IRS permits several methods, but you must be able to specifically identify which lot was sold if you use anything other than FIFO.

  • FIFO (First In, First Out): default for most exchanges. Oldest lots sell first. Produces larger gains in a rising market but more long-term treatment.
  • LIFO (Last In, First Out): newest lots sell first. Useful when recent purchases were more expensive than older ones.
  • HIFO (Highest In, First Out): highest-cost lots sell first. Minimizes gains in a volatile market and is popular with crypto tax software.
  • Specific Identification: choose exactly which lot to sell. Maximum flexibility but requires contemporaneous records showing which lot was selected at the time of sale.

Net Investment Income Tax (NIIT)

High-income taxpayers may owe an additional 3.8% Net Investment Income Tax on capital gains, including crypto. The NIIT threshold for 2026 is $200,000 of modified adjusted gross income for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. Only the portion of investment income above the threshold is subject to NIIT. The calculator above applies NIIT automatically when your combined income exceeds the threshold.

Losses, Wash Sales, and Carryforwards

If your overall capital activity is a net loss for the year, you can deduct up to $3,000against ordinary income ($1,500 if married filing separately). Losses exceeding that cap carry forward indefinitely until used. The calculator breaks out the deductible portion and the carryforward when a loss is entered.

Historically, the wash-sale rule — which disallows losses on assets repurchased within 30 days — applied only to securities, not digital assets. Proposed regulations and updated IRS guidance beginning in 2025 have brought digital assets closer to the wash-sale regime; high-frequency crypto traders harvesting losses should review current guidance before relying on pre-2025 strategies.

Mining, Staking, Airdrops, and DeFi

Not every crypto event is a capital transaction. Certain activities produce ordinary income at the time of receipt, measured by the fair market value of the tokens received:

  • Mining rewards: ordinary income equal to the USD value when the block is mined. If mining is a trade or business, self-employment tax also applies.
  • Staking rewards: ordinary income when you have dominion and control over the tokens (typically when they are credited to your wallet and withdrawable).
  • Airdrops: ordinary income at fair market value when received, per Revenue Ruling 2019-24.
  • Hard forks: ordinary income equal to FMV of new tokens when received.
  • Liquidity pool / yield farming: complex; deposit and withdrawal may be taxable events depending on how the protocol is structured.

When those tokens are later sold, the cost basis is the value that was included in ordinary income. Failing to track this basis is the single largest source of double taxation on DeFi activity.

Tax Forms You Will Need

  • Form 8949 — itemized list of every disposal, with cost basis, proceeds, and holding period.
  • Schedule D — summary of short-term and long-term totals, rolled up from Form 8949.
  • Schedule 1 — ordinary income from staking, mining, airdrops, and similar.
  • Schedule C / SE — if mining or related activity rises to the level of a trade or business.
  • Form 1040 digital asset question — yes/no answer required on every return since 2020.

Common Mistakes

  • Forgetting that crypto-to-crypto trades are taxable events.
  • Using exchange-reported gain/loss summaries without reconciling cost basis for coins transferred in from another wallet.
  • Failing to report staking or airdrop ordinary income in the year received.
  • Over-harvesting losses after the 2025 wash-sale guidance changes.
  • Answering "no" to the 1040 digital-asset question when any disposal occurred.

When to Work With a Professional

The estimate produced by this calculator is a good starting point for a single disposal. If you have hundreds or thousands of transactions, multi-wallet activity, cross-chain trades, DeFi positions, business-level mining, or international exposure, specialized crypto tax software paired with a CPA familiar with digital assets will produce a defensible return far more efficiently than manual preparation.

This page is for educational purposes only and does not constitute tax, legal, or financial advice. Tax law changes; always verify current IRS guidance and consult a qualified professional before filing.

Frequently Asked Questions

How is cryptocurrency taxed?

Cryptocurrency is treated as property by the IRS. Selling, trading, or spending crypto triggers a capital gains event. Short-term gains (held under 1 year) are taxed as ordinary income. Long-term gains (held over 1 year) get preferential rates of 0%, 15%, or 20%.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax on investment income (including crypto gains) for taxpayers above certain thresholds: $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately.

Can I deduct crypto losses?

Yes. You can deduct up to $3,000 in net capital losses per year against ordinary income. Losses exceeding $3,000 carry forward to future tax years. Starting in 2025, the wash sale rule applies to digital assets under updated IRS guidance.