Home / Blog / Guide
Guide

How to Calculate Crypto Taxes in 2026: Step-by-Step Guide (with Examples)

Last updated: June 2026 · ~12 min read · Updated for the 2026 tax year
Quick answer: To calculate crypto taxes, use the formula Capital Gain = Proceeds − Cost Basis for each disposal (sell, trade, or spend). Cost basis is what you paid plus fees. Crypto held 1 year or less is taxed at ordinary rates (10–37%); held more than 1 year at long-term rates (0%, 15%, or 20%). Earned crypto (staking, mining, airdrops) is ordinary income at fair market value when received. Report disposals on Form 8949 and Schedule D; report income on Schedule 1. From 2026, the IRS requires per-wallet cost basis tracking.

Calculating crypto taxes feels overwhelming when you are staring at a year of trades across multiple wallets and exchanges — but it comes down to a simple formula applied consistently. This step-by-step guide walks through exactly how to calculate what you owe for the 2026 tax year: the core formula, cost basis methods, tax rates, worked examples, and which IRS forms to file.

The core formula

Every crypto tax calculation starts with one equation, applied to each disposal:

Capital Gain or Loss = Proceeds − Cost Basis

Proceeds = what you received when you sold, traded, or spent the crypto (its fair market value in USD)
Cost Basis = what you originally paid for it, including fees

If you buy 1 ETH for $1,500 plus a $50 fee, your cost basis is $1,550. Sell it later for $2,500 and your gain is $2,500 − $1,550 = $950. That gain is what you are taxed on, not the full $2,500.

Step 1: Identify your taxable events

Before calculating, know what actually triggers tax. The IRS treats crypto as property (Notice 2014-21), so disposing of it is a taxable event:

TaxableNOT taxable
Selling crypto for USDBuying crypto with USD
Trading one crypto for anotherHolding crypto
Spending crypto on goods/servicesMoving crypto between your own wallets
Earning staking/mining rewardsDonating to a qualified charity
Receiving airdropsGifting (under the annual exclusion)
Key point: Crypto-to-crypto trades ARE taxable. Swapping BTC for ETH is treated as selling your BTC at fair market value, then buying ETH — even though you never touched USD.

Step 2: Gather your transaction history

You need a complete record of every transaction: the date, the type, the amount of crypto, its USD value at the time, and any fees. Pull this from every exchange and wallet you used. Missing transactions are the most common cause of incorrect crypto tax calculations.

Step 3: Choose a cost basis method

When you bought the same coin at different prices, the accounting method decides which "lot" you sold — and that changes your gain. The four IRS-recognized methods:

MethodWhich lot is sold firstEffect
FIFO (First In, First Out)Oldest coins firstIRS default; may qualify older lots for long-term rates
LIFO (Last In, First Out)Newest coins firstCan reduce gains in a rising market
HIFO (Highest In, First Out)Most expensive coins firstTypically minimizes current-year gains
Spec ID (Specific Identification)You choose each lotMaximum control; needs meticulous records

FIFO is the IRS default. If you use another method, you must keep detailed records and apply it consistently. Once chosen for a tax year, apply the same method across all transactions.

Worked example of method choice: You bought 1 BTC at $10,000 (2023) and 1 BTC at $19,000 (2024). You sell 1 BTC for $23,000. Under FIFO, you sold the $10,000 BTC → $13,000 gain. Under HIFO, you sold the $19,000 BTC → $4,000 gain. Same sale, very different tax — which is why method matters.

Step 4: Determine your holding period

How long you held before disposing decides your rate:

Step 5: Apply the tax rates

Long-term capital gains (2026)

RateSingle income
0%Up to ~$48,350
15%~$48,351 to ~$533,400
20%Above ~$533,400

Short-term gains are taxed at your ordinary income bracket (10–37%). High earners add the 3.8% Net Investment Income Tax (NIIT), plus any state tax (0% in FL/TX/WY, up to 13.3% in CA).

Step 6: Calculate earned crypto (income)

Staking, mining, and airdrops are different — they are ordinary income at fair market value when you receive and control them (Rev. Rul. 2023-14). That value also becomes your cost basis for when you later sell. So earned crypto is potentially taxed twice: once as income on receipt, once as a capital gain on sale.

Full worked example

Scenario: Tyler earns $95,000 (single, Texas — no state tax). In 2026 he:

  1. Bought 2 ETH at $2,000 each ($4,000 total), sold 8 months later for $6,000 → short-term gain $2,000
  2. Bought 1 BTC at $30,000 in 2023, sold in 2026 for $50,000 → long-term gain $20,000
  3. Earned $500 in staking rewards

