Categories

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

Related Calculators

Tax Bracket Calculator 2026 →Crypto Tax Calculator 2026 →
HomeTaxCapital Gains Tax Calculator — Know Your Tax Bill Before You Sell

Capital Gains Tax Calculator — Know Your Tax Bill Before You Sell

Calculate short-term and long-term capital gains tax on investments.

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

Instant resultsNo signupVerified formula
Free · No signup · Verified
Capital Gains Tax Calculator — Know Your Tax Bill Before You Sell

Enter your numbers below

$
$
$

For tax bracket calculation

Assumptions· 2026

  • ·2026 long-term LTCG rates: 0% / 15% / 20% by taxable income
  • ·Short-term gains taxed at ordinary income marginal rate
  • ·1-year holding period distinguishes short-term vs. long-term
  • ·Federal tax only; state tax on gains not included
When this is wrong
  • ·NIIT 3.8% surtax on net investment income (MAGI > $200k single)
  • ·State capital gains tax (California taxes gains as ordinary income)
  • ·Wash-sale rule impact on loss harvesting
  • ·Qualified Opportunity Zone deferral elections
Assumptions· 2026▾
  • ·2026 long-term LTCG rates: 0% / 15% / 20% by taxable income
  • ·Short-term gains taxed at ordinary income marginal rate
  • ·1-year holding period distinguishes short-term vs. long-term
  • ·Federal tax only; state tax on gains not included
When this is wrong
  • ·NIIT 3.8% surtax on net investment income (MAGI > $200k single)
  • ·State capital gains tax (California taxes gains as ordinary income)
  • ·Wash-sale rule impact on loss harvesting
  • ·Qualified Opportunity Zone deferral elections
Example: Selling VTI after 4 years▾

Rachel, 37, marketing director in Seattle, WA, bought $60,000 of VTI in a taxable brokerage in early 2021. In 2025 her position is worth $96,000. She wants to sell to fund a kitchen renovation. Single filer, $130,000 W-2 income.

  • Cost basis: $60,000
  • Sale proceeds: $96,000
  • Long-term capital gain: $36,000 (held >1 year — IRC §1222)
  • W-2 income: $130,000
  • Combined income for LTCG bracket: $166,000
  • LTCG rate (2025, single, $47k–$519k): 15%
  • WA state capital gains tax: $0 (below $262k threshold — ESSB 5096)
Federal capital gains tax owed
$5,400

Takeaway: Rachel's gain is fully in the 15% LTCG bracket — holding just over 12 months saved her from ordinary income rates of 32% on this gain, a $6,120 difference. Washington's 7% capital gains tax (ESSB 5096) applies only above $262,000 in gains — she owes nothing to the state. Net proceeds after federal tax: $90,600.

When this calculator is wrong▾
  • Primary residence §121 exclusion

    Gains up to $250k (single) / $500k (MFJ) on a primary residence are excluded under §121 if you owned and used the home as primary residence for 2 of the last 5 years. This calc does not apply §121 — you may want to subtract the excludable amount manually before entering the gain.

    Home Sale Capital Gains Calculator
  • Wash-sale rule disallows loss harvesting (§1091)

    If you sell a security at a loss and repurchase the same or "substantially identical" security within 30 days before or after the sale, §1091 disallows the loss. The disallowed amount adds to the basis of the replacement shares — deferring rather than eliminating the benefit.

    Wash Sale Calculator
  • Holding period straddles the short/long boundary

    Short-term gains (≤365 days) are taxed as ordinary income — up to 37% federal. Long-term gains (>365 days) are taxed at 0%, 15%, or 20%. Selling on day 364 vs. day 366 on a $100k gain in the 32% bracket costs an extra $17,000 in federal tax.

  • Net Investment Income Tax (NIIT) at §1411

    Long-term gains above the MAGI threshold ($200k single / $250k MFJ) are also subject to 3.8% NIIT. A single filer with $220k MAGI including $50k LTCG pays 23.8% on the $20k above threshold — not the 15% shown for a standard LTCG bracket.

  • Collectibles and crypto carry different rate rules

    Collectibles (art, coins, gold, gems) face a 28% maximum long-term capital gains rate per §1(h)(5), not the 20% rate for stocks. Crypto is treated as property (IRS Notice 2014-21), subject to standard LTCG rates — but NFTs may qualify as collectibles and face the 28% cap.

Related Calculators

Tax Bracket Calculator 2026 →Crypto Tax Calculator 2026 →
Your Results

Based on your inputs

ℹ️Demo numbers — replace inputs to see yours
Capital Gain
$15,000positivepositive trend

Long-term rate applies

Tax Owed
$2,250positive

Rate: 15.0%

Gain
$15,000
Federal Tax
$2,250
State Tax
$0
Net Proceeds
$22,750

Gain Breakdown

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 Salary Calculator 2026: Your Real Take-Home Pay
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

Capital Gains Tax Rates 2026
Short vs. long-term rates and planning moves.
Capital Gains Tax Guide
What triggers gains and how to reduce them.
Capital Gains Tax on Real Estate
Primary home exclusion and rental property rules.

Deep-dive articles

⚡ Key Takeaways

  • Long-term capital gains (held 1+ year) taxed at 0%, 15%, or 20% based on income; short-term gains (held under 1 year) taxed at ordinary income rates (10-37%)
  • A single filer earning $85,000 with a $50,000 long-term gain pays $7,500 tax (15% rate); same gain as short-term costs $18,500 (37% rate)—$11,000 difference!
  • The 0% bracket for long-term gains: under $48,350 (single) or $96,700 (married) in 2025—you can gain up to this threshold tax-free
  • Holding an investment just past the 1-year mark can save thousands. A $100,000 gain held 12 months vs 11 months saves $22,000-$37,000 in taxes
  • Use our capital gains calculator to model your exact tax bill before selling, testing different holding periods and income scenarios

Understanding the Holding Period Rule

The IRS distinguishes two capital gains categories by holding period—the length of time you own the investment:

Short-Term Capital Gains (Held ≤ 1 Year)

If you buy a stock at $100 and sell at $150 after 6 months, that $50 gain is short-term. Same if you buy crypto for $10,000 and sell for $15,000 after 3 weeks.

