Categories

Mortgage & Real EstateDebt & LoansInvestments & CryptoRetirement & SavingsTax & BusinessCareerReal EstateCost GuidesHome ImprovementLegal & BusinessAuto & VehicleEducationPetsImmigrationMilitary

Related Calculators

Crypto DCA Calculator 2026 →Capital Gains Tax Calculator 2026 →Crypto Mining Calculator 2026 →
HomeCryptoCrypto Profit Calculator — Calculate Your Gains and Losses

Crypto Profit Calculator — Calculate Your Gains and Losses

Calculate cryptocurrency profit or loss including fees and taxes.

Auto-updated May 8, 2026 · Verified daily against IRS, Fed & Treasury sources

Instant resultsNo signupVerified formula
Free · No signup · Verified
Crypto Profit Calculator — Calculate Your Gains and Losses

Enter your numbers below

$
$
$
$
%

LT: 0/15/20% based on income

Assumptions· 2026

  • ·Profit/loss = proceeds − cost basis; short-term (< 1yr) vs. long-term (≥ 1yr) classified
  • ·FIFO cost basis as IRS default; specific identification available for tax optimization
  • ·Federal tax estimate at entered ordinary income rate (ST) and LTCG rate (LT)
  • ·Wash sale rule does NOT currently apply to crypto (IRS has not extended §1091 to digital assets as of 2026)
When this is wrong
  • ·Crypto-to-crypto swaps are taxable events — gain/loss recognized at swap, not only on cash-out
  • ·NIIT 3.8% surtax on crypto gains above $200k single / $250k MFJ thresholds
  • ·State capital gains tax treatment varies (CA taxes all gains as ordinary income)
  • ·1099-DA expected from exchanges in 2026; Form 8949 required for every transaction
Assumptions· 2026▾
  • ·Profit/loss = proceeds − cost basis; short-term (< 1yr) vs. long-term (≥ 1yr) classified
  • ·FIFO cost basis as IRS default; specific identification available for tax optimization
  • ·Federal tax estimate at entered ordinary income rate (ST) and LTCG rate (LT)
  • ·Wash sale rule does NOT currently apply to crypto (IRS has not extended §1091 to digital assets as of 2026)
When this is wrong
  • ·Crypto-to-crypto swaps are taxable events — gain/loss recognized at swap, not only on cash-out
  • ·NIIT 3.8% surtax on crypto gains above $200k single / $250k MFJ thresholds
  • ·State capital gains tax treatment varies (CA taxes all gains as ordinary income)
  • ·1099-DA expected from exchanges in 2026; Form 8949 required for every transaction

Related Calculators

Crypto DCA Calculator 2026 →Capital Gains Tax Calculator 2026 →Crypto Mining Calculator 2026 →
Your Results

Based on your inputs

ℹ️Demo numbers — replace inputs to see yours
Profit
$19,875positivepositive trend

ROI: 66.1%

After-Tax Profit
$16,894positivepositive trend

Tax owed: $2,981

Total Cost Basis$30,050
Total Revenue$49,925
Gross Profit/Loss$19,875
Tax Owed$2,981
After-Tax Profit$16,894
ROI66.1%

Reality Score:save 3 numbers across housing, debt & cash to see how your full picture holds up (0–100). One calc alone can't tell you that.

Stays in your browser. Never sent to us.

More actions
Embed

Your next step

📊 Analyze 3+ calcs to unlock your Financial Picture dashboard (cross-analysis of all your numbers).

Continue with Crypto Staking
Email a copy of this result →

Email a copy of this result to yourself. We don't store it server-side; the email is the only copy.

Decision guides

Crypto Tax Guide 2026
IRS rules on gains, mining, staking, and DeFi.
Capital Gains Tax Rates 2026
Short vs. long-term rates — crypto included.
Dollar-Cost Averaging vs. Lump Sum
Which entry strategy has the data behind it?

Deep-dive articles

⚡ Key Takeaways

  • Crypto profit is realized when you sell or trade—not when price goes up on paper. Unrealized gains don't trigger taxes; only realized gains do
  • Capital gains tax rate depends on how long you held (long-term: >1 year at 0-20%, short-term: ≤1 year at 10-37%). Holding one extra day can save 10-25% on taxes
  • Your cost basis includes purchase price PLUS all fees (buying fees, gas fees, trading fees)—a $30k BTC purchase with $300 fees has $30,300 cost basis, not $30,000
  • Tax-loss harvesting lets you offset gains with losses (from other trades). Harvesting a $5k loss against a $20k gain reduces taxable gain to $15k, saving $2,250+ in taxes
  • Crypto-to-crypto trades are taxable events (you owe capital gains tax when trading BTC for ETH), unlike traditional brokerage where trading one stock for another isn't taxable if it's in the same account

