Crypto Capital Gains Calculator
Calculate short-term and long-term capital gains tax on cryptocurrency trades and estimate your crypto tax liability.
Reviewed for accuracy by Sahil, Senior Finance & Tax Editor
Crypto Capital Gains Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Capital Gain = Sale Price - Purchase Price; Tax = Gain x Applicable Rate
Worked example โ Tax: $3,000 | Net Gain: $12,000 | Effective Rate: 20% | Net Proceeds: $22,000
Formula
Capital Gain = Sale Price - Purchase Price; Tax = Gain x Applicable Rate
Short-term gains (held 12 months or less) are taxed at ordinary income rates. Long-term gains (held over 12 months) receive preferential rates of 0%, 15%, or 20%. The NIIT adds 3.8% for high earners above $200,000 (single) or $250,000 (married).
Worked Examples
Example 1: Long-Term Bitcoin Gain
Problem:Purchased Bitcoin for $10,000, sold for $25,000 after 14 months. Federal bracket 24%, state 5%, single filer with $85,000 income.
Solution:Capital gain: $25,000 - $10,000 = $15,000 Holding period: 14 months (Long-term) Long-term rate: 15% (income $85k + $15k = $100k) Federal tax: $15,000 x 15% = $2,250 State tax: $15,000 x 5% = $750 NIIT: Not applicable (below $200k) Total tax: $2,250 + $750 = $3,000
Result:Tax: $3,000 | Net Gain: $12,000 | Effective Rate: 20% | Net Proceeds: $22,000
Example 2: Short-Term Ethereum Trade
Problem:Bought ETH for $8,000, sold for $14,000 after 5 months. Federal bracket 32%, state 6%, single filer, $180,000 income.
Solution:Capital gain: $14,000 - $8,000 = $6,000 Holding period: 5 months (Short-term) Federal tax: $6,000 x 32% = $1,920 State tax: $6,000 x 6% = $360 NIIT: ($180k + $6k - $200k) = negative, no NIIT Total tax: $1,920 + $360 = $2,280 If held long-term: $6,000 x 15% + $360 = $1,260 Tax savings from waiting: $1,020
Result:Short-term tax: $2,280 | Would be $1,260 if long-term | Savings: $1,020 by waiting
Frequently Asked Questions
How are cryptocurrency capital gains taxed in the United States?
The IRS treats cryptocurrency as property, not currency, which means every sale, trade, or disposal is a taxable event subject to capital gains tax. Short-term capital gains on crypto held for 12 months or less are taxed at your ordinary income tax rate, which can range from 10% to 37% depending on your tax bracket. Long-term capital gains on crypto held for more than 12 months receive preferential tax rates of 0%, 15%, or 20% based on your total taxable income. Additionally, high earners may owe the 3.8% Net Investment Income Tax on capital gains. Trading one cryptocurrency for another, using crypto to purchase goods, receiving crypto as payment for services, and mining or staking rewards are all taxable events. Simply buying crypto with fiat currency and holding it is not a taxable event.
What is the difference between short-term and long-term crypto capital gains?
The distinction between short-term and long-term capital gains is entirely based on your holding period, which is the time between when you acquired the cryptocurrency and when you disposed of it. If you hold crypto for 12 months or less, any profit is a short-term capital gain taxed at your ordinary income rate, typically 22% to 37% for most active traders. If you hold for more than 12 months, the profit qualifies for long-term capital gains rates of 0%, 15%, or 20%, which are significantly lower than ordinary income rates. For example, a $15,000 gain on crypto held for 11 months at the 32% bracket would cost $4,800 in federal tax, while the same gain held for 13 months at the 15% long-term rate would cost only $2,250. This $2,550 difference demonstrates why holding period planning is one of the most effective crypto tax strategies.
What crypto transactions trigger a taxable event?
Understanding which crypto transactions create taxable events is essential for accurate reporting. Taxable events include selling cryptocurrency for fiat currency like dollars or euros, trading one cryptocurrency for another such as Bitcoin for Ethereum, using cryptocurrency to purchase goods or services, receiving cryptocurrency as payment for work or services which is taxed as ordinary income, mining rewards which are taxed as income at fair market value when received, staking rewards taxed as income when you gain dominion and control, and receiving airdrops or hard fork tokens. Non-taxable events include buying cryptocurrency with fiat currency, transferring crypto between your own wallets, gifting crypto below the annual gift exclusion amount, and donating crypto to qualified charities. Each taxable event requires calculating the gain or loss by comparing the fair market value at disposition against your cost basis.
How do I calculate my cost basis for cryptocurrency?
Cost basis is the original value of your cryptocurrency for tax purposes, and it includes the purchase price plus any fees paid to acquire it. If you bought 1 Bitcoin at $30,000 with a $50 exchange fee, your cost basis is $30,050. When you have multiple purchases at different prices, you need a cost basis method to determine which coins you are selling. The IRS accepts FIFO (First-In First-Out), LIFO (Last-In First-Out), and Specific Identification methods. FIFO assumes you sell the oldest coins first, which may produce higher gains in a rising market. Specific Identification lets you choose exactly which coins to sell, enabling you to optimize your tax outcome. For crypto received as income from mining, staking, or payment, the cost basis is the fair market value at the time you received it, and you have already paid income tax on that amount. Proper cost basis tracking from the beginning saves enormous headaches during tax season.
What is the Net Investment Income Tax and how does it apply to crypto?
The Net Investment Income Tax, also called NIIT or the Medicare surtax, is an additional 3.8% tax on investment income including capital gains that applies to high earners. For single filers, the NIIT kicks in when your modified adjusted gross income exceeds $200,000. For married filing jointly, the threshold is $250,000. The NIIT applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. For crypto traders, this means that large gains combined with a high salary can trigger this additional tax. For example, if you earn $180,000 in salary and realize $50,000 in crypto gains, your MAGI of $230,000 exceeds the $200,000 threshold by $30,000. You would owe NIIT of 3.8% on the lesser of $50,000 investment income or $30,000 excess, resulting in $1,140 in additional tax. This surtax applies regardless of whether the gains are short-term or long-term.
How can I legally minimize taxes on cryptocurrency gains?
Several legal strategies can reduce your crypto tax burden significantly. Tax-loss harvesting involves selling losing positions to offset gains, reducing your taxable income by up to $3,000 per year in net losses with excess carried forward. Long-term holding ensures gains qualify for the preferential 0% to 20% rates rather than ordinary income rates up to 37%. Donating appreciated crypto to charity lets you deduct the fair market value without paying capital gains tax. Gifting crypto to family members in lower tax brackets can shift the tax burden. Using tax-advantaged accounts like self-directed IRAs or solo 401(k)s to hold crypto provides tax-deferred or tax-free growth. Timing sales strategically in years when your income is lower can place gains in the 0% long-term bracket. Moving to a state with no income tax like Texas, Florida, or Wyoming eliminates the state tax component entirely.
Do I need to report crypto if I did not sell or make a profit?
You do not need to report cryptocurrency you purchased and held without any transactions during the tax year, as simply holding is not a taxable event. However, you may still need to answer the digital asset question on your Form 1040, which asks whether you received, sold, exchanged, or otherwise disposed of any digital asset during the year. If you only purchased and held, you answer yes but have no gains to report. If you sold at a loss, you should report the loss because you can use it to offset other capital gains or deduct up to $3,000 against ordinary income. Unreported losses are essentially throwing away a tax deduction. If you received crypto as income from mining, staking, airdrops, or as payment, you must report this as ordinary income regardless of whether you sold it. Starting in 2025, crypto brokers will be required to issue 1099-DA forms, making it harder for transactions to go unreported.
How do crypto-to-crypto trades affect my taxes?
Every crypto-to-crypto trade is a taxable event that must be reported, even though you never converted to dollars. When you trade Bitcoin for Ethereum, the IRS treats this as selling Bitcoin at its current fair market value and purchasing Ethereum at that same value. You must calculate the capital gain or loss on the Bitcoin disposal by comparing the sale value against your Bitcoin cost basis. For example, if you bought 1 Bitcoin at $20,000 and traded it for Ethereum when Bitcoin was worth $35,000, you have a $15,000 capital gain even though you received Ethereum, not cash. The Ethereum then has a cost basis of $35,000 for future tax calculations. This cascading complexity is why crypto tax software is practically essential for active traders. A single year of DeFi trading can generate hundreds or thousands of taxable events that would be nearly impossible to track manually.
What records do I need to keep for crypto taxes?
Maintaining comprehensive records is critical for accurate crypto tax reporting and defending your returns in case of an IRS audit. For every transaction, you should record the date and time of acquisition, the cost basis including any fees paid, the date and time of disposition, the fair market value at the time of sale or exchange, the gain or loss amount, and whether the holding period qualifies as short-term or long-term. Download transaction histories from every exchange you use since exchanges can shut down or lose data. Record wallet-to-wallet transfers to prove they are not taxable events. Keep records of crypto received as income including mining, staking, and airdrops with fair market values at the time received. The IRS recommends keeping tax records for at least three years, but seven years is safer given the complexity of crypto taxation. Use crypto tax software like CoinTracker, Koinly, or TaxBit to aggregate data from multiple exchanges and automatically calculate gains.
What are the penalties for not reporting crypto taxes?
Failing to report cryptocurrency taxes can result in significant penalties from the IRS. The failure-to-file penalty is 5% of unpaid taxes per month, up to 25% maximum. The failure-to-pay penalty is 0.5% per month on unpaid taxes plus interest at the federal short-term rate plus 3%. Accuracy-related penalties for negligence or substantial understatement of income are 20% of the underpaid tax. In cases of willful fraud, the penalty increases to 75% of the underpaid tax, and criminal prosecution can result in fines up to $250,000 and imprisonment of up to 5 years. The IRS has been increasingly focused on cryptocurrency enforcement, sending warning letters to crypto holders, using blockchain analytics firms to trace transactions, and issuing John Doe summons to exchanges for customer records. If you have unreported crypto income from prior years, the IRS Voluntary Disclosure Program allows you to come forward and pay reduced penalties compared to being caught in an audit.
References
Reviewed for accuracy by Sahil, Senior Finance & Tax Editor ยท Editorial policy
Related Calculators
๐งฎCapital Gains Tax Calculator
Calculate capital gains tax with inputs, formulas, and instant results.
๐งฎTax-Loss Harvesting Calculator
Calculate potential tax savings from harvesting investment losses against capital gains.
๐งฎCrypto P&L Calculator
Calculate cryptocurrency profit and loss including trading fees, leverage, ROI, break-even price, and liquidation price for spot and margin trades.
๐งฎCrypto Profit Calculator
Calculate your cryptocurrency profit, loss, and ROI including exchange fees for Bitcoin, Ethereum, and all digital assets.
๐งฎCrypto Portfolio Rebalance Calculator
Determine how many units to buy or sell to rebalance your crypto portfolio to target allocations.
๐งฎProject IRR Calculator โ Capital Budgeting
Evaluate a capital project by computing IRR, NPV, payback period, and profitability index from projected cash flows.
๐งฎProject NPV Comparison Calculator
Compare multiple capital projects side by side using NPV, IRR, payback period, and profitability index to choose the best investment.
๐งฎDCA Investment Calculator
Project the future value of recurring investments using dollar-cost averaging with year-by-year portfolio growth and total gains.