Capital Gains Calculator

Estimate your capital gains tax on stocks, real estate, and other investments. See short-term vs. long-term rates and net proceeds after tax.

SC
Written by Sarah Chen, CFP
Certified Financial Planner
JW
Fact-checked by Dr. James Wilson, PhD
Options Strategy Researcher
Profit & LossFact-Checked

Input Values

$

Total purchase price of the asset.

$

Total sale price.

How long you held the investment.

$

Your taxable income (for bracket determination).

Your tax filing status.

Results

Capital Gain
$0.00
Applicable Tax Rate
0.00%
Estimated Tax$0.00
Net Proceeds After Tax$0.00
After-Tax Return (%)0.00%
Results update automatically as you change input values.

What Are Capital Gains?

A capital gain occurs when you sell an asset for more than you paid for it. In the US, capital gains are taxed at different rates depending on how long you held the asset. Short-term capital gains (held under one year) are taxed at your ordinary income tax rate, while long-term capital gains (held over one year) receive preferential rates of 0%, 15%, or 20%.

Capital gains tax applies to stocks, bonds, real estate, cryptocurrency, collectibles, and most other investment assets. Understanding your potential tax liability is essential for making informed sell decisions and planning your investment strategy.

i
Long-Term vs. Short-Term Rates

The difference between short-term and long-term rates can be dramatic. A taxpayer in the 32% bracket pays 32% on short-term gains but only 15% on long-term gains, saving 17 cents per dollar. On a $25,000 gain, that is $4,250 in savings just for holding one year.

Capital Gains Tax Rates (2025-2026)

2026 Long-Term Capital Gains Tax Rates
Filing Status0% Rate15% Rate20% Rate
SingleUp to $47,025$47,026 - $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 - $583,750Over $583,750
Head of HouseholdUp to $63,000$63,001 - $551,350Over $551,350
Capital Gains Tax
Tax = (Sale Price - Purchase Price) × Tax Rate
Where:
Sale Price = Total proceeds from sale
Purchase Price = Original cost basis
Tax Rate = Applicable short-term or long-term rate
Capital Gains Tax Example
Given
Purchase Price
$50,000
Sale Price
$75,000
Holding Period
Over 1 year
Taxable Income
$85,000
Filing Status
Single
Calculation Steps
  1. 1Capital Gain = $75,000 - $50,000 = $25,000
  2. 2Holding period: over 1 year = long-term rate
  3. 3At $85,000 income (single): 15% long-term rate applies
  4. 4Tax = $25,000 × 15% = $3,750
  5. 5Net Proceeds = $75,000 - $3,750 = $71,250
  6. 6After-Tax Return = ($71,250 - $50,000) / $50,000 = 42.5%
Result
The $25,000 long-term capital gain incurs $3,750 in federal tax (15%), leaving $71,250 in net proceeds. The after-tax return is 42.5%, compared to 50% pre-tax.

Strategies to Minimize Capital Gains Tax

Tax-Efficient Investment Strategies

1
Hold for Long-Term Treatment
Whenever possible, hold investments for at least one year and one day to qualify for long-term rates. The difference between short-term (up to 37%) and long-term (0-20%) rates is substantial.
2
Use Tax-Loss Harvesting
Sell losing positions to offset gains. A $25,000 gain offset by $25,000 in losses results in zero capital gains tax. Buy similar investments to maintain market exposure.
3
Maximize Tax-Advantaged Accounts
Hold investments in IRAs, 401(k)s, and Roth accounts where gains are tax-deferred or tax-free. This is especially important for active traders and high-income investors.
4
Consider Qualified Opportunity Zones
Reinvesting capital gains into Qualified Opportunity Zone Funds can defer and potentially reduce capital gains taxes under IRC Section 1400Z-2.
  • Net Investment Income Tax adds 3.8% for income above $200K single / $250K married
  • State taxes can add 0-13.3% on top of federal capital gains tax
  • Inherited assets receive a stepped-up cost basis, eliminating unrealized gains
  • Primary residence exclusion: $250K single / $500K married on home sale gains
  • Collectibles (art, coins, wine) are taxed at a maximum 28% rate
!
State Tax Varies Significantly

Capital gains tax is not just federal. States like California (13.3%), New York (10.9%), and Oregon (9.9%) add significant state capital gains tax. States like Florida, Texas, Nevada, and Washington have no state income tax on capital gains.

Frequently Asked Questions

Capital Gains Tax = (Sale Price - Cost Basis) × Tax Rate. Short-term gains (under 1 year) are taxed at ordinary income rates (10-37%). Long-term gains (over 1 year) are taxed at 0%, 15%, or 20% depending on income level. Add 3.8% NIIT if income exceeds $200K/$250K.

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-calculator" width="100%" height="500" frameborder="0" title="Capital Gains 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>