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.

MB
Operated by Mustafa Bilgic
Independent individual operator
|Profit & LossEducational only

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.

Related Strategy Guides

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.

Capital Gains Tax Calculation: A Complete 2026 Guide

Capital gains taxes are triggered whenever you sell a capital asset — stocks, bonds, real estate, cryptocurrency, or other investments — at a profit. The tax rate depends on two factors: how long you held the asset and your taxable income. Assets held over 12 months qualify for long-term capital gains rates (0%, 15%, or 20%), while assets held 12 months or less are taxed at ordinary income rates (10-37%). Knowing these rates and how they interact with your total income is essential for making tax-efficient investment decisions, especially for year-end portfolio management.

Cryptocurrency is treated as property for U.S. tax purposes, meaning every crypto sale, trade, or use to purchase goods triggers a taxable event. Even trading Bitcoin for Ethereum is a taxable event — you must calculate the gain or loss based on the cost basis of the Bitcoin you exchanged. NFT sales are also taxable. The IRS has made crypto reporting a priority, with penalties for non-disclosure. Crypto cost basis methods available include FIFO, LIFO, and specific identification. Using HIFO (highest in, first out) — treating your most expensive purchases as the first sold — minimizes taxable gains and is allowed by the IRS for specific identification.

Strategies to Reduce Capital Gains Taxes Legally

Legal capital gains reduction strategies include: holding assets over 12 months (qualifies for lower long-term rates), tax-loss harvesting (selling losing positions to offset gains), strategic timing of sales across tax years, maximizing tax-advantaged account contributions (IRA, 401k, HSA), donating appreciated assets to charity (avoids capital gains entirely), using Qualified Opportunity Zone investments for deferral, and in some states, timing real estate sales during low-income years. High-income households should also consider the 3.8% Net Investment Income Tax (NIIT), which applies to investment income above $200,000 (single) or $250,000 (married).

~
Donate Appreciated Stock to Charity

If you have highly appreciated stock in a taxable account, consider donating it directly to a qualified charity instead of selling it first. When you donate appreciated stock held over 12 months, you receive a charitable deduction for the full fair market value AND avoid capital gains tax entirely. For example, donating $10,000 of stock you bought for $1,000 saves you $1,350-2,380 in capital gains taxes (at 15-23.8%) while giving you a $10,000 deduction. This beats selling the stock, paying taxes, and then donating cash.

Recommended Reading

Affiliate

As an Amazon Associate, we earn from qualifying purchases.

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

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>

More Picks You Might Like

Affiliate

As an Amazon Associate, we earn from qualifying purchases.