Crypto & Digital Assets7 min readSeptember 18, 2026

How to Calculate Crypto Capital Gains: Cost Basis Methods for 2026

Calculate crypto capital gains step by step: cost basis methods, the 2025 wallet-by-wallet rule, Form 1099-DA boxes, and a FIFO vs specific ID example.

How to Calculate Crypto Capital Gains: Cost Basis Methods for 2026

Every crypto sale creates a taxable event, and the IRS expects a number on your return that you can prove. The math itself is simple: gain or loss = sale proceeds − cost basis − allowed fees. What makes crypto different from stocks is that basis lives in your own records, exchanges report it inconsistently, and since January 1, 2025 the IRS requires you to track it wallet by wallet instead of across all your accounts at once. This guide shows how to calculate crypto capital gains the way a preparer would, one step at a time, and a worked example reveals exactly how much the right method can save you.

You will learn which cost basis method applies to you, how the new Form 1099-DA changes what your broker reports, and how to fill out Form 8949 without mismatch letters. Every rule below comes from the IRS digital asset FAQs, Rev. Proc. 2024-28, and the Form 1099-DA instructions, so you can defend each number if the agency ever asks. If you trade securities as well, the same schedule logic appears in our guide to reporting stock sales on Form 8949.

The Crypto Capital Gains Formula, Step by Step

Digital assets are property for federal tax purposes, so every disposal is either a capital gain or a capital loss. A disposal includes selling for cash, trading Bitcoin for Ethereum, spending crypto on goods, and paying gas fees with a token. The starting point is always the same three inputs: the fair market value you received, the adjusted basis of the units you gave up, and any transaction fees the sale itself generated.

Holding period decides which rate column the gain lands in. Hold for more than 12 months and the gain is long term, taxed at 0%, 15%, or 20% depending on taxable income. Hold for 12 months or less and the gain is short term, taxed at your ordinary bracket rate of 10% to 37%. The clock runs from the day after acquisition to the settlement date of the disposal, so a position bought on March 14, 2025 becomes long term on March 15, 2026.

Fees you paid to buy a token get added to its basis, and fees to sell reduce the proceeds, so they are never deducted twice. Network gas costs on a transfer between your own wallets do not create a taxable disposal, but they do increase the basis of the transferred tokens. The table below shows the 2026 rates that apply once your gain is computed.

Item (2026)SingleMarried Filing Jointly
Long-term 0% rate up to$49,450$98,900
Long-term 15% rate up to$545,500$613,700
Long-term 20% rate above$545,500$613,700
Short-term rateOrdinary brackets, 10%–37%
NIIT surtax of 3.8%MAGI over $200,000MAGI over $250,000
Standard deduction$16,100$32,200

These thresholds come from Rev. Proc. 2025-32, the IRS's official 2026 inflation adjustment release. High earners should also check whether the 3.8% net investment income tax stacks on top; our capital gains tax bracket calculator guide walks through stacking the two.

Hardware wallet beside smartphone displaying a cryptocurrency portfolio chart

Cost Basis Methods the IRS Allows for Crypto

Your basis is what you paid for the tokens, including purchase fees, plus any income events like staking rewards that increased it. The question in a mixed-price portfolio is which units you are treated as selling. The IRS digital asset FAQ answers this in Q39 through Q41: you may use specific identification if your records are good enough, and everything else defaults to first in, first out.

MethodHow it worksAllowed for crypto?
FIFOOldest acquired units sell firstYes — the default when you make no election
Specific ID / HIFOYou name the exact units sold, often the highest-basis onesYes — only with complete documentation
Average costAll units share one blended basisNo — limited to mutual fund and certain ETF shares
LIFONewest units sell firstOnly through a valid specific ID election

Specific identification is where the savings live, because selling your highest-basis lots first minimizes the gain on each disposal. The IRS FAQ Q40 sets a high documentation bar: records must show the date and time each unit was acquired, your basis and the fair market value at acquisition, the date and time each unit was disposed of, the fair market value at disposal, and which wallet or account held the units. Exchange exports rarely contain all five data points on their own, which is why serious traders keep a dedicated ledger.

