How to Calculate Capital Gains Tax in 2026 | Complete Guide with Rates & Examples

Learn how capital gains tax is calculated in 2026. Short-term vs long-term rates, formulas, exemptions, and a free calculator. Updated 2026 tax brackets.

๐Ÿ’น How to Calculate Capital Gains Tax in 2026

Complete Guide to Short-Term & Long-Term Capital Gains with Tax Rates & Examples

Last Updated: January 17, 2026 | Reading Time: 10 min | By: OmniCalculator.Space Team

๐ŸŽฏ Key Takeaway

Capital Gains Tax = (Selling Price โˆ’ Cost Basis) ร— Tax Rate. Assets held over 1 year get favorable long-term rates (0%, 15%, or 20%), while assets held less than 1 year are taxed as ordinary income (10-37%).

1. What is Capital Gains Tax?

Capital gains tax is a tax on the profit you make when selling an asset for more than you paid. This applies to:

  • Stocks & bonds โ€” Individual shares, mutual funds, ETFs
  • Real estate โ€” Investment property, rental homes, land
  • Cryptocurrency โ€” Bitcoin, Ethereum, NFTs
  • Collectibles โ€” Art, antiques, precious metals
  • Business interests โ€” Partnership stakes, business sales

๐Ÿ’ก Good to Know

You only pay capital gains tax when you realize the gain (actually sell the asset). Unrealized gains (paper profits) are not taxed until you sell.

2. Short-Term vs Long-Term Capital Gains

The holding period โ€” how long you owned the asset โ€” determines which tax rate applies:

AttributeShort-Term Capital GainsLong-Term Capital Gains
Holding Period1 year or lessMore than 1 year
Tax RateOrdinary income rates (10-37%)Preferential rates (0%, 15%, or 20%)
Best ForActive trading, quick flipsBuy-and-hold investing
Planning OpportunityLimitedHigher tax savings potential

โš ๏ธ Important: The 1-Year Rule

To qualify for long-term rates, you must hold the asset for at least one year and one day. If you bought on January 15, 2025, you must wait until January 16, 2026 to sell for long-term treatment.

3. 2026 Capital Gains Tax Rates

3.1 Long-Term Capital Gains Rates (2026)

These preferential rates apply to assets held more than one year:

Tax RateSingle FilersMarried Filing JointlyHead of Household
0%$0 โ€“ $48,350$0 โ€“ $96,700$0 โ€“ $64,750
15%$48,351 โ€“ $533,400$96,701 โ€“ $600,050$64,751 โ€“ $566,700
20%Over $533,400Over $600,050Over $566,700

3.2 Short-Term Capital Gains Rates (2026)

Short-term gains are taxed as ordinary income based on your tax bracket:

Tax BracketSingle FilersMarried Filing Jointly
10%$0 โ€“ $11,925$0 โ€“ $23,850
12%$11,926 โ€“ $48,475$23,851 โ€“ $96,950
22%$48,476 โ€“ $103,350$96,951 โ€“ $206,700
24%$103,351 โ€“ $197,300$206,701 โ€“ $394,600
32%$197,301 โ€“ $250,525$394,601 โ€“ $501,050
35%$250,526 โ€“ $626,350$501,051 โ€“ $751,600
37%Over $626,350Over $751,600

3.3 Net Investment Income Tax (NIIT)

High earners may owe an additional 3.8% NIIT on investment income if modified AGI exceeds:

  • $250,000 โ€” Married Filing Jointly
  • $200,000 โ€” Single or Head of Household

4. Capital Gains Tax Formulas

4.1 Calculate Capital Gain

๐Ÿ“ Formula: Capital Gain

Capital Gain = Selling Price โˆ’ Cost Basis

Cost Basis = Purchase Price + Acquisition Costs + Improvements

4.2 Calculate Adjusted Cost Basis

๐Ÿ“ Formula: Adjusted Cost Basis

Adjusted Basis = Purchase Price + Buying Costs + Capital Improvements โˆ’ Depreciation

Include broker fees, legal fees, and any improvements that add value

4.3 Calculate Tax Owed

๐Ÿ“ Formula: Capital Gains Tax

Tax Owed = Capital Gain ร— Applicable Tax Rate

Use short-term or long-term rate based on holding period

4.4 Calculate Net Proceeds

๐Ÿ“ Formula: After-Tax Proceeds

Net Proceeds = Selling Price โˆ’ Selling Costs โˆ’ Tax Owed

This is what you actually keep after the sale

5. Capital Gains Tax Calculator

Use our calculator to estimate your capital gains tax liability:

๐Ÿงฎ Capital Gains Tax Calculator 2026
Capital Gain
$0
Tax Rate
0%
Estimated Tax
$0
Net Profit
$0

6. Worked Examples

Example 1: Long-Term Stock Sale

๐Ÿ“ Problem

You bought 100 shares of Apple at $150/share in 2024 and sold them at $200/share in 2026. Your taxable income is $60,000. Filing single.