Understanding Realized vs Unrealized Gains

This is the most important distinction for crypto taxes:

Unrealized Gain: Profit on paper before you sell
Example: Buy 1 BTC at $30,000, it's now worth $60,000
Unrealized gain: $30,000
Tax owed: $0 (no tax until you sell)

Realized Gain: Profit after you sell or trade
Example: You sell that 1 BTC at $60,000
Realized gain: $60,000 − $30,000 = $30,000
Tax owed: $4,500−$11,100 (15-37% depending on holding period and income)

The critical point: Unrealized gains are NOT taxable. You can own a portfolio worth $500k with $400k in unrealized gains and owe $0 in taxes. The moment you sell even $1 of that $500k, you trigger capital gains tax on any profit from that $1.

This is why long-term crypto holders can defer taxes indefinitely. As long as you don't sell, you don't owe taxes, no matter how high prices go.

Long-Term vs Short-Term Capital Gains

How long you hold crypto dramatically affects your tax rate.

Short-term capital gains (holding period ≤ 1 year):
Taxed as ordinary income. Your tax bracket determines rate:
• 10% bracket: 10% capital gains
• 24% bracket: 24% capital gains
• 37% bracket (highest): 37% capital gains
Average American (24% bracket): 24% tax on short-term gains

Long-term capital gains (holding period > 1 year):
Taxed at preferential rates, regardless of income bracket:
• 0% (if total income is low enough)
• 15% (for most middle-income earners)
• 20% (for high-income earners, >$492k for married filing jointly)
Average American (24% bracket): 15% tax on long-term gains

The math:
Buy 1 BTC at $30,000. Sell at $60,000 six months later.
Short-term gain: $30,000 × 24% = $7,200 tax owed
Long-term gain: $30,000 × 15% = $4,500 tax owed
Tax savings by holding 6 more months: $2,700

Buy 1 BTC at $30,000. Sell at $60,000 one day AFTER the 1-year mark.
Tax: $30,000 × 15% = $4,500
One extra day saved you $2,700 in taxes.

This is a massive incentive structure: holding long-term is 36% cheaper than short-term selling (15% vs 24% effective rate). The IRS intentionally makes it cheaper to hold long.

Calculating Your Cost Basis

Cost basis is what you originally paid, including ALL fees. Getting this right is critical.

What counts as cost basis:
1. Purchase price per coin
2. Buy transaction fees (Coinbase's 2%, Kraken's 0.5%, etc.)
3. Network fees (gas fees on Ethereum)
4. Mining fees (if you earned mining rewards, their fair market value when received)

Example 1: Simple BTC purchase
Buy 1 BTC on Coinbase at $30,000
Coinbase fee: $600 (2%)
Total cost basis: $30,600

Sell later at $60,000
Realized gain: $60,000 − $30,600 = $29,400
You owed tax on $29,400, not $30,000

Example 2: ETH purchase with gas fees
Buy 5 ETH at $2,000 each = $10,000
Exchange fee: $50
Transfer to self-custody wallet (gas fee): $400
Total cost basis: $10,450

Sell later at $3,500 each = $17,500
Realized gain: $17,500 − $10,450 = $7,050
Tax on gain: $7,050 × 15% = $1,058 (assuming long-term)

Example 3: Crypto-to-crypto trade
You own 5 ETH (cost basis: $10,000, current value: $17,500)
You trade it for SOL at $17,500 value
Realized gain: $17,500 − $10,000 = $7,500
Tax: $7,500 × (your rate) = immediate tax event

This is shocking to many people: trading one crypto for another triggers a capital gains tax. Unlike traditional brokerage accounts (where you can swap stocks tax-free within the account), every crypto trade is a taxable event.

This is why tax-aware investors use stablecoins (USDC) as intermediate: sell ETH for USDC (taxable), then USDC to SOL (another taxable event, but you control the timing). At least you can harvest losses simultaneously.

The"Wash Sale" Rule Does NOT Apply to Crypto (Yet)

In traditional stocks, the wash sale rule prevents you from realizing a loss and buying back the same stock within 30 days. The IRS doesn't allow artificial loss harvesting.

Example (stocks): Sell $10k stock at $8k loss (harvest the $2k loss). Buy the same stock back a week later. IRS says no—that's a wash sale, loss is disallowed.

For crypto, the IRS hasn't clearly ruled whether wash sales apply. The safest interpretation: assume they do or will in the future.

Safe crypto tax-loss harvesting:
Sell Bitcoin at a loss to realize the $2k loss. Instead of buying Bitcoin back immediately, wait 31 days. Or buy a similar (but not identical) asset like Bitcoin Cash temporarily, then swap back.

