πŸ“ˆ

Capital Gains Tax Calculator

Calculate Short-Term & Long-Term Capital Gains Tax (2026 IRS Rules)

$
$
$

Estimated Capital Gains Tax

$0.00

Effective rate: 0.0%

0%
After-Tax
Capital Gain$0.00
Federal Tax-$0.00
NIIT (3.8%)-$0.00
State Tax (est.)-$0.00
After-Tax Gain$0.00
βœ“ Accuracy: Exact β€” IRS 2026 LTCG brackets ⚠ State: simplified estimate Last verified: 2026-05-17 Source: IRS Rev. Proc. 2025-41

Note: Does not include state capital gains tax or wash sale rules

Disclaimer: This calculator provides estimates for educational purposes only. Results are not tax advice. Actual tax liability may vary based on individual circumstances. Consult a qualified tax professional for definitive guidance. Data sources: IRS Rev. Proc. 2025-41, SSA.gov, state Department of Revenue websites.

Example Scenarios

Example 1

$5,000 LTCG β€” Moderate Income (15% Rate)

Filing StatusSingle
Ordinary Income$60,000
Long-Term Gain$5,000
LTCG Tax Rate15%
Federal Tax Owed$750

Ordinary income of $60,000 exceeds the 0% bracket threshold ($49,625), so the entire $5,000 gain is taxed at 15%.

Example 2

$20,000 Gain β€” Short-Term vs. Long-Term

Filing StatusSingle
Ordinary Income$50,000
Capital Gain$20,000
If Long-Term15% rate
LT Federal Tax$3,000
If Short-Term~12–22% blended
ST Federal Tax (est.)~$4,400

Short-term gains are taxed as ordinary income, which can nearly double your tax bill vs. holding for long-term treatment. The 1-year holding threshold is critical.

Example 3

$100,000 LTCG β€” High Income (20% + NIIT)

Filing StatusSingle
Ordinary Income$250,000
Long-Term Gain$100,000
LTCG Tax Rate20%
Federal Tax$20,000
NIIT (3.8%)$3,800
Total Tax Owed$23,800 (23.8% effective)

MAGI of $350,000 exceeds the $200,000 NIIT threshold. The 3.8% surtax on investment income pushes the effective rate to 23.8%.

Understanding Capital Gains Tax Brackets for 2026

Capital gains tax is levied on the profit you make when you sell an asset for more than you paid for it. The IRS distinguishes between two types of capital gains based on how long you held the asset before selling. Understanding this distinction is crucial for tax planning, as the tax rates differ dramatically between short-term and long-term gains.

Short-Term vs. Long-Term Capital Gains

Short-term capital gains apply to assets held for one year or less. These gains are taxed at your ordinary income tax rate, which can be as high as 37% for top earners. Long-term capital gains apply to assets held for more than one year and are taxed at preferential rates of 0%, 15%, or 20% depending on your total taxable income. The holding period is calculated from the day after you acquire the asset to the day you sell it. For example, if you bought stock on January 15, 2025, and sold it on January 15, 2026, it's a short-term gain. If you sold it on January 16, 2026, it's long-term.

2026 Long-Term Capital Gains Tax Brackets

For single filers in 2026: 0% rate applies to taxable income up to $49,625; 15% rate applies from $49,626 to $545,500; 20% rate applies above $545,500. For married filing jointly: 0% up to $99,250; 15% from $99,251 to $613,700; 20% above $613,700. For head of household: 0% up to $66,500; 15% from $66,501 to $580,950; 20% above $580,950. These brackets are applied to your total taxable income, which includes both your ordinary income and your capital gains stacked on top.

Step-by-Step Example Calculation

Consider a single filer with $75,000 in ordinary income who sells stock for a $40,000 long-term gain (bought at $10,000, sold at $50,000). First, the ordinary income of $75,000 fills up the 0% LTCG bracket ($49,625) and enters the 15% bracket. The $40,000 gain stacks on top: $49,625 - $75,000 = $0 room in the 0% bracket (already exceeded by ordinary income). So the entire $40,000 gain is taxed at 15%, resulting in $6,000 in federal capital gains tax. If the same person had only $30,000 in ordinary income, the first $19,625 of gains ($49,625 - $30,000) would be taxed at 0%, and the remaining $20,375 at 15%, for a total tax of $3,056 β€” demonstrating how ordinary income level significantly impacts capital gains tax.

