Last updated March 2026

Capital Gains Tax Calculator

Estimate your federal capital gains tax using 2025 tax brackets for both short-term and long-term holdings.

Capital Gain / Loss $0
Tax Rate 0%
Estimated Tax $0
Net Profit After Tax $0
Effective Tax Rate 0%
Holding Period Long-term

Short-Term vs Long-Term Capital Gains

The U.S. federal tax code draws a critical distinction between short-term and long-term capital gains, and understanding this difference can save you thousands of dollars in taxes. The classification depends solely on how long you held the asset before selling it.

Short-term capital gains apply to assets held for less than one year. These gains are taxed at your ordinary income tax rate, which can range from 10% to 37% depending on your total taxable income. Short-term rates are the same brackets used for wages, salaries, and other earned income.

Long-term capital gains apply to assets held for one year or longer and receive preferential tax treatment. The rates are significantly lower: 0%, 15%, or 20%, depending on your taxable income and filing status. This preferential treatment is one of the most powerful tax advantages available to investors.

2025 Capital Gains Tax Rates

Long-Term Capital Gains Brackets

For tax year 2025, the long-term capital gains rates based on taxable income are:

Short-Term Capital Gains (Ordinary Income Brackets)

Short-term gains are added to your ordinary income and taxed at the applicable marginal rate. The 2025 federal income tax brackets are:

Tax-Loss Harvesting

Tax-loss harvesting is a strategy where you sell investments at a loss to offset capital gains and reduce your tax bill. If your capital losses exceed your capital gains in a given year, you can deduct up to $3,000 of the excess loss against your ordinary income ($1,500 if married filing separately). Any remaining losses carry forward to future tax years indefinitely.

For example, if you realized $30,000 in capital gains and $20,000 in capital losses during the same year, you would only owe taxes on $10,000 of net gains. This is a widely used technique among tax-efficient investors and is offered as an automated feature by many robo-advisors and brokerage platforms.

Be aware of the wash-sale rule: if you sell a security at a loss and repurchase the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes.

Capital Gains on Real Estate

Real estate is subject to the same capital gains tax rules, with one major exception: the primary residence exclusion. If you have owned and lived in your home as your primary residence for at least 2 of the last 5 years before selling, you can exclude up to:

Only the gain amount exceeding these thresholds is subject to capital gains tax. This exclusion can be used repeatedly, but generally no more than once every two years. Investment properties and rental properties do not qualify for this exclusion and are also subject to depreciation recapture tax at a 25% rate on any depreciation previously claimed.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?

Short-term capital gains apply to assets held less than one year and are taxed at your ordinary income rate (10% to 37%). Long-term gains apply to assets held one year or longer and benefit from preferential rates of 0%, 15%, or 20%. The holding period is measured from the day after purchase to the day of sale.

How can I reduce my capital gains tax?

Several strategies can reduce your capital gains tax: hold investments for over one year to qualify for lower long-term rates, use tax-loss harvesting to offset gains with losses, invest through tax-advantaged accounts (401k, IRA, Roth IRA), and take advantage of the primary residence exclusion when selling your home. Charitable giving of appreciated assets is another effective technique.

Do I have to pay capital gains tax on my home sale?

Not necessarily. The primary residence exclusion allows you to exclude up to $250,000 in gains (single) or $500,000 (married filing jointly) if you have lived in the home for at least 2 of the last 5 years. Only gains exceeding these amounts are taxed. Investment and rental properties do not qualify for this exclusion.

Related Calculators