Recommendation: Do tax-loss harvesting in crypto, but wait 31 days before buying back the same coin to be safe. Or consult a CPA—tax law on crypto is still evolving.

Calculating Crypto Profit/Loss on Multiple Trades

Most people make multiple purchases and sales. The cost basis method matters enormously.

Scenario:
Buy 1 BTC at $20,000 (Purchase 1)
Buy 1 BTC at $30,000 (Purchase 2)
Buy 1 BTC at $40,000 (Purchase 3)
Sell 1 BTC at $60,000 (Sale 1, 6 months after Purchase 2)

Which BTC did you sell? The IRS gives you three options:

Option 1: FIFO (First-In, First-Out)
You sold the first BTC you bought (the $20,000 one)
Realized gain: $60,000 − $20,000 = $40,000
Tax: $40,000 × 15% = $6,000 (long-term: it's been 12+ months)

Option 2: LIFO (Last-In, First-Out)
You sold the most recent BTC you bought (the $40,000 one)
Realized gain: $60,000 − $40,000 = $20,000
Tax: $20,000 × 24% = $4,800 (short-term: it's been <12 months)

Option 3: Specific Identification
You specify which BTC you sold."I sold the $30,000 one."
Realized gain: $60,000 − $30,000 = $30,000
Tax: $30,000 × 15% = $4,500 (long-term: depends on actual purchase date)

Which method is best?
Specific Identification usually minimizes taxes. In this scenario:
• FIFO: $6,000 tax
• LIFO: $4,800 tax
• Specific ID ($30k coin): $4,500 tax
• Specific ID (best choice): $4,200 tax (sell the $40k coin with lowest gain)

Specific ID requires documentation and can be complex, but it saves the most taxes. Use it if you have >10 transactions in a year.

For most people with <5 transactions: use FIFO (simplest) and accept slightly higher taxes. For active traders: hire a CPA to track cost basis and use Specific ID.

Tax-Loss Harvesting: Turning Losses into Tax Savings

If you have a loss on one crypto, use it to offset gains on another.

Example:
Gain: You sold 1 BTC at $60k after buying at $40k = $20,000 gain
Loss: You sold 2 ETH at $1,500 each after buying at $2,000 = $1,000 loss
Net capital gain: $20,000 − $1,000 = $19,000
Tax: $19,000 × 15% = $2,850

Without harvesting the loss, you'd owe: $20,000 × 15% = $3,000
Tax savings from harvesting: $150

Why is this useful?
If you have a portfolio where some coins are underwater (current value < cost basis), harvest those losses before selling winners. This is why rebalancing is tax-efficient—you trim winners and buy losers simultaneously, allowing loss harvesting.

Use our crypto portfolio tracker to identify underwater positions quarterly. Harvest before year-end (Dec 31) to use losses in current year's taxes.

Net Investment Income Tax (NIIT): An Additional Tax on High Earners

If you earn >$200k (single) or $250k (married), there's an additional 3.8% tax on long-term capital gains and other investment income. This only applies to realized gains over these income thresholds.

Example:
Salary: $150,000 (below threshold)
Crypto gains: $100,000
Total income: $250,000 (now above threshold)
The excess above $250k = $0, so no NIIT
Tax: $100,000 × 15% = $15,000

Alternative example:
Salary: $300,000 (above threshold)
Crypto gains: $100,000
Total income: $400,000 (well above threshold)
The investment income subject to NIIT: $100,000 × 3.8% = $3,800 additional tax
Long-term capital gains tax: $100,000 × 15% = $15,000
Total tax on gains: $18,800

High-earners pay an extra 3.8% on crypto realized gains. Plan accordingly if you're in this bracket.

Calculating Your Total Tax Liability

Use this formula to estimate annual crypto tax:

Total Realized Gains = Sum of (Sale Price − Cost Basis) for all sales/trades
Total Realized Losses = Sum of losses (negative gains)
Net Capital Gain = Total Gains − Total Losses

If you have long-term gains and short-term gains separately:
Long-term capital gains tax = Long-term gains × 15% (or 0%/20% depending on income)
Short-term capital gains tax = Short-term gains × your marginal tax rate (10-37%)
Total tax = Long-term tax + Short-term tax + (NIIT if applicable)

Example:
Long-term gains: $100,000 (held >1 year)
Short-term gains: $30,000 (held <1 year)
Realized losses: $10,000
Net long-term: $100,000
Net short-term: $30,000 − $10,000 = $20,000
Your bracket: 24% (short-term), 15% (long-term)
Tax: $100,000 × 15% + $20,000 × 24% = $15,000 + $4,800 = $19,800

Use our crypto profit/loss calculator to compute exact tax liability based on your realized gains and holding periods.

FAQ: Crypto Profit and Loss Calculations

Do I owe taxes on unrealized gains?

No. Only realized gains (when you sell/trade) trigger taxes. You can hold a $100k portfolio with $50k in unrealized gains forever and owe $0 taxes until you sell.

What if I don't know my exact purchase price?

Estimate based on historical price charts. The IRS may challenge your estimate, so keep documentation (emails, screenshots, blockchain records). If you truly can't find it, the IRS may assume $0 cost basis (all gain = max tax).

Is trading crypto for crypto taxable?

Yes. Swapping 1 BTC for 10 ETH is a taxable event—you're selling BTC at its current value, realizing any gain/loss. This surprises many people coming from stock trading.

Can I deduct trading losses?

Capital losses offset capital gains dollar-for-dollar. If you have excess losses, you can deduct up to $3,000/year against ordinary income. Excess losses carry forward indefinitely.

Should I hold crypto >1 year to get long-term gains rates?

Usually yes. Long-term rates (0-20%) are 10-25% lower than short-term (10-37%). One extra day can save you thousands in taxes. Exception: if you're convinced price will crash, take losses sooner.

⚡ Key Takeaways

  • Every crypto trade (BTC→ETH, ETH→USDC) is a taxable event—you owe capital gains tax immediately, even if you don't realize the profit in fiat currency
  • This is different from stocks where trading within an account (AAPL→MSFT) isn't taxable until you withdraw cash—crypto treats every trade as a sale
  • Holding crypto in a traditional IRA or Roth IRA avoids all trading taxes (tax-free compounding inside the account), but setup is complex and withdrawal rules apply
  • Trading fees are deductible as part of cost basis (reduce taxable gain) but don't reduce the number of taxable events (you still owe tax on each trade)
  • High-frequency traders (50+ trades/year) face administrative burden; crypto tax software (Koinly, TaxBit) automates calculation and saves $1,000+ in tax prep time

Why Every Crypto Trade Is Taxable (Unlike Stocks)

This is the most confusing aspect of crypto taxes for people coming from stock investing.

In traditional stocks:
Buy 100 shares of AAPL at $150
Sell AAPL, buy MSFT with proceeds
No tax is triggered. You only owe tax when you cash out to dollars.
You could trade AAPL → MSFT → GOOGL → TSLA without triggering any taxes until you withdraw cash.

In crypto (current IRS interpretation):
Buy 1 BTC at $40,000
Trade BTC for ETH at current price $60,000
Tax is triggered immediately. Realized gain: $60,000 − $40,000 = $20,000
You owe capital gains tax on $20,000 even though you haven't touched a dollar of fiat currency.

The reasoning: The IRS views crypto-to-crypto trades as"two events": a sale of BTC for its fair market value, and a purchase of ETH. You've realized a taxable gain on the BTC sale.

This is a massive disincentive to active trading. A trader doing 100 trades/year might have:

• 100 taxable events
• Tax liability on $500,000 in realized gains (even if net profit is only $50,000)
• Quarterly estimated tax payments required
• Compliance burden tracking every single trade
• Potential penalties for incorrect reporting

The IRS has not granted"like-kind exchange" treatment to crypto (which would allow tax-deferred swapping), though it's been lobbied for. For now, assume every trade is taxable.

The Mechanics of a Crypto Trade Tax Event

Step-by-step:

1. You hold 1 BTC, cost basis $40,000, current price $60,000
2. You trade 1 BTC for 10 ETH on Uniswap (decentralized exchange)
3. The trade price is $60,000 (market rate at execution)
4. Immediate tax consequence: Realized gain of $60,000 − $40,000 = $20,000
5. Your 10 ETH has a new cost basis of $60,000 (what you traded for it)
6. Future gain/loss on ETH: calculated from $60,000 basis, not from the BTC basis

The cost basis chain:
This is critical: each trade resets the cost basis.

Example:
Buy 1 BTC at $10,000 (Jan 2020)
Trade BTC → ETH at $40,000 (Jan 2021): Realize $30,000 gain
Trade 10 ETH (cost $40,000 total) → 100 SOL at $50,000 (Jan 2022): Realize $10,000 gain
Sell 100 SOL at $80,000 (Jan 2023): Realize $30,000 gain

Total realized gains: $30,000 + $10,000 + $30,000 = $70,000
You've made $70,000 in taxable gains, even though your initial $10,000 turned into $80,000 ($70,000 gain total, so it checks out).

BUT—your holding period resets with each trade for tax purposes.

Sale of ETH in Jan 2022 (long-term, held from Jan 2021 when you got them via trade? Actually, holding period started when you bought the BTC in Jan 2020, carried through the ETH, until you sold the SOL in Jan 2023. Holding periods follow the original asset.).

This is complex. Consult a CPA for exact holding period treatment in multi-leg trades.

Tax-Efficient Crypto Trading Strategies

Strategy 1: Minimize the number of trades
Fewer trades = fewer taxable events. Every trade is taxable, so reduce trading frequency.

Example: Instead of trading 10 times per year, dollar-cost average quarterly (4 trades). Save 60% on compliance burden.

Strategy 2: Use stablecoins to defer taxes
Instead of trading directly from winners to losers:

Strategy 2a (High-tax):
Sell BTC at $60k gain → Immediately buy ETH
Result: 2 taxable events, realize gain on BTC immediately

Strategy 2b (Lower-tax, if you plan ahead):
Sell BTC at $60k gain → Hold USDC for 6 months → Buy ETH
Result: 2 taxable events (same), but you control timing
OR: Sell BTC, realize gain, hold USDC, buy back BTC later → 2 events but you've"reset" your position for a new holding period

This doesn't save taxes but gives you control over timing.

Strategy 3: Harvest losses before rebalancing
If your portfolio is down in some coins, sell them at losses before trimming winners.

Example portfolio: $100k → $120k
BTC: $30k → $50k (↑67%, WINNER)
ETH: $40k → $30k (↓25%, LOSER)
SOL: $30k → $40k (↑33%, WINNER)
Rebalancing plan: Trim BTC by $5k, buy more ETH
Tax-efficient approach:
1. Sell all ETH ($30k) → realize $10k loss
2. Trim BTC $5k → realize $2.2k gain
3. Net: Gain $2.2k − Loss $10k = Net loss $7.8k (loss carryforward or offset other gains)
4. Buy new coins with proceeds

By selling the loser first, you harvest its loss and use it to offset winners' gains.

Strategy 4: Hold in tax-advantaged accounts if possible
Roth IRA: Crypto trades inside a Roth IRA are tax-free. Gains and losses don't trigger taxes. Withdrawal rules apply (age 59.5 or later), but the tax deferral is huge.

Challenge: Getting crypto into a Roth IRA requires a cryptocurrency IRA custodian (Rocket Dollar, Alto, iTrustCapital). Fees are high ($500-2,000/year). Setup is complex. But if you have $100k+ and expect significant trading, tax deferral might pay for custodian fees many times over.

Traditional IRA: Same tax deferral but you owe ordinary income tax on withdrawals (not capital gains rates).

Strategy 5: Donate appreciated crypto to charity
If you hold crypto with large gains and want to donate, donate the crypto itself, not cash.

Donation tax treatment:
Donate 0.5 BTC (cost $20k, now worth $60k) to qualified charity
Tax deduction: $60,000 (full current value)
Capital gain realized: $0 (appreciated assets donated to charity are not taxable)
Benefit: You deduct the full $60,000 and never pay tax on the $40,000 gain

Cash donation:
Sell BTC first (realize $40k gain, owe ~$6k tax)
Donate $54k cash ($60k − $6k tax)
Deduction: $54,000

Donating appreciated asset saves $6,000 in taxes vs donating cash. If you're charitably inclined, this is a huge tax efficiency.

Wash Sales and Crypto: Current State of the Law

The IRS wash sale rule (in traditional securities) says: if you sell a stock at a loss and buy it back within 30 days, the loss is disallowed.

Does this apply to crypto? The IRS hasn't clearly ruled. Safe assumption: yes, and it will be enforced retroactively.

Safe tax-loss harvesting in crypto:
Sell BTC at a loss ($5,000 loss harvested)
Wait 31 days
Buy BTC back (or buy a similar asset like Bitcoin Cash)

Or hire a CPA to explore whether wash sale rule applies to crypto vs traditional securities specifically.

Foreign Exchange Gains and Crypto

If you're in a different country or use different fiat currencies, foreign exchange gains can also be taxable.

Example (if living in Europe):
Buy 1 BTC for €40,000 (when 1 EUR = 1 USD)
Sell 1 BTC for €60,000 (when 1 EUR = 1.05 USD)
Realized gain in EUR: €20,000
But EUR appreciated against USD, so the EUR gain is actually worth $21,000 in USD terms
Some countries tax the forex gain ($1,000) separately

This is complex and country-specific. If you trade cross-border or use multiple fiat currencies, consult a cross-border tax specialist.

Reporting Your Crypto Taxes: IRS Form 8949

You report crypto gains on IRS Form 8949 (Sales of Capital Assets). This form requires:

• Date acquired
• Date sold
• Proceeds (sale price)
• Cost basis
• Gain/loss (proceeds − cost basis)
• Holding period (short/long-term)

For each transaction. If you have 100 trades, you fill out 100 lines (or use attached schedules).

Most people use crypto tax software (Koinly, TaxBit) which auto-fills Form 8949 based on exchange data. Cost: $50-400/year but saves 10+ hours of manual work.

Our profit/loss calculator helps you manually compute gains for smaller portfolios.

FAQ: Crypto Trading Taxes

Do I need to report every trade?

Yes. The IRS expects you to report every taxable event. If you trade 1,000 times, you report 1,000 transactions. In practice, most people underreport (many exchanges don't issue 1099s for crypto), but the IRS is increasingly scrutinizing this.

What if I use a DEX (decentralized exchange) and the IRS doesn't know about the trade?

You still owe tax (voluntary compliance doctrine). The IRS doesn't know, but you're legally obligated to report. If audited (increasingly common for crypto investors), you'd owe back taxes + penalties + interest.

Is there a threshold of trades below which I don't need to report?

No. Even $1 of gains is taxable. However, IRS enforcement priorities focus on larger traders and high-net-worth individuals, so a single $100 trade might go unnoticed. Don't rely on this—report everything.

Can I use crypto losses to offset ordinary income?

Yes, up to $3,000/year of capital losses can offset ordinary income. Excess losses carry forward indefinitely to future years.

What about staking rewards and mining income?

Taxable as ordinary income in the year earned (not capital gains). You owe tax even if you never sold the coin. Example: you stake ETH and earn 0.5 ETH per year. Fair market value of 0.5 ETH when earned = taxable income that year.

⚡ Key Takeaways

  • Tax-loss harvesting means selling assets at a loss to offset gains elsewhere, reducing capital gains tax liability by 15-30% for portfolios with mixed gains/losses
  • A $10,000 loss harvested against $50,000 in gains reduces taxable gain from $50,000 to $40,000, saving $1,500-6,000 in taxes (depending on your bracket)
  • You can harvest losses unlimited times and in unlimited amounts (losses ≥$3k/year offset ordinary income indefinitely via carryforward)
  • The 30-day wash sale rule (traditional stocks) may apply to crypto—safest approach is waiting 31 days before buying back a sold asset to avoid IRS scrutiny
  • Strategic harvesting during rebalancing (sell underwater assets, trim winners) compounds tax savings and portfolio discipline simultaneously

What Is Tax-Loss Harvesting

Tax-loss harvesting means deliberately selling an asset at a loss to realize the loss and use it to offset capital gains from other sales.

Simple example:
You have two trades:
Trade 1: Sell 1 BTC for a $50,000 gain (cost $10k, sold at $60k)
Trade 2: Sell 5 ETH for a $10,000 loss (cost $15k, sold at $5k)
Net capital gain without harvesting: $50,000 gain (tax: $7,500 assuming 15% rate)
Net capital gain with harvesting: $50,000 − $10,000 = $40,000 gain (tax: $6,000)
Tax savings: $1,500

That's tax-loss harvesting in action. You"harvested" a loss (realized a loss intentionally) to reduce your overall tax liability.

How Much Tax Does Loss Harvesting Save?

The amount depends on your marginal tax rate and the size of losses available.

Conservative example:
Gains: $100,000
Losses available: $20,000
Your tax bracket: 15% (long-term capital gains)
Taxes without harvesting: $100,000 × 15% = $15,000
Taxes with harvesting: ($100,000 − $20,000) × 15% = $80,000 × 15% = $12,000
Tax savings: $3,000

Aggressive example:
Gains: $100,000 (mostly short-term)
Losses available: $30,000
Your tax bracket: 37% (short-term, high earner)
Taxes without harvesting: $100,000 × 37% = $37,000
Taxes with harvesting: ($100,000 − $30,000) × 37% = $70,000 × 37% = $25,900
Tax savings: $11,100

For high-income earners with volatile portfolios, tax-loss harvesting can save $10,000+ per year. Over a career, that's six figures in tax savings.

When to Harvest Losses

The obvious time: End of year (by Dec 31)
Realize losses in December to offset any gains realized earlier in the year. This is deadline-driven harvesting.

The smart time: During rebalancing
If you're trimming your portfolio anyway, sell underwater positions and harvest their losses simultaneously.

Example annual rebalancing:
Target allocation: 40% BTC, 30% ETH, 20% alts, 10% stable
Current allocation after market moves: 45% BTC (+$5k gain), 25% ETH (−$2k loss), 20% alts, 10% stable
Rebalancing action: Sell $5k BTC, buy $2k ETH
Tax-optimized action: Sell all ETH (realize $2k loss), sell $5k BTC (realize $5k gain), net gain $3k, tax = $450
Without harvesting the ETH loss, you'd realize only the BTC gain ($5k gain, tax = $750)
Tax savings: $300 just by reordering your trades

The tactical time: When you predict a bounce
If you sold SOL at $20 per coin (cost $40, loss $20), and SOL drops to $15, the loss deepens. Harvest it. If you think SOL will bounce back to $30, harvest at $15 and buy back at your entry price later.

Note: This is speculative. Loss harvesting should be motivated by tax efficiency, not market timing. But if you're confident in a rebound, harvesting the loss and buying back is a legitimate strategy.

The 30-Day Wash Sale Rule and Crypto

In traditional securities, the IRS disallows losses if you buy back the same (or"substantially identical") security within 30 days of selling it at a loss.

Traditional wash sale example:
Sell 100 shares of AAPL at a loss on Dec 1
Buy 100 shares of AAPL on Dec 10
Wash sale triggered: The loss is disallowed, and the cost basis of your new purchase is adjusted

For crypto, the IRS hasn't clearly ruled whether wash sales apply. Conservative approach: assume they do.

Safe tax-loss harvesting in crypto:
Method 1: Wait 31 days
Sell BTC at a loss on Dec 1
Wait until Jan 1+
Buy BTC back on Jan 2
Result: Loss is allowed, no wash sale issue

Method 2: Substitute asset
Sell BTC at a loss on Dec 1
Buy Bitcoin Cash (similar but not identical) on Dec 2
Wait 31 days
Sell Bitcoin Cash, buy BTC back on Jan 2
Result: Loss is harvested, you maintained crypto exposure (though to different asset), likely no wash sale issue

Method 3: Stablecoin bridge
Sell BTC at loss, convert to USDC
Wait 31+ days
Buy BTC back with USDC
Result: Loss harvested, you held stable coin (minimal price risk)

Recommendation: If harvesting losses, wait at least 31 days before buying the same asset back. Or use a CPA familiar with crypto tax law to explore more aggressive approaches.

Loss Carryforward: Using Losses in Future Years

You don't need to harvest losses in the same year as gains. Losses can carry forward indefinitely.

Example:
Year 1: Realize $50,000 in gains, harvest $60,000 in losses
Net loss: $10,000
Tax owed: $0
Loss carryforward to Year 2: $10,000

Year 2: Realize $40,000 in gains
Offset $10,000 carryforward loss
Taxable gain: $30,000
Tax: $30,000 × 15% = $4,500

This is powerful for volatile portfolios. A few bad bets in a crash year can generate losses that shield gains in recovery years.

Ordinary income offset:
If losses exceed gains ($100,000 loss vs $50,000 gains), you can deduct $3,000 of the net loss against ordinary income in that year. Remaining loss ($47,000) carries forward.

Year with $50,000 net loss:
Deduct $3,000 against ordinary income (salary, etc.)
Carryforward $47,000 to future years
This is a $450 tax deduction immediately (at 15% bracket) + value of carrying losses forward

Strategic Loss Harvesting in a Portfolio

Quarterly loss-harvesting checklist:

1. Identify all underwater positions (current value < cost basis)
2. Rank by size of loss (largest losses first)
3. Calculate tax benefit of harvesting each: Loss size × your marginal tax rate
4. Harvest losses in descending order of tax benefit until:
a) You've offset your year's gains, or
b) You reach year-end, or
c) Tax benefit < transaction costs (rare in crypto with low fees)