The IRS treats short-term gains like ordinary income—taxed at your regular tax bracket rate (10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on total income).

Long-Term Capital Gains (Held > 1 Year)

If you buy a stock at $100 and sell at $150 after 13 months, that $50 gain qualifies as long-term. The IRS gives you a much better tax rate: 0%, 15%, or 20%.

The"1 year" measurement starts the day after purchase and ends on the day you sell. Buy January 15, sell January 16 next year = short-term. Buy January 15, sell January 16 the year after = long-term.

Real Impact Example:

Investor buys $100,000 Apple stock.

Scenario A: Sells for $150,000 after 11 months (short-term gain of $50,000)
Investor's income: $200,000/year (married filing jointly, 32% tax bracket)
Tax owed: $50,000 × 32% = $16,000

Scenario B: Same stock, same $150,000 sale price, but sells after 13 months (long-term gain of $50,000)
Same income level ($200,000)
Tax owed: $50,000 × 20% (long-term rate for this income) = $10,000

By waiting just 2 months, the investor saves $6,000.

Long-Term Capital Gains Tax Brackets (2025)

Long-term gains get preferential tax rates in three tiers based on your total income.

For Single Filers:

0% Rate: Up to $48,350 in ordinary income
15% Rate: $48,350 to $533,400
20% Rate: Above $533,400

For Married Filing Jointly:

0% Rate: Up to $96,700
15% Rate: $96,700 to $600,050
20% Rate: Above $600,050

Key Point:"Ordinary Income" Includes Your Salary, Wages, Interest, and Other Income**

Long-term capital gains are stacked on top of your ordinary income. They fill your income from lowest to highest bracket.

Real Example: The 0% Bracket is Real Free Money**

Single filer earns $40,000 salary. Sits in 12% ordinary income bracket.

She has a stock with $10,000 long-term gain. Total income: $40,000 + $10,000 = $50,000.

Tax calculation:
First $48,350 is taxed at ordinary rates (she pays ~$5,000 on $40,000 salary)
Next $2,000 (from $48,350 to $50,000) falls in the 0% long-term gains bracket = $0 tax