Calculation:

Step 7: Handle losses

Capital losses offset capital gains. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income per year ($1,500 if married filing separately) and carry the rest forward to future years. Note: the wash-sale rule does NOT currently apply to crypto — you can sell at a loss and immediately rebuy. The PARITY Act (a December 2025 discussion draft) would change this, but it has not been enacted.

Step 8: The per-wallet rule (2026)

As of January 1, 2026, the IRS requires per-wallet cost basis tracking under Rev. Proc. 2024-28. You can no longer pool cost basis across wallets — each wallet maintains its own inventory. This makes accurate per-wallet records essential.

Step 9: Report on the right IRS forms

Frequently asked questions

How do I calculate my crypto taxes?

For each disposal, subtract your cost basis (what you paid plus fees) from your proceeds (what you received). The result is your capital gain or loss. Apply short-term rates (10–37%) if held a year or less, or long-term rates (0/15/20%) if held longer. Add earned crypto as ordinary income at its value when received. Report disposals on Form 8949 and Schedule D, income on Schedule 1.

What is cost basis in crypto?

Cost basis is the original amount you paid for crypto, including transaction fees. For example, buying 1 ETH for $1,500 with a $50 fee gives a cost basis of $1,550. For earned crypto (staking, airdrops), the cost basis is the fair market value when you received it. Your gain is proceeds minus cost basis.

Is trading one crypto for another taxable?

Yes. Crypto-to-crypto trades are taxable in the US. Swapping BTC for ETH is treated as selling your BTC at fair market value (triggering a capital gain or loss), then buying ETH. You must calculate the USD value of the trade even though no cash was involved.

What cost basis method should I use?

FIFO (First In, First Out) is the IRS default and simplest. HIFO (Highest In, First Out) typically minimizes current-year gains. LIFO and Specific Identification are also allowed but require detailed records. Whichever you choose, apply it consistently across all transactions for the tax year, and remember the per-wallet rule from 2026.

How much tax do I pay on crypto?

It depends on holding period and income. Short-term gains (held a year or less) are taxed at your ordinary rate, 10–37%. Long-term gains (held over a year) are taxed at 0%, 15%, or 20%. High earners add 3.8% NIIT, plus state tax of 0–13.3%. Earned crypto like staking is taxed at ordinary income rates.

Can I deduct crypto losses?

Yes. Capital losses offset capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year and carry the remainder forward. Currently the wash-sale rule does not apply to crypto, so you can sell at a loss and rebuy immediately, though proposed legislation may change this.

Do I need to report crypto if I didn't sell?

If you only bought and held crypto, there is no taxable event and nothing to report for those holdings (though you still answer the Form 1040 digital-asset question). However, if you earned crypto through staking, mining, or airdrops, that is taxable income even if you never sold it.

What is the per-wallet rule for 2026?

Starting January 1, 2026, the IRS requires cost basis to be tracked per wallet under Rev. Proc. 2024-28. You can no longer blend or pool cost basis across multiple wallets — each wallet maintains its own separate inventory of lots. This affects how you calculate gains when you have crypto spread across several wallets.

Do I have to calculate crypto taxes if the exchange sent a 1099-DA?

Yes. For 2025, the 1099-DA reports only gross proceeds, not cost basis. You must still calculate your cost basis and gain yourself, especially for transferred-in crypto where the form may show zero basis. Reconcile the 1099-DA against your own records before filing, or you risk overpaying on your full proceeds.

Bottom line

Calculating crypto taxes is repetitive but not complicated: for every disposal, subtract cost basis from proceeds, classify it short- or long-term, and apply the right rate. Add earned crypto as income at its value on receipt. Pick a cost basis method and apply it consistently, track each wallet separately under the 2026 rule, and reconcile any 1099-DA against your own records. For a few trades, the math is manageable by hand or with the calculator below. For hundreds of transactions across multiple wallets, crypto tax software saves hours. Either way, keep detailed records — they are your protection if the IRS ever asks.

Estimate your federal + state crypto tax in 30 seconds

Free, private, and updated for the 2026 tax year — US, Canada & UK.

Open the calculator →
Disclaimer: This article is general educational information for the 2026 tax year, not personal tax advice. Crypto tax rules change often. Always confirm your specific situation with a qualified CPA or tax professional before filing.