How This Calculation Works
Crypto is treated as property by the IRS, not as currency. Selling it for cash, swapping one coin for another or spending it on goods can all create a capital gain or loss. The tax depends on two things more than anything else: your profit, and how long you held the asset.
If you held the coin for one year or less, the gain is short term and taxed as ordinary income at your marginal federal rate. Hold it for more than one year and it becomes long term, with reduced federal rates of 0%, 15% or 20% depending on taxable income. The holding-period clock starts the day after you acquire the asset and stops on the day you sell.
This calculator uses your cost basis — what you paid, including fees — and your proceeds, then subtracts them to find the gain. It combines that gain with your other taxable income to place the long-term rate correctly, and it applies the state planning rate for the state you select. States do not generally give crypto a special rate; most simply add the gain to ordinary income.
One frequent surprise: a coin that doubled and then fell 20% from its peak is still a large taxable gain when you sell. The IRS taxes the difference between what you paid and what you received, not the drop from the highest price you ever saw.
- Cost basis — purchase price plus acquisition fees.
- Proceeds — what you actually received after selling fees.
- Months held — the line between short-term and long-term rates.
Real-World 2026 Example
Say you bought $10,000 of a token in March 2025, paid $60 in fees, and sold it in July 2026 for $26,000 after $150 in exchange fees. Your basis is $10,060, your proceeds are $25,850, and the long-term gain is $15,790. Held just a few months longer than a year, that gain may fall in the 15% federal bracket, producing roughly $2,370 in federal tax. In California, add several thousand more at the state level.
Sell the same position in November 2025 instead — eleven months after purchase — and the entire $15,790 is short term. If your ordinary marginal rate is 32% including state tax, the bill jumps to more than $5,000. Waiting two months would have saved close to half the tax.
Losses matter too. If you sold a different position at a $6,000 loss in the same year, it offsets $6,000 of the gain dollar for dollar. Up to $3,000 of remaining net loss can also reduce ordinary income each year, with the rest carried forward.
The presets above let you test both holding periods on identical numbers. That is usually the fastest way to understand why the calendar matters more than the chart.
Actionable Tips to Save More
Keep a transaction log with date, asset, quantity, cost basis and proceeds for every trade. Exchanges rarely preserve this history perfectly, and reconstructing it years later is painful.
Watch the one-year mark before selling. If you are close, waiting a few weeks can move a large gain from your ordinary rate to the long-term rate. Do not let a tax rule override a sound investment decision, but know what the wait is worth.
Consider tax-loss harvesting in a volatile year. Realized losses offset gains and up to $3,000 of ordinary income, but be aware of the wash-sale rules if you buy a substantially identical asset soon after selling.
The price chart tells you when to trade. The holding period tells you what the trade will cost.