The IRS now gets a form from your exchange. Here is exactly how crypto tax software calculates capital gains, so the number on your return is the number you actually owe.

How Crypto Gains Are Calculated for US Tax Filers

The IRS now knows you sold that Bitcoin. Do you know what you made?

For years, crypto taxes ran on the honor system. You bought, swapped, sold, and staked across five platforms and two wallets, then guessed in April. That era is over. Since 2025, custodial exchanges and brokers issue Form 1099-DA, a new IRS form that reports your digital asset sales straight to the government.

Here is the catch that trips up thousands of self-directed investors: that form shows what you received, not what you paid. If you copy its numbers onto your return without checking, you can report a gain far larger than the one you really had, and overpay.

This guide breaks down how crypto gains are calculated for US tax filers, step by step, and shows how crypto tax software calculates capital gains behind the dashboard. By the end, you will be able to sanity-check any software report, spot errors before the IRS does, and keep better records all year.

The Quick Answer: How Are Crypto Gains Calculated?

Crypto capital gain = proceeds (what you received, in US dollars) minus cost basis (what you paid, including fees).

The IRS treats crypto as property, not currency. Every sale, swap, or purchase of goods with crypto is a taxable disposal. Crypto tax software calculates your gain by matching each disposal to the specific purchase lot it came from, pricing both in USD at the moment they happened, and labeling the result short-term or long-term based on how long you held the asset.

That is the whole engine. Everything below is how the details work.

Why This Matters More in 2026

Two changes make accurate calculations more important than ever.

1. Form 1099-DA has arrived: For transactions in 2025, brokers report gross proceeds only. Cost basis reporting phases in for digital assets acquired on or after January 1, 2026, and then only for assets bought and held at the same broker. The first basis-inclusive forms arrive in early 2027. Assets you transferred in from elsewhere often show a blank or zero basis, which means you must establish it yourself using your own records.

2. Wallet-by-wallet tracking is now required: Under IRS guidance, you can no longer pool all your coins into one universal cost basis. Since January 1, 2025, basis must be tracked separately for each wallet and account. Decentralized and non-custodial platforms are generally exempt from issuing 1099-DAs, but your gains on them are still taxable and still your job to report.

The result: the form your exchange sends is a starting point, not an answer. Reconciling it is where good software earns its keep, and where informed DIY investors save real money.

What Counts as a Taxable Crypto Event?

Before any math happens, software has to decide which transactions create gains or losses. For US filers, these generally do:

Selling crypto for US dollarsSwapping one crypto for another (for example, ETH to SOL)Spending crypto on goods or servicesPaying network fees in crypto, which counts as a small disposal

These generally do not trigger a capital gain on their own:

Buying crypto with dollarsMoving crypto between your own walletsHolding, however large the unrealized gain

Income events are a separate category. Staking rewards, mining income, and airdrops are generally taxed as ordinary income at their fair market value when you receive them. That value then becomes the cost basis for those coins, so a later sale produces a capital gain or loss measured from that point. Good software tracks both layers.

Short-Term vs. Long-Term: The Holding Period Rule

Every gain gets a label, and the label drives your tax rate.

Higher earners may also owe the 3.8% Net Investment Income Tax. State taxes vary and apply on top.

The gap between those rates is why which coins you sell matters as much as how many. Selling a lot you have held for 13 months can cost far less than selling one you bought three weeks ago.

How Crypto Tax Software Calculates Capital Gains, Step by Step

Whether you use CoinTracker, Koinly, CoinLedger, TaxBit, or another tool, nearly all of them follow the same pipeline. Understanding it helps you catch problems.

Step 1: Import every transaction

The software pulls data from exchange APIs, CSV files, and public blockchain addresses. This is the most error-prone step, because missing data is the number one cause of wrong tax reports. One forgotten exchange can break the whole chain of cost basis.

Step 2: Classify each transaction

The software labels every entry as a buy, sell, swap, transfer, income, gift, or fee. Transfers between your own wallets should be matched and excluded from gains. When the software cannot tell a transfer from a sale, it often guesses wrong, and you will see an “unmatched” or “missing basis” warning.

Step 3: Price everything in USD

The IRS wants dollar values. For each transaction, the software looks up the fair market value at the time it occurred. A swap of ETH for SOL is valued in dollars on both sides, because you are treated as selling one asset and buying the other.

Step 4: Build cost basis lots

Each purchase becomes a lot: an amount of coin, a date, and a cost basis in USD. Fees paid to acquire the coin are added to basis. When you later sell, the software must decide which lot you are selling. This is where your accounting method comes in.

Step 5: Match disposals to lots

Using your chosen method (covered below), the software subtracts the sold amount from your lots, calculating proceeds minus basis for each piece. A single sale can span several lots, and each piece may have a different gain and holding period.

Step 6: Label and total the results

Each matched piece is marked short-term or long-term, then totaled. Losses offset gains, and net capital losses can generally offset up to $3,000 of other income per year, with any remainder carried forward.

Step 7: Generate tax forms

The output is typically Form 8949 (the line-by-line list of disposals) and Schedule D (the summary), plus income reports for staking or mining. You reconcile Form 8949 with any Form 1099-DA you received, adjusting basis where the broker’s form shows blank or incorrect data.

A Worked Example: Same Sale, Two Different Tax Bills

Here is a simplified, hypothetical example (fees ignored for clarity).

You own two lots of ETH in the same wallet:

Lot A: 1 ETH bought January 2024 for $2,000Lot B: 1 ETH bought August 2026 for $2,800

In November 2026 you sell 1 ETH for $3,200.

