Short-term capital gains are profits on investments or property held for one year or less; long-term capital gains are profits on assets held for more than one year. The holding period decides which set of federal tax rules applies, and the difference can be larger than the change in the market that produced the gain.

The tax code does not care how much you like the asset or how long you planned to hold it. It cares about the acquisition date and the sale date.

That makes the one-year mark the most important date on the calendar for a taxable account. A sale one day early can turn a long-term gain into ordinary income.

How does the holding period work?

The holding period starts the day after you acquire the asset and ends on the day you sell it. For stocks, mutual funds, and most securities, use the trade date, not the settlement date.

For real estate, use the closing date. The asset must be held for more than one year to qualify as long-term.

A sale on the same calendar date one year later is generally still short-term; the first long-term day is the next day.

Each purchase has its own clock. If you buy 100 shares in January and another 100 in December, the two lots have different holding periods.

Reinvested dividends and capital gain distributions create new lots too. Your broker may let you choose which lots to sell, which is why specific identification matters when you want long-term treatment.

How are short-term gains taxed?

Short-term capital gains are added to your ordinary income and taxed at your regular federal income tax rates. The rate depends on your taxable income and filing status, so the same gain can cost different amounts for two investors. A short-term gain can also push part of your income into a higher bracket or affect income-based phaseouts.

State income tax may apply on top of the federal tax. Some states tax capital gains as ordinary income, while others give preferential treatment or have no income tax.

The federal rate is only one part of the bill. If you are selling a large position, run the federal and state numbers together before you decide.

How are long-term gains taxed?

Long-term capital gains are taxed at preferential federal rates that are usually lower than ordinary income rates. The rate depends on your taxable income and filing status, and the IRS publishes the current breakpoints. Long-term treatment applies only when you meet the holding period; the lower rate is not automatic for every sale.

High-income investors can owe an additional 3.8% net investment income tax. It applies to the lesser of net investment income or modified adjusted gross income above $200,000 for single filers, $250,000 for married filing jointly, or $125,000 for married filing separately. The NIIT can apply to both short-term and long-term gains, so it does not erase the rate gap, but it raises the total cost.

ItemShort-term gainLong-term gain
Holding periodOne year or lessMore than one year
Federal rateOrdinary income ratesPreferential rates
3.8% NIITCan apply above thresholdsCan apply above thresholds
Planning useCash needs, loss harvestingLong-term goals, lower turnover

What is the tax difference on a $50,000 gain?

A hypothetical example shows the math. Assume a single filer has a $50,000 long-term capital gain, a 24% ordinary income rate, a 15% long-term capital gain rate, and no NIIT. These rates are for illustration, not a quote for your return.

Short-term tax: $50,000 × 24% = $12,000. Long-term tax: $50,000 × 15% = $7,500. Difference: $12,000 − $7,500 = $4,500.

If the same filer is above the NIIT threshold, add 3.8% of the gain: $50,000 × 3.8% = $1,900. The short-term total becomes $13,900, and the long-term total becomes $9,400.

The gap stays $4,500 because the NIIT applies to both. State tax would add another layer.

How do you calculate the tax step by step?

Step 1: Find your basis

Basis is what you paid for the asset plus certain costs, such as commissions, and minus depreciation you claimed. For stocks, the purchase price and commission are usually part of basis. For a rental property, depreciation lowers basis, which increases the gain when you sell. Keep the records from day one.

Step 2: Calculate the gain

Gain is the sale price minus basis. If you sell for $80,000 an asset with a $50,000 basis, the gain is $30,000. If you sell for less than basis, you have a loss, and different rules apply. The gain is not the same as the sale price.

Step 3: Count the holding period

Use the trade date for securities and the closing date for real estate. More than one year means long-term; one year or less means short-term. Do not count the acquisition date as day one. The day after acquisition is the first day of the holding period.

Step 4: Apply the right rate

Apply the tax rate to the gain, not to the sale proceeds. A $30,000 gain at a 15% long-term rate is $4,500 of federal tax before NIIT and state tax. The same gain at a 24% ordinary rate is $7,200. The $2,700 difference comes from the rate, not from the size of the sale.

