Stock Sale Tax Calculator 2025

Calculate capital gains tax on your stock sales with accurate 2025 tax rates. Get professional insights for short-term and long-term gains with advanced tax planning strategies

Capital Gains Tax Calculator

Date you originally purchased the stock
Date you sold or plan to sell the stock
Total amount paid including fees and commissions
Total proceeds received after fees and commissions
Your tax filing status for capital gains rates
Your annual ordinary income for capital gains rate determination

📈 Additional Considerations

Other realized capital gains for the tax year
Realized capital losses to offset gains
Unused capital losses from previous years
Estimated state capital gains tax rate

⏱️ Holding Period Analysis

Enter purchase and sale dates to see holding period

Your Capital Gains Tax Analysis

Capital Gains Tax Guide 2025

📊 2025 Capital Gains Tax Overview

Capital gains tax is applied to the profit from selling investments like stocks, bonds, and real estate. The tax rate depends on how long you held the investment and your income level, with preferential rates for long-term holdings.

Short-Term vs. Long-Term Capital Gains

📅 Short-Term Capital Gains

Held 1 year or less
  • Taxed as ordinary income
  • Tax rates: 10% to 37%
  • No preferential treatment
  • Added to regular income
  • Subject to highest marginal rates

📈 Long-Term Capital Gains

Held more than 1 year
  • Preferential tax rates
  • Tax rates: 0%, 15%, or 20%
  • Based on total income
  • Separate from ordinary income
  • Significant tax savings potential

2025 Long-Term Capital Gains Tax Rates

0% Rate

Single: Up to $47,025
Married Joint: Up to $94,050
Head of Household: Up to $63,000

15% Rate

Single: $47,026 - $518,900
Married Joint: $94,051 - $583,750
Head of Household: $63,001 - $551,350

20% Rate

Single: Over $518,900
Married Joint: Over $583,750
Head of Household: Over $551,350

Net Investment Income Tax (NIIT)

🏦 Additional 3.8% Tax for High Earners

High-income taxpayers may owe an additional 3.8% Net Investment Income Tax on capital gains:

  • Single filers: Modified AGI over $200,000
  • Married filing jointly: Modified AGI over $250,000
  • Married filing separately: Modified AGI over $125,000
  • Head of household: Modified AGI over $200,000

The NIIT applies to the lesser of net investment income or the amount by which MAGI exceeds the threshold.

Tax Planning Strategies

📅 Timing Strategy

Hold investments for more than one year to qualify for preferential long-term capital gains rates, which can be significantly lower than ordinary income tax rates.

📉 Tax-Loss Harvesting

Offset capital gains by realizing losses on other investments. Up to $3,000 in net losses can offset ordinary income annually, with excess losses carried forward.

💰 Income Management

Consider timing the recognition of gains in years when your ordinary income is lower to take advantage of the 0% capital gains rate if possible.

🎁 Gifting Strategies

Consider gifting appreciated stocks to family members in lower tax brackets or to charity to avoid capital gains tax entirely while receiving a charitable deduction.

Special Situations

🎯 Qualified Small Business Stock (QSBS)

Stock in qualified small businesses held for at least 5 years may be eligible for up to $10 million or 10x basis exclusion from federal capital gains tax under Section 1202.

🏡 Primary Residence Exclusion

Up to $250,000 ($500,000 for married couples) of capital gains from the sale of your primary residence may be excluded if you lived in it for 2 of the last 5 years.

📊 Like-Kind Exchanges (1031)

Real estate investors can defer capital gains by exchanging investment property for similar property through a qualified intermediary under Section 1031.

💍 Inherited Assets

Inherited assets receive a "stepped-up basis" equal to fair market value at death, potentially eliminating capital gains tax on appreciation during the decedent's lifetime.

Record Keeping Requirements

📝 Essential Documentation

  • Purchase Records: Date acquired, purchase price, brokerage fees
  • Sale Records: Date sold, sale price, selling fees and commissions
  • Reinvestment Records: Documentation of dividend reinvestment plans
  • Corporate Actions: Stock splits, spin-offs, mergers, and reorganizations
  • Form 1099-B: Broker statements showing proceeds from sales
  • Wash Sale Adjustments: Records of disallowed losses from wash sales
Retention Period

Keep all investment records for at least 7 years after the tax year in which you sell the investment. For inherited assets, keep records indefinitely to establish the stepped-up basis.

State Tax Considerations

🚫 No State Capital Gains Tax

States: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, Wyoming

These states have no state income tax, so capital gains are only subject to federal tax.

📊 Same as Ordinary Income

Most States: Treat capital gains the same as ordinary income

Capital gains are taxed at the same rate as wages and other ordinary income.

🎯 Preferential Rates

Some States: Offer reduced rates or partial exclusions

A few states provide preferential treatment for long-term capital gains or certain types of investments.

⚠️ Important Disclaimer

This calculator provides estimates based on current tax law and should not be considered personalized tax advice. Capital gains tax can be complex, especially with multiple transactions, wash sales, or special situations. Consult a qualified tax professional for specific guidance on your investment strategy and tax planning.

Frequently Asked Questions

Short-term capital gains are from assets held one year or less and are taxed as ordinary income (10%-37%). Long-term capital gains are from assets held more than one year and receive preferential tax rates (0%, 15%, or 20%) based on your income level.

Long-term capital gains rates are based on your total taxable income and filing status. For 2025: 0% rate applies to lower incomes, 15% for middle incomes, and 20% for high incomes. High earners may also owe the 3.8% Net Investment Income Tax.

Yes, capital losses can offset capital gains dollar-for-dollar. If losses exceed gains, up to $3,000 of net losses can offset ordinary income annually, with excess losses carried forward to future years indefinitely.

The 3.8% NIIT applies to capital gains when your modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately). It's applied to the lesser of your investment income or the excess over the threshold.

The wash sale rule disallows a loss deduction if you buy substantially identical securities within 30 days before or after the sale. The disallowed loss is added to the basis of the replacement securities, deferring the loss recognition.

Key strategies include holding investments for more than one year, tax-loss harvesting, managing income to stay in lower tax brackets, using retirement accounts for trading, gifting appreciated assets, and timing gains recognition strategically.