TAX

Crypto Tax Calculator

Estimate US federal capital gains tax on a crypto sale, compare FIFO, LIFO and HIFO cost basis methods side by side on the same lots, and calculate ordinary income tax on mining, staking or airdrop rewards. Built on 2026 IRS tax brackets, with short-term vs. long-term treatment and the Net Investment Income Tax handled automatically.

Last updated: July 2026Β·Reviewed by the Calculator Boss finance teamΒ·~8 min read

Key takeaways

  • The IRS treats crypto as property β€” selling, trading for another coin, or spending it are all taxable disposals, not just cashing out to dollars.
  • Held one year or less: taxed as ordinary income (10–37%). Held over one year: preferential long-term rates of 0%, 15% or 20%.
  • Your cost basis method (FIFO, LIFO, or HIFO) can change your taxable gain by thousands of dollars on the exact same trade β€” this tool compares all three side by side.
  • Mining and staking rewards are taxed as ordinary income when received, separate from any capital gain when you later sell those coins.
Estimated Federal Tax
$0.00
Advertisement
In-content unit β€” paste AdSense code here

How your gain stacks across tax brackets

Other income fills the bottom; your gain stacks on top
Loading chart…

Key numbers

Effective tax rate on this amount

--
Loading

Short-term vs. long-term β€” what holding longer would change

Using your current gain and other income, here's the estimated federal tax if this had been short-term vs. long-term \u2014 and how the tax on this amount changes at different levels of other income.

ScenarioRate appliedEstimated federal tax
Advertisement
Responsive unit β€” paste AdSense code here

How your other income changes the tax on this gain

Same gain, same holding period β€” here's how the estimated federal tax shifts at different levels of other taxable income, since long-term gains stack on top of it.

Reviewed: July 2026
Other incomeMarginal rate on gainEstimated federal taxAction

Understanding crypto taxes in the US

The IRS treats cryptocurrency as property, not currency. That single classification drives almost everything else: selling crypto for dollars, trading one coin for another, and spending crypto on goods or services are all "disposals" that can trigger a capital gain or loss, just like selling stock or real estate. Simply buying crypto with cash, or holding it while its price moves, is not itself taxable.

Capital Gain or Loss = Proceeds βˆ’ Cost Basis

Cost basis is what you paid to acquire the asset, including transaction and exchange fees. Proceeds are what you received when you disposed of it, net of any sale fees. If you've bought the same asset at different times and prices, you also need an accounting method to determine which specific units you're treated as selling β€” that's where FIFO, LIFO, and HIFO come in.

Short-term vs. long-term: the one-year line

Hold a crypto asset for one year or less before disposing of it, and any gain is short-term, taxed at your ordinary income rate β€” the same brackets that apply to wages, running from 10% up to 37%. Hold it for more than one year, and the gain becomes long-term, taxed at the preferential federal rate of 0%, 15%, or 20% depending on your total taxable income. In the default example on this page, a $11,650 long-term gain on top of $95,000 of other income is taxed at 15% ($1,747.50); the identical gain, if short-term instead, would be taxed at $2,582.00 at ordinary rates β€” a difference of over $800 purely from the holding period.

FIFO, LIFO and HIFO: the same trade, different tax bills

When you've accumulated the same asset across multiple purchases, the IRS lets you choose (and must apply consistently) an accounting method to identify which units a given sale consumes. FIFO (first-in, first-out) treats your oldest units as sold first β€” it's the IRS default if you don't specify otherwise, and it tends to produce the largest gain in a rising market because your earliest purchases usually have the lowest cost basis. LIFO (last-in, first-out) sells your most recent units first. HIFO (highest-in, first-out) sells whichever units cost the most, regardless of when you bought them, which typically minimizes your taxable gain but requires clean documentation to defend if the IRS asks. In the cost basis example on this page, the exact same sale produces a $51,200 gain under FIFO versus $47,700 under HIFO β€” a $3,500 difference in taxable gain, worth roughly $525 in federal tax at a 15% long-term rate.

The Net Investment Income Tax (NIIT)

Higher earners face an additional 3.8% federal tax on investment income, including capital gains, once modified adjusted gross income exceeds $200,000 (single or head of household) or $250,000 (married filing jointly) for 2026. NIIT is charged on the smaller of your net investment income or the amount your income exceeds the threshold, and it stacks on top of your regular capital gains tax β€” pushing the effective top federal rate on long-term gains to 23.8% for the highest earners.

Mining, staking and airdrops: taxed twice, at two different times

Per IRS Revenue Ruling 2023-14, crypto received from mining or staking is ordinary income at its fair market value on the date you gain dominion and control over it β€” reported and taxed in that year, regardless of whether you sell it. That same value then becomes your cost basis for the coins. If you later sell them, that's a second, separate taxable event: a capital gain or loss based on the difference between the sale price and the value you already paid income tax on when you received them.

No wash sale rule β€” for now

The wash sale rule (IRC Β§1091), which disallows a loss deduction if you buy back a "substantially identical" security within 30 days, applies only to securities and stock. Since the IRS classifies crypto as property rather than a security, the wash sale rule currently doesn't apply β€” you can sell a losing position to realize the loss and immediately repurchase the same asset without the loss being disallowed. This is a meaningful difference from how the same strategy works with stocks, though it has been the subject of legislative proposals that could change it in the future.

Capital losses and the $3,000 deduction cap

