Tool · 5 min · Reviewed December 3, 2026
Crypto tax calculator: gain on a sale and an estimated 2026 federal tax
Enter what you bought and what you sold. The page matches the sale to your purchases, splits short-term from long-term, and estimates the federal tax. It runs in your browser.
We may earn a commission when you buy through links on this page. Learn more.
Enter your purchases and the sale, then choose Calculate. Nothing you type leaves your browser.
How it works
- Cost basis. Each purchase's basis is coins times price, plus the fee. See how to calculate crypto cost basis.
- Matching. Your method decides which purchases the sale uses up. FIFO takes the oldest, LIFO the newest, HIFO the most expensive per coin. Only purchases dated on or before the sale date are used.
- Proceeds. Coins sold times price, minus the sale fee, shared across the purchases it used in proportion to the coins.
- Holding period. Long-term only if the sale date is after the one-year anniversary of the purchase date. A coin bought January 1, 2025 and sold January 1, 2026 is short-term. Sold January 2, 2026, it is long-term.
- Tax estimate. Short-term gains are added to your ordinary taxable income and taxed through the 2026 brackets. Long-term gains stack on top and are taxed at 0%, 15%, or 20%. A net loss reduces ordinary income by up to $3,000.
The 2026 long-term rate bands the tool uses
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
What it leaves out
- The 3.8% net investment income tax that can apply at higher incomes.
- State and local income tax.
- The alternative minimum tax, qualified dividends, and capital loss carryforwards from earlier years.
- Married filing separately.
- Rules for gifts, inheritances, and crypto-to-crypto swaps. Enter the dollar value you had at the time as your basis.
- Wash sale rules, which do not apply to directly held coins under current law. See the crypto wash sale rule.
It is an estimate, not a tax return. A real year has many sales across several wallets, income from staking, and a Form 1099-DA to match.
When to use software instead
A spreadsheet or a calculator like this one is fine for a sale or two. Once you have hundreds of rows across more than one exchange or wallet, KoinlyPartner (opens in a new tab) or CoinLedgerPartner (opens in a new tab) will import the history, match your own transfers, and produce Form 8949. Both import for free, so you can see your gains before you buy a report.
Try Koinly freePartner (opens in a new tab)
Try CoinLedgerPartner (opens in a new tab)
Our links are affiliate links. If you buy through one, we may earn a commission, and you do not pay more. See Koinly vs CoinLedger, Form 8949 for crypto, and Crypto taxes, a US guide.
Common questions
How are crypto gains taxed in 2026?
Gains on crypto held one year or less are taxed as ordinary income. Gains on crypto held more than one year are taxed at 0%, 15%, or 20%, depending on your taxable income and filing status. This is the general federal picture, not advice for your return.
What is the 0% long-term capital gains bracket for 2026?
For tax year 2026, long-term gains are taxed at 0% up to $49,450 of taxable income for single filers, $98,900 for married filing jointly, and $66,200 for head of household. Your gain stacks on top of your other taxable income.
Does this calculator include state tax?
No. It estimates federal income tax only. It also leaves out the 3.8% net investment income tax and the alternative minimum tax.
Does my data leave my browser?
No. The calculation runs on this page. Nothing you enter is sent to a server or saved.
What is the difference between FIFO and HIFO?
FIFO matches a sale to your oldest purchases first. HIFO matches it to the purchases that cost the most per coin first, which usually shrinks the gain. HIFO is only available if you can identify and document the units you sold.