She realizes $10,000 of gain and owes $0 federal tax on it. The last $8,000 of the $10,000 gain would be taxed at 15% if she earned any more ($133 × 8,000 ÷ 15,000 ≈ $6,000, but she doesn't).

Wait, that math doesn't add up. Let me recalculate:

Her ordinary income of $40,000 uses $40,000 of the $48,350 bracket, leaving $8,350 of 0% bracket available for capital gains.

Of her $10,000 gain:
First $8,350 is taxed at 0% = $0
Remaining $1,650 is taxed at 15% = $247.50

Total tax: $247.50 on a $10,000 gain. That's 2.5% effective rate on the gain.

Comparison: Same Gain, Short-Term Instead**

If the stock was held under 1 year (short-term gain):
$10,000 gain taxed as ordinary income in her 12% bracket = $1,200
vs. $247.50 if long-term

Waiting one year saves her $952 on this one investment.

Short-Term Capital Gains: Taxed as Ordinary Income

Short-term gains get no preferential rate. They're taxed at whatever your ordinary income tax bracket is.

Your Ordinary Income Bracket (2025 Tax Year):

Single:
10%: $0-$11,925
12%: $11,926-$48,475
22%: $48,476-$103,350
24%: $103,351-$197,300
32%: $197,301-$250,525
35%: $250,526-$626,350
37%: $626,350+

Married Filing Jointly:
10%: $0-$23,850
12%: $23,851-$96,950
22%: $96,951-$206,700
24%: $206,701-$394,600
32%: $394,601-$501,050
35%: $501,051-$751,600
37%: $751,600+

Real Example: The High-Income Trader**

A software engineer earns $250,000/year salary. She has $100,000 in short-term capital gains from crypto trading.

Total income: $350,000. She's in the 35% tax bracket for ordinary income.

Short-term gain tax: $100,000 × 35% = $35,000

If that same gain were long-term:
She's over the $533,400 limit for the 15% rate, so she's in the 20% rate: $100,000 × 20% = $20,000

Tax savings by holding 1 year: $15,000

Why the IRS Prefers Long-Term Holding:**

Short-term gains are taxed harshly because the IRS wants to discourage speculation (rapid trading). Long-term gains are taxed lightly to encourage buy-and-hold investing and business stability. The rate differential creates a strong incentive to be a patient investor.

The Math: How Much Tax Will You Actually Owe?

Step 1: Determine Your Total Income (Ordinary + Gains)

Salary: $85,000
Interest income: $2,000
Short-term capital loss: -$1,000 (offsets gains dollar-for-dollar)
Long-term capital gain (held 2 years): $50,000
Total income for tax purposes: $136,000

Step 2: Subtract Standard Deduction**

Single filer standard deduction (2025): $15,000
Taxable income: $136,000 - $15,000 = $121,000

Step 3: Calculate Tax on Ordinary Income Portion First**

Ordinary income ($85,000 salary + $2,000 interest - $1,000 loss + $0 cap gains) = $86,000

Tax on $86,000 ordinary income:
First $11,925 at 10% = $1,192.50
Next $36,550 at 12% = $4,386
Next $37,525 at 22% = $8,255
Total on ordinary income: $13,833.50

Step 4: Calculate Tax on Long-Term Gains**

Remaining income room before going into 15% bracket: $48,350 - $86,000 = she's already past 0% bracket

Her $50,000 long-term gain starts at 15% bracket (she's earning $86,000 already):
$50,000 × 15% = $7,500

Total tax: $13,833.50 + $7,500 = $21,333.50

Effective Rate Check:**

Total income $136,000, tax $21,333.50 = 15.7% effective rate

This seems high, but it's because she has capital gains that are taxed above the ordinary bracket. Without the $50,000 gain, her tax would be ~$10,850 on $86,000, a 12.6% rate.

The 1-Year Rule: Timing Matters Enormously

The difference between 364 days and 365 days of holding can be worth thousands.

Real Scenario: The Almost-There Trade**

Trader buys Tesla stock on January 2 for $200,000.
Stock rises to $300,000 by December 25 (same year).
Trader is up $100,000 but wants to sell before year-end for cash.

If she sells December 25: $100,000 short-term gain, taxed at her marginal rate (assume 24%) = $24,000 tax
If she waits until January 2 next year: $100,000 long-term gain, taxed at 15% = $15,000 tax

Tax savings for waiting 8 days: $9,000

She has the cash sitting in long-term holding for 8 extra days. If she needs the money, maybe worth the $9,000. Usually, it's an easy decision.

The Wash-Sale Rule Complication:**

If you sell stock at a loss and buy the same (or substantially identical) stock within 30 days before or after, the IRS disallows the loss deduction. This is called"wash sale."

Plan: Sell losing stock in December to claim loss, then buy it back in January after the wash-sale window. Don't trigger the loss during the 1-year holding period for your profitable stock at the same time—separate your transactions by at least 31 days to avoid wash-sale rules.

Interaction with Net Investment Income Tax (NIIT)

High earners (above $200,000 single / $250,000 married) pay an additional 3.8% tax on capital gains.

Who Pays NIIT?**

Single filers with MAGI (Modified Adjusted Gross Income) above $200,000
Married filing jointly with MAGI above $250,000

MAGI typically equals your regular income + long-term gains + short-term gains.

Example: The High-Income Earner's Triple Tax Burden**

CEO earns $400,000 salary. Has $100,000 long-term capital gain.
Total income: $500,000.

This person is in 35% ordinary income bracket (if it were short-term) OR in the 20% long-term bracket. But also:
MAGI is $500,000, exceeding $200,000 threshold by $300,000.r>NIIT applies to her capital gains: $100,000 × 3.8% = $3,800 additional tax

Total tax on $100,000 long-term gain: $20,000 (long-term 20% rate) + $3,800 (NIIT) = $23,800

Effective rate on gain: 23.8% (20% + 3.8% NIIT)

She doesn't get the full 20% benefit—NIIT adds 3.8% on top.

Capital Loss Offsets: Deducting Losses

If you have losing investments, you can deduct capital losses against capital gains, dollar-for-dollar.

How It Works:**

Gains: $100,000 (long-term)

Losses: $30,000 (short-term from a bad crypto trade)

Net capital gain: $70,000

Tax on $70,000 at 15% long-term rate: $10,500

Without the loss, you'd owe tax on $100,000 = $15,000. Losses saved $4,500 in tax.

Loss Carryforwards:**

If losses exceed gains in a year, you can deduct up to $3,000 of loss against ordinary income. Remaining losses carry forward to next year indefinitely.

You have $50,000 in losses, $10,000 in gains = $40,000 net loss.
Year 1: Deduct $3,000 loss against ordinary income, $37,000 carries forward.
Year 2: If you have $25,000 gain, deduct $25,000 of the carryforward, $12,000 carries forward to Year 3.

You eventually use all the losses, just not all in one year.

Tax-Loss Harvesting Strategy:**

In December, sell losing positions to realize losses, then in January (after 31-day wash-sale window) buy them back or similar positions. This locks in tax deductions while maintaining market exposure.

Harvesting a $30,000 loss in December (assuming 24% tax bracket) saves $7,200 in taxes. Reinvest that $7,200 and it compounds as future gains.

Practical Examples Across Income Levels

Low-Income Filer (0% Bracket Available)

Single, $30,000 salary. Sells stock with $20,000 long-term gain.

Total income: $50,000.
After $15,000 standard deduction = $35,000 taxable.
Ordinary income ($30k) takes $30k of the bracket, leaving $18,350 in the 0% bracket for long-term gains.
Of the $20,000 gain, first $18,350 is at 0%, next $1,650 is at 15%.
Tax: $247.50

This person captured $18,350 of gain tax-free!

Middle-Income Filer (15% Bracket)

Single, $90,000 salary. Sells investment with $50,000 long-term gain.

Total: $140,000. After $15k deduction = $125k taxable.
Ordinary income is $90k (in 22% bracket). Long-term gain of $50k starts in 15% bracket.
Tax on gain: $50,000 × 15% = $7,500

High-Income Filer (20% Bracket + NIIT)

Single, $300,000 salary. Sells investment with $100,000 long-term gain.

Total: $400,000, well above NIIT threshold ($200k).
He's in the 20% long-term bracket (income exceeds $533,400 ceiling? No, wait: single filer 15% bracket goes to $533,400, so he's still in 15% bracket).
Actually, his taxable income of $400k is in the 15% long-term gains bracket (under $533,400).
Tax: $100,000 × 15% = $15,000
NIIT: $100,000 × 3.8% = $3,800
Total: $18,800

FAQ: Capital Gains Tax Rates

If I hold an investment exactly 1 year, is it long-term?

Almost. You may want to hold it MORE than 1 year. Exactly 1 year is short-term. 1 year and 1 day is long-term. The IRS counts the holding period from the day after purchase to the day of sale.

Do I pay state tax on capital gains too?

Yes. Most states tax capital gains as ordinary income. Some states (Florida, Texas, Alaska, Wyoming) have no state income tax. Others (California, New York) tax gains at high rates (13%+ in CA). State + federal can exceed 40% on short-term gains in high-tax states.

Can I time my income to reduce capital gains tax?

Yes, if you have flexibility. Deferring income to next year might push you into a lower capital gains bracket. Realizing losses before year-end reduces gains. Spreading large gains over 2 years (installment sale) can reduce NIIT and bracket creep. Consult a CPA for strategies.

Are qualified dividends taxed at the capital gains rate?

Yes—qualified dividends from stocks held 60+ days get long-term capital gains rates. Non-qualified dividends are taxed as ordinary income. This is why holding dividend stocks long-term matters.

⚡ Key Takeaways

  • Primary residence exclusion: Exclude up to $250,000 (single) or $500,000 (married) of home sale gains if you lived in it 2 of last 5 years—this is the single biggest capital gains tax break available
  • Tax-loss harvesting: Sell losing investments to realize losses, then offset gains dollar-for-dollar; unused losses carry forward indefinitely
  • Strategic timing: Deferring income to a lower-income year, or spreading gains over multiple years (installment sale) can reduce your tax rate by 5-15%
  • Charitable donations of appreciated securities: Donate stock (not cash) and get fair market value deduction while avoiding capital gains tax entirely
  • Most effective: Combine strategies (home exclusion + loss harvesting + timing) can reduce capital gains tax from 20%+ to near 0%

The $250,000/$500,000 Home Sale Exclusion: Free Money Most People Don't Use Strategically

The Section 121 exclusion is the most generous capital gains exemption in the tax code. If you sell a primary residence where you've lived 2 of the last 5 years, you exclude up to $250,000 of gain (single) or $500,000 (married).

What This Means in Real Dollars:**

You buy a house for $300,000. You live in it for 5 years. You sell for $600,000. Your gain is $300,000.

The Section 121 exclusion lets you exclude $250,000 of that $300,000 gain (if single). You only pay tax on $50,000.

At 15% long-term rate: Tax = $7,500 (instead of $45,000 if full gain was taxed).

You save $37,500 in tax on a home sale by simply living there.

Who Qualifies:**

• You may want to own the home for at least 2 of the last 5 years
• You may want to live in it as your primary residence for at least 2 of the last 5 years
• You cannot have used the exclusion in the past 2 years (once per 2 years)

The ownership and residence tests can overlap (you don't need 4 years total—2 years covers both).

Common Strategy: Buy, Live 2 Years, Sell, Repeat**

You buy a $200,000 house. It appreciates to $300,000 over 2 years. You sell and exclude the $100,000 gain.

You then buy another $300,000 house, it appreciates to $400,000 in 2 years. You sell and exclude the $100,000 gain.

Over 4 years, you've recognized $200,000 in gains tax-free. If you did this every 2 years for a 30-year career, you could accumulate $3 million in untaxed gains.

Disclaimer: The IRS watches for this pattern. If you're flipping homes too frequently (buying/selling annually), they may disqualify your exclusion saying homes are business property, not primary residence. Stick to 2-3 years minimum between sales to be safe.

The Married Filing Jointly Advantage:**

Married couples get $500,000 exclusion vs. single's $250,000. On the same home, a couple saves $37,500 more in tax (1.5x the single exclusion × same 15% rate).

On a $600,000 gain ($900,000 home sale with $300,000 cost basis):
Single: Exclude $250k, pay tax on $350k = $52,500 tax
Married: Exclude $500k, pay tax on $100k = $15,000 tax
Tax savings from being married: $37,500

This is a genuine financial benefit of marriage for homeowners with appreciation.

What if You've Owned Multiple Homes:**

The exclusion is per-home once every 2 years. You can't exclude multiple homes in a single year, but you can use it for different homes across different years.

You own a house in city A (sell in 2024, exclude gain), then move and own house in city B (sell in 2026, exclude gain). Both get the exclusion.

Tax-Loss Harvesting: The Deliberate Strategy to Offset Gains

Tax-loss harvesting is using investment losses strategically to reduce your tax bill.

The Strategy:**

You have winners and losers in your portfolio. You realize the losses (sell the losers), which creates deductible losses that offset your gains.

Result: Reduced tax on gains while maintaining exposure to your desired investments.

Real Example: Annual Loss Harvesting**

Your investment portfolio at year-end:

• Apple: Bought at $100, now $150. Gain: $50 (unrealized)

• Tesla: Bought at $200, now $150. Loss: $50 (unrealized)

You're up $50 total. If you do nothing, you owe tax on $50 gain at capital gains rate (~$7.50 at 15%).

Strategy: Sell Tesla (realize $50 loss), offset Apple's $50 gain. Net: $0 taxable gain. Tax owed: $0.

Then, immediately buy Tesla-like exposure (Tesla competitors, EV sector ETF). You maintain your market exposure while harvesting the tax loss.

Tax savings: $7.50 (minor in this example, but massive in real portfolios with $100k+ in losses).

The Wash-Sale Rule: The Critical Restriction:**

You can't sell a stock at a loss and buy the same stock (or"substantially identical" security) within 30 days before or after the sale.

If you violate wash-sale, the IRS disallows the loss deduction. The loss isn't gone forever—it gets added to the cost basis of the new purchase, but you don't get the tax benefit in that year.

Solution: Sell losers in December, wait until January 31st to rebuy if you want the same stock. Or buy similar (but not identical) exposure: sell individual Tesla, buy VTI (total market), or Tesla competitor Lucid, or EV ETF.

Harvesting Strategy for December/Year-End:**

December 15: Sell all positions with losses (realize the loss)
December 16-January 30: Replace with similar investments (avoid wash-sale)
January 31+: If you want, buy back original positions

This locks in tax losses while maintaining your desired portfolio allocation.

How Much Can You Harvest:**

If your losses exceed gains:
First, offset all gains (dollar-for-dollar)
Then, deduct up to $3,000 of net loss against ordinary income
Excess losses carry forward indefinitely (use in future years as new gains occur)

Example: $100,000 losses, $30,000 gains
Net loss: $70,000
Year 1: Deduct $3,000 against ordinary income, $67,000 carries forward
Year 2: If you have $20,000 gain, offset it fully, use $20,000 of carryforward, $47,000 remains
This repeats until all losses are used

You don't lose the benefit—just spread it over years.

Real Portfolio Example: A Tech Investor's December Harvest:**

Your tech portfolio (overly concentrated in losers in 2024):
Apple: Bought $100k, now $120k. Gain: $20k
Nvidia: Bought $150k, now $100k. Loss: $50k
Meta: Bought $50k, now $45k. Loss: $5k
AMD: Bought $75k, now $80k. Gain: $5k

Total: +$20k unrealized on Apple, -$50k on Nvidia, -$5k on Meta, +$5k on AMD = -$30k net loss so far (but you don't harvest the AMD gain yet).

December 15: Sell Nvidia (-$50k loss) and Meta (-$5k loss). Realized: -$55k losses. Keep Apple and AMD (the winners).

Tax impact: $55k loss offsets other gains. If you have no other gains, you deduct $3,000 against salary, and carry forward $52k to next year.

Then, January 31: Buy back similar investments (EV ETF, semiconductor index fund) to maintain exposure.

February 1+: Buy back Nvidia or Meta if you want, no wash-sale violation.

Tax savings: $3,000 loss × 24% tax rate (your bracket) = $720 in tax savings in 2024, plus $52,000 carryforward to use against 2025-2026 gains.

Strategic Timing: Deferring Income and Spreading Gains

Strategy 1: Defer Large Gains to a Lower-Income Year**

If you're expecting high income in 2025 (bonus, promotion, large project completion), but lower income in 2026 (sabbatical, startup, reduced client load), defer large gains to 2026 if possible.

Sell in 2026 when income is lower = lower tax bracket = lower capital gains rate.

Example: Software engineer gets a $500,000 stock grant vesting in 2025. Also has $100,000 capital gain from selling stock.
2025 total income: $500,000 + $100,000 = $600,000 (in 35% ordinary bracket).
If short-term gain: $100,000 × 35% = $35,000 tax.

But if she defers sale to 2026 (a year she's taking unpaid sabbatical, earning $50,000):
2026 total income: $50,000 + $100,000 = $150,000 (in 22% bracket).
Tax if sold in 2026: $100,000 × 15% (long-term rate) = $15,000.

Tax savings from deferring 1 year: $20,000.

Strategy 2: Installment Sale (Spread Gains Over Multiple Years)

You have a large gain ($500,000) from selling a business or property. Instead of receiving cash in a lump sum, the buyer pays over time (e.g., $100k/year for 5 years).

This spreads your income recognition over 5 years, potentially keeping you in a lower bracket each year.

Lump sum in Year 1: $500k gain + $200k salary = $700k income (in 35% bracket), tax on gain = $175,000
Installment over 5 years: Year 1-5, $100k gain + $200k salary = $300k income (in 24% bracket), tax on gain each year = $15,000, total = $75,000

Tax savings: $100,000 over 5 years.

Downside: You're financing the buyer (they get time to pay). Only feasible if buyer is creditworthy or you retain collateral.

Strategy 3: Bunching Income and Losses**

For self-employed or those with variable income, you can"bunch" income and deductions to optimize bracket.

If you expect low income one year, take that year to realize large gains (sell winners) because you're in a low bracket. Use the same year to harvest losses (sell losers).

Two-year strategy: Low-income Year A = harvest losses, realize long-term gains at low rate. High-income Year B = don't realize gains (defer to next low-income cycle).

Charitable Donations of Appreciated Securities: Tax-Free Gains

When you donate appreciated stock directly to a charity, you get a deduction for the fair market value while avoiding capital gains tax entirely.

The Strategy:**

You own Apple stock worth $100,000 (cost basis $20,000, gain $80,000).

Option A: Sell stock, pay capital gains tax on $80k gain (~$12,000 tax at 15%), donate $88,000 proceeds to charity. Deduction: $88,000.

Option B: Donate stock directly to charity. Deduction: $100,000 (full fair market value). Capital gains tax: $0.

Difference: Option B gives you $12,000 more in deduction ($100k vs $88k) AND you avoid the $12,000 capital gains tax.

Net benefit: Donate appreciated stock, not cash. Charity gets full value, you get full value deduction, and capital gains tax evaporates.

Requirements:**

• Stock must be appreciated (gain, not loss)
• You may want to have held it long-term (over 1 year)
• Charity must be qualified (501c3)
• You may want to itemize deductions (deduction only matters if you exceed standard deduction)

Example: The Generous Investor:**

You have $200,000 in appreciated tech stocks (cost: $50,000, gain: $150,000). You want to donate $100,000 to your alma mater.

Donate $100,000 worth of appreciated stock directly (not via cash sale).
Deduction: $100,000
Capital gains avoided: $150,000 × ($100,000 ÷ $200,000) = $75,000 gain avoided
Tax savings on avoided gain: $75,000 × 15% = $11,250

You've turned a $100,000 gift into an $111,250 benefit (the gift + tax savings).

The IRS effectively subsidizes your charity through tax savings on appreciated property donations.

Capital Gains from Business Sale: The $1.6M Small Business Exclusion (Qualified Small Business Stock)

The Rule:**

If you sell qualified small business stock (QSBS) held 5+ years, you can exclude 50-100% of the gain from tax (depending on when purchased). Limit: $10 million in gains.

Requirements:**

• Stock of C-corporation (not S-corp, LLC, or other structure)
• Business must be <$50 million in gross assets when stock issued
• 80%+ of assets must be in active business (not holding company)
• Held 5+ years

This is complex and requires professional guidance, but if you started a company and sold it for $5 million, this exclusion can save you $300,000+ in taxes.

FAQ: Capital Gains Tax Avoidance Strategies

Can I avoid capital gains tax by never selling?

Largely yes, but with caveats. Unrealized gains aren't taxed. However, there's a catch:"Step-up in basis" only occurs at death. When you die, your heirs inherit your securities at fair market value as of the date of death, not your cost basis. They pay zero capital gains on appreciation before your death. But this requires you to die. Better strategy: Take gains during your lifetime while you can use them strategically.

What if I move to a state with no income tax after selling?

Federal capital gains tax still applies. You can't escape it by moving. However, you DO avoid state capital gains taxes (where applicable). California taxes capital gains at ordinary income rates (13%+). If you sell before moving to Texas (no income tax), you save the state portion. Plan accordingly.

Can I use the home exclusion multiple times?

Once per 2 years. You can't use it for two homes in the same year, but you can use it for different homes in different years (with 2 years between uses).

Does tax-loss harvesting work for real estate?

No, real estate losses are subject to different rules. You can deduct real estate losses if you're a real estate professional (60% of time spent on real estate activities). Otherwise, rental real estate losses are limited. This is very different from securities losses. Consult a CPA.

⚡ Key Takeaways

  • Crypto is treated as property by IRS, not currency: every buy, sell, and trade is a taxable event generating capital gains or losses
  • Crypto gains are taxed at ordinary income rates if held under 1 year (10-37%), or at long-term rates (0%, 15%, 20%) if held 1+ year
  • Collectibles (art, coins, sports memorabilia, rare wines) get taxed at a flat 28% rate (not the preferential 20% rate of long-term stocks) even if held 5+ years
  • Staking rewards and mining are taxed as ordinary income at the time earned (not when sold), not as capital gains—a major tax hit that surprises crypto holders
  • Poor record-keeping is the #1 mistake: the IRS expects you to track every trade with cost basis, date, and proceeds; failure to do so leads to penalties and audits

Cryptocurrency: The IRS Treats It as Property, Not Currency

Many crypto investors think of Bitcoin as"digital currency," but the IRS explicitly classifies it as property. This has huge tax implications.

Property = Capital Gains Tax Event**

Every transaction that changes your property is a taxable event. For crypto, this includes:

1. Buying crypto with dollars (no tax yet; basis is established)
2. Selling crypto for dollars (TAXABLE: gain = sale price - basis)
3. Trading crypto for other crypto (TAXABLE: gain = fair market value of coin received - basis of coin given)
4. Spending crypto to buy goods/services (TAXABLE: gain = fair market value at time of transaction - basis)
5. Staking crypto or earning staking rewards (TAXABLE: ordinary income at time received, not when sold)

Example: The Daily Trader's Tax Surprise**

Crypto investor buys 1 Bitcoin on January 1 for $40,000. On January 15, Bitcoin is $45,000. He trades it for Ethereum (worth $45,000). A month later he sells the Ethereum for $50,000.

Most people think:"I made $10,000, so I owe tax on $10,000."

IRS sees it as:
• January 1: Bought 1 BTC for $40,000 (cost basis: $40,000)
• January 15: Sold 1 BTC for $45,000 (gain: $5,000)—SHORT-TERM GAIN
• January 15: Bought ETH for $45,000 (cost basis: $45,000)
• February 15: Sold ETH for $50,000 (gain: $5,000)—SHORT-TERM GAIN

Total tax: $10,000 gain taxed as ordinary income (possibly 37% if high earner) = $3,700 tax

The trader thought he'd owe tax on $10k, but failed to account for the intermediate BTC-to-ETH swap being a taxable event.

If these are short-term, tax is steep (ordinary income rates). If the trader had held each for 1+ year before selling, they'd be long-term gains taxed at 15-20%.

The Holding Period:**

Same as stocks: hold more than 1 year for long-term rates (0%, 15%, 20%). Hold 1 year or less for short-term rates (ordinary income, 10-37%).

Crypto that you plan to hold long-term should be in a long-term holding strategy, not traded frequently. Each trade resets the holding period.

Staking Rewards and Mining: Ordinary Income, Not Capital Gains

This is where many crypto investors get blindsided. Staking rewards and mining income are taxed as ordinary income when you receive them, not as capital gains when you sell.

Staking Example:**

You own 10 Ethereum and stake it (lock it up to earn rewards). You earn 0.5 ETH per month in staking rewards.

Each month, that 0.5 ETH is ordinary income taxed at your highest bracket rate, not capital gains rate.

If ETH is $2,000/ETH, your monthly staking reward is $1,000 in ordinary income (taxed at 37% if you're high-income = $370/month tax).

If ETH later drops to $1,000/ETH when you sell your staking rewards, you don't get a capital loss deduction (you already took ordinary income on $1,000/ETH). You just made a loss on the staking reward portion (cost: $1,000, sale: $1,000, loss: $0). Actually, you made a gain—cost basis was $0 (ordinary income recognition), sale price is $1,000 ETH = $500 gain when sold (if ETH was $2,000 at receipt).

The math is complicated, but the point: staking is double-taxed. Once as ordinary income when earned, again as capital gain/loss when sold.

Mining Example:**

You mine Bitcoin. You earn 0.1 BTC when BTC is worth $50,000. That's $5,000 in ordinary income immediately (you may want to report it as mining income).

If Bitcoin later drops to $30,000 and you sell, you have a capital loss of $2,000 on the mined Bitcoin ($30,000 sale - $5,000 cost basis on the portion you mined... wait, this gets complicated).

Actual: Your basis is $5,000 (the FMV at time of receipt). If you sell at $30,000, you have a $25,000 LOSS if you're selling the full 0.1 BTC. You can deduct $3,000/year against ordinary income, with $22,000 carrying forward.

Why This Matters:**

Staking and mining create immediate income tax liability even though you haven't sold anything. If you stake 1 Ethereum worth $2,000 and earn $200/month in rewards (ordinary income tax = $50-70/month depending on bracket), but the Ethereum drops 50% in value, you've paid tax on income that's now worth half its value.

Many crypto stakers face a tax bill larger than the value of what they've earned. This is why some crypto holders move to countries with no capital gains tax (El Salvador, Malta) or claim it's not taxable (argument rejected by IRS).

Collectibles: The 28% Rate (Higher Than Stock Capital Gains)

Collectibles get a worse tax rate than stocks: a flat 28% (not the 0%, 15%, 20% rates of long-term stock gains).

What Counts as Collectibles:**

• Art, paintings, sculptures, statues
• Antiques and artifacts
• Rare coins and stamps
• Precious metals (gold, silver bars; NOT gold ETFs)
• Rare wines and spirits
• Sports memorabilia and trading cards
• Gemstones and jewelry
• Vintage cars

The 28% Rate:**

Holding period doesn't matter. You could own a painting for 20 years, sell it, and pay 28% on the gain (same as short-term stock gains at ordinary rates for high earners).

This is particularly bad if you're a high-income earner (37% bracket). Normally, long-term stock gains at 20% are a big tax benefit. Collectibles at 28% give you almost no benefit.

Example: The Art Collector:**

You buy a painting for $100,000 in 2005. It appreciates to $500,000 by 2025. You sell.

Gain: $400,000
Tax at 28%: $112,000

Compare to stock: Same $400,000 gain on stock bought and held 20 years would be taxed at 20% (long-term) = $80,000. Difference: $32,000 more tax on collectibles.

The Exception: Precious Metals ETFs and Mutual Funds:**

If you own GLD (gold ETF) or IAU (gold ETF), these are treated as stocks, not collectibles, so long-term rates apply. But if you own physical gold bars, it's treated as collectibles at 28%.

The tax consequence is significant enough that investors often prefer gold ETFs over physical gold for this reason alone.

Record-Keeping: The Critical (And Most-Neglected) Requirement

The IRS requires you to maintain records of every crypto transaction with:

• Date acquired
• Cost basis (amount paid)
• Date sold
• Sale price (fair market value)
• Fair market value at time of receipt (for staking/mining)

Why Record-Keeping Matters:**

The IRS expects you to calculate gains/losses on every transaction. Failure to maintain records can result in:

• Penalties (20% accuracy-related penalty + interest)
• Audit and potential fraud charges (if the IRS thinks you're intentionally hiding trades)
• Being forced to reconstruct records from exchange data (often incorrect or incomplete)

Real Audit Scenario:**

An investor has been trading crypto actively for 3 years but keeps no records. The IRS requests records of all trades. The investor claims he can't remember and reconstructs from Coinbase export (which shows buy/sell history but not cost basis if coins were transferred between wallets).

The IRS assumes the worst-case basis (highest possible cost) and calculate maximum gains. The investor faces a huge tax bill and penalty.

If he'd kept records from day 1, he could have documented lower cost basis and paid fair tax amount.

Tools for Record-Keeping:**

• CoinTracker: Imports from exchanges, calculates gains/losses automatically
• ZenLedger: Similar functionality, integrates with tax software
• Koinly: Supports 300+ exchanges and wallets
• Manual: Spreadsheet with each transaction (Excel/Google Sheets)

The cost of these tools ($100-500/year) is far less than the risk of IRS penalties.

Special Cases: ICO Tokens, Airdrops, and Forks

ICO (Initial Coin Offering) Tokens:**

When you participate in an ICO and receive tokens, that's ordinary income at fair market value on the date you receive them. Your cost basis is that FMV, not what you paid in dollars.

Example: You pay $10,000 for 100 tokens in an ICO. At the time of token distribution (3 months later), the tokens are worth $2,000 each = $200,000 FMV. You report $200,000 ordinary income.

Later, tokens drop to $0.50 each. You have a massive loss on the cost basis of $200,000 vs. sale price of $50. Loss is $199,950—usable against capital gains and $3,000/year against ordinary income, carrying forward.

Airdrops:**

Free crypto given to address holders (like an airdrop of new coins to Ethereum holders). This is ordinary income at FMV on date of receipt.

You didn't pay anything, but you owe tax on the value of what you received. Many airdrops are small (a few dollars worth of tokens), but large airdrops can create unexpected tax liability.

Forks:**

When a blockchain forks (like Bitcoin Cash fork from Bitcoin), you receive new coins equal to your holdings. This is ordinary income at FMV on the date of fork.

You held 1 BTC when Bitcoin Cash forked. You receive 1 BCH worth $500. That's $500 ordinary income, even though you did nothing to earn it.

The Bottom Line: Crypto Tax Complexity

Crypto is taxed heavily and frequently:

• Every trade = capital gains/loss
• Every staking reward = ordinary income
• Every mining = ordinary income
• Every airdrop = ordinary income
• Poor record-keeping = audit risk and penalties

The best strategy: Hold long-term (1+ year) to access long-term capital gains rates (0%, 15%, 20%), minimize trading (each trade is a taxable event), and maintain meticulous records from day 1.

For serious crypto investors, this often means paying a CPA or tax software $500-$2,000/year to handle the complexity correctly.

FAQ: Crypto and Alternative Investment Taxes

If I lose money on crypto, can I deduct it?

Yes, capital losses offset capital gains dollar-for-dollar, then up to $3,000 against ordinary income yearly, with indefinite carryforward. But staking reward losses (ordinary income category) don't offset crypto trading gains (capital gains category) directly. The categories are separate.

What if I bought crypto at multiple prices and sell some of it?

You can use one of three methods: FIFO (first-in-first-out), LIFO (last-in-first-out), or specific identification. FIFO is default unless you elect otherwise. Specific ID allows you to pick which coins to sell first, optimizing for lower gains or higher losses. Keep records.

Do I have to report crypto if I didn't sell?

No, unrealized gains aren't reported. But staking rewards must be reported as income when earned (even if you don't sell). Mining must be reported as income when received.

If I received crypto as a gift, what's my cost basis?

Your cost basis is the fair market value of the crypto on the date you received the gift. The giver's cost basis doesn't transfer. When you sell the gift, you calculate your gain from the date-of-gift FMV forward.

Long-term (held >1 year): 0%, 15%, or 20% depending on income. Short-term (held ≤1 year): taxed as ordinary income at 10-37%.

Long-term gains: $0 if income under $48,350 (single, 2025). 15% up to $533,400. 20% above that. Short-term gains taxed at your regular income rate.

Exclude up to $250,000 ($500,000 married) of gains if you lived in the home 2 of last 5 years. This is the primary residence exclusion.

Yes — crypto is property. Selling for profit triggers capital gains. Short-term if held ≤1 year, long-term if held longer. Track every transaction.

Selling losing investments to offset gains. Up to $3,000 of net losses can offset ordinary income annually. Losses carry forward indefinitely.

High earners (above $200K single / $250K married) pay an extra 3.8% NIIT on investment income including capital gains.

Report capital gains on Schedule D of Form 1040. List each transaction on Form 8949 with purchase date, sale date, cost basis, and proceeds. Your broker provides Form 1099-B with this information. Software like TurboTax imports 1099-B data automatically.

Unrealized gains are paper profits on investments you still hold and are not taxed. Realized gains occur when you sell an asset and are taxable in the year of sale. You control your tax timing by choosing when to sell. Unrealized gains become taxable only upon sale.

Yes. Capital loss carryforwards from prior years can offset current year gains dollar for dollar. Additionally, up to $3,000 of net losses can offset ordinary income annually. Unused losses carry forward indefinitely until fully utilized.

Inherited assets receive a stepped-up cost basis to fair market value at the date of death. This eliminates capital gains tax on all appreciation during the decedent's lifetime. You only owe tax on gains above the inherited value if you sell later.

Short-term: Taxed as ordinary income (held ≤1 year)

Long-term: 0%, 15%, or 20% based on total income (held >1 year)

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 Topic 409 — Capital Gains and Losses — Internal Revenue ServiceDefines short- vs long-term holding periods and applicable preferential rates. (opens in new tab)
  • IRS — Tax Year 2026 Inflation Adjustments (Rev. Proc. 2025-32) — Internal Revenue ServiceAnnual long-term capital gains rate thresholds (0%, 15%, 20%). (opens in new tab)
  • IRS Publication 550 — Investment Income and Expenses — Internal Revenue ServiceComprehensive rules for capital asset classification and gain/loss netting. (opens in new tab)
  • IRS Schedule D (Form 1040) — Capital Gains and Losses — Internal Revenue ServiceRequired reporting form that drives the netting and tax computation. (opens in new tab)
  • IRS Form 8949 — Sales and Other Dispositions of Capital Assets — Internal Revenue ServiceTransaction-level basis reporting feeding Schedule D capital gains totals. (opens in new tab)
  • IRS Topic 559 — Net Investment Income Tax — Internal Revenue Service3.8% NIIT surtax applied to capital gains above MAGI thresholds. (opens in new tab)

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

Gain
$50,000
Holding
>1 year (LT)
Other income
$80,000
Filing
Single

Result: Long-term rate 15% → federal tax $7,500 (vs $12,000 at 24% if short-term)

Taxable income with gain = $80K − $14.6K std + $50K = $115.4K. LT gain taxed at 15% because income is between $47,025 and $518,900 (2024 thresholds). Holding >1 year saved $4,500. Source: IRS Pub 550; IRC §1(h).

Gain
$40,000
Other income
$25,000
Filing
Single
Std ded 65+
$16,550

Result: Entirely in 0% LTCG bracket → $0 federal tax on the gain

Taxable income $25K + $40K − $16,550 = $48,450. The 0% LTCG bracket runs up to $47,025 single. Ordinary income uses $8,450 of that; remaining $38,575 of LTCG room absorbs most of gain. Small $1,425 at 15%. Classic retirement harvesting play.

Sale price
$650,000
Basis
$400,000
Gain
$250,000
Filing
Single

Result: Section 121 exclusion ($250K single) → $0 taxable gain

Primary residence lived in 2 of last 5 years qualifies for §121 exclusion: $250K single / $500K MFJ. Full $250K gain excluded → no federal tax. Source: IRC §121; IRS Pub 523.

Gain
$20,000
Holding
<1 year (ST)
Other income
$120,000
Filing
Single

Result: Taxed as ordinary income at 24% → $4,800 federal

Short-term gains (≤1 year) are taxed as ordinary income. $120K wage puts you in the 24% bracket. If held 3 more months to cross 1 year, rate drops to 15% → $3,000 tax. A 3-month delay would save $1,800.

Holding period starts the day AFTER purchase and must exceed 365 days for LT treatment. Day 366+ qualifies. Track your dates.

Impact: On a $100K gain, LT (15%) vs ST (32%) is $17,000 difference. Selling on day 365 vs day 366 costs $17K.

Above MAGI $200K single / $250K MFJ, an additional 3.8% applies to investment income. NOT indexed to inflation — drags more people in every year. Form 8960.

Impact: On $100K LTCG, NIIT adds $3,800 on top of the 15% or 20%.

Splits, spinoffs, dividend reinvestments all change basis. Brokers report basis since 2011 (covered securities), but pre-2011 lots are your responsibility.

Impact: Using $0 basis when reality is $10K inflates taxable gain by $10K — ~$2K tax error at 20%.

As of 2024, wash-sale rule (§1091) applies to securities, NOT crypto. You can sell crypto at a loss and immediately rebuy without disallowance.

Impact: Huge tax-loss harvesting advantage crypto holders should exploit — while it lasts (Congress may change it).

Long-term capital gains (held >1 year) taxed at 0% / 15% / 20% based on taxable income. Short-term (held ≤1 year) taxed as ordinary income. NIIT of 3.8% applies above $200K single / $250K MFJ. Source: IRS Pub 550; IRC §1(h).

  • 0% LTCG bracket: up to $47,025 single / $94,050 MFJ
  • 15% LTCG bracket: $47,025–$518,900 single / $94,050–$583,750 MFJ
  • 20% LTCG bracket: above $518,900 single / $583,750 MFJ
  • NIIT (3.8%) on investment income above MAGI $200K single / $250K MFJ
  • Qualified dividends taxed at LTCG rates
  • Section 1202 QSBS exclusion still up to $10M gain
RateSingleMarried Filing Jointly
0%$0–$47,025$0–$94,050
15%$47,025–$518,900$94,050–$583,750
20%$518,900+$583,750+

LTCG thresholds adjusted for inflation. NIIT thresholds unchanged since 2013 (not indexed). Source: IRS Rev. Proc. 2022-38.

  • 0% LTCG bracket: up to $44,625 single / $89,250 MFJ
  • 15% LTCG bracket: $44,625–$492,300 single / $89,250–$553,850 MFJ
  • 20% LTCG bracket: above $492,300 single / $553,850 MFJ
  • Crypto explicitly listed on Form 1040 Digital Asset question
RateSingleMarried Filing Jointly
0%$0–$44,625$0–$89,250
15%$44,625–$492,300$89,250–$553,850
20%$492,300+$553,850+

Standard LTCG structure. IRS began emphasizing crypto reporting via Form 1040 question. Source: IRS Rev. Proc. 2021-45; Notice 2014-21.

  • 0% LTCG bracket: up to $41,675 single / $83,350 MFJ
  • 15% LTCG bracket: $41,675–$459,750 single / $83,350–$517,200 MFJ
  • 20% LTCG bracket: above $459,750 single / $517,200 MFJ
  • Wash sale rule still does NOT apply to crypto (ordinary asset treatment)

LTCG thresholds: 0% to $40,400 single / $80,800 MFJ. Source: IRS Rev. Proc. 2020-45.

  • 0% LTCG bracket: up to $40,400 single / $80,800 MFJ
  • 15% LTCG bracket: $40,400–$445,850 single / $80,800–$501,600 MFJ
  • 20% LTCG bracket: above $445,850 single / $501,600 MFJ

0% LTCG bracket applied up to $40,000 single / $80,000 MFJ. Source: IRS Rev. Proc. 2019-44.

  • 0% LTCG bracket: up to $40,000 single / $80,000 MFJ
  • 15% LTCG bracket: $40,000–$441,450 single / $80,000–$496,600 MFJ
  • 20% LTCG bracket: above $441,450 single / $496,600 MFJ
Capital Gains Tax Calculator — Know Your Tax Bill Before You Sell by State

State-specific rates, taxes, and cost-of-living adjustments

CaliforniaTexasFloridaNew YorkIllinoisPennsylvaniaOhioGeorgiaNorth CarolinaMichiganNew JerseyVirginia

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