Capital losses first offset capital gains of the same type β€” short-term losses against short-term gains, long-term against long-term β€” then any remaining loss offsets the other type. If your net capital loss for the year still exceeds your net capital gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Anything beyond that carries forward to future tax years indefinitely, with no expiration.

What this calculator does not cover

This tool estimates US federal tax only, using 2026 IRS brackets, and does not include state income tax, which varies enormously by state β€” some states have none, while others tax capital gains as ordinary income at rates exceeding 10%. It also doesn't cover every edge case: NFT-specific rules, DeFi liquidity pool events, hard forks, gifting, donating appreciated crypto to charity, or wash-sale-style legislative changes that may arrive in the future. Treat these figures as a planning estimate, and confirm your specific situation with a qualified tax professional before filing.

Glossary of terms

Cost basis
What you paid to acquire an asset, including fees β€” used to calculate gain or loss when you dispose of it.
Disposal
Any event that realizes a gain or loss for tax purposes β€” selling for cash, trading for another crypto, or spending it.
FIFO / LIFO / HIFO
Accounting methods for identifying which specific units a sale consumes when you've bought the same asset at different times and prices.
Short-term / long-term
Whether an asset was held one year or less (short-term, ordinary rates) or more than one year (long-term, preferential rates) before disposal.
NIIT (Net Investment Income Tax)
An additional 3.8% federal tax on investment income for higher earners above set income thresholds.
Ordinary income
Income taxed at the regular graduated brackets (10%–37%) β€” includes wages, short-term capital gains, and mining/staking rewards.
Wash sale rule
A rule disallowing a loss deduction if a substantially identical security is repurchased within 30 days β€” currently does not apply to crypto.
Form 8949 / Schedule D
The IRS forms used to report individual crypto disposals and summarize total capital gains and losses for the year.

How to use this calculator

Set your filing status and other income

Enter your filing status and your other taxable income for the year so the calculator can stack your crypto gain on top correctly.

Choose a tab for your situation

Use Capital Gains Tax for a single sale, Cost Basis Method for comparing FIFO/LIFO/HIFO on multiple lots, or Mining & Staking Income for reward income.

Enter your transaction details

Add purchase and sale prices, fees, quantities, and dates as prompted.

Read your estimated tax

Review your gain or loss, holding period classification, and estimated federal tax including NIIT if it applies.

Compare cost basis methods if relevant

Switch to the Cost Basis tab to see how FIFO, LIFO, and HIFO change your taxable gain for the same lots and sale, then click Calculate to lock in the numbers or Clear to start fresh.

Common mistakes & tips for crypto taxes

  • Forgetting that crypto-to-crypto trades are taxable. Swapping BTC for ETH realizes a gain or loss on the BTC you gave up, even though no cash touched a bank account.
  • Ignoring fees when calculating cost basis. Purchase and sale fees both adjust your gain β€” skipping them means overstating your taxable gain.
  • Not picking (and sticking with) a cost basis method. The IRS defaults to FIFO if you don't specify otherwise, and requires consistency within a tax year β€” decide deliberately rather than by accident.
  • Missing the one-year holding period by a few days. Selling one day early can mean paying ordinary rates instead of preferential long-term rates on the entire gain.
  • Not reporting mining or staking income until it's sold. These rewards are taxable as ordinary income when received, independent of whether or when you later sell them.
  • Assuming losses are wasted. Even losses beyond the $3,000 annual deduction limit carry forward indefinitely β€” they're not lost, just deferred.

Example setups

A few realistic scenarios β€” click one to load it into the Capital Gains Tax tab above.

Your saved setups

Click "πŸ’Ύ Save setup" above to keep the estimate you're currently running β€” it's stored privately in this browser, not sent anywhere, so it'll be here next time you visit on this device.

FIFO vs. HIFO β€” the same sale, two different tax bills

Two lots (1.0 unit at $20,000, 0.5 unit at $27,000), selling 0.8 units at $84,000, both lots held long-term.

MethodCost basisTaxable gainEst. federal tax (15% LT rate)
FIFO$16,000.00$51,200.00$7,680.00
HIFO$19,500.00$47,700.00$7,155.00

Same lots, same sale β€” HIFO's higher cost basis produces $3,500 less taxable gain than FIFO, worth about $525 less federal tax at a 15% long-term rate. The gap grows with more lots, a wider spread of purchase prices, and a higher tax bracket. FIFO remains the IRS default if you don't specify another method, and whichever method you choose must be applied consistently within a tax year.

Frequently asked questions

This calculator estimates US federal tax only, using 2026 IRS brackets, for general informational purposes β€” it is not tax, legal, or financial advice, and does not include state taxes, NFT-specific rules, or every edge case in crypto taxation. Tax law changes and individual situations vary significantly; consult a qualified tax professional (such as a CPA) before filing or making decisions based on these figures.
CB
Calculator Boss Finance Team
Formulas cross-checked against standard references (below) Β· Last reviewed July 2026

Have feedback on this calculator, or spotted something that looks off? Use the feedback widget below or reach out via the About page β€” we periodically review these tools for accuracy.

References & sources:
  • Internal Revenue Service. Notice 2014-21. β€” foundational guidance that convertible virtual currency is treated as property for US federal tax purposes.
  • Internal Revenue Service. Revenue Procedure 2025-32. β€” source of the 2026 inflation-adjusted income tax brackets, long-term capital gains thresholds, and standard deductions used in this calculator.
  • Internal Revenue Service. Revenue Ruling 2023-14 (July 31, 2023). β€” guidance that staking rewards are ordinary income when the taxpayer gains dominion and control, referenced in the mining/staking income tab.