Capital Gains Tax Calculator

Calculate your capital gains tax on investment sales including stocks, real estate, and other assets. Compare short-term and long-term tax rates.

MT
Written by Michael Torres, CFA
Senior Financial Analyst
JW
Fact-checked by Dr. James Wilson, PhD
Options Strategy Researcher
Financial PlanningFact-Checked

Input Values

$

What you originally paid for the investment.

$

What you sold the investment for.

Short-term: held 1 year or less. Long-term: held more than 1 year.

$

Your ordinary taxable income (determines your capital gains rate).

Your tax filing status.

Results

Capital Gain
$0.00
Applicable Tax Rate0.00%
Federal Capital Gains Tax
$0.00
Net Investment Income Tax (3.8%)$0.00
Total Tax on Gain$0.00
After-Tax Proceeds$0.00
Results update automatically as you change input values.

How Capital Gains Tax Works

Capital gains tax is levied on the profit from selling an investment or asset for more than you paid for it. The tax rate depends on how long you held the asset: short-term gains (held one year or less) are taxed as ordinary income at your marginal tax rate (up to 37%), while long-term gains (held more than one year) receive preferential rates of 0%, 15%, or 20% depending on your income. This favorable treatment of long-term gains incentivizes patient, long-term investing and is one of the most significant tax planning opportunities available to investors.

In addition to the federal capital gains rate, high-income investors may owe the 3.8% Net Investment Income Tax (NIIT) on investment income when their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Some states also tax capital gains, either at the same rate as ordinary income or at a separate rate. Understanding these layers of taxation helps you plan asset sales strategically to minimize your total tax burden.

i
The 0% Capital Gains Rate

Single filers with taxable income under approximately $47,025 (including the capital gain) pay 0% federal tax on long-term capital gains. A married couple filing jointly pays 0% on gains up to about $94,050 in total taxable income. This is a powerful planning opportunity, especially in early retirement years before Social Security begins.

Capital Gains Tax Rates (2026)

Long-Term Capital Gains Tax Rates
RateSingleMarried Filing Jointly
0%$0-$47,025$0-$94,050
15%$47,026-$518,900$94,051-$583,750
20%Over $518,900Over $583,750
3.8% NIITMAGI over $200,000MAGI over $250,000
Capital Gain Calculation
Capital Gain = Sale Price - Cost Basis - Selling Expenses
Where:
Sale Price = Amount received from selling the asset
Cost Basis = Original purchase price plus improvements or reinvested dividends
Selling Expenses = Broker commissions, transfer taxes, etc.
Capital Gains Tax Calculation
Given
Purchase Price
$10,000
Sale Price
$25,000
Holding Period
Long-term (2+ years)
Other Income
$75,000
Filing Status
Single
Calculation Steps
  1. 1Capital gain: $25,000 - $10,000 = $15,000
  2. 2Total taxable income (with gain): $75,000 + $15,000 = $90,000
  3. 3Long-term capital gains rate at this income: 15%
  4. 4Federal capital gains tax: $15,000 × 15% = $2,250
  5. 5NIIT: Not applicable (MAGI under $200,000)
  6. 6After-tax proceeds: $25,000 - $2,250 = $22,750
  7. 7If sold short-term (held < 1 year): taxed at 22% = $3,300
Result
A $15,000 long-term capital gain at the 15% rate costs $2,250 in federal tax. If the same gain were short-term, the tax would be $3,300 (22% ordinary income rate). Holding for more than one year saves $1,050 in this example.

Capital Gains Tax Reduction Strategies

Minimize Capital Gains Taxes

1
Hold Investments for Over One Year
The simplest strategy: long-term capital gains rates (0/15/20%) are significantly lower than short-term rates (up to 37%). Waiting to sell until after the one-year mark can save thousands in taxes.
2
Use Tax-Loss Harvesting
Sell losing investments to offset gains. You can offset unlimited gains with losses, plus deduct up to $3,000 of net losses against ordinary income. Excess losses carry forward indefinitely.
3
Harvest Gains in the 0% Bracket
If your income is low enough (under ~$47,025 single), you can sell long-term holdings and pay 0% capital gains tax. This is especially useful in early retirement before Social Security starts.
4
Donate Appreciated Securities
Donating long-term appreciated stock to charity avoids capital gains tax entirely and gives you a charitable deduction for the full market value.
5
Use Qualified Opportunity Zones
Investing capital gains into a Qualified Opportunity Zone fund can defer and potentially reduce capital gains taxes if held for 10+ years.

Canadian Capital Gains Tax

In Canada, only 50% of capital gains are included in taxable income (the inclusion rate), effectively halving the tax rate. For example, a $15,000 capital gain means $7,500 is added to taxable income and taxed at your marginal rate. At a 30% marginal rate, the tax on a $15,000 gain is $2,250 (effective rate of 15%). The 2024 federal budget proposed increasing the inclusion rate to 66.7% for gains above $250,000 annually. Capital gains on a principal residence are completely tax-exempt in Canada, a significant advantage for homeowners. Gains within RRSP and TFSA accounts are sheltered from capital gains tax.

!
Wash Sale Rule

The IRS wash sale rule prevents you from claiming a capital loss deduction if you buy the same or substantially identical security within 30 days before or after the sale. If you violate this rule, the loss is disallowed and added to the cost basis of the new purchase. Plan your tax-loss harvesting carefully to avoid triggering the wash sale rule.

Frequently Asked Questions

Long-term capital gains (held over 1 year) are taxed at 0%, 15%, or 20% depending on your income. Short-term gains (held 1 year or less) are taxed at ordinary income rates (10-37%). Most taxpayers pay 15% on long-term gains. The 0% rate applies to lower-income taxpayers (under ~$47,025 single), and the 20% rate applies to high earners (over ~$518,900 single). An additional 3.8% NIIT applies to investment income for high earners.

Sources & References

  • U.S. Securities and Exchange Commission (SEC) - Investor Education
  • Options Clearing Corporation (OCC) - Options Education
  • Chicago Board Options Exchange (CBOE) - Options Strategies
  • Hull, J.C. "Options, Futures, and Other Derivatives" (11th Edition, 2021)

Embed This Calculator on Your Website

Free to use with attribution

Copy the code below to add this calculator to your website, blog, or article. A link back to CoveredCallCalculator.net is included automatically.

<iframe src="https://coveredcallcalculator.net/embed/capital-gains-tax-calculator" width="100%" height="500" frameborder="0" title="Capital Gains Tax Calculator" style="border:1px solid #e2e8f0;border-radius:12px;max-width:600px;"></iframe>
<p style="font-size:12px;color:#64748b;margin-top:8px;">Calculator by <a href="https://coveredcallcalculator.net" target="_blank" rel="noopener">CoveredCallCalculator.net</a></p>