FIFO produces a bigger gain, but it is taxed at the lower long-term rate. Specific identification produces a smaller gain, taxed at a higher short-term rate. Depending on your bracket, either could leave you with the lower bill. For example, at illustrative rates of 15% long-term and 24% short-term, the FIFO tax is roughly $180 and the specific-ID tax is roughly $96.

This is exactly why the method matters, and why you should never accept a software default without understanding it.

Cost Basis Methods: FIFO, HIFO, and Specific Identification

FIFO (first in, first out) assumes you sell your oldest coins first. It is the IRS default if you do not identify specific units, and it is simple and defensible. It often produces larger gains in rising markets, but frequently long-term ones.

Specific identification lets you choose exactly which lots to sell, as long as you can document your choice at the time of the sale. This unlocks tax strategies, but it demands precise, contemporaneous records.

HIFO (highest in, first out) is a popular form of specific identification that sells your highest-cost lots first to minimize the current-year gain. It can reduce taxes now, though it may leave you holding lower-basis coins for later.

Remember that with wallet-by-wallet rules, the lots available are limited to those held in the specific wallet or account where the sale happens. A cheap lot sitting in your cold wallet cannot be used to offset a sale on your exchange unless it has been moved there.

Where Crypto Tax Software Gets It Wrong

Software is only as good as its inputs. Watch for these common failure points:

Missing transactions: A forgotten exchange or old wallet creates sales with no matching purchase, so basis defaults to zero and your gain is overstated.Misread transfers: If a move between your wallets looks like a sale, the software invents a gain.Wrong prices on illiquid tokens: Obscure coins may lack reliable historical pricing, so values need manual review.DeFi complexity: Liquidity pools, wrapped tokens, bridges, and lending positions are often categorized inconsistently across tools.Duplicate imports: Importing both an API connection and a CSV can double-count the same trades.Blind trust in Form 1099-DA: A blank basis is not an error you must accept. You can report your own basis on Form 8949 if you have the records to support it.

Your Pre-Filing Crypto Tax Checklist

Import every exchange, wallet, and DeFi account you used, including old and closed onesResolve every “missing basis” and “unmatched transfer” warningConfirm your cost basis method and that it can be defended with recordsCompare software totals against each Form 1099-DA and note differencesSpot-check your three biggest trades by handSave reports, wallet addresses, and screenshots for at least three yearsReview realized gains before year-end, while you can still act on them

That last item is the one most investors skip, and it is the most valuable.

Tax Reports Look Backward. Portfolio Management Looks Forward.

Tax software tells you what already happened. The harder question is how to manage exposure and diversify going forward, without turning your trading life into a second job.

That is the gap tools like Hyperlyx AI aim to fill. Hyperlyx AI is an investment assistant built to help investors and traders run crypto and stock strategies on automation, so they can spread risk across asset classes and keep exposure in check.

As AI agents increasingly ask for access to bank accounts and wallets, security concerns are growing, and for good reason. Hyperlyx AI takes a different approach: it works independently, without requiring you to connect your wallets or bank accounts. You keep custody of your funds and your keys.

A practical way to think about it: let a tax tool document the past, and let an assistant like Hyperlyx AI help you structure the future. Either way, remember that automated trading still creates taxable events, so the record-keeping habits in this article apply no matter how your trades are placed.

Frequently Asked Questions

How is crypto taxed in the US?

The IRS treats cryptocurrency as property. Selling, swapping, or spending it creates a capital gain or loss equal to your proceeds minus your cost basis. Gains on assets held one year or less are taxed as ordinary income, and gains on assets held longer are taxed at lower long-term rates.

How does crypto tax software calculate capital gains?

It imports your transactions, classifies each one, prices it in USD, builds cost basis lots from your purchases, matches each sale to a lot using your chosen method, and labels the result short-term or long-term. It then produces Form 8949 and Schedule D.

Do I owe tax if I only swap one crypto for another?

Yes, generally. A crypto-to-crypto swap is treated as selling the first asset and buying the second, so it can trigger a taxable gain or loss.

Is moving crypto between my own wallets taxable?

No, a transfer between wallets you own is not a taxable sale. It must be recorded correctly, though, because wallet-by-wallet tracking now determines which cost basis lots are available.

What if my Form 1099-DA shows no cost basis?

That is common, especially for 2025 transactions and for assets transferred in from elsewhere. You can report your own cost basis on Form 8949, provided you keep records that support it.

Can I deduct crypto losses?

Yes. Capital losses first offset capital gains. If losses exceed gains, generally up to $3,000 can offset other income each year, with the remainder carried forward. Rules for specific situations, such as wash sales, have been evolving, so confirm the current treatment for your tax year.

Which cost basis method is best?

There is no universal answer. FIFO is simple and the default, while specific identification (including HIFO) can lower your current-year tax but requires careful documentation. The right choice depends on your income, holding periods, and records.

The Bottom Line

Crypto taxes are no longer a guessing game, and the IRS is no longer working blind. Understanding how crypto tax software calculates capital gains turns your tax report from a mystery into something you can verify: proceeds minus basis, matched lot by lot, wallet by wallet, labeled by holding period.

The investors who come out ahead are not the ones with the fanciest tools. They are the ones who keep clean records, understand the method behind the math, and review their numbers before the deadline, not after.

If this saved you from a tax headache, please give it a clap and repost it. Someone in your network is sitting on a Form 1099-DA right now, wondering why the numbers look wrong. Sharing this takes five seconds and might save them hundreds of dollars. Follow for more guides on crypto, taxes, and smarter investing.

How Crypto Gains Are Calculated for US Tax Filers was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.

By

Leave a Reply

Your email address will not be published. Required fields are marked *