Skip to main content

Capital Gains Tax Calculator 2025 — Short & Long-Term Rates

Calculate the tax on your investment profits. Enter each asset's purchase price, sale price, and holding period to see your total capital gains tax including the Net Investment Income Tax (NIIT) if applicable.

Last updated: March 22, 2026

How Capital Gains Tax Works in 2025

Capital gains tax applies when you sell an asset — stocks, bonds, real estate, cryptocurrency, or other property — for more than you paid for it. The difference between your sale price and your cost basis (what you originally paid, including commissions and improvements) is your capital gain. If you sell for less than your cost basis, you have a capital loss, which can offset other gains or reduce your ordinary income by up to $3,000 per year.

The tax rate you pay depends on how long you held the asset before selling and your total taxable income. The holding period determines whether the gain is classified as short-term or long-term, and these two types are taxed very differently. Understanding this distinction is one of the most important tax planning decisions investors face.

Short-Term vs. Long-Term Capital Gains: The Key Difference

Short-term capital gains apply to assets held for one year or less. These gains are taxed as ordinary income, meaning they are added to your wages and salary and taxed at your marginal income tax rate — anywhere from 10% to 37% for 2025. This makes short-term gains significantly more expensive from a tax perspective.

Long-term capital gains apply to assets held for more than one year. These gains receive preferential tax treatment with three rate tiers: 0%, 15%, and 20%. The rate you pay depends on your total taxable income (including the capital gains). For most middle-income taxpayers, the 15% rate applies. The 0% rate benefits lower-income taxpayers, while the 20% rate applies only at very high income levels. This rate advantage is the primary reason financial advisors recommend holding investments for at least a year before selling.

2025 Long-Term Capital Gains Tax Rates by Filing Status

RateSingleMarried Filing JointlyHead of Household
0%Up to $48,350Up to $96,700Up to $64,750
15%$48,351 – $533,400$96,701 – $600,050$64,751 – $566,700
20%Over $533,400Over $600,050Over $566,700

These thresholds are based on total taxable income, not just capital gains. Your ordinary income fills the brackets first, and capital gains are stacked on top. This means a high salary can push long-term gains into the 15% or 20% bracket even if the gain itself is modest.

The Net Investment Income Tax (NIIT): An Extra 3.8%

High-income taxpayers face an additional 3.8% Net Investment Income Tax on the lesser of their net investment income or the amount by which their MAGI exceeds $200,000 (single) or $250,000 (MFJ). Net investment income includes capital gains, dividends, interest, rental income, and royalties. For an investor with $300,000 in MAGI and $50,000 in long-term gains, the NIIT applies to the full $50,000 (since MAGI exceeds the threshold by $100,000), adding $1,900 to the tax bill. Combined with the 20% long-term rate, the effective top rate on long-term gains is 23.8%.

How to Reduce Your Capital Gains Tax Bill

The simplest strategy is to hold assets for more than one year to qualify for the lower long-term rates. Tax-loss harvesting — selling losing investments to offset gains — can reduce or eliminate capital gains in a given year. Donating appreciated securities to charity lets you avoid capital gains entirely while claiming a charitable deduction. For inherited assets, the step-up in basis at death eliminates gains on appreciation during the decedent's lifetime. Contributing appreciated assets to a donor-advised fund or qualified opportunity zone can also defer or reduce gains. Always consult a tax professional before implementing tax strategies.

Capital Gains Tax Calculator

$

Asset 1

$
$
Holding Period

Frequently Asked Questions About Capital Gains Tax

What is the capital gains tax rate for 2025?

Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% depending on your taxable income and filing status. For single filers in 2025, the 0% rate applies to taxable income up to $48,350, the 15% rate applies from $48,351 to $533,400, and the 20% rate applies above $533,400. Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which can range from 10% to 37%.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax on the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married filing jointly. Net investment income includes capital gains, dividends, interest, rental income, and royalties. The NIIT is in addition to any capital gains tax you owe and applies regardless of whether the gains are short-term or long-term.

How do capital losses offset gains?

Capital losses first offset gains of the same type — short-term losses offset short-term gains, and long-term losses offset long-term gains. Any remaining losses can then offset gains of the other type. If your total losses exceed your total gains, you can deduct up to $3,000 of net capital losses against ordinary income ($1,500 for married filing separately). Unused losses carry forward to future tax years indefinitely.

Do I pay capital gains tax on my primary residence?

If you sell your primary residence and meet certain requirements (owned and lived in the home for at least two of the five years before the sale), you can exclude up to $250,000 of gain from taxation ($500,000 for married filing jointly). Any gain above the exclusion amount is taxed as a capital gain. This exclusion does not apply to investment properties or second homes.

How can I reduce my capital gains tax?

The most common strategies include holding assets for more than one year to qualify for the lower long-term rates, tax-loss harvesting (selling losing investments to offset gains), donating appreciated assets to charity (which avoids capital gains entirely), and timing sales to years when your income is lower. For inherited assets, the step-up in basis at death eliminates capital gains on appreciation during the decedent's lifetime.