Example:
Your portfolio underwater positions:
• SOL: $5,000 loss (tax benefit at 15%: $750)
• ADA: $2,000 loss (tax benefit at 15%: $300)
• DOGE: $1,000 loss (tax benefit at 15%: $150)
• Dust: $500 loss (tax benefit at 15%: $75)

Your year's gains so far: $6,000 (taxable)

Harvest in order:
1. Sell SOL ($5,000 loss) → Remaining gain $1,000
2. Sell ADA ($2,000 loss) → Remaining gain -$1,000 (loss carryforward $1,000)
3. Stop (you've offset all gains + created carryforward)

Tax savings: ($5,000 + $2,000) × 15% = $1,050

Behavioral Benefits of Loss Harvesting

Beyond the tax savings, loss harvesting has psychological benefits:

1. **Forced discipline:** You're systematically reviewing your portfolio, identifying losers, and taking action.
2. **Reframing losses:** Instead of"I lost $5,000," you think"I harvested a $750 tax deduction." Losses feel less painful.
3. **Portfolio hygiene:** Harvesting forces you to prune dead weight. Coins that have halved and aren't recovering get sold, freeing capital for better positions.
4. **Ongoing optimization:** Quarterly loss harvesting keeps portfolio fresh and tax-optimized continuously, not just at year-end.

Loss Harvesting and Crypto Tax Software

Manual loss harvesting is tedious. Crypto tax software (Koinly, TaxBit, CoinTracker) automates this:

1. Upload all exchange data (API integration)
2. Software identifies all underwater positions
3. Software suggests loss-harvesting opportunities
4. Generate reports for tax filing

Cost: $50-400/year
Time saved: 10+ hours per year
Tax savings identified: $1,000-10,000/year (depending on portfolio size)

ROI on tax software: Pays for itself many times over.

FAQ: Tax-Loss Harvesting Crypto

Can I harvest losses unlimited times?

Yes. There's no limit on the number of loss-harvesting events or the total amount of losses harvested. You can harvest continuously.

What if I harvest a loss and the asset later rebounds?

You still keep the tax deduction. If you wait 31 days and buy back, your new cost basis is the repurchase price. Example: harvest a $5,000 loss at $20/coin, buy back at $15/coin 31 days later. You realize the $5,000 loss tax benefit AND you've bought more coins at a lower price. Win-win (assuming the asset rebounds).

Does harvesting losses trigger short-term tax reporting?

Yes. Harvesting a loss is a realized transaction (you sold it). If the asset was held <1 year, you realize a short-term loss. It still offsets gains (which is powerful for high-earner who owe 37% on short-term gains), but the loss itself is short-term.

Can I harvest losses from crypto to offset stock gains?

Yes. Capital gains and losses across all asset types (stocks, crypto, real estate) net together. A $50,000 loss in crypto can offset $50,000 in stock gains dollar-for-dollar.

What if I harvest a loss in December but don't want to trigger a wash sale?

Hold cash (or stablecoins) for 31 days without buying back. Or buy a different asset. The original asset you harvested losses on can be bought back on day 31 with no wash sale risk.

Profit = (Sell Price × Quantity) - (Buy Price × Quantity) - Buy Fees - Sell Fees. Example: Buy 1 BTC at $30K, sell at $50K = $20K gain minus fees.

Short-term (held ≤1 year): taxed as ordinary income at 10-37%. Long-term (held >1 year): 0%, 15%, or 20%. Track holding period for every purchase.

Both buy and sell fees are deductible. Gas fees, exchange fees, and transfer fees all reduce your taxable gain. Keep records.

Use FIFO (first-in, first-out), LIFO, or specific identification. FIFO is default. Crypto tax software automates this across thousands of transactions.

No — crypto is only taxed when you sell, trade, or spend it. Holding is not a taxable event, even if value increases significantly.

Yes. Crypto losses offset capital gains from stocks, real estate, or other crypto. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year and carry remaining losses forward.

Selling crypto at a loss to realize the tax deduction, then potentially buying back the same asset. Unlike stocks, crypto is not subject to the wash sale rule in most jurisdictions, allowing immediate repurchase.

A crypto-to-crypto trade is a taxable event. Calculate profit as the fair market value of the received coin minus your cost basis in the sold coin. Each trade must be tracked separately for accurate tax reporting.

Use dedicated crypto tax software like Koinly, CoinTracker, or TaxBit that connects to exchanges via API. Manual spreadsheets work for simple portfolios but become impractical with frequent trading activity.

Impermanent loss occurs when tokens in a liquidity pool change in price ratio relative to when deposited. A 50 percent price divergence causes roughly 5.7 percent loss compared to simply holding the tokens outside the pool.

Profit = (Sale Price − Purchase Price) × Quantity − Fees

Tax = Profit × Capital Gains Rate (0/15/20% LT or ordinary rate ST)

Published byJere Salmisto· Founder, CalcFiReviewed byCalcFi EditorialEditorial standardsMethodologyLast updated May 9, 2026

Primary sources & authoritative references

Every formula on this page traces to a federal agency, central bank, or peer-reviewed institution. We cite the rule-makers, not secondhand blogs.

  • IRS — Virtual Currency: capital gain/loss calculation rules — Internal Revenue ServiceShort- vs long-term holding periods for crypto P&L tax treatment. (opens in new tab)
  • IRS Form 8949 — Sales and Other Dispositions of Capital Assets — Internal Revenue ServiceForm for reporting each crypto sale; drives P&L report structure. (opens in new tab)
  • SEC — Crypto trading regulatory landscape — U.S. Securities and Exchange Commission (opens in new tab)

Found an error in a formula or source? Report it →

Calculations are for educational purposes only. Consult a qualified financial advisor for personalized advice.