Step 1: Calculate Cost Basis
Cost Basis = 100 ร— $150 = $15,000
Step 2: Calculate Sale Proceeds
Proceeds = 100 ร— $200 = $20,000
Step 3: Calculate Capital Gain
Gain = $20,000 โˆ’ $15,000 = $5,000
Step 4: Determine Tax Rate
Held > 1 year = Long-term. Income $60,000 (single) = 15% rate
Step 5: Calculate Tax
Tax = $5,000 ร— 15% = $750

Answer: You owe $750 in capital gains tax. Net profit after tax: $4,250.

Example 2: Short-Term Crypto Sale

๐Ÿ“ Problem

You bought 2 Bitcoin at $30,000 each in March 2026 and sold them at $45,000 each in October 2026. Taxable income is $90,000. Filing single.

Step 1: Calculate Cost Basis
Cost Basis = 2 ร— $30,000 = $60,000
Step 2: Calculate Sale Proceeds
Proceeds = 2 ร— $45,000 = $90,000
Step 3: Calculate Capital Gain
Gain = $90,000 โˆ’ $60,000 = $30,000
Step 4: Determine Tax Rate
Held < 1 year=Short-term. Income $90,000 (single)=22% bracket
Step 5: Calculate Tax
Tax = $30,000 ร— 22% = $6,600

Answer: You owe $6,600 in capital gains tax. Net profit after tax: $23,400.

Example 3: Real Estate with Improvements

๐Ÿ“ Problem

You bought a rental property for $300,000, spent $50,000 on improvements, and sold it for $450,000 after 5 years. Closing costs were $15,000. Taxable income is $150,000. Married filing jointly.

Step 1: Calculate Adjusted Cost Basis
Basis = $300,000 + $50,000 = $350,000
Step 2: Calculate Net Sale Proceeds
Net Proceeds = $450,000 โˆ’ $15,000 = $435,000
Step 3: Calculate Capital Gain
Gain = $435,000 โˆ’ $350,000 = $85,000
Step 4: Determine Tax Rate
Held > 1 year = Long-term. Income $150,000 (MFJ) = 15% rate
Step 5: Calculate Tax
Tax = $85,000 ร— 15% = $12,750

Answer: You owe $12,750 in capital gains tax. Net profit after tax: $72,250.

7. Capital Gains on Real Estate

Primary Residence Exclusion

If you sell your primary home, you may qualify for a significant tax exclusion:

๐Ÿ  Section 121 Exclusion

  • Single filers: Exclude up to $250,000 in gains
  • Married filing jointly: Exclude up to $500,000 in gains
  • Requirements: Owned and lived in home for 2 of last 5 years
  • Frequency: Can use every 2 years

1031 Exchange (Like-Kind Exchange)

Investment property owners can defer capital gains taxes by reinvesting proceeds into similar property:

  • Must identify replacement property within 45 days
  • Must close within 180 days
  • Must use a qualified intermediary
  • Only applies to investment/business property (not personal residence)

8. How to Reduce Capital Gains Tax

๐Ÿ’ฐ Tax-Saving Strategies

  1. Hold investments over 1 year โ€” Qualify for lower long-term rates
  2. Tax-loss harvesting โ€” Offset gains with losses from other investments
  3. Use retirement accounts โ€” No capital gains tax in 401(k) or IRA
  4. Gift appreciated assets โ€” Transfer basis to recipient (gift tax limits apply)
  5. Donate to charity โ€” Deduct full market value without paying gains tax
  6. Opportunity Zones โ€” Invest gains in qualified zones for deferral/reduction
  7. Time your sales โ€” Sell in years with lower income to hit 0% bracket

โš ๏ธ Wash Sale Rule

You cannot claim a tax loss if you repurchase the same or substantially identical security within 30 days before or after the sale. The IRS disallows the loss deduction in wash sale situations.

๐Ÿ”— Related Calculators

โ“ Frequently Asked Questions

Q: How is capital gains tax calculated?
Capital gains tax is calculated by subtracting your cost basis (purchase price plus costs) from the selling price to find your gain. Then multiply this gain by the applicable tax rate (0%, 15%, or 20% for long-term gains, or your ordinary income rate for short-term gains).
Q: What is the 0% capital gains tax bracket for 2026?
For 2026, you pay 0% long-term capital gains tax if your taxable income is below $48,350 (single), $96,700 (married filing jointly), or $64,750 (head of household). This can result in tax-free gains for lower-income taxpayers.
Q: How long do I need to hold an asset for long-term treatment?
You must hold the asset for more than one year (at least one year and one day) to qualify for long-term capital gains rates. For example, if you bought on January 1, 2025, you must wait until January 2, 2026 to sell for long-term treatment.
Q: Can I offset capital gains with capital losses?
Yes, you can offset capital gains with capital losses. Short-term losses offset short-term gains first, then long-term. Net losses up to $3,000 per year ($1,500 if married filing separately) can offset ordinary income. Excess losses carry forward to future years.
Q: Is there capital gains tax on inherited property?
Inherited property receives a "stepped-up basis" to fair market value at the date of death. This means you only pay capital gains tax on appreciation after you inherited it, not the original owner's gain. This can significantly reduce or eliminate capital gains tax.

๐Ÿ“š Official Resources