Step 5: Add the 3.8% NIIT if it applies

The NIIT is 3.8% of the lesser of net investment income or MAGI above the threshold. If the $30,000 gain is the only net investment income and MAGI is $50,000 above the single threshold, the NIIT is $30,000 × 3.8% = $1,140. That amount is added to the regular tax.

Does the 3.8% net investment income tax change the comparison?

No. The 3.8% NIIT applies on top of both short-term and long-term gains, so it does not remove the benefit of long-term treatment. It does raise the effective tax rate on both, and a large short-term gain can increase MAGI enough to trigger or increase the tax.

The thresholds are $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. The tax is 3.8% of the lesser of net investment income or the amount by which MAGI exceeds the threshold. Rental income and capital gains can both count as net investment income unless an exception applies.

How does real estate change the picture?

Real estate can produce long-term capital gain, but depreciation recapture adds a layer. Residential rental property is depreciated over 27.5 years using the straight-line method.

That depreciation lowers your basis, so it increases the gain when you sell. Part of the gain may be unrecaptured Section 1250 gain, which is taxed under a separate rule.

The holding period still follows the same one-year rule. A property held for more than one year can qualify for long-term treatment, but the depreciation you claimed does not disappear.

A rental property held for one year or less produces a short-term gain, and the depreciation rules still affect basis. Rental Property Tax Deductions explains which costs are deductible during ownership.

Personal use can also complicate the tax return. A dwelling unit is used as a residence if personal use exceeds the greater of 14 days or 10% of the total days rented at fair rental value.

A vacation home rented for fewer than 15 days generally is not reported as rental income, but a sale still follows capital gain rules. Those rules can change the amount of deductible expense, not the one-year holding period.

What mistakes cause people to pay the short-term rate?

Selling on the one-year anniversary is a common error. The asset must be held for more than one year, so the first long-term day is usually the day after the anniversary. Check the trade date or closing date before you enter the sell order.

Using the settlement date for stocks can also create a surprise. The holding period generally follows the trade date, not the date the cash or shares settle. A sale that looks long-term on the settlement calendar may be short-term on the tax calendar.

Forgetting reinvested dividends is another trap. Each reinvestment buys new shares with a new holding period.

If you sell the entire position, some lots may be long-term and others short-term. Specific identification can help, but only if your broker supports it and you follow the rules.

Ignoring depreciation is a costly mistake for rental owners. Depreciation lowers basis and increases gain, and part of the gain may be recaptured. A property that looks like a modest profit on the sale price alone can produce a larger taxable gain after depreciation.

Assuming long-term means tax-free is wrong. Long-term gains can still be taxed, and the 3.8% NIIT can apply above the thresholds. A long-term gain is usually taxed at a lower rate, not at a zero rate.

When should you delay a sale for long-term treatment?

Delay only when the after-tax saving is worth the market risk. A hypothetical 9-percentage-point rate gap on a $10,000 gain saves $900 in tax: $10,000 × 9% = $900.

A 9% drop in the position before the sale also costs $900. The tax saving is real, but it is not free.

The decision is easier when you already planned to hold the asset. It is harder when the position is volatile or the gain is large.

A stock that falls 20% while you wait for long-term treatment can lose more than the tax saving. Run the numbers with your actual basis, holding period, and tax rate.

For real estate, the sale decision usually involves more than the tax rate. Closing costs, repairs, vacancy, and the next investment matter.

Rental property ROI can help you compare the after-tax proceeds with the return on the next property. Do not hold a weak property only for the long-term rate.

Do state taxes matter?

Yes. Most states with an income tax tax capital gains, but the rules vary.

Some states tax all gains as ordinary income, while others give preferential treatment or have no income tax. A state tax can shrink or widen the federal advantage.

The state where you live at the time of sale usually matters, not the state where you bought the asset. Moving before a sale can change the state tax result, but residency rules are strict. Check your state’s rules before you plan a sale around a move.