Civilable
Back to all calculators

Crypto Tax Calculator

Estimate your cryptocurrency taxes based on US tax brackets. Currently calculating in US Dollar.

Tax Settings
Enter your income and transactions

HIFO typically minimizes taxes by selling highest-cost coins first

Estimated Crypto Tax

$560

15.0% effective rate

Short-Term

$0

Tax: $0

Long-Term

$3,735

Tax: $560

Crypto Income

$0

Tax: $0

Total Fees

$25

Deductible from gains

Tax Breakdown
Gains & Losses by Type
Taxable Events
Summary of all taxable cryptocurrency transactions
CoinTypeDateAmountProceedsCost BasisGain/LossTerm
BTCsell2024-06-150.250000$11,235$7,500+$3,735Long

Important Tax Considerations

  • This calculator provides estimates only. Consult a tax professional for accurate advice.
  • Crypto-to-crypto trades are taxable events in the US.
  • Staking rewards, mining income, and airdrops are taxed as ordinary income when received.
  • Keep detailed records of all transactions including dates, amounts, and prices.
Guide

What is a Crypto Tax Calculator?

A crypto tax calculator estimates the total U.S. federal income tax you owe across all your cryptocurrency activity for a tax year — covering capital gains from trades and sales, ordinary income from staking rewards and mining, and the 3.8% Net Investment Income Tax (NIIT) for high earners. It applies the actual 2024 IRS tax brackets for both short-term and long-term gains, automatically netting gains against losses before calculating the tax owed.

What makes crypto tax uniquely complex is the volume and variety of taxable events. Every sale, swap, and purchase made with crypto is a taxable disposal at the USD value on that date. A single DeFi power user might generate hundreds of taxable events in a year — each requiring proceeds, cost basis, holding period, and gain/loss calculations. This calculator consolidates that work into a single interface, supporting transaction types of sell, trade, income (staking/mining), buy, and gift received.

The calculator also handles the three main cost basis accounting methods — FIFO, LIFO, and HIFO — which determine which specific coin lots are treated as sold when you dispose of part of a position. The choice of method can meaningfully change the taxable gain recognized in a given year, making it one of the most important tax planning decisions for active crypto traders.

Disclaimer: This calculator provides estimates for educational purposes only. Cryptocurrency tax law is complex, evolves rapidly, and varies by jurisdiction. Consult a qualified tax professional for personalized advice.

Instructions

How to Use This Calculator

1

Set Filing Status, Income & Cost Basis Method

Select your IRS filing status and enter your other taxable income (salary, wages) before crypto. This determines which brackets apply to your short-term gains. Also choose your cost basis method: FIFO is the IRS default; HIFO typically minimizes taxes by treating your highest-cost lots as sold first.

2

Enter Every Transaction Type Accurately

Add each transaction and choose its type: Buy (establishes cost basis, not taxable), Sell (taxable — requires cost basis per coin), Trade (taxable swap, treated as a sale), Income (staking, mining, airdrops — taxed as ordinary income at receipt value), or Gift Received (not taxable on receipt; inherits donor cost basis).

3

Provide Cost Basis for Each Sale or Trade

For sell and trade rows, enter the original price per coin you paid when you acquired that lot. This is the most critical input — omitting it zeroes out your basis and overstates your gain. If you bought across multiple lots, enter the per-coin basis for the specific lot you are applying (per your chosen cost basis method).

4

Read the Full Tax Breakdown

The results panel shows total estimated tax, effective rate, short-term tax, long-term tax, income tax, NIIT (if applicable), and any loss carryover. The Tax Breakdown pie chart and Gains & Losses bar chart visualize where your tax liability comes from. The Taxable Events table shows every disposal individually.

Formula

How Crypto Tax Is Calculated

The calculator follows the IRS multi-step process for netting gains, applying brackets, and computing NIIT:

1. Per-Transaction Gain / Loss

Gain = (Price per Coin × Amount − Sell Fee) − (Cost Basis per Coin × Amount + Buy Fee)

2. Net Short-Term and Long-Term Gains

Net Short = Short-Term Gains − Short-Term Losses Net Long = Long-Term Gains − Long-Term Losses

If one net is positive and the other negative, the excess loss offsets the other type. Net loss beyond gains is capped at $3,000/year deductible against ordinary income; the rest carries forward.

3. Short-Term Tax (Stacked on Ordinary Income)

Short-Term Tax = Net Short stacked on top of other income, taxed at 2024 marginal brackets (10%–37%)

4. Long-Term Tax (Preferential Brackets)

Long-Term Tax = Net Long taxed at 0%, 15%, or 20% based on total taxable income bracket

5. Crypto Income Tax

Income Tax = Staking / mining / airdrop receipts taxed as ordinary income at marginal rate

6. NIIT (3.8% Surcharge)

NIIT = min(Net Gains + Income, Total Income − Threshold) × 3.8% Threshold: $200k (single) / $250k (married)

7. Total Estimated Tax

Total = Short-Term Tax + Long-Term Tax + Income Tax + NIIT

