Capital Gains Tax Calculator 2025

Quick Answer

US capital gains tax depends on holding period: short-term gains (held one year or less) are taxed at ordinary income rates, and long-term gains are taxed at 0%, 15%, or 20% depending on taxable income (IRS 2025 brackets). High earners may also owe the 3.8% Net Investment Income Tax.

Also searched as: capital gains tax calculator, capital gains calculator, long term capital gains tax, short term capital gains tax

Calculate your capital gains tax on stocks, real estate, or other investments using 2025 rates.

Capital Gain / Loss

$0

Tax Rate Applied

0%

Estimated Tax Owed

$0

Net Proceeds (after tax)

$0

How Capital Gains Tax Works

Capital gains tax is a federal tax levied on the profit you realize when you sell a capital asset for more than its original purchase price (cost basis). According to the IRS (Topic No. 409), virtually everything you own and use for personal or investment purposes is a capital asset, including stocks, bonds, real estate, collectibles, and cryptocurrency. The two key factors that determine your tax rate are the holding period and your total taxable income for the year.

Capital gains tax affects millions of Americans each year. The IRS reported that taxpayers claimed approximately $2.3 trillion in net capital gains in tax year 2021, with the majority coming from sales of stocks and mutual funds. Whether you are selling shares after a market rally, disposing of rental property, or cashing out cryptocurrency, understanding how capital gains are taxed is essential for making informed investment decisions and keeping more of your returns.

This calculator estimates your federal capital gains tax based on 2025 rates, incorporating short-term and long-term brackets, filing status, and the 3.8% Net Investment Income Tax (NIIT). Use it alongside the US Income Tax Calculator to see how investment gains fit into your overall tax picture.

The Capital Gains Tax Formula

The basic formula for calculating capital gains tax is defined by IRS Publication 544:

Capital Gain = Sale Price - Cost Basis - Selling Expenses
Tax Owed = Capital Gain x Applicable Tax Rate

Worked example: You bought 100 shares at $100 each ($10,000 cost basis) and sold them for $25,000 after holding for 18 months. Your capital gain is $15,000. As a single filer with $75,000 in other taxable income, your total income of $90,000 falls in the 15% long-term capital gains bracket. Tax owed: $15,000 x 15% = $2,250. Net proceeds: $25,000 - $2,250 = $22,750.

Key Terms You Should Know

2025 Capital Gains Tax Brackets

Long-term capital gains rates for 2025 are significantly lower than ordinary income rates. The IRS adjusts these thresholds annually for inflation. Short-term gains (assets held one year or less) are taxed at your ordinary income rate, which ranges from 10% to 37%.

Tax Rate Single Married Filing Jointly Head of Household
0% Up to $48,350 Up to $96,700 Up to $64,750
15% $48,351 - $533,400 $96,701 - $600,050 $64,751 - $566,700
20% Over $533,400 Over $600,050 Over $566,700
+3.8% NIIT MAGI over $200,000 MAGI over $250,000 MAGI over $200,000

Source: IRS Revenue Procedure 2024-40. Note that collectibles (art, antiques, coins) are taxed at a maximum 28% long-term rate regardless of income.

Practical Examples

Example 1 — Stock Sale (Long-Term): Sarah, a single filer earning $80,000 in salary, sells stock she held for 3 years at a $20,000 gain. Her total taxable income is $100,000, placing her in the 15% long-term bracket. Tax: $20,000 x 15% = $3,000. No NIIT applies since her MAGI is below $200,000.

Example 2 — Real Estate Sale (with NIIT): James and Maria (married filing jointly) sell a rental property at a $150,000 gain after holding for 5 years. Their other income is $280,000. Total MAGI: $430,000. They owe 15% long-term capital gains tax ($22,500) plus 3.8% NIIT on $150,000 ($5,700) for a total of $28,200. They could have used a 1031 exchange to defer this tax entirely.

Example 3 — Short-Term Day Trading: Mike earns $95,000 in salary and realizes $12,000 in short-term stock gains. His total taxable income of $107,000 puts the gains in the 24% ordinary income bracket. Tax on the gains: $12,000 x 24% = $2,880. Had he held for over a year, the same gain would have been taxed at just 15% ($1,800), saving $1,080.

Strategies to Minimize Capital Gains Tax

2025 Tax Changes and Current Context