Without a valid specific ID election, FIFO applies automatically, and FIFO can be painful in a rising market because it pairs your oldest, cheapest coins against current prices. You cannot cherry-pick lots after the fact in a later tax year; the identification must be made by the time you file, and your records have to back it up. Our general walkthrough of cost basis methods covers the securities side of this same rule set.

The 2025 Wallet-by-Wallet Rule Changed Everything

Before 2025, many software platforms used a "universal" method that pooled basis across every exchange and wallet as one big lot pool. Rev. Proc. 2024-28 ended that practice. As of January 1, 2025, unused basis must be allocated so that each wallet or account holds its own units with its own basis, and sales draw from the pool in the wallet where the sale happens.

The revenue procedure gives you two safe-harbor ways to split your January 1, 2025 opening positions. A specific unit allocation assigns identified units with distinguishing characteristics — acquisition dates, basis amounts, or transaction hashes — to each wallet. A global allocation uses a written ordering rule, such as "earliest acquired units go to cold storage first," applied consistently across every wallet. Both approaches freeze your opening positions on January 1, 2025, and from that day forward each wallet's ledger stands on its own.

The practical consequence surprises a lot of filers. Transferring coins between your own wallets is still not a taxable event, but after a transfer the basis now travels with the units into the receiving wallet permanently, and future sales there use that basis. If you sold in 2025 or later and your tax software still computes gains across all wallets combined, the output no longer matches what the IRS expects, and a Form 1099-DA reconciliation will flag the difference.

Form 1099-DA: What Brokers Report Now

Form 1099-DA is the new broker statement for digital asset sales, and it rolled out in phases. For 2025 sales, custodial brokers reported gross proceeds, which is why many filers received their first 1099-DA in early 2026 with basis boxes blank. For 2026 sales onward, the instructions require gross proceeds on every reportable sale, basis reporting on covered securities, and voluntary basis reporting on noncovered units.

Printed tax forms with pen and smartphone showing a crypto exchange app

Knowing the box map helps you reconcile the form against your own ledger before you file, because the IRS matching program sees these exact fields.

BoxWhat it contains
1a / 1bDTIF digital token identifier code and the asset's full name
Gross proceedsCash value the broker received for the sale
1gCost or other basis, when the broker reports it
1iDisallowed loss under the wash sale rule for tokenized securities
2 / 3a / 3bCheckboxes showing whether basis was reported to the IRS and to you

Treat a 1099-DA with empty basis boxes as a starting point, not an answer. You remain responsible for computing and reporting basis yourself, and if your number differs from what the broker later files, the return with the better records wins. Noncustodial wallets and self-hosted addresses get no 1099-DA at all, so those gains exist only in your records — and the IRS knows the gap exists, which is why the digital asset question on Form 1040 stays on every year's return.

Worked Example: FIFO vs Specific ID on a 1.0 BTC Sale

Numbers make the method choice concrete. Suppose your wallet holds three Bitcoin lots after the January 1, 2025 allocation, and you sell 1.0 BTC on October 12, 2026 for $118,000 with $400 in network fees. The lots look like this.

LotAcquiredUnitsPrice paidBasisHolding period
1Mar 14, 20240.4 BTC$65,000$26,000Long term
2Nov 20, 20250.5 BTC$88,000$44,000Long term
3Aug 8, 20260.3 BTC$104,000$31,200Short term

Under FIFO, the sale consumes lots 1 and 2 completely plus 0.1 BTC of lot 3. Basis adds up to $80,400, so the total gain is $118,000 − $400 − $80,400 = $37,200, split as $35,840 long term and $1,360 short term. Filing at a 15% long-term rate with a 24% ordinary bracket produces roughly $5,702 of federal tax.

FIFOUnitsProceedsFeesBasisGainType
Lot 10.4$47,200$160$26,000$21,040LT
Lot 20.5$59,000$200$44,000$14,800LT
Lot 3 (partial)0.1$11,800$40$10,400$1,360ST
Hands comparing calculator results with a laptop showing market charts