Worked example: You are single with $80,000 salary. You sell 0.5 BTC (held 18 months, cost basis $30,000/BTC) at $45,000 — long-term gain = $7,500. You also received $2,000 in ETH staking rewards — ordinary income. Long-term tax = $7,500 × 15% = $1,125. Income tax on $2,000 stacked on $80,000 at 22% = $440. NIIT: total income ($89,500) is under $200,000 — $0. Total estimated tax = $1,565 on $9,500 of crypto income — 16.5% effective rate.

Cost Basis Methods

FIFO, LIFO, and HIFO Explained

When you hold multiple lots of the same coin bought at different prices and sell only part of your position, you must specify which lots are treated as sold — this determines how much gain you recognize. The IRS allows two main approaches: First In First Out (FIFO) as the default, or Specific Identification (which lets you achieve HIFO or any other order by explicitly designating lots at the time of sale).

Example: Sell 1 BTC — which lot is sold?

You hold: Lot A — 1 BTC at $20,000 (held 14 months). Lot B — 1 BTC at $50,000 (held 3 months). Current price: $45,000.

MethodLot SoldGain / LossTermTax (@ 15% LT / 22% ST)
FIFOLot A ($20,000 basis)+$25,000Long-term$3,750
HIFOLot B ($50,000 basis)−$5,000Short-term loss$0 (offsets other gains)
LIFOLot B ($50,000 basis)−$5,000Short-term loss$0 (offsets other gains)

In this example HIFO/LIFO generates a $5,000 short-term loss worth up to $1,100 in tax savings vs. FIFO generating a $25,000 long-term gain with $3,750 of tax — a $3,750 difference from the same sale. Cost basis method choice is one of the most impactful year-end tax decisions for crypto holders with mixed lots.

Transaction Types

Every Crypto Transaction Type and Its Tax Treatment

BuyNot Taxable

Buying crypto with fiat is not a taxable event. It establishes your cost basis (purchase price + fees) for the lot. You will use this basis when you later sell or trade the coin.

SellCapital Gain/Loss

Selling crypto for fiat triggers a capital gain or loss equal to proceeds (sale price minus sell fee) minus cost basis. Short-term (held ≤1 year) or long-term (held >1 year) rate applies based on the holding period.

Trade (Crypto-to-Crypto)Capital Gain/Loss

Swapping one crypto for another is treated by the IRS as a sale of the first asset at its USD fair market value on the day of the swap. A taxable gain or loss is triggered on the disposed asset, regardless of whether you received any dollars.

Income (Staking / Mining)Ordinary Income

Staking rewards, mining proceeds, liquidity pool fees, and yield farming income are taxed as ordinary income at their USD fair market value on the date received. That FMV becomes your new cost basis for the received tokens.

Airdrop / Hard ForkOrdinary Income

The IRS treats tokens received in airdrops and hard forks as ordinary income at their FMV when you receive dominion and control over them. The received tokens get a cost basis equal to the income recognized.

Gift ReceivedNot Taxable on Receipt

Receiving crypto as a gift is not taxable at the time of receipt. You inherit the donor's original cost basis and holding period. When you sell, you will owe capital gains tax based on the donor's basis, not the FMV when you received it.

Tax Strategies

Strategies to Reduce Your Crypto Tax Bill

Hold past the one-year mark

Converting a short-term gain to a long-term gain by waiting past 365 days is the single highest-impact tax move available. A 22% bracket filer with a $20,000 gain saves $1,400 in tax — just by waiting. Set calendar reminders for the one-year anniversary of significant purchases.

Harvest crypto losses before December 31

Crypto is not subject to the IRS wash-sale rule (as of 2024), meaning you can sell a losing position to realize a deductible loss and immediately repurchase the same coin. This resets your cost basis lower while keeping your market exposure — a unique advantage crypto holds over stocks for year-end tax planning.

Use HIFO to minimize gain on partial sales

When selling part of a multi-lot position, designating your highest-cost lots as sold first (HIFO via Specific Identification) minimizes or eliminates the recognized gain on that sale. Not all exchanges support Specific ID by default — check your exchange settings and elect it before your first sale of the year.

Donate long-term appreciated crypto directly

Donating crypto held over one year directly to a qualified 501(c)(3) charity (not selling first) eliminates capital gains tax on the appreciation and generates a charitable deduction for the full current fair market value. This is more tax-efficient than selling and donating cash proceeds.

Account for staking income at receipt, not at sale

Many traders make the mistake of thinking staking rewards are only taxed when sold. The IRS position (confirmed in Jarrett v. United States) is that newly issued tokens are ordinary income when received at their FMV. Track and report each reward receipt date and USD value — these amounts also become your cost basis in the reward tokens.

Track every transaction across all wallets and chains

Tax liability exists regardless of whether your exchange issues a 1099. DeFi swaps on Ethereum, trades on Solana DEXes, and cross-chain bridges all generate taxable events. Starting in 2025, centralized exchanges must issue Form 1099-DA — but self-custody and DeFi activity remains self-reported. Use crypto tax software to aggregate all activity.

Learn More

IRS Crypto Reporting: Form 8949, Schedule D, and 1099-DA

