Capital Gains Tax, Explained: The Calendar Sets the Rate
By the Stoia team · August 16, 2026 · 5 min read
Sell an investment you have held for 364 days and the profit is taxed like salary. Hold it a year and a day and the same profit drops into a gentler system, sometimes all the way down to a 0% rate. Capital gains tax is one of the few corners of the tax code where the calendar itself sets the price, and the whole mechanism fits in one short read.
One sale, two tax systems
A capital gain is simply what you sold for minus what you paid. What changes is the rate, and the dividing line is the holding period. Hold for one year or less and the gain is short-term: it lands on your return as ordinary income, taxed at the same marginal rate as your paycheck. Hold for more than a year and it becomes long-term, with its own set of lower rates. The line is unforgiving: exactly one year is still short-term. Long-term treatment starts at a year and a day, and the clock starts the day after you buy.
| Short-term | Long-term | |
|---|---|---|
| Holding period | One year or less | More than one year |
| Taxed as | Ordinary income, like wages | Its own 0/15/20 ladder |
| Typical bite | Your marginal bracket | Lower than your wage rate for nearly everyone |
| Who pays it most | Active traders | Patient investors, at a discount |
The 0/15/20 ladder, in words
Long-term gains use three federal rates: 0%, 15%, and 20%. Households with modest taxable income (retirees living off savings, someone in a sabbatical year, early-career sellers) can land on the 0% rung and owe no federal tax on a long-term gain at all. The broad middle pays 15%, which is where most sales by most investors settle. The 20% rate is reserved for the highest incomes. The dollar thresholds between the rungs shift with inflation every year, which is exactly why they are not printed here: the capital gains tax calculator carries the current numbers and runs the arithmetic on your actual figures. (A few special assets, such as collectibles, follow their own higher schedule.)
Gains stack on top of your income
Here is the part most people miss: the ladder is not applied to the gain in isolation. Your ordinary income (salary, bonus, interest) goes onto the return first and fills the brackets from the bottom. The long-term gain then stacks on top, and its position in the stack decides which of the three rates applies. A single gain can even straddle a boundary, with part taxed at 0% and part at 15%.
Two practical consequences follow. A big salary year pushes your gains toward the higher rungs, so realizing a large gain in a bonus-heavy year costs more than the identical sale in an ordinary year. And a low-income year (a job gap, a sabbatical, the first years of retirement) can open the 0% window wide enough to sell long-held winners with no federal tax at all. Timing income and gains against each other is one of the few tax levers ordinary households actually control.
Cost basis is the number that decides everything
Rates get the headlines, but the bill starts with cost basis: what you paid, adjusted for things like reinvested dividends. The taxable gain is proceeds minus basis, so every dollar of basis you can document is a dollar that never gets taxed. Say you bought a fund for $5,000 and reinvested $500 of dividends over the years. Your basis is $5,500, and selling at $8,000 produces a $2,500 gain, not $3,000. Investors who forget that reinvested dividends raise basis quietly pay tax on the same dollars twice.
Basis also varies lot by lot. If you bought shares on five dates at five prices, selling the high-basis lots produces a smaller taxable gain than selling the oldest ones, though each lot carries its own holding period. The stock average calculator shows your blended cost per share across lots, a useful sanity check before you decide which shares to sell.
Losses run the machinery in reverse: realized losses net against realized gains first, a capped slice of any leftover loss offsets ordinary income each year, and the rest carries forward to future returns. That netting is why a bad position can quietly lower the tax on a good one.
The NIIT, briefly
Higher-income households pay one more layer: the net investment income tax, a 3.8% statutory surtax that applies to investment income once total income passes a fixed threshold. Unlike the bracket lines, that threshold is not adjusted for inflation, so each year it quietly reaches more households than the year before. If your income sits anywhere near the top of the 15% rung, assume the surtax might apply and let the calculator check.
One more line for completeness: most states tax capital gains too, usually as ordinary income at your state rate, so the federal ladder is rarely the whole bill.
What to do with all of it
The working checklist is short. Know each lot's basis and age before you sell. When a position is a few weeks from the one-year line, notice that before clicking. Glance at where this year's income puts you on the ladder, and let the calculator translate the choice into dollars. None of that requires a professional; it requires knowing your numbers. Keeping every account in one net worth view makes the first step automatic: you can see which positions carry the gains, and which calendar year should carry the sale.