Net Investment Income Tax (NIIT)

The NIIT is an additional 3.8% tax that applies to the lesser of your net investment income or the amount by which your Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single filers or $250,000 for married filing jointly. This means high-income investors face an effective capital gains rate of up to 23.8% (20% + 3.8%) on long-term gains. The NIIT applies to interest, dividends, capital gains, rental income, and other passive income. It does not apply to income from active businesses or retirement account distributions.

Cryptocurrency Capital Gains

Cryptocurrency is treated as property by the IRS, meaning every crypto-to-crypto trade is a taxable event. If you trade Bitcoin for Ethereum, you must calculate the gain or loss on the Bitcoin based on its fair market value at the time of the trade. Short-term crypto gains (held ≀ 1 year) are taxed as ordinary income. Long-term crypto gains (held > 1 year) qualify for the 0%/15%/20% rates. Unlike stocks, cryptocurrency does not have a wash sale rule as of 2026, meaning you can sell at a loss and immediately rebuy without restriction. However, keeping detailed records of every transaction is essential for accurate tax reporting.

Collectibles and Real Estate

Long-term gains on collectibles (art, antiques, precious metals, coins, wine) are taxed at a maximum 28% rate instead of the standard 20% cap. This rate applies regardless of your income level. Real estate gains have special rules: the primary residence exclusion allows single filers to exclude up to $250,000 ($500,000 for married couples) of gain on the sale of a primary residence if you lived there for at least 2 of the 5 years before the sale. Investment property gains are taxed as regular capital gains, but you may also face depreciation recapture taxed at 25%.

Tax-Loss Harvesting Strategies

Tax-loss harvesting involves selling investments at a loss to offset capital gains. You can use capital losses to offset capital gains dollar-for-dollar, and if losses exceed gains, you can deduct up to $3,000 of net capital losses against ordinary income each year. Unused losses carry forward indefinitely. Be aware of the wash sale rule for stocks: if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. This rule does not currently apply to cryptocurrency.

When to Use This Calculator

Limitations β€” What's Not Included

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
Short-term gains apply to assets held ≀ 1 year and are taxed at ordinary income rates (up to 37%). Long-term gains apply to assets held > 1 year and are taxed at preferential rates of 0%, 15%, or 20%.
What is the Net Investment Income Tax (NIIT)?
An additional 3.8% tax on the lesser of your net investment income or the amount by which your MAGI exceeds $200,000 (single) or $250,000 (married filing jointly).
What are the 2026 long-term capital gains tax brackets?
Single: 0% up to $49,625, 15% to $545,500, 20% above. MFJ: 0% up to $99,250, 15% to $613,700, 20% above. HOH: 0% up to $66,500, 15% to $580,950, 20% above.
How do I calculate cost basis for stocks?
Cost basis is what you paid for the asset, including commissions and fees. If you bought shares at different times, you can use specific identification, FIFO (first in, first out), or average cost methods to determine which shares you're selling.
Are capital gains taxed in the year I sell or the year I receive payment?
Capital gains are generally taxed in the year the sale occurs (the trade date), not when you receive the proceeds. This applies even if the payment is received in the following year.
Can I avoid capital gains tax by reinvesting?
Generally no β€” reinvesting does not defer capital gains tax. However, a 1031 exchange allows deferral for like-kind real estate investments, and Opportunity Zone investments can defer and reduce capital gains tax.
How does the wash sale rule work?
If you sell a security at a loss and buy a substantially identical security within 30 days before or after, the loss is disallowed and added to the cost basis of the new shares. This rule applies to stocks and ETFs but not to cryptocurrency (as of 2026).
Do I pay state tax on capital gains?
Most states tax capital gains as ordinary income. Some states (like California) have high rates, while others (like Texas and Florida) have no state income tax. Check your state's specific rules.

Also Try

After-Tax Gain
$0.00