The 2025 tax year features inflation-adjusted brackets that are approximately 2.8% higher than 2024 thresholds, per IRS Revenue Procedure 2024-40. The long-term capital gains 0% bracket for single filers rose from $47,025 in 2024 to $48,350 in 2025. The $10,000 SALT deduction cap remains in effect, which limits the state tax deduction available to investors in high-tax states. The Tax Cuts and Jobs Act provisions are scheduled to sunset after 2025, which could significantly alter capital gains treatment beginning in 2026. Taxpayers should consider whether accelerating gains into 2025 makes strategic sense, particularly if higher rates are enacted for 2026 and beyond.

Disclaimer: This calculator is for informational purposes only and does not constitute financial, tax, or legal advice. Always consult a qualified professional for decisions specific to your situation.

Frequently Asked Questions

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

Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate, which ranges from 10% to 37% in 2025. Long-term capital gains apply to assets held for more than one year and receive preferential tax rates of 0%, 15%, or 20% depending on your taxable income and filing status. For example, a single filer with $50,000 in total taxable income pays 0% on long-term gains, while the same gain held short-term would be taxed at 22%. This difference is the primary reason financial advisors recommend holding investments for at least one year before selling. The IRS defines the holding period as starting the day after acquisition and ending on the date of sale.

What is the Net Investment Income Tax (NIIT) and who pays it?

The Net Investment Income Tax is an additional 3.8% surtax on investment income, including capital gains, dividends, interest, rental income, and royalties. It applies to individuals with modified adjusted gross income (MAGI) exceeding $200,000 for single filers, $250,000 for married filing jointly, or $125,000 for married filing separately. The tax is calculated on the lesser of your net investment income or the amount by which your MAGI exceeds the applicable threshold. For instance, a single filer with $220,000 in MAGI and $50,000 in investment income would owe NIIT on $20,000 (the excess over $200,000), resulting in $760 in additional tax. These thresholds have not been adjusted for inflation since the NIIT was introduced in 2013 under the Affordable Care Act.

How does the wash sale rule affect my capital losses?

The wash sale rule, defined in IRS Publication 550, prevents you from claiming a capital loss deduction if you purchase a "substantially identical" security within 30 days before or after the sale. If triggered, the disallowed loss gets added to the cost basis of the replacement shares, effectively deferring the tax benefit. For example, if you sell Stock A at a $5,000 loss and buy the same stock back 15 days later, the loss is disallowed. The rule applies to stocks, bonds, mutual funds, ETFs, and options. Notably, the wash sale rule does not currently apply to cryptocurrency, though Congress has proposed extending it. To avoid wash sales while staying invested, consider purchasing a similar but not identical ETF in the same sector.

How much capital loss can I deduct per year?

Capital losses first offset capital gains of the same type — short-term losses offset short-term gains first, and long-term losses offset long-term gains first. Any remaining losses then offset gains of the other type. If you still have net capital losses after offsetting all gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income such as wages or salary. This $3,000 limit has remained unchanged since 1978 and is not adjusted for inflation. Unused losses carry forward indefinitely to future tax years. For example, if you have $15,000 in net capital losses, you can deduct $3,000 this year and carry the remaining $12,000 forward across future years until fully used.

Do I pay state capital gains tax in addition to federal?

Yes, most states tax capital gains as ordinary income. Nine states have no income tax at all (Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming), meaning no state capital gains tax. New Hampshire taxes only interest and dividends. Among states with income tax, California has the highest top rate at 13.3%, followed by Hawaii at 11% and New Jersey at 10.75%. Some states offer partial exclusions or lower rates for long-term gains. You can use the US Income Tax Calculator to estimate your combined federal and state tax burden. The SALT deduction cap of $10,000 limits how much of your state tax you can deduct federally.

How are capital gains on real estate taxed differently?

Real estate capital gains follow the same short-term and long-term rates as other assets, but with important additional rules. The primary residence exclusion under Section 121 allows you to exclude up to $250,000 in gain ($500,000 for married couples filing jointly) if you owned and lived in the home for at least 2 of the past 5 years. For investment properties, depreciation recapture is taxed at a maximum rate of 25% on the portion of gain attributable to prior depreciation deductions. A 1031 like-kind exchange allows you to defer all capital gains tax by reinvesting proceeds into another qualifying investment property within 45 days (identification) and 180 days (closing). The Property Tax Calculator can help estimate your ongoing costs as a property owner.

Related Calculators