Calculate federal and state taxes on your cryptocurrency gains instantly
Cryptocurrency is taxed differently from a paycheck or bank interest — the IRS treats it as property, which means every time you sell, trade, or exchange crypto for a profit, you may owe capital gains tax. That single reality has created enormous confusion for millions of investors, especially in years when Bitcoin and Ethereum make headline moves. Our Crypto Capital Gains Calculator cuts through the complexity: enter your trade details, tell us your filing status and state, and you will instantly see exactly how much you owe — broken down by federal tax, state tax, and the 3.8% Net Investment Income Tax surcharge if it applies to you. Understanding whether you owe short-term or long-term rates can mean the difference between a 37% tax bill and a 0% or 15% rate on the same profit. Short-term capital gains — from assets held one year or less — are taxed as ordinary income and stacked on top of your other earnings, pushing you into higher brackets. Long-term capital gains enjoy preferential rates of 0%, 15%, or 20% depending on your total income. If you purchased Bitcoin in January and sold it in November, you are nine weeks away from potentially slashing your tax liability significantly. Our hold-versus-sell comparison panel shows you exactly how much you would save by waiting. This calculator handles every dimension of a US crypto transaction: per-coin or total-investment input modes, transaction fees that adjust your cost basis and proceeds, purchase and sale dates that auto-detect your holding period, all four filing statuses, all 50 US states plus Washington D.C. (with embedded 2025 rates), and NIIT calculation for higher-income filers. You can add multiple trades and see an aggregate summary alongside per-transaction details. The results include a waterfall chart showing how your gross proceeds shrink at each step — cost basis, fees, federal tax, state tax — until you reach your true net profit. For cost basis accounting, the IRS requires you to use either FIFO (first-in, first-out, the default), or a Specific Identification method if you want to use LIFO or HIFO. Average cost basis, commonly used for mutual funds, is NOT permitted for cryptocurrency under IRS Notice 2014-21. Starting January 1, 2025, the IRS also requires per-wallet tracking under Rev. Proc. 2024-28 — you must identify lots at the wallet level, not across all wallets. Our calculator allows you to select your preferred cost basis method per transaction so you can model the tax impact of each approach. One important note: as of the 2025 tax year, wash sale rules do NOT apply to cryptocurrency. Unlike stocks, you can sell crypto at a loss, immediately repurchase the same asset, and still claim the tax loss — a strategy known as tax-loss harvesting. This is a meaningful planning opportunity before year-end. Our calculator does not prevent you from claiming losses, and the results reflect actual realized gains or losses without wash sale adjustments. Always consult a qualified tax professional before filing. Tax rules change, state rates vary by income level, and your individual situation may involve staking rewards, airdrops, DeFi income, or NFT sales that carry additional complexity beyond what this calculator addresses.
Understanding Crypto Capital Gains Tax
What Is Crypto Capital Gains Tax?
The IRS classifies cryptocurrency as property under Notice 2014-21. When you sell, trade, or exchange crypto for more than you paid (your cost basis), the profit is a capital gain subject to tax. The type of gain — short-term or long-term — depends entirely on how long you held the asset before selling. Short-term gains (held 365 days or fewer) are taxed as ordinary income at rates from 10% to 37%. Long-term gains (held more than 365 days) qualify for preferential rates of 0%, 15%, or 20%. Your cost basis is generally what you paid for the crypto plus any fees incurred at purchase. Fees paid at sale reduce your proceeds. The net of adjusted proceeds minus adjusted cost basis is your taxable capital gain or deductible capital loss.
How Is It Calculated?
The core formula is: Capital Gain = Adjusted Proceeds − Adjusted Cost Basis. Adjusted Proceeds equals the sale price multiplied by quantity, minus sell fees. Adjusted Cost Basis equals the buy price multiplied by quantity, plus buy fees. For short-term gains, the tax equals the marginal rate applied to (your other income + the gain) minus the tax on your other income alone — reflecting that gains are added on top of your income. For long-term gains, the 0%, 15%, or 20% rate is applied based on where your total income (other income + gain) falls relative to long-term bracket thresholds. If your Modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly), a 3.8% Net Investment Income Tax (NIIT) surcharge applies to the lesser of net investment income or the excess over the threshold.
Why Does Holding Period Matter So Much?
The difference between short-term and long-term treatment can be dramatic. A single investor in the 22% bracket who holds crypto for exactly 364 days pays their marginal ordinary income rate on the gain. Wait one more day and the long-term 15% rate applies — a 7-percentage-point difference on every dollar of profit. At higher income levels, the swing is even larger: a 37% short-term rate versus a 20% long-term rate means holding an extra day saves 17 cents per dollar of gain. Planning around the one-year threshold is one of the most powerful and legal tax-reduction strategies available to crypto investors. Our hold-versus-sell panel quantifies this savings in dollar terms so you can make an informed decision.
Limitations and Important Notes
This calculator covers straightforward buy-and-sell transactions of cryptocurrency. It does not handle staking rewards, mining income, airdrops, DeFi yield, NFT sales with collectible tax treatment, crypto received as salary, or like-kind exchange rules (which no longer apply to crypto post-2017). State income tax rates shown are approximations — most states apply progressive rates that depend on your total income, not flat rates, so actual state tax may differ. The NIIT calculation is a reasonable estimate but may differ based on passive versus active income classification. This tool does not constitute tax advice. Consult a CPA or enrolled agent for situations involving large gains, multiple exchange accounts, DeFi protocols, or NFTs.
How to Use the Crypto Capital Gains Calculator
Enter Your Trade Details
Choose between 'Price Per Coin' and 'Total Amounts' input mode. In per-coin mode, enter the buy price per coin, sell price per coin, and quantity. In total mode, enter the total amount you invested and total sale proceeds. Optionally label the trade with the coin name (BTC, ETH, etc.).
Set Holding Period and Optional Details
Toggle between Short-Term (held 1 year or less) and Long-Term (held more than 1 year). For automatic detection, open Advanced Options and enter your purchase date and sale date — the calculator will determine the holding period and show days remaining until long-term status. Enter any buy or sell fees, and select your preferred cost basis method (FIFO is the IRS default).
Configure Your Tax Profile
In the Tax Settings section, select your tax year (2024, 2025, or 2026), filing status (Single, Married Filing Jointly, etc.), your other annual income from W-2 wages or self-employment, and your state of residence. State rates are preloaded. If your state is not listed or you prefer a custom rate, check 'Use custom state tax rate' and enter the percentage manually.
Review Results and Compare Scenarios
Results appear instantly showing your capital gain or loss, federal tax, state tax, NIIT surcharge (if applicable), net profit after tax, effective tax rate, and ROI. If you have a short-term gain, check the Hold vs. Sell comparison to see how much you would save by waiting for long-term rates. Use the waterfall chart to see where every dollar goes. Export to CSV or print for your records.
Frequently Asked Questions
What is the difference between short-term and long-term crypto capital gains?
Short-term capital gains apply when you sell crypto you held for 365 days or fewer. They are taxed as ordinary income at rates from 10% to 37%, stacked on top of your other earnings. Long-term capital gains apply to assets held more than 365 days and are taxed at preferential rates of 0%, 15%, or 20%, depending on your total taxable income. For 2025, the 0% rate applies to single filers with total income up to $48,350. The tax difference between short-term and long-term treatment on the same gain can be substantial — sometimes 15 to 20 percentage points — making holding period one of the most important factors in crypto tax planning.
Do I owe tax if I trade one cryptocurrency for another?
Yes. Under IRS Notice 2014-21, exchanging one cryptocurrency for another is a taxable event. When you swap Bitcoin for Ethereum, for example, the IRS treats it as if you sold Bitcoin at its fair market value and immediately bought Ethereum. Your taxable gain or loss is the difference between your Bitcoin's fair market value at the time of the swap and your original cost basis. The same rule applies to using crypto to purchase goods or services. Only transferring crypto between your own wallets (without a change of ownership) is not taxable. This calculator handles straightforward buy-and-sell transactions; for crypto-to-crypto swaps, use the market value at time of exchange as your sell price.
What is FIFO and which cost basis method should I use?
FIFO (First-In, First-Out) means the oldest coins you purchased are treated as sold first. It is the IRS default method and the most commonly used. LIFO (Last-In, First-Out) uses the most recently purchased lots first, which can reduce gains in falling markets. HIFO (Highest-In, First-Out) always uses your highest-cost lots first, minimizing taxable gain on each sale — it is generally the most tax-efficient method in a bull market. Both LIFO and HIFO require Specific Identification documentation under IRS rules, and since January 1, 2025, tracking must be done at the per-wallet level (IRS Rev. Proc. 2024-28). The IRS does NOT allow average cost basis for cryptocurrency, unlike mutual funds.
What is the Net Investment Income Tax (NIIT) and does it apply to crypto?
The Net Investment Income Tax (NIIT) is a 3.8% surcharge on investment income, including capital gains from cryptocurrency, for higher-income taxpayers. It applies when your Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single filers, $250,000 for married filing jointly, or $125,000 for married filing separately. The NIIT is calculated on the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. This calculator automatically checks whether your income plus the capital gain exceeds the NIIT threshold and includes it in your total tax if applicable. The NIIT is in addition to — not instead of — regular capital gains tax.
Do wash sale rules apply to cryptocurrency?
As of the 2025 tax year, the IRS wash sale rule does NOT apply to cryptocurrency. The wash sale rule, which applies to stocks and securities, disallows a loss if you buy a 'substantially identical' asset within 30 days before or after the sale. Because the IRS classifies crypto as property rather than a security, selling Bitcoin at a loss and immediately repurchasing Bitcoin does not trigger the wash sale rule — you can claim the full loss. This makes year-end tax-loss harvesting particularly powerful for crypto investors. Note: legislators have proposed extending wash sale rules to crypto in several bills, so this rule may change in future tax years. Check current IRS guidance before filing.
How do transaction fees affect my crypto capital gains?
Transaction fees paid when buying cryptocurrency increase your cost basis, which reduces your taxable gain. For example, if you buy $10,000 of Bitcoin and pay a $50 trading fee, your cost basis is $10,050. Transaction fees paid when selling reduce your proceeds, also reducing the taxable gain. If you sell for $15,000 and pay a $75 fee, your adjusted proceeds are $14,925. The net effect is that both buy and sell fees lower your capital gain (or increase your capital loss), resulting in less tax owed. Gas fees on Ethereum transactions are also generally deductible as transaction costs. This calculator accounts for both buy and sell fees when computing your adjusted cost basis and adjusted proceeds.