How the IRS receives your crypto information: Every capital gain and loss from crypto must be reported on Form 8949 (Sales and Other Dispositions of Capital Assets), which feeds into Schedule D of your Form 1040. Each row of Form 8949 corresponds to a single taxable event — coin sold, quantity, date acquired, date sold, proceeds, cost basis, and gain or loss. With hundreds of DeFi transactions, this can mean hundreds of 8949 rows. The IRS has a crypto question on the front page of Form 1040 that requires a “Yes” answer if you disposed of any crypto during the year, even at a loss.

The 2025 Form 1099-DA change: Starting with tax year 2025 (forms issued in early 2026), the IRS requires centralized cryptocurrency exchanges to issue Form 1099-DA — a new information return that reports each customer's crypto disposals, proceeds, and cost basis to both the taxpayer and the IRS. This mirrors the way stockbrokers have reported since 2011. For prior years and for decentralized exchange activity, self-reporting based on your own records remains required and legally obligatory even without a 1099.

Staking, mining, and DeFi income reporting: Crypto income from staking rewards, liquidity mining, yield farming, or any other “proof of work” / “proof of stake” mechanism is reported as ordinary income on Schedule 1 (Additional Income) or as self-employment income on Schedule C if operated as a business. The amount reported is the USD fair market value of the tokens at the time of receipt. Subsequent appreciation or depreciation of those tokens is then tracked separately as a capital gain/loss.

2024 Crypto Tax Rate Quick Reference (Single Filer)

Taxable IncomeShort-Term RateLong-Term RateNIITMax Combined Rate
Under $47,02510–12%0%No12%
$47,025–$100,52522%15%No22%
$100,525–$191,95024%15%No24%
$191,950–$200,00032%15%No32%
$200,000–$518,90032–35%15%+3.8%38.8%
Over $518,90037%20%+3.8%40.8%

For authoritative IRS guidance, see IRS Digital Assets, IRS Topic 409: Capital Gains and Losses, and the IRS Notice 2014-21 establishing that virtual currency is taxed as property.

FAQ

Frequently Asked Questions

What counts as a taxable crypto event?

Taxable events include: selling crypto for fiat, trading one crypto for another (each swap is a taxable sale of the first coin at its USD value at time of trade), using crypto to purchase goods or services, receiving staking rewards or mining income (taxed as ordinary income when received), and receiving airdrops or hard fork tokens (taxed as ordinary income at receipt FMV). Non-taxable events include: buying crypto with fiat, transferring crypto between your own wallets, receiving crypto as a gift (no tax at receipt; you inherit donor's basis), and simply holding crypto regardless of unrealized appreciation.

Do I owe tax on staking rewards I have not sold?

Yes, under current IRS guidance. The IRS position (supported by Notice 2014-21 and reinforced by the Jarrett case outcome) is that staking rewards are ordinary income at their fair market value when you receive them — not when you eventually sell. This means you owe income tax on the value of tokens the moment they hit your wallet, even if the price subsequently drops. The FMV at receipt becomes your cost basis, so you only owe capital gains on any appreciation beyond that point when you sell.

What is the wash-sale rule and does it apply to crypto?

The wash-sale rule (IRS Section 1091) disallows a capital loss if you sell a security at a loss and repurchase a substantially identical security within 30 days before or after the sale. As of 2024, the wash-sale rule applies only to securities — and cryptocurrency is classified by the IRS as property, not a security. This means you can sell Bitcoin at a loss to realize a tax deduction and immediately repurchase Bitcoin. Congress has proposed extending the wash-sale rule to crypto in multiple bills; check current law before year-end planning.

Which cost basis method should I use: FIFO, LIFO, or HIFO?

It depends on your situation and goals. FIFO (IRS default) sells oldest lots first — often generates long-term gains since you've held longer, but at a potentially low basis. HIFO (via Specific Identification) sells highest-cost lots first — typically minimizes current gain recognition and is the best choice when you want to minimize taxes in the current year. LIFO is not recognized as a standalone method by the IRS for securities or property — you can achieve it through Specific Identification. The IRS requires you to elect Specific Identification at the time of each sale, not retroactively.

How do I report crypto on my tax return?

Each taxable crypto event goes on Form 8949 (Sales and Other Dispositions of Capital Assets), with short-term gains in Part I and long-term gains in Part II. The totals flow to Schedule D. Staking and mining income goes on Schedule 1 (Line 8z, Other Income) or Schedule C if operated as a business. Form 1040 now includes a digital assets question on page 1 that must be answered "Yes" if you disposed of any crypto during the year — answering "No" when you did is a false statement on a federal return.

What records should I keep for crypto taxes?

The IRS requires substantiation for every transaction. Keep: the date of each acquisition and disposal, the amount of crypto involved, the USD fair market value at the time of each transaction, your cost basis (purchase price plus fees), and any exchange transaction IDs or on-chain transaction hashes. For staking income, record the date and USD value of each reward. Exchange CSVs, wallet export files, and third-party crypto tax software reports (Koinly, CoinTracker, TaxBit) all qualify as records. The IRS statute of limitations is generally 3 years, but 6 years if you underreport income by more than 25%.

Related Calculators