When you sell an investment for more than you paid, you have a capital gain, and the tax code cares a great deal about one thing: how long you held it. Cross the one-year line and the same profit can be taxed at a substantially lower rate. Understanding short-term versus long-term capital gains is one of the highest-leverage pieces of tax knowledge for any investor. This guide explains the distinction, the rate difference, and the related rules on losses and cost basis.
The core idea: the one-year line
A capital gain is the profit from selling a capital asset, most commonly a stock, fund, or piece of real estate. The gain equals your sale proceeds minus your cost basis, which is generally what you paid plus certain adjustments.
The single rule that determines the tax treatment is the holding period:
- Short-term: you held the asset for one year or less. The gain is taxed as ordinary income, at the same rates as your salary.
- Long-term: you held the asset for more than one year. The gain is taxed at preferential long-term capital gains rates, which are lower than ordinary rates for most people.
The clock starts the day after you acquire the asset and runs through the day you sell. The difference between holding for 364 days and 366 days can be large in tax terms, even though it is trivial in calendar terms.
Why the rate difference is so large
Ordinary income tax rates climb steeply through the brackets. Long-term capital gains, by contrast, are taxed under a separate, lower set of rates. For many investors the practical gap between selling at month eleven and selling at month thirteen is the difference between a high ordinary rate and a much lower long-term rate on the same dollar of profit.
A worked example makes this concrete. Suppose you bought 1,000 dollars of a stock and sold it for 3,000 dollars, a 2,000 dollar gain.
- If you held it for ten months, the full 2,000 dollars is short-term and stacks on top of your salary, taxed at your ordinary marginal rate.
- If you held it for thirteen months, the same 2,000 dollars is long-term and taxed at the lower capital gains rate.
The asset and the profit are identical. Only the calendar changed. You can compare the two outcomes for your own income with our capital gains tax calculator, and see how short-term gains interact with your bracket using the federal income tax calculator.
Cost basis: the number everything hinges on
Your gain is only as accurate as your cost basis. Basis is generally your purchase price plus commissions and certain adjustments. For reinvested dividends, each reinvestment adds to your basis, which prevents you from being taxed twice on dividends you already paid tax on. For inherited assets, basis is often stepped up to the value at the date of death, which can erase a large embedded gain.
Keeping clean basis records matters because brokers do not always report basis correctly, especially for older holdings or transferred accounts. An overstated gain from a missing basis means paying tax you do not owe.
When you own multiple lots of the same security bought at different times and prices, you can often choose which lots to sell. Selling specific high-basis lots can reduce the taxable gain, and choosing lots held more than a year keeps the gain long-term. This lot selection is a quiet but powerful tool.
How capital losses work
Not every sale is a gain. When you sell for less than your basis, you have a capital loss, and losses are useful.
Losses first offset gains of the same type: short-term losses against short-term gains, long-term against long-term, then any remainder crosses over. If your losses exceed your gains, you can use a limited amount of the net loss to offset ordinary income each year, and carry forward anything beyond that to future years indefinitely.
This is the engine behind tax-loss harvesting: deliberately selling losing positions to bank losses that offset gains elsewhere, while staying invested in a similar position. Be mindful of the wash-sale rule, which disallows a loss if you buy back substantially the same security within a short window around the sale. Our tax-loss harvesting calculator helps quantify the benefit.
The practical takeaways
A few habits follow naturally from these rules:
- Mind the holding period before selling appreciated assets. If you are close to the one-year mark and have a gain, waiting a few extra days can meaningfully cut the tax.
- Do not let the tax tail wag the dog. A lower rate is not worth holding a position you no longer believe in, or taking on extra risk, purely to save on tax.
- Track basis and choose lots deliberately. Good records and thoughtful lot selection reduce taxable gains without changing your investment strategy.
- Use losses on purpose. Harvesting losses in down periods builds a reserve that can shelter future gains.
The longer-term lesson is that holding quality investments patiently is rewarded twice, by compounding and by a lower tax rate. You can see the compounding side of that in our investment growth calculator.
A note on where these rates apply
The short-term and long-term distinction matters most in a regular taxable brokerage account, because that is where sales generate reportable gains. Inside tax-advantaged retirement accounts, the holding period is irrelevant, since you can buy and sell freely without triggering capital gains tax along the way. That difference shapes a useful habit called asset location: holding investments you trade often or that throw off short-term gains inside sheltered accounts, while keeping buy-and-hold positions in taxable accounts where the long-term rate and the eventual step-up in basis work in your favor. The capital gains rules also interact with your other income. A large gain can push part of your income into a higher capital gains bracket, and high earners may face an additional surtax on investment income. None of these change the basic one-year line, but they are reminders that a sale does not happen in isolation. It lands on top of everything else on your return, which is why modeling the full picture before selling a large position is worth the few minutes it takes.
Frequently asked questions
How long do I have to hold a stock to get the long-term rate?
More than one year. If you hold for one year or less, the gain is short-term and taxed as ordinary income. Holding for at least a year and a day makes it long-term, taxed at the lower capital gains rates. The clock runs from the day after purchase to the day of sale.
Are short-term capital gains really taxed like my salary?
Yes. Short-term gains are added to your ordinary income and taxed at your marginal rate, the same as wages. That is why they are usually the most expensive kind of gain, and why the one-year holding line matters so much. Compare the impact with the federal income tax calculator.
What happens if I sell at a loss?
Capital losses offset capital gains of the same type first, then the other type, and any remaining net loss can offset a limited amount of ordinary income each year, with the rest carried forward to future years. Watch the wash-sale rule if you plan to rebuy a similar security quickly.
Does reinvesting dividends affect my capital gains?
Yes. Each reinvested dividend is a new purchase that adds to your cost basis. Tracking those reinvestments correctly raises your basis and lowers your eventual taxable gain, preventing you from paying capital gains tax on dividends you were already taxed on.