Crypto Tax Calculator
Calculate crypto tax with our free Crypto tax Calculator. Compare rates, see projections, and make informed financial decisions.
Crypto Tax Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Tax Owed = Capital Gain × Tax Rate (short-term or long-term)
Worked example — Capital Gain: $25,000 | Tax: $6,000 | Net After Tax: $44,000
Formula
Tax Owed = Capital Gain × Tax Rate (short-term or long-term)
Capital gain is calculated as proceeds (sell price × quantity) minus cost basis (buy price × quantity). If held for 12 months or less, the gain is taxed at your ordinary income tax rate (short-term). If held for more than 12 months, the gain is taxed at the preferential long-term capital gains rate (0%, 15%, or 20% depending on income). Losses can offset gains and up to $3,000 of ordinary income per year.
Worked Examples
Example 1: Short-Term Bitcoin Gain
Problem:You bought 1 BTC at $25,000 and sold at $50,000 after 6 months. Your tax bracket is 24%. What tax do you owe?
Solution:Cost Basis = 1 × $25,000 = $25,000 Proceeds = 1 × $50,000 = $50,000 Capital Gain = $50,000 - $25,000 = $25,000 Holding Period = 6 months (short-term) Tax Rate = 24% (ordinary income rate) Tax Owed = $25,000 × 24% = $6,000
Result:Capital Gain: $25,000 | Tax: $6,000 | Net After Tax: $44,000
Example 2: Long-Term Ethereum Gain
Problem:You bought 5 ETH at $2,000 and sold at $4,000 after 18 months. Your tax bracket is 32%. What tax do you owe?
Solution:Cost Basis = 5 × $2,000 = $10,000 Proceeds = 5 × $4,000 = $20,000 Capital Gain = $20,000 - $10,000 = $10,000 Holding Period = 18 months (long-term) Long-term rate for 32% bracket = 15% Tax Owed = $10,000 × 15% = $1,500 Vs. Short-term: $10,000 × 32% = $3,200 (saved $1,700)
Result:Capital Gain: $10,000 | Tax: $1,500 | Tax Saved by Holding: $1,700
Frequently Asked Questions
How is cryptocurrency taxed in the United States?
In the United States, the IRS treats cryptocurrency as property, not currency. This means every sale, trade, or exchange of cryptocurrency is a taxable event that must be reported. When you sell crypto for fiat currency, trade one crypto for another, or use crypto to purchase goods or services, you realize a capital gain or loss. The tax rate depends on how long you held the asset. Short-term gains (held 12 months or less) are taxed at your ordinary income tax rate, which ranges from 10% to 37%. Long-term gains (held more than 12 months) receive preferential rates of 0%, 15%, or 20% depending on your income level. Mining income and staking rewards are taxed as ordinary income at fair market value when received.
What is the difference between short-term and long-term capital gains tax?
Short-term capital gains apply to assets held for 12 months or less and are taxed at your ordinary income tax rate, which can be as high as 37% for the highest earners. Long-term capital gains apply to assets held for more than 12 months and are taxed at preferential rates of 0%, 15%, or 20%. Which of those three brackets applies depends on your taxable income and filing status, and the income thresholds are adjusted each year, so check the current figures published by the IRS before relying on a rate. This creates a significant tax incentive to hold cryptocurrency for more than one year before selling. The difference can be substantial — on a $50,000 gain, a taxpayer in the 32% bracket would pay $16,000 in short-term tax versus $7,500 in long-term tax.
What crypto transactions are taxable events?
Taxable events include selling cryptocurrency for fiat currency (USD, EUR, etc.), trading one cryptocurrency for another (e.g., BTC to ETH), using cryptocurrency to pay for goods or services, and receiving cryptocurrency as payment for work or services. Non-taxable events include buying cryptocurrency with fiat currency, transferring crypto between your own wallets, and gifting crypto (though the recipient inherits your cost basis). Staking rewards and mining income are taxed as ordinary income when received. DeFi activities like yield farming, liquidity provision, and airdrops can also trigger tax events. The complexity of crypto taxation makes it essential to maintain detailed records of all transactions including dates, amounts, and fair market values.
Can I deduct crypto losses on my taxes?
Yes, cryptocurrency losses can be used to offset gains and reduce your tax liability through a process called tax-loss harvesting. Capital losses first offset capital gains of the same type (short-term losses against short-term gains, long-term against long-term). Any remaining net losses can offset up to $3,000 of ordinary income per year ($1,500 if married filing separately). Losses exceeding $3,000 can be carried forward to future tax years indefinitely. Note that the wash sale rule in IRC section 1091 is written for stock and securities, while the IRS treats digital assets as property, so the two are not automatically subject to the same repurchase restriction. That treatment has been the subject of proposed legislative change, so confirm the current rules with a tax professional before harvesting a loss and buying back the same coin.
How do I calculate cost basis for crypto trades?
Cost basis is the original purchase price plus any fees paid to acquire the cryptocurrency. Several methods exist for calculating cost basis when you have multiple purchases at different prices. FIFO (First In, First Out) assumes you sell the oldest coins first, which is the default IRS method. LIFO (Last In, First Out) assumes the most recently purchased coins are sold first. Specific Identification allows you to choose which specific coins to sell, providing the most control over tax outcomes. The chosen method significantly affects your tax liability — in a rising market, LIFO typically produces smaller gains because the most recently purchased (and most expensive) coins are sold first. Whichever method you choose, you must apply it consistently and maintain detailed records.
Why is a crypto-to-crypto trade taxable when no cash is received?
Because the IRS treats digital assets as property, swapping one token for another is a disposal of the first asset, not a like-kind exchange. You are treated as selling the outgoing coin at its fair market value in dollars at the moment of the trade, and that value becomes the cost basis of the coin you receive. A BTC-to-ETH swap therefore realizes the full gain accrued on the BTC even though no fiat ever hits your bank. This is why traders often owe tax in a year they never cashed out, and why running every leg through a calculator like this one matters.
How does the holding period clock work when I buy the same coin repeatedly?
The twelve-month clock runs separately for each tax lot, not for your wallet as a whole. Each purchase creates a lot with its own acquisition date and cost basis, so a position built through recurring buys can contain both short-term and long-term lots at once. When you sell part of the position, your accounting method decides which lots are disposed of and therefore which holding period applies. Selecting long-held lots under specific identification can move a gain from the ordinary-income rate to the preferential long-term rate, which is one of the largest levers a long-term holder has.
What is the difference between capital gains tax and income tax on crypto?
Capital gains tax applies when you dispose of a coin you already own: the taxable amount is proceeds minus cost basis, and the rate depends on holding period. Income tax applies when new crypto arrives as compensation — mining rewards, staking rewards, interest and payment for services — and the taxable amount is the full fair market value in dollars at the time of receipt, with no basis to subtract. That receipt value then becomes the coin's cost basis, so a later sale is a separate capital-gains event on the change in price since then.
How do exchange fees, gas fees and network costs affect the calculation?
Acquisition fees generally add to cost basis and disposal fees generally reduce proceeds, so both shrink the taxable gain the calculator produces. Buying one coin for 25,000 dollars with a 100 dollar fee gives a 25,100 dollar basis; selling for 50,000 dollars with a 100 dollar fee gives 49,900 dollars of proceeds, so the gain is 24,800 rather than 25,000. Moving coins between your own wallets is not itself a disposal, though spending an appreciated coin to pay the gas is a separate question, so log every fee and confirm the treatment with a tax professional.
When does converting an unrealized loss into a realized one actually help?
A paper loss changes nothing on your return; only a disposal creates a deductible capital loss. Realizing one helps most when you already have realized gains of the same character to absorb, because short-term losses first offset short-term gains, which are taxed at the higher ordinary rate. It helps least if you have no gains and only limited ordinary income to shelter, since the annual ordinary-income offset is capped and the remainder simply carries forward. Rules on buying the same coin straight back differ between securities and property and have been the subject of proposed change, so confirm current guidance before acting.
References
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Earnings Per Share Calculator
Calculate basic and diluted EPS from net income, preferred dividends, and shares outstanding.
🧮DCA Crypto Calculator
Calculate dca crypto with inputs, formulas, and instant results.
🧮Pip Calculator
Calculate pip with inputs, formulas, and instant results.
🧮Forex Margin Calculator
Calculate forex margin with inputs, formulas, and instant results.
🧮Forex Profit Calculator
Calculate forex profit with inputs, formulas, and instant results.
🧮Spread Cost Calculator
Calculate spread cost with inputs, formulas, and instant results.
🧮Forex Commission Calculator
Calculate forex commission with inputs, formulas, and instant results.
🧮Currency Pair Correlation Calculator
Calculate currency pair correlation with inputs, formulas, and instant results.