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 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.
High-income taxpayers may owe an additional 3.8% Net Investment Income Tax on capital gains:
The NIIT applies to the lesser of net investment income or the amount by which MAGI exceeds the threshold.
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.
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.
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.
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.
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.
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.
Real estate investors can defer capital gains by exchanging investment property for similar property through a qualified intermediary under Section 1031.
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.
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.
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.
Most States: Treat capital gains the same as ordinary income
Capital gains are taxed at the same rate as wages and other ordinary income.
Some States: Offer reduced rates or partial exclusions
A few states provide preferential treatment for long-term capital gains or certain types of investments.
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.
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.