Now the same sale with a specific ID election that targets the highest-basis units first: all of lot 3, all of lot 2, and 0.2 BTC of lot 1. Basis becomes $88,200, the total gain drops to $118,000 − $400 − $88,200 = $29,400, and only $4,080 of it is short term. The federal tax lands near $4,777, a saving of about $925 on one trade — and the gap widens every time the price spread between old and new lots grows.

Specific IDUnitsProceedsFeesBasisGainType
Lot 30.3$35,400$120$31,200$4,080ST
Lot 20.5$59,000$200$44,000$14,800LT
Lot 1 (partial)0.2$23,600$80$13,000$10,520LT

Both versions belong on Form 8949 with one row per lot, code C or F in column (b) depending on whether basis was reported, and totals flowing to Schedule D. The long-term chunks prefer lines with the 0%/15%/20% rates while the short-term chunk joins ordinary income. Run both scenarios in a crypto capital gains calculator before filing season and keep the losing lot selection for next year's opportunities.

How to Compute Your Gains From Raw Exchange Data

A repeatable process beats software trust every tax season. Start by exporting the full transaction history from every wallet and exchange you used in the year, including transfers, because transfers carry basis with them under the wallet-by-wallet regime. Reconcile each export against your own running ledger, and flag any deposit whose origin you cannot document — that gap becomes a basis question the IRS can ask about later.

Next, apply your allocation rule and method per wallet, computing each disposal's gain with the formula from the first section. Match your results against every Form 1099-DA you received, and if the broker's gross proceeds differ, contact the broker before filing rather than guessing. Finally, transfer the numbers to Form 8949 and Schedule D, attach the digital asset answer on Form 1040, and archive the complete evidence file — exports, TXIDs, and the lot selection worksheet — with your return copy.

Organized folders and USB drive holding cryptocurrency transaction records

Keep the archive for at least three years after filing, and six years if there is any chance of a substantial understatement dispute. Traders who reorganize wallets mid-year should snapshot balances and basis before and after each reorganization. That snapshot is what proves a clean basis transfer if the numbers are ever questioned, and it takes minutes to save when the data is fresh.

Airdrops, Staking Rewards, and Hard Forks

Not all basis comes from purchases. When you receive an airdrop after a hard fork and have dominion and control over the new tokens, the IRS FAQ treats their fair market value at receipt as ordinary income, and that same value becomes your holding-period basis. Staking rewards follow the identical pattern: income at the fair market value on the day the rewards are credited, then capital gain or loss when you eventually sell.

Purchases made with the rewarded tokens start a fresh basis clock at that income value, so keep the receipt-date price with every reward entry. Tokens received with no reliable market price are the rare hard case; documenting your valuation method contemporaneously is the best available defense. Gifts and inherited coins follow their own basis rules — carryover basis for gifts, and for inheritance a fair market value step-up at the date of death — so label those entries separately in your ledger rather than mixing them with bought lots.

Mistakes That Trigger IRS Notices

The most expensive error is still reporting what an exchange shows while ignoring wallets the exchange cannot see. Under the per-wallet rule, a sale on a self-hosted wallet uses only that wallet's basis pool, and a return computed from pooled data will not tie out to a broker 1099-DA. The second classic mistake is using average cost because the brokerage dashboard shows it — that method is simply not available for digital assets.

Two more deserve a warning. The wash sale rule under Section 1091 applies to stock and securities, so selling Bitcoin at a loss and rebuying does not currently trigger a disallowance on plain tokens — but tokenized securities reported on Form 1099-DA do fall under the rule, box 1i exists for exactly that, and the wash sale rule guide explains where the boundary sits. And since the Tax Cuts and Jobs Act limited Section 1031 to real property, there is no like-kind exchange for crypto trades, ever; every Bitcoin-for-Ethereum swap is a taxable disposal at fair market value.

If you realized losses this year, pair the calculation work with tax loss harvesting before December 31, and check whether short-term versus long-term treatment favors waiting a few extra weeks before closing a position. Both moves depend on accurate per-lot numbers, which is exactly what the process above produces.