In this lesson
- §1 — The "selling means a huge tax bill" fear, set down
- §2 — Short-term vs. long-term: the holding-period cliff
- §3 — The 0/15/20% brackets, the stacking mechanic, and the 3.8% surtax
- §4 — The same sale, two different worlds
- §5 — Which bracket are you, and the timing you control
- Scam Radar: the people who promise to make your capital-gains tax disappear
- If you already sold — and the tax wasn't what you hoped
- The Advisor's Move, Decoded — "We'll harvest your gains at 0%"
- Reassurance
- Common questions
- Check yourself
- Glossary
Capital gains — short-term vs. long-term rates
The holding period, the 0/15/20% brackets, and the 3.8% surtax — why the tax on selling an investment is almost always gentler than the fear of it, and why the rate you pay is partly yours to choose.
What you'll learn
- Separate a short-term gain from a long-term one by counting the holding period exactly - one year or less is short-term, more than a year (at least a year and a day) is long-term.
- Locate a long-term gain on the 0/15/20% ladder by comparing 2026 taxable income to the single-filer lines of $49,450 and $545,500 (or the married $98,900 and $613,700).
- Apply the stacking rule - ordinary income fills the brackets first and the gain is taxed by where it lands on top - to tell when a gain is partly 0% and partly 15%.
- Add the 3.8% NIIT surtax once MAGI crosses $200,000 single / $250,000 married, turning a 15% rate into 18.8% and a 20% rate into 23.8%.
- Steer your rate with the two levers - holding past one year and timing sales into low-income years - to harvest long-term gains inside your remaining 0% headroom.
§1 — The "selling means a huge tax bill" fear, set down
Here is a fear that keeps good money frozen in place. You bought an investment — a fund, a few shares, something that's gone up — and now, for a perfectly good reason, you want to sell. Maybe you need the cash. Maybe you've realized you're holding the wrong thing. Maybe you just want to rebalance. And then the thought arrives and stops your hand: if I sell, I'll owe a fortune. The word capital gains lands like a trapdoor — the thing that gets you a giant tax bill, that gets you in trouble with the IRS, that quietly eats the whole gain you worked years to build. So you don't sell. You leave the wrong fund in place, or the cash you need locked in a position you've outgrown, because the tax feels like a monster you can't see the edges of. This lesson is about turning the lights on in that room.
Let's name the three fears doing all the damage, because each one is far smaller than it feels. The first: if I sell, I'll owe a fortune. The truth is that gains you've held for more than a year are taxed gently — at 0%, 15%, or 20%, rates deliberately set below what your paycheck is taxed at — and a great many people pay 0% or 15%, not some confiscatory number. The second: capital-gains tax is too complicated to understand. It isn't. It comes down to two plain questions — how long did you hold it, and what is your income — and once you can answer those two, you can read your own situation. The third, the heaviest: taxes will eat my whole gain. They won't. Even at the 15% rate, you keep 85 cents of every dollar of gain. And here's the part almost nobody is told: the rate you pay is partly yours to choose, because it depends on how long you wait and on your income in the year you sell — both of which you have real control over.
Three people will make this concrete, because the same sale lands completely differently depending on who's making it. Maya Chen — the 24-year-old Seattle engineer you've followed through her first brokerage account — faces the everyday version of the decision: she's holding a gain and trying to decide whether it's worth waiting to sell. David and Sarah Okonkwo — the Houston physician-and-lawyer couple, the highest earners in our cast — carry the high-bracket story, where the rate climbs and a surtax most people have never heard of kicks in. And Ruth Kowalski — the 67-year-old retired bookkeeper in rural Ohio, living on a small pension and Social Security — carries the gut-punch at the center of this lesson: the very same gain that costs the Okonkwos thousands costs Ruth exactly zero dollars, because her income is low enough to put her in the 0% bracket. Same gain. Wildly different tax. That's not a loophole or a trick — it's how the system is built, and understanding it is what hands you back the control the fear took away.
This also opens Phase 6, the part of the course about taxes — keeping more of what you earn. Back in Phase 4 you learned where money lives (the 401(k), the IRA, the HSA, and finally the taxable brokerage account, where these gains actually happen). Now we turn to what the tax code does to the money once it's invested, and we start with the single most common taxable event in an investor's life: selling something for more than you paid. We won't drift into the neighboring lessons — losing on purpose to save tax (Lesson 39), how dividends are taxed (Lesson 40), which account to hold what in (Lesson 41), tracking what you paid (Lesson 42), the actual tax forms (Lessons 43 and 44), and your state's piece (Lesson 46) all have their own homes. This lesson owns one thing and teaches it fully: how a capital gain is taxed, and why you have more say over that number than you think.
Before any rates or brackets, we have to dismantle the fear itself, because it's built on two misunderstandings that, once corrected, shrink the monster to something you can hold in one hand. The first is about what actually gets taxed when you sell. The second is about how gently — or not — that amount is taxed. Get those two right and the dread mostly evaporates, and the rest of the lesson becomes detail rather than threat.
§1.1 — You're taxed only on the gain, and only when you sell
Start with the misunderstanding that does the most damage: the belief that selling a $50,000 investment means being taxed on $50,000. It doesn't. You're taxed only on the gain — the profit, the part that's more than you paid. The amount you originally paid for an investment is its cost basis (we met this term in Lesson 25; it's simply what the investment cost you, the number the tax is measured against). When you sell, the tax looks only at the difference: sale price minus cost basis equals your capital gain. If Maya bought a fund for $8,000 and sells it for $10,000, the IRS does not tax the $10,000 — it taxes the $2,000 of profit. The $8,000 was already her money, taxed once when she earned it; the government doesn't get to tax it again on the way out. So the first thing the fear gets wrong is the size of the target. It's never the whole balance. It's only the growth.
The second correction is just as freeing: you owe nothing until you actually sell. While you hold an investment, its growth is an unrealized gain — profit that exists on paper, on your account screen, but that the tax code simply ignores. (Unrealized and realized are the pair we introduced in Lesson 25: unrealized is growth you haven't sold; realized is growth you've locked in by selling.) Maya's fund can climb from $8,000 to $10,000 to $15,000 over the years, and as long as she doesn't sell, she owes zero tax on any of it. The gain becomes a realized gain — and therefore taxable — only in the moment she sells. This is one of the quiet superpowers of investing: you, not the calendar, choose when the tax happens. Nothing is withheld along the way, no bill arrives each April for growth you haven't touched. The tax is an event you trigger, on your schedule, by deciding to sell.
Put those two together and the shape of the thing changes completely. You are taxed on the gain, not the balance; and only when you choose to realize it, not while you hold. So a person sitting on a $50,000 position they bought for $40,000 isn't facing tax on $50,000, or even on $40,000 — they're facing tax, someday, on a $10,000 gain, and only if and when they decide to sell. The monster was never the size of the account. It was always just a slice of the profit, taxed at a moment you control. The rest of this lesson is about how thin that slice usually is.
§1.2 — Long-term gains are taxed gently — and you hold two levers
Now the second fear — that whatever the tax is, it'll be brutal. Here the reassurance is structural, written into the tax code on purpose. The United States taxes long-term capital gains — gains on things you've held more than a year — at special, preferential rates that are deliberately lower than the rates on your wages. A preferential rate just means a rate set below the ordinary one as a matter of policy, to reward patient, long-term investing. Those rates are 0%, 15%, and 20%, and which one applies depends on your income. Compare that to a paycheck, where a middle-income worker's top dollars are taxed at 22% or 24% and a high earner's at 32%, 35%, or 37%. A long-term investor is taxed at rates that top out, for almost everyone, at 15% — and for many people land at 0%. The system you were afraid of is, for the patient investor, one of the gentlest corners of the entire tax code.
And even at the rates that aren't zero, "eaten alive" is the wrong picture. A 15% tax on a gain means you keep 85% of it. If Maya realizes a $2,000 long-term gain and pays 15%, that's $300 in tax and $1,700 kept — she keeps far more than five-sixths of her profit. Even at the top 20% rate, a high earner keeps 80 cents of every dollar of gain. Tax is a cost of a good outcome — you only owe it because you made money — and a cost that leaves you with the large majority of the win is not a monster. It's a toll, and a modest one, on a road you wanted to travel anyway.
Here is the idea that turns this whole lesson from a warning into a tool, and it's worth stating plainly because it's the spine everything else hangs on: you hold two levers over what rate you pay. The first lever is time — how long you hold before selling. Cross the one-year line and your gain flips from the harsh ordinary rates to the gentle preferential ones; that's the holding period, and it's the subject of §2. The second lever is income — how much you earn in the year you sell, because the 0/15/20% rate is set by your income that year, and your income is something that rises and falls and can sometimes be chosen (a low-earning year, a gap between jobs, early retirement). That's the subject of §3 and §4. Neither lever is fully in your hands all the time. But both are partly in your hands, and that is the difference between a tax that happens to you and a tax you manage. The fear says the bill is fixed and frightening. The truth is that it's often gentle, and that you help set it. Let's pick up the first lever.
§2 — Short-term vs. long-term: the holding-period cliff
The single most important fact in this entire lesson — the one that, known or unknown, quietly decides how much tax a person pays on the same sale — is the holding period: how long you owned the investment before you sold it. Cross one specific line and the tax rate on your gain can be cut roughly in half. Most people sell without ever knowing the line is there. This section is about exactly where it sits, what it's worth in real dollars to Maya, and the one honest caution that keeps the rule from being abused.
§2.1 — The line: one year and a day
The rule is precise, and the precision matters. A gain on something you held for one year or less is a short-term capital gain, and it is taxed at your ordinary income rates — the same rates as your paycheck, with no preferential treatment at all. A gain on something you held for more than one year is a long-term capital gain, and it gets the gentle 0/15/20% rates from §1. The dividing line is exactly one year — but read it carefully, because the boundary catches people: you must hold for more than one year. Holding for exactly one year is still short-term. To land in long-term territory you need at least one year and one day. The IRS even tells you how to count: you start counting the day after you buy, and you count up through and including the day you sell. Buy on March 10th of one year, and the earliest you can sell and qualify as long-term is March 11th of the next. That's the cliff — and it's a true cliff, not a ramp. One day on the wrong side, and the same gain is taxed at the harsh rate instead of the gentle one.
Why does the code draw such a hard line, and why does it matter so much which side you're on? Because the gap between the two rates is enormous. Short-term gains get no break — they pile onto your other income and are taxed at your full marginal rate, which for a typical professional is 22%, 24%, or higher. Long-term gains get the preferential schedule that tops out at 20% and often lands at 15% or 0%. So the very same $5,000 of profit can be taxed at, say, 24% if you sold a week too early, or at 15% if you waited until you crossed the year — a difference of nine cents on every dollar of gain, for doing nothing but holding a little longer. The holding period is the cheapest tax break in the entire system: it costs you only patience. The penalty for impatience — the short-term rate — is essentially the flipper's tax, the rate the code charges people who buy and sell quickly, day-traders and momentum chasers, precisely because it doesn't want to reward short-term speculation the way it rewards long-term ownership.
One clarification that prevents a common error, because the word "gain" is doing a lot of work here. The thing being measured is the gain, but the clock is on the asset — it runs from the day you bought that specific lot of shares to the day you sell it. It has nothing to do with how long the money was in the account, or how long you've had the brokerage. If Maya has held her brokerage account for three years but bought a particular fund six months ago, a sale of that fund today is short-term, because that lot is six months old. Each batch of shares you buy starts its own one-year clock on its own purchase date. (Which specific shares you're treated as selling, when you've bought at different times and prices, is its own important question — cost-basis methods — and it has a full home in Lesson 42; here we just need the principle that the clock runs per purchase.)
§2.2 — Maya at eleven months: what one more month is worth
Let's put Maya on the edge of this cliff, because the abstract rule becomes a real decision the moment there's money on it. Maya is 24, a software engineer in Seattle earning $145,000 a year, single, in a state with no income tax. Eleven months ago she bought a position in her taxable brokerage account, and it's now sitting on a $10,000 gain. She's tempted to sell — maybe to rebalance, maybe because she's eyeing something else — and the question in front of her is the most ordinary one an investor ever faces: sell now, or wait? Watch what the holding-period cliff does to that exact decision.
The holding-period cliff, shown on Maya's identical $10,000 gain. Maya is a single Seattle engineer earning $145,000, with about $128,900 of taxable income — putting her in the 24% ordinary bracket and the 15% long-term capital-gains bracket. If she sells now, at eleven months, the gain is short-term and taxed at her 24% ordinary rate: $2,400 in tax, keeping $7,600. If she waits about one more month, past one year and a day, the same gain becomes long-term and is taxed at the preferential 15% rate: $1,500 in tax, keeping $8,500. Same investment, same $10,000 of profit, same person — only the calendar differs — and waiting past the one-year line saves $900, which is 9% of the entire gain, for nothing but patience. The honest caution: don't hold an investment you want out of just to reach the long-term rate, because the market can move against you by more than the tax you'd save.
Here are the numbers behind the screen above, computed on Maya's real situation. With $145,000 of income, after the 2026 standard deduction of $16,100 her taxable income is about $128,900 — which puts her top dollars in the 24% ordinary bracket and, for long-term gains, in the 15% capital-gains bracket. So if she sells now, at eleven months, the $10,000 gain is short-term and taxed at her 24% ordinary rate: $2,400 in tax. If instead she waits roughly one more month, crosses the one-year-and-a-day line, and then sells, the identical $10,000 gain is long-term and taxed at 15%: $1,500 in tax. Same investment, same $10,000 of profit, same person — and waiting about a month saves her $900. That $900 is not a reward for any cleverness or risk; it's purely the price of the calendar, the difference between selling on the wrong side of the cliff and the right side. Nine percentage points of her gain, handed back to her for the patience of holding a few more weeks.
Sit with how large that is relative to the effort. $900 is 9% of her entire $10,000 gain, captured by doing literally nothing — not adding money, not taking on more risk, just waiting until the position turns thirteen months old instead of eleven. This is what it means to say the holding period is a lever you control: for an investor who isn't in a hurry, simply knowing the line is there, and timing a sale to fall on the long-term side of it, is found money. The everyday version of capital-gains strategy isn't exotic. It's this: before you sell something at a profit, check how long you've held it, and if you're close to a year, ask whether you can wait.
§2.3 — The honest caution: don't let the tax tail wag the dog
Now the counterweight, because a tax rule taught without its limits becomes bad advice. The holding-period cliff is real and worth respecting, but it must never become the only thing you look at. The phrase professionals use is don't let the tax tail wag the dog — don't let a tax consideration drive an investment decision it shouldn't. Two cautions make that concrete. First: waiting a month to convert a short-term gain into a long-term one means staying invested in that position for another month, and the market can move against you in that month by far more than the tax you'd save. Maya's $900 of tax savings is real, but if the position could plausibly drop $2,000 in the month she's waiting, the tax savings was never the main event. The holding period is a tiebreaker and a planning input, not a reason to hold a position you genuinely want out of.
Second, and more important: never hold a bad investment just to reach the long-term rate. If you're sitting in something you've come to believe is wrong for you — an overpriced fund, a single stock that's become too large a bet — the tax on selling is a cost of fixing a mistake, and fixing the mistake usually matters more than shaving the tax. Paying 24% instead of 15% on a gain stings, but it stings far less than riding a position you shouldn't own for another several months and watching it fall. The skill this section builds is not "always wait for long-term." It's "know the cliff is there, weigh it honestly against everything else, and let it tip close calls — not override real reasons to act." The tax is one input. Your actual financial situation is the decision.
§3 — The 0/15/20% brackets, the stacking mechanic, and the 3.8% surtax
This is the heart of the lesson, and it gets the most room, because it answers the question the whole topic really turns on: once a gain is long-term, what rate — 0%, 15%, or 20% — actually applies to it, and why? The answer has three parts that build on each other: the brackets themselves and their 2026 income thresholds (§3.1); the stacking mechanic that decides which bracket your gain lands in, which is the single most misunderstood idea in capital-gains taxation (§3.2); and the 3.8% surtax that lands on top for high earners, the part the Okonkwos run straight into (§3.3). We close with a short tour of the things that sit at the edges of this — losses, special-rate assets, fund distributions, and your state (§3.4).
§3.1 — The three brackets and the 2026 thresholds
Long-term capital gains are taxed under their own bracket system — and the first thing to understand is that it is a separate system from the one your paycheck runs through. Your wages are taxed under the familiar ordinary brackets (10%, 12%, 22%, 24%, on up to 37%). Long-term gains are taxed under a parallel, three-rung ladder all their own: 0%, 15%, and 20%. This is why the question "what tax bracket am I in?" has two different answers — one for your ordinary income and a separate, lower one for your long-term gains. Conflating the two is the most common confusion in this whole area, so hold them apart: ordinary income has its ladder, capital gains have theirs, and the capital-gains ladder has only three rungs. The screen below lays out that ladder with the exact 2026 income thresholds.
The 2026 long-term capital-gains rate ladder, a three-rung system separate from the ordinary income brackets. Rung one: 0%, for a single filer with taxable income up to $49,450 — gains that fall here are taxed at nothing. Rung two: 15%, for taxable income from $49,450 to $545,500 — where most investors land, leaving 85 cents of every dollar of gain. Rung three: 20%, on the portion of gain above $545,500. The thresholds by filing status: the top of the 0% rung is $49,450 single, $98,900 married filing jointly, $66,200 head of household, $49,450 married filing separately; the 20% rate begins above $545,500 single, $613,700 married filing jointly, $579,600 head of household, $306,850 married filing separately. These are taxable-income thresholds, after deductions, not gross income. On top of all of this, a 3.8% Net Investment Income Tax surtax applies once modified adjusted gross income exceeds $200,000 single or $250,000 married — lifting a high earner's effective rate to 18.8% in the 15% bracket or 23.8% in the 20% bracket. Which rung your gain lands on is set by your income, because gains stack on top of ordinary income. All figures are tax year 2026, from IRS Rev. Proc. 2025-32.
Walk the ladder for a single filer, because the numbers are the thing. For 2026, a single person pays 0% on long-term gains as long as their taxable income stays at or below $49,450; pays 15% on gains once income is above $49,450 and up to $545,500; and pays 20% only on the portion of gains that pushes income above $545,500. For a married couple filing jointly, the lines are $98,900 (top of the 0% rung) and $613,700 (where the 20% rung begins). One critical detail about what these dollar figures measure: they are thresholds of taxable income — your income after subtracting the standard or itemized deduction — not your gross salary and not some other number. That distinction is why a person earning a healthy salary can still have a surprising amount of room in a low rung, and it's the hinge of the stacking mechanic we're about to unpack. (A worthwhile aside the screen also shows: the married thresholds aren't simply double the single ones. The 0% rung doubles cleanly — $49,450 to $98,900 — but the 20% line for couples, $613,700, is well below twice the single figure of $545,500. It's a small marriage cliff baked into the brackets, the kind of asymmetry worth knowing exists even if it only bites the highest earners.)
Two more facts round out the ladder before we put it to work. First, these same 0/15/20% rates apply to qualified dividends — the everyday dividends most broad stock funds pay — so the brackets you're learning here govern not just your sales but a large part of the dividend income in a taxable account too. (Which dividends are "qualified" versus taxed at ordinary rates is its own subject, with a full home in Lesson 40; the point for now is that the rate ladder is shared.) Second, these thresholds move every year with inflation — the 2026 figures here come straight from the IRS's 2026 inflation adjustments, and they'll be a little higher in 2027 — which is exactly why a tax curriculum re-verifies them at every build rather than trusting last year's numbers. The rungs are 0/15/20; the income lines that separate them are what shift.
§3.2 — Stacking: why your income decides your gain's rate
Now the mechanic that makes the whole system make sense — and the one almost everyone gets backwards. The question is: when you have both ordinary income (a salary) and a long-term gain, how do you figure out which capital-gains rung the gain lands on? The answer is a rule called stacking, and it works like filling a glass. Your ordinary income goes in first and fills the bottom of the glass. Your long-term gain is then poured in on top of it. The capital-gains rate your gain pays depends entirely on how high up the glass it sits — on which rung it reaches once it's stacked above your ordinary income. The gain doesn't get its own fresh start at the bottom of the ladder; it starts wherever your ordinary income left off.
Make it concrete with a clean illustration. Imagine a single filer with $40,000 of ordinary taxable income (their salary after deductions) and a $50,000 long-term gain. The $40,000 of salary fills the glass from $0 up to $40,000. The $50,000 gain stacks on top, occupying the band from $40,000 up to $90,000. Now apply the rungs: the 0% rung runs up to $49,450, so the slice of the gain from $40,000 to $49,450 — about $9,450 of it — is taxed at 0%, and the rest of the gain, from $49,450 up to $90,000, is taxed at 15%. The same person, the same $50,000 gain, gets partly 0% and partly 15% — because of where their salary left the glass before the gain was poured in. This is the entire game: ordinary income fills the lower rungs first, and the gain is taxed by where it lands on top.
This is also where a precise warning belongs, because the direction of the effect is the thing people invert. A long-term gain does not push your ordinary income up into higher ordinary brackets — your salary is taxed at its own rates regardless of the gain. It's the other way around: your ordinary income pushes the gain up. The salary fills the bottom of the glass, so it determines how much 0%-rung and 15%-rung room is left for the gain. Say it to yourself as a rule: income lifts the gain; the gain doesn't lift the income. Get that direction right and stacking becomes intuitive; get it backwards and you'll mis-predict every rate.
And here is the payoff, the reason stacking matters so much for real people: it explains why the 0% bracket has headroom. Headroom is just the space left in the 0% rung after your ordinary income fills the bottom of the glass — the amount of long-term gain you could pour in before reaching the top of the 0% rung. For a single filer in 2026, the 0% rung tops out at $49,450 of total taxable income. If your ordinary taxable income is $30,000, you have about $19,450 of headroom — that much long-term gain could stack on top and be taxed at 0%. If your ordinary income is near zero, almost the entire $49,450 is headroom, and a substantial gain could be realized completely tax-free. This is not a loophole; it's the plain arithmetic of stacking. And it's the mechanism behind the most striking contrast in this lesson — the one between Ruth, whose low income leaves the 0% glass nearly empty, and the Okonkwos, whose enormous income fills the glass to the brim and beyond. We'll watch that contrast in §4. First, the surtax that lands on the Okonkwos.
§3.3 — The 3.8% surtax (NIIT), and the 15%-to-20% climb
For most people, the 0/15/20% rates are the whole story. For high earners, there's one more layer, and the Okonkwos walk straight into it — so meet them properly, because they anchor the high-bracket half of this lesson. David Okonkwo is 44, a cardiologist earning $380,000; Sarah is 42, a partner at a law firm earning $195,000; together they make $575,000 a year and live in Houston, where there's no state income tax. They've done everything the earlier phases taught — both 401(k)s maxed, backdoor Roths done — and they hold a $545,000 taxable brokerage account, the overflow from filling every sheltered account first (that's the story Lesson 25 told). After maxing both 401(k)s and taking their deductions, their ordinary taxable income lands around $500,000. That number is about to matter twice.
The extra layer is called the Net Investment Income Tax, or NIIT — a flat 3.8% surtax that lands on top of the regular capital-gains rate for higher earners. Here's how it works, in plain terms. It applies once your MAGI — your modified adjusted gross income, which for almost everyone is just your adjusted gross income, the income figure near the bottom of the front page of your tax return — crosses a threshold: $200,000 for a single filer, $250,000 for a married couple filing jointly. Above that line, an extra 3.8% is charged on your investment income — your capital gains, dividends, interest, and the like. (Notably, it does not hit wages or self-employment income, and it doesn't touch withdrawals from retirement accounts — it's a tax specifically on investment income.) One detail worth carrying because it shapes the whole tax's behavior: unlike the capital-gains brackets, these NIIT thresholds are not adjusted for inflation. They were set in 2013 and have never moved. So every year, as incomes drift up, a few more households cross the fixed line — a slow, quiet widening of who pays it.
The crucial thing to understand is that the 3.8% stacks on top of whatever capital-gains rate you're already paying. It doesn't replace the 15% or 20% — it adds to it. So a high earner in the 15% bracket who's also over the NIIT threshold pays 15% plus 3.8%, an effective 18.8% on their long-term gains and qualified dividends. A high earner up in the 20% bracket pays 20% plus 3.8% — an effective 23.8%. For the Okonkwos, whose MAGI is far above the $250,000 line, every dollar of investment gain carries that extra 3.8%. With their ordinary income around $500,000 — comfortably below the $613,700 line where the 20% rung begins for a couple — their long-term gains sit in the 15% bracket, so their effective rate on a typical gain is 18.8%. That 18.8% is the number to remember for them; it's the rate behind the contrast in §4.
But the Okonkwos are also the cleanest possible illustration of the 15%-to-20% climb, because stacking puts them right on its edge — and a large enough sale tips them over. Suppose they realize a big long-term gain: $150,000, from trimming a position in that $545,000 brokerage account. Stack it on their roughly $500,000 of ordinary income and the gain occupies the band from $500,000 up to $650,000. The 20% rung for a couple begins at $613,700. So the gain splits: the portion from $500,000 to $613,700 — about $113,700 of it — is taxed at 15%, and the remaining $36,300, the part that pushes their income past $613,700, is taxed at 20%. Add the 3.8% surtax across the whole $150,000, and the arithmetic comes out to roughly $30,000 of tax on the $150,000 gain — about 20% all-in. Watch what the stacking did: their first dollars of gain were taxed at 18.8% (15% plus the surtax), and the dollars that spilled over the line were taxed at 23.8% (20% plus the surtax). That's the 15%-to-20% climb made visible — not a switch that flips your whole gain to a higher rate, but a ceiling your gain rises through as it stacks, paying the higher rate only on the portion that crosses the line. It's the same mechanic as Maya's holding-period cliff and Ruth's headroom: where your gain sits in the stack is what sets the rate, slice by slice.
§3.4 — The edges: losses, special assets, fund distributions, and your state
Four things sit at the edges of the core rate story — each real, each worth knowing, none needing the full room the brackets got. We'll take them quickly, naming where each gets its deeper home. First, and most useful: capital losses. When you sell something for less than you paid, you have a capital loss, and losses are not wasted — they first cancel out your gains, dollar for dollar. If your losses for the year exceed your gains, you can use up to $3,000 of the excess loss to offset your ordinary income — your salary — knocking $3,000 off the income you're taxed on ($1,500 if you're married filing separately). And if you have still more loss than that, it doesn't disappear: it carries forward to future years, indefinitely, until it's used up. That a loss can shelter a gain, then shelter $3,000 of salary, then wait patiently for next year is one of the genuinely friendly features of the system — and turning it into a deliberate strategy (selling losers on purpose to harvest those losses, while sidestepping a rule called the wash sale) is the entire subject of the next lesson, Lesson 39. Here we just plant the seed: gains and losses net against each other, and losses are an asset, not just a disappointment.
Second, two special-rate corners, named so they don't surprise you. The 0/15/20% rates cover the vast majority of what ordinary investors sell — stocks, funds, ETFs, bonds. But a couple of asset types have their own ceilings: gains on collectibles (art, coins, gold and other precious metals, antiques) are taxed at a maximum of 28%, and the depreciation-related portion of a gain on real estate you've rented out — called unrecaptured Section 1250 gain — is taxed at a maximum of 25%. You're unlikely to meet either unless you sell art or a rental property, and both have their own detailed rules; the only thing to carry is that they exist, so "long-term gains are 0/15/20" has two named exceptions at the edges. Third, a wrinkle that genuinely catches new investors off guard: a fund can hand you a taxable capital gain even if you never sold a single share. Mutual funds (and to a lesser extent ETFs) periodically distribute the gains they realized inside the fund — when the fund's own manager sold winning holdings — and pass that tax bill to you as a capital gain distribution, usually each December. You'll owe tax on it for that year even though you did nothing. It's a real reason that high-churn, actively managed funds are tax-inefficient to hold in a taxable account, and it's exactly the kind of quiet cost we'll weigh when we get to asset location in Lesson 41.
Fourth and last, your state. Everything in this lesson is the federal picture — and most states add their own tax on top, with a twist worth knowing: the large majority of states that have an income tax do not give capital gains any preferential rate at all. They tax your gains as ordinary income, at the same rate as your wages. So "0% federal" is rarely "0% all-in" — a Californian or a New Yorker owes state tax on a gain the federal government taxed at zero. The flip side is that a handful of states — Texas, Florida, Washington, and a few others — have no state income tax, so investors there (the Okonkwos in Houston, Maya in Seattle) owe nothing to the state on their gains. Maya's Washington is the one interesting exception to the exception: it has no income tax but does levy a separate 7% tax specifically on very large long-term gains — above roughly $280,000 in a single year — which is far above anything Maya will realize, so it doesn't touch her, but it's a reminder that the state layer is real and varies enormously. The full state picture, including which states are friendliest and the municipal-bond angle, is Lesson 46. The seed to carry: whatever you compute here is the federal tax, and your state may add to it.
§4 — The same sale, two different worlds
Now we put the whole lesson together on a single, deliberately identical transaction. Picture the very same event — selling an investment for an $11,000 long-term gain — happening in two different households on the same afternoon. In one, it costs nothing at all. In the other, it costs more than two thousand dollars. Nothing about the gain is different: same size, same long-term holding, same kind of investment. The only thing that differs is whose income it stacks on top of. This is the gut-punch the lesson has been building toward, and it's the clearest proof that your rate is set by your situation, not by the gain itself.
§4.1 — Ruth, and the 0% bracket as a genuine gift
Meet Ruth Kowalski, who carries the most hopeful idea in this lesson. Ruth is 67, a retired bookkeeper in rural Ohio. She lives on a county pension of $7,440 a year and Social Security of $22,080 a year — a total income of about $29,520, modest and fixed. Years ago she inherited a mutual fund from her late husband; it's worth about $35,000 now, it's an expensive, actively managed fund she's never examined, and she's finally decided to sell it and move the money into something cheaper and simpler. The question that would freeze most people is the one we started with: won't selling a $35,000 fund trigger a big tax bill? For Ruth, the answer is one of the quiet gifts of the tax code, and it's worth walking slowly.
First, the gain itself is far smaller than the $35,000 sale price, for a reason we can now name precisely. When Ruth inherited the fund at her husband's death, its cost basis was reset to its value on that day — the step-up in basis we met in Lesson 25 (and which gets its full treatment in Lesson 61). Say the fund was worth about $24,000 when she inherited it; that became her basis. So selling it today at $35,000 produces a long-term gain of about $11,000 — only the growth since his death, not the whole $35,000. (Inherited investments are automatically treated as long-term, by the way, no matter how briefly the heir has held them — so Ruth's gain qualifies for the preferential rates regardless.) Already the "tax on $35,000" fear has shrunk to a question about $11,000 of gain. Now stack it.
Ruth's ordinary taxable income is essentially zero. Her pension is $7,440; her Social Security, given how low her other income is, is entirely untaxed (Social Security only becomes taxable above income levels she's well beneath); and her standard deduction — the regular amount plus the extra deductions she gets for being over 65, including the new senior deduction in effect for 2026 — comes to about $24,150, far more than her income. So her ordinary income fills almost none of the glass. When the $11,000 long-term gain stacks on top, it lands entirely within the 0% rung, which for a single filer runs all the way up to $49,450 of taxable income. The result: Ruth owes zero federal tax on her $11,000 gain. Not a reduced amount — zero. She sells the expensive fund she should have left years ago, reinvests the full proceeds in something better, and the IRS takes nothing, because her income is low enough that her gain never climbs out of the 0% rung. This is the 0% bracket working exactly as designed: a genuine gift to people in low-income years, and a reason that selling, for Ruth, is not something to fear but something to do.
Two honest footnotes, because this gift has fine print and you deserve the whole truth. First, the broader idea here — deliberately realizing gains in a low-income year specifically to pay 0% on them — is called gain harvesting, and it's a real strategy: a retiree in the gap years before required withdrawals begin, someone in a sabbatical year, anyone with a temporarily low income can fill up their 0% headroom on purpose and reset their cost basis higher at no tax cost. It's the mirror image of harvesting losses, and we'll see it again. Second, the fine print: realizing a gain raises your income for the year, and for someone on Social Security or Medicare that higher income can have knock-on effects — it can pull some Social Security into being taxed, or nudge Medicare premiums up a tier (a surcharge called IRMAA). For Ruth specifically, the $11,000 gain does nudge a small slice of her Social Security into being counted — but her deductions still wipe out every last dollar of taxable income, so she owes nothing, and her income stays far below the Medicare premium tiers. The gift survives the fine print here — we checked. For someone with a middle income, though, the knock-ons can be real, which is exactly why gain harvesting is worth doing with the whole year's picture in view. But it's the reason gain harvesting is something to do thoughtfully, ideally with the year's full income picture in view, rather than blindly. The mechanics of those retirement-income interactions belong to the later retirement lessons; the point here is simply that the 0% bracket is a real and powerful gift, with edges worth respecting.
§4.2 — The same $11,000, in the Okonkwos' world
Now run the identical sale through the Okonkwos, and watch the same $11,000 gain produce a completely different number. The screen below sets the two households side by side.
The same $11,000 long-term capital gain in two households, and the wildly different tax each pays. Ruth is a single 67-year-old retiree in rural Ohio whose ordinary taxable income is essentially zero — a small pension and Social Security, all covered by her standard deduction. When her $11,000 gain stacks on top of that near-empty income, it lands entirely in the 0% rung, so she owes $0. The Okonkwos are a married Houston couple with about $500,000 of ordinary taxable income, which fills the brackets far past the 0% rung; their $11,000 gain stacks into the 15% band, and because their income is above the surtax threshold, an extra 3.8% applies, for an effective 18.8% — about $2,068 of tax. The identical gain — same size, same long-term holding — costs Ruth $0 and the Okonkwos $2,068. The only variable is whose income the gain stacks on top of: Ruth's empty glass versus the Okonkwos' full one. Your capital-gains rate is set by your income in the year you sell, not by the gain itself.
The Okonkwos' ordinary income of about $500,000 has already filled the glass far past the 0% rung and deep into the 15% band. So when their $11,000 long-term gain stacks on top, it lands squarely in the 15% bracket — there's no 0% headroom left for them; their income used all of it long ago. The gain is taxed at 15%, which is $1,650. And because their income is far above the $250,000 NIIT threshold, the 3.8% surtax lands on top of it too — another $418. Total tax on the same $11,000 gain: about $2,068, an effective 18.8%. Set the two outcomes next to each other and the lesson lands with its full weight. The exact same sale — $11,000 of long-term gain on an investment — costs Ruth $0 and costs the Okonkwos $2,068. The gain didn't change. The holding period didn't change. The only variable was whose income the gain stacked on top of — Ruth's near-empty glass versus the Okonkwos' overflowing one.
Two things to take from the contrast, one fair to the Okonkwos and one empowering for everyone. The fair point: the Okonkwos' $2,068 is not a punishment or a sign they did anything wrong — it's the natural cost of having a very high income and a large, successful taxable account, and at 18.8% they still keep more than 81 cents of every dollar of gain. A high earner's capital-gains tax is real but, even with the surtax, gentler than the rate on their salary. The empowering point, the one this whole lesson exists to deliver: your capital-gains rate is not a fixed feature of the investment — it's a feature of your income in the year you sell, and income is the second lever you hold. You can't make yourself Ruth. But you can notice that a year you're between jobs, or took a leave, or retired early and haven't started drawing your accounts yet, is a year with unusual 0%-or-15% headroom — and that timing a sale into such a year, or spreading a large sale across several years to keep each year's gain in a lower rung, can change your bill by real money. Ruth's $0 and the Okonkwos' $2,068 are the two ends of a spectrum that everyone sits somewhere on, and where you sit is partly a choice about when you sell.
§5 — Which bracket are you, and the timing you control
We've taken the fear apart, found the holding-period cliff, climbed the 0/15/20% ladder, learned how stacking sets the rate, and watched the same sale cost $0 and $2,068. This closing section does two things: it hands you a simple way to locate yourself on the ladder, and it gathers the timing levers — the concrete, repeatable moves that let you pay the gentler rate on purpose rather than by accident.
§5.1 — Finding your rung, and the levers that move it
Locating yourself is genuinely simple, and it follows from everything above. Take your ordinary taxable income — roughly your income minus your standard deduction — and find where it sits relative to the 2026 lines: for a single filer, below about $49,450 means a long-term gain likely starts in the 0% rung; between there and $545,500, the 15% rung; above that, into 20%. For a couple, the lines are $98,900 and $613,700. Then ask one more question: is my income above the NIIT threshold ($200,000 single, $250,000 married)? If so, add 3.8% to whatever rung I'm in. That's the entire diagnosis: your ordinary income locates the bottom of your gain in the glass, the rungs tell you the rate from there up, and the surtax is a yes/no add-on at the top. The interactive tool at the end of this lesson does exactly this calculation on your own numbers — including the short-versus-long difference and how much 0% headroom you have left — so you can see your real situation rather than a character's.
Now the levers, gathered in one place, because this is the toolkit the lesson hands you. Lever one, time: hold for more than a year before selling whenever you reasonably can, to turn a short-term gain taxed at your full ordinary rate into a long-term gain at 0/15/20 — Maya's $900 on a $10,000 gain, for the price of patience. Lever two, income timing: realize gains in your lower-income years. A gap between jobs, a sabbatical, the early-retirement years before pensions and required withdrawals start — these are windows of unusual 0%-and-15% headroom, and a gain you can choose to take in such a year is taxed far more gently than the same gain in a peak-earning year. Lever three, spreading: when you have a very large gain, you don't have to realize it all at once — selling a piece each year can keep each year's gain in a lower rung instead of pushing the whole thing into 20%-plus, the way the Okonkwos' single $150,000 sale spilled over the line. Lever four, pairing: gains and losses net against each other, so a year you realize a gain can be a year you also trim a loser to offset it — the harvesting strategy that's the heart of Lesson 39. And a quieter fifth consideration that's really the absence of a lever: sometimes the right move is not to sell at all, because investments held until death get that basis step-up and pass to heirs with the gain wiped clean — the reason Ruth's inherited fund had only an $11,000 gain instead of a lifetime's worth (the full story is Lesson 61). You won't use every lever every year. But knowing they exist is the difference between a tax that happens to you and one you steer.
One operational reminder before we close, because it's the stumble that turns a manageable tax into a nasty surprise: a brokerage withholds nothing from your gains. Your paycheck has tax taken out before it reaches you; your investment account does not. So when you realize a meaningful gain, the tax on it isn't handled automatically — it comes due when you file, and if it's large enough you may need to make an estimated tax payment during the year to avoid a penalty. It's not a reason for fear, just for a heads-up: set aside the tax on a big realized gain when you take it, the way you'd set aside any bill you know is coming. The mechanics of estimated payments live in Lesson 45; the habit to carry is simply that the bill is yours to remember, because no one withholds it for you.
§5.2 — Which one is you — and into Phase 6
Three people met the same tax this lesson, and the through-line is that none of them faced a monster. Maya — the everyday investor on the edge of the holding-period cliff. Her lesson is the first lever: before selling at a profit, check how long you've held, and if you're near a year, ask whether you can wait, because crossing the line turned her $2,400 short-term tax into a $1,500 long-term one — $900 saved for a month's patience. If you have a gain and a date, you are Maya, and the move is simply to look at the calendar before you click sell.
Ruth — the low-income seller, sitting in the 0% bracket. Her lesson is the second lever at its most powerful: when your income is low, your long-term gains can be taxed at literally nothing, so a low-income year is the time to sell what you've been afraid to sell, harvest gains on purpose, and reset your basis for free — mindful only of the income knock-ons at the edges. If you're retired, between jobs, or otherwise in a lean-income year, you may be Ruth, and the fear of selling may be costing you a free opportunity. And the Okonkwos — the high earners, paying 18.8% today and brushing the 23.8% ceiling on a big sale. Their lesson is that even at the top, the tax is gentler than the rate on a salary, and that spreading large sales and pairing them with losses keeps more of the gain. If you've filled every sheltered account and have a large taxable account throwing off gains, you're closer to the Okonkwos, and your move is to manage the timing and size of what you realize. Wherever you fall among the three, the same two levers — how long you hold, and the income you stack the gain on — are the controls, and they're partly yours.
This is the opening of Phase 6, the taxes phase, and it sets the pattern for everything that follows: the tax code is full of rules that look like threats and turn out, on inspection, to be levers — things you can understand and, more often than people expect, steer. We started with capital gains because selling at a profit is the most common taxable event an investor meets, and because the fear around it freezes so many sensible decisions. Next, in Lesson 39, we turn the idea of gains and losses netting into a deliberate tool — tax-loss harvesting, losing on purpose to lower your bill, and the 30-day wash-sale rule that governs it. The fear came off capital gains this lesson. The rest of Phase 6 is about turning the tax code, piece by piece, from something done to you into something you do.
Scam Radar: the people who promise to make your capital-gains tax disappear
Capital-gains tax is real, modest, and — as this whole lesson showed — far gentler than the fear of it. That gentle reality is exactly what makes the scam in this corner work: it sells a cure for a disease that was never that serious. Wherever someone has a large appreciated asset and a dread of the tax on selling it, a promoter appears with a too-good-to-be-true promise to erase the tax entirely. These aren't street hustlers; they show up as polished "tax strategists," "wealth preservation specialists," and seminar hosts with slide decks. Here's what to watch for, and where to take it — and none of it is your fault to spot alone.
The "eliminate your capital-gains tax" scheme
The headline pitch is some version of "never pay capital-gains tax again" — usually aimed at someone about to sell a business, a rental property, or a big concentrated stock position. The vehicles have impressive names: a "monetized installment sale," a "deferred sales trust," a charitable structure that supposedly lets you sell tax-free and keep the money. The IRS publishes an annual "Dirty Dozen" list of exactly these schemes, several of which are built around bogus capital-gains elimination, and the agency has repeatedly warned that the promoters — not just the tax — are the danger: when one of these structures is challenged and collapses, it's the taxpayer who owes the back tax plus interest and penalties, while the promoter keeps their fee. The tell is the promise itself. Legitimate tax planning reduces or defers tax through well-understood rules (the levers in §5, holding periods, harvesting, timing into low-income years). It never makes a real gain vanish through a clever structure you've never heard of and can't quite explain after the pitch. If the core promise is "pay zero on a gain you'd normally owe a lot on," and the mechanism is a proprietary trust or an installment scheme sold for a fee, treat it as a scam until a fee-only fiduciary with no stake in selling it tells you otherwise.
The ghost preparer who edits your gains
A quieter danger arrives at tax time: the "ghost" preparer who offers to do your return cheaply, then inflates your cost basis or hides a sale to shrink your reported gain — and refuses to sign the return as the paid preparer, which is itself illegal. A real preparer signs your return and includes their PTIN (their IRS preparer ID number). The danger here is double: the preparer pockets a fee and vanishes, and you are the one who signed a false return and owes the tax, interest, and penalties when the mismatch with your brokerage's 1099-B surfaces — because the IRS gets a copy of that form too. The rule is simple: anyone who's paid to prepare your return must sign it; if they won't, walk away.
The "no 1099, so it's not taxable" myth
This one isn't a person — it's a belief that quietly does real harm, especially around crypto. The myth: "if I didn't get a tax form for it, the gain isn't taxable." Not true. A capital gain is taxable whether or not a form was issued; the form is a report, not the trigger. Crypto sales, some peer-to-peer transactions, and certain platforms historically didn't generate the tidy 1099-B that a brokerage sends — but the gain is owed all the same, and the IRS treats deliberately omitting it as evasion, not an oversight. Anyone telling you a gain is tax-free because "there's no paperwork" is giving you advice that ends with you owing back taxes and penalties. The gain is yours; so is the obligation to report it.
Before you trust anyone with a tax-elimination promise or your return, verify them — it's free and takes minutes. Check whether a paid preparer has a valid PTIN and credentials in the IRS Directory of Federal Tax Return Preparers (irs.gov), and check anyone calling themselves an investment advisor in FINRA's BrokerCheck (brokercheck.finra.org) and the SEC's adviser tool at adviserinfo.sec.gov — the disclosure sections there are what tell you something. A promoter who can't be found in any of these, or who dodges when you ask for credentials, has answered your question.
And know where to report it. Abusive tax schemes and promoters: the IRS (Form 14242 for promoter schemes, and the broader reporting tools at irs.gov). Tax-preparer fraud or a ghost preparer: the Treasury Inspector General for Tax Administration (TIGTA) and IRS Form 14157. An "advisor" selling a bogus structure as a security: the SEC at Investor.gov and FINRA. Any fraud at all, even with no loss: the FTC at ReportFraud.ftc.gov. The shame that keeps people quiet — the worry that you should have seen through a polished pitch — is exactly what lets the promoter move on to the next person. You don't deserve that shame, and reporting is how the next seller-with-a-big-gain gets warned.
If you already sold — and the tax wasn't what you hoped
If you're reading this with a knot in your stomach because you already sold something and the tax stung — you flipped a position a few weeks before it would have gone long-term, or you dumped a big winner all in one year and got bumped into a higher bracket, or a 1099 showed up in February with a gain you weren't braced for — this part is for you, and it carries no lecture. You are not the cautionary tale. You're the overwhelmingly common case: someone who made a perfectly reasonable decision to sell, without a map of a tax system almost no one explains until after the fact. Let's set the self-blame down and look at what's actually true, because in most versions of this the damage is smaller than it feels and the next move is entirely yours.
First, the most likely truth: the bill was probably smaller than the dread. Reread §1 — you were taxed only on the gain, not the whole sale, and if the gain was long-term it was taxed at 15% or even 0%, leaving you most of the profit. People remember selling "a $40,000 position" and brace for a catastrophe, when the actual taxable gain might have been $6,000 and the tax a few hundred to a couple thousand dollars. Pull up the actual numbers before you let the feeling decide; the realized gain and its tax are usually a fraction of what the fear estimated. And whatever it was, it was the price of an outcome you wanted — you only owed it because you made money.
If you sold short-term when waiting would have made it long-term, that one's worth understanding so it doesn't repeat — but it's done, and it's not a moral failing. The cliff is invisible unless someone shows it to you, which is what §2 just did. The lesson isn't regret; it's the habit going forward: before the next sale at a profit, check the purchase date. If you sold a large gain all at once and watched it climb into the 20% rung or trip the surtax, the same applies — next time, the levers in §5 (spreading a big sale across years, timing into a lower-income year, pairing it with a loss) are right there. The mistake teaches the technique.
What you can still do now
There's often more repair available than people realize. If you have losers in your taxable account, you can still realize a loss to offset gains you've already taken this year — losses net against gains dollar for dollar, and up to $3,000 beyond that comes off your ordinary income, with the rest carrying forward (that's Lesson 39's whole subject, and it's worth reading before year-end). If the surprise was an under-withholding problem — a big gain with no tax set aside — you can adjust your remaining withholding or make an estimated payment to blunt any penalty (Lesson 45). And if a 1099 looks wrong — a cost basis that seems too low, a sale you don't recognize — you can get it corrected by your brokerage rather than overpaying; the basis your broker reports isn't always complete, especially for older or transferred holdings.
You don't have to carry this as a verdict on your competence. The tax already paid is spent, and it bought you something — a position you wanted out of, cash you needed, a rebalanced portfolio. The part of this you still control is everything ahead: the next sale you time better, the loss you harvest to offset a gain, the big position you unwind across years instead of all at once. That's not consolation — it's genuinely where the leverage is, and it's all in front of you.
The Advisor's Move, Decoded — "We'll harvest your gains at 0%"
The move
A wealth advisor, reviewing a client's accounts, says something that sounds genuinely sophisticated: "You're in a low-income year, so we're going to do some tax-gain harvesting — realize gains up to the top of your 0% bracket, pay nothing on them, and step up your cost basis. And going forward we'll manage the timing of your sales so you never pay more capital-gains tax than you have to." It sounds like exactly the kind of thing you pay an advisor for — and the underlying idea is real and good. The question, as always with this fixture, is whether it's worth the fee, and whether it's something you could do yourself.
The logic — and it's sound
Unlike some advisor moves, this one rests on real tax mechanics — the exact ones this lesson taught. In a low-income year, your 0% bracket has headroom (§3.2), and you can realize long-term gains that stack into that headroom at a 0% rate, then immediately rebuy to reset your cost basis higher — so future gains are measured from a higher starting point. There's no wash-sale rule on gains (that rule only restricts harvesting losses), so the rebuy is clean. Done in the right year, it's free basis step-up. Timing sales to stay in a lower rung, spreading a big sale across years, pairing gains with harvested losses — all of it is genuine, and a good advisor coordinating it across a complex situation is providing real value. This is not a scam move; it's a legitimate technique. The decode is about who needs to pay for it.
The DIY substitute
Here's what the pitch doesn't volunteer: for a straightforward situation, gain harvesting is something you can do yourself, and it's mostly arithmetic this lesson already handed you. Estimate your ordinary taxable income for the year, subtract it from the top of your 0% bracket ($49,450 single, $98,900 married, for 2026) to find your headroom, and realize that much long-term gain before year-end — then rebuy if you want to keep the position. Ruth could do exactly this without paying anyone. The interactive at the end of this lesson even computes your remaining 0% headroom directly. For a retiree with a simple return, or anyone with one taxable account and a low-income year, the move is a afternoon's work, not a service worth an ongoing percentage of your assets. Where an advisor earns the fee is genuine complexity — large accounts, multiple income sources, the interaction with Social Security taxation and Medicare surcharges (IRMAA), coordinating harvesting with a withdrawal strategy across many years. The skill is knowing which situation you're in.
Is your advisor worth the fee? — the tell
The tell here isn't whether the advisor knows the technique — it's whether they're actually doing it for your specific numbers, or just using the impressive vocabulary to justify the bill. Ask three plain questions. "What is my ordinary taxable income this year, and how much 0% or 15% headroom does that leave me?" — a real advisor answers with your numbers, not a generality. "Are you checking the knock-on effects — Social Security taxation, IRMAA, ACA subsidies — before we realize these gains?" — because a harvest that saves $500 in capital-gains tax while triggering a $1,000 Medicare surcharge is a net loss, and a good advisor models that. And "Would I be able to do this myself, and if so, what specifically am I paying you to handle?" — an honest advisor names the real complexity they're managing; an advisor billing 1% of your assets for arithmetic you could do in a spreadsheet is the one to question. The move is legitimate. Whether you need to outsource it is the actual decision, and the answer depends entirely on how complicated your situation really is.
Reassurance
If this lesson left you with any residue of the old dread — that selling is a tax trap, that the system is rigged to take your gains, that you need an accountant just to sell a fund without making an expensive mistake — it's worth setting that weight down, because the real picture is far kinder than the fear, and the most important moves are genuinely simple.
Start with the size of the thing. You're taxed only on the gain, never the whole sale, and only when you choose to sell — nothing is taken while you hold. And when you do sell something you've held more than a year, the rate is gentle by design: 0%, 15%, or for the highest earners 20%, all below what a paycheck is taxed at. Even at 15% you keep 85 cents of every dollar of gain; even the Okonkwos, with the surtax on top, keep more than 81 cents. Many people — anyone in a low-income year, every retiree like Ruth with modest income — pay nothing at all. The monster the word "capital gains" conjured turns out, on inspection, to be a modest toll on a good outcome, and one a great many investors don't pay at all.
Then the part that should feel like getting the wheel back. You hold two levers over the rate, and neither requires expertise — just attention. Hold for more than a year when you can, and the harsh short-term rate becomes the gentle long-term one; that single habit was worth $900 to Maya on a $10,000 gain. And notice your income: in a low-earning year, your gains can be taxed at 0%, so the lean year is the year to sell what you've been avoiding. You don't have to master the whole tax code. You have to remember two questions before you sell — how long have I held this, and what's my income this year — and you've now answered both for yourself once already, on three different people's situations.
And if you get it imperfect, the system is forgiving. Sell a little early and pay the higher rate, and you've still kept most of your gain. Take a gain you didn't have to — there's no penalty, just a modest tax. Realize a loss along the way, and it shelters your gains and even some of your salary, and waits for you in future years if there's more of it. There is no single high-stakes, irreversible capital-gains decision you have to get perfectly right. There's just a gain, a holding period, and an income — three things you can check before you click sell. Check them, lean on the two levers, and let the rest be the small, fair toll it actually is. That's enough, and it's well within what you can do, starting with your very next sale.
Common questions
Do I owe capital-gains tax if I haven't sold anything — just because my investments went up?
No. This is the single most reassuring fact in the whole topic. Growth you haven't sold is an unrealized gain, and the tax code simply ignores it — your account can climb for years and you owe nothing on the increase. The tax only happens when you sell and turn that paper gain into a realized gain. You, not the calendar, choose when that moment arrives. The one exception that surprises people: if you hold a mutual fund (or some ETFs), the fund itself can sell winning holdings inside it and pass you a capital gain distribution, usually each December — and that is taxable for the year even though you didn't sell your shares. That's a feature of high-turnover, actively managed funds especially, and a reason broad low-turnover index funds are more tax-friendly to hold in a taxable account (the deeper version of that idea is asset location, Lesson 41). But absent a fund distribution, the rule holds: no sale, no tax.
How long do I have to hold something to get the lower long-term rate?
More than one year — and read that carefully, because the boundary catches people. Holding for exactly one year is still short-term. You need to hold for at least one year and one day to qualify as long-term. The IRS counts starting the day after you buy, through and including the day you sell. Why it matters so much: a short-term gain (held one year or less) is taxed at your ordinary income rates — the same as your salary, often 22%, 24%, or higher — while a long-term gain gets the preferential 0/15/20% rates. The gap is large. Maya, our Seattle engineer, faced exactly this: selling her $10,000 gain at eleven months would cost $2,400 at her 24% ordinary rate, while waiting about a month to cross into long-term territory drops it to $1,500 at 15% — $900 saved for the patience of holding a few more weeks. One caution, though: don't hold an investment you genuinely want out of just to reach the long-term rate. The market can move against you by more than the tax you'd save. The holding period is a tiebreaker, not a reason to stay in a bad position.
If I sell a $30,000 investment, do I pay tax on the whole $30,000?
No — only on the gain, the profit, the part that's more than you paid. The amount you originally paid is your cost basis, and the tax looks only at sale price minus basis. If you bought that investment for $22,000 and sell it for $30,000, the taxable gain is $8,000, not $30,000. The $22,000 was already your money, taxed when you earned it; it isn't taxed again on the way out. This is the misunderstanding that freezes the most people — they brace for tax on the whole balance when the real target is just the growth. So a position you bought for $22,000 and sold for $30,000, if held more than a year and you're in the 15% bracket, owes $1,200 (15% of the $8,000 gain) — and you keep the other $28,800. The scary version of this is almost always four or five times bigger than the real one.
What's my actual capital-gains rate — how do I figure out which bracket I'm in?
For long-term gains, find your ordinary taxable income (roughly your income minus your standard deduction) and compare it to the 2026 lines. For a single filer: at or below $49,450, your long-term gains start at 0%; from there up to $545,500, they're 15%; above $545,500, 20%. For a married couple filing jointly: $98,900 is the top of the 0% rung and $613,700 is where 20% begins. Then one more check: if your income is above the NIIT threshold ($200,000 single, $250,000 married), add 3.8% to whatever rate you land on. The key subtlety is stacking — your ordinary income fills the lower rungs first, and your gain is taxed by where it lands on top. So a gain can be partly 0% and partly 15% if it straddles a line. The interactive tool at the end of this lesson runs this exact calculation on your own numbers, including your remaining 0% headroom. And remember these are federal rates — most states tax gains too, usually as ordinary income (Lesson 46).
I reinvest all my dividends and gains automatically — am I still taxed on them?
Yes, and this trips up a lot of careful people. Reinvesting doesn't make income tax-free; it just means the cash was used to buy more shares instead of landing in your pocket. A dividend that's automatically reinvested is still taxable in the year you receive it, and a capital gain distribution from a fund is taxable even if it's plowed straight back into the fund. The reinvestment is a separate, second event — you got the income (taxable), then you used it to buy more (which sets a new cost basis on those new shares). The silver lining is in that last part: because each reinvested dividend buys shares at a recorded cost basis, you've already 'paid for' that basis, so you won't be taxed on it again when you eventually sell — only on its future growth. But the dividend or distribution itself is taxed the year it's paid, reinvested or not. (Whether your dividends get the favorable qualified rate or the higher ordinary rate is Lesson 40's subject.)
What is this 3.8% extra tax I've heard high earners pay on investments?
It's the Net Investment Income Tax (NIIT) — a 3.8% surtax that lands on top of your regular capital-gains rate once your income is high enough. It kicks in when your MAGI (modified adjusted gross income — for most people, just their adjusted gross income) exceeds $200,000 for a single filer or $250,000 for a married couple. Above that line, an extra 3.8% applies to your investment income — capital gains, dividends, interest — though notably not to wages or to withdrawals from retirement accounts. It stacks on top of the 0/15/20% rate, so a high earner in the 15% bracket actually pays 18.8%, and one in the 20% bracket pays 23.8%. Our high-earning couple, the Okonkwos, pay 18.8% on a typical gain because of it. One quirk worth knowing: the $200,000/$250,000 thresholds were set in 2013 and are never adjusted for inflation, so each year a few more households cross the fixed line — a slow, quiet expansion of who owes it. If your income is below those thresholds, the surtax simply doesn't apply to you.
I'm retired with a low income — do I really pay 0% on my gains? That sounds too good to be true.
It's true, and it's one of the genuine gifts in the tax code. Long-term gains are taxed at 0% as long as your total taxable income — including the gain — stays under the 0% ceiling ($49,450 single, $98,900 married, for 2026). Because of stacking, a person with little ordinary income has most of that ceiling as 'headroom,' and gains that fill it are taxed at literally nothing. Ruth, our 67-year-old retiree on a small pension and Social Security, sells an inherited fund for an $11,000 long-term gain and owes $0 federal tax on it, because her income is low enough that the gain never climbs out of the 0% rung. Deliberately doing this — realizing gains in a low-income year to pay 0% and reset your cost basis higher — is called gain harvesting, and it's a real strategy for retirees in their early, lower-income years or anyone in a lean year. Two honest cautions: it's the federal rate (your state may still tax the gain), and realizing the gain raises your income, which for someone on Social Security or Medicare can pull some Social Security into being taxed or nudge Medicare premiums up a tier — so for moderate incomes it's worth doing with the full year's picture in view. In Ruth's case the gain does nudge a small slice of her Social Security into being counted, but her large standard-and-senior deduction still wipes out every dollar of taxable income, so she owes $0 anyway and stays well below the Medicare-premium tiers — the gift survives the fine print for her. But yes: in a genuinely low-income year, 0% is real.
My mutual fund sent me a 'capital gain distribution' but I never sold anything — why am I being taxed?
Because a fund taxes you on what happens inside it, not just on what you do. When a mutual fund's manager sells winning holdings during the year — to rebalance, to meet redemptions, or just because the strategy says so — the fund realizes gains, and by law it must pass those gains through to you, the shareholder, as a capital gain distribution (usually paid out each December). You owe tax on it for that year even though you personally didn't sell a single share. This genuinely surprises people, and it feels unfair, but it's how funds work. The practical lesson: actively managed funds that trade a lot generate big, unpredictable distributions, which makes them tax-inefficient to hold in a taxable account; broad index funds and most ETFs trade far less and distribute far less, which is part of why they're the tax-friendly choice for a taxable account. It's also a reason Ruth's expensive, actively managed inherited fund was quietly costing her in taxes every year she held it, on top of its high fees. Matching the right investment to the right account is the subject of asset location, Lesson 41.
Does my state tax capital gains too, on top of the federal tax?
Usually yes — and here's the catch that surprises people: most states that have an income tax give capital gains no break at all. They tax your gains as ordinary income, at the same rate as your wages. So the preferential 0/15/20% federal treatment is a federal-only kindness; a resident of California, New York, or most other income-tax states owes state tax on a gain the federal government may have taxed at 0% or 15%. The flip side: a handful of states — Texas, Florida, Washington, Nevada, and a few others — have no state income tax, so investors there owe nothing to the state on gains (our Houston couple and Seattle engineer benefit from this). Washington is an odd exception-to-the-exception: no general income tax, but it levies a separate 7% tax specifically on very large long-term gains, above roughly $280,000 in a year — high enough that it only touches sizable sales. The bottom line: whatever rate you compute from this lesson is the federal piece, and your state may add a meaningful amount on top. The full state picture, including the friendliest states and the municipal-bond angle, is Lesson 46.
How much does the short-term-vs-long-term difference really add up to — is it worth waiting?
It can be one of the highest-return things you do for the least effort — but it depends on your bracket and the size of the gain. The difference is the gap between your ordinary income rate (on a short-term gain) and your long-term rate. For a middle-to-upper-income person, that's often the gap between 22-24% and 15% — roughly 7 to 9 percentage points of the entire gain. On Maya's $10,000 gain, waiting from eleven months to just past a year saved $900 (24% short-term versus 15% long-term). On a $50,000 gain at the same brackets, the same patience would be worth around $4,500. For a high earner it can be even larger — short-term gains can hit 32-37% ordinary rates versus a 20% long-term rate. The break is biggest for people with high ordinary rates and meaningful gains, and it costs nothing but time. The honest limit, again: a few weeks of extra holding exposes you to a few weeks of market movement, which on a volatile position can dwarf the tax savings — so it's a strong reason to wait when you're genuinely indifferent about timing, and a weak one when you have a real reason to sell now. For a patient long-term investor who wasn't in a hurry anyway, though, simply timing sales to land past the one-year line is close to free money.
Check yourself
This is the L38 interactive, and it turns the whole lesson into a calculator for your own situation — the two questions that set your rate, answered live on your numbers instead of a character's. Choose your filing status, enter your ordinary income and the size of a gain, and flip the gain between short-term and long-term: the tool stacks the gain on top of your income exactly the way the tax code does, applies the 2026 ordinary brackets to a short-term gain and the 0/15/20% brackets (plus the 3.8% surtax where your income triggers it) to a long-term one, and shows you the tax each way — so the holding-period cliff becomes a number you can see. It also shows the single most actionable figure in the lesson: your remaining 0% headroom, the amount of long-term gain you could realize this year and pay nothing on, given where your income leaves the glass. Every figure recalculates from your inputs using the verified 2026 thresholds, and the defaults reproduce the lesson's canonical results exactly — Maya's $2,400-vs-$1,500 holding-period cliff (the $900 difference), Ruth's $0 on her $11,000 gain in the 0% bracket, and the Okonkwos' $2,068 (18.8%) on the same gain. Change the numbers to your own and watch your real rate appear. Every figure is the federal tax and is illustrative for learning, not tax advice — and your state may add to it. It runs entirely in your browser with React state only; nothing is saved, nothing is sent anywhere, and your numbers vanish when you reload.
An interactive capital-gains tax calculator. You choose a filing status (single or married filing jointly), enter your ordinary taxable income after deductions, a gain amount, and whether the gain is short-term or long-term. The tool stacks the gain on top of your ordinary income the way the tax code does, then taxes a short-term gain at the 2026 ordinary brackets and a long-term gain at the 0, 15, or 20 percent brackets, adding the 3.8 percent surtax when income is high. It shows the tax each way, the holding-period difference, your effective long-term rate, and how much long-term gain you could still realize at 0 percent. It is pre-filled with Maya, a single filer with $128,900 of taxable income and a $10,000 gain, which reproduces $2,400 of tax if short-term versus $1,500 if long-term, a $900 difference. Preset buttons also load Ruth, a single retiree with zero taxable income and an $11,000 gain who owes $0 in the 0 percent bracket, and the Okonkwos, a married couple with $500,000 of taxable income whose same $11,000 gain costs $2,068 at an effective 18.8 percent. Every figure uses the verified 2026 thresholds, is federal only, and is for learning, not tax advice. Nothing you enter is saved.
Glossary
The profit when you sell an investment for more than you paid — sale price minus cost basis. You're taxed only on this gain, never on the whole sale amount, and only when you sell (introduced in L25; the rates are L38's subject).
An unrealized gain is growth you haven't sold — profit on paper, ignored by the tax code; a realized gain is one you've locked in by selling, and only realized gains are taxed. You choose when to realize, and therefore when to be taxed.
What you paid for an investment — the number your gain is measured against (gain = sale price − basis). Reinvested dividends add to basis; inherited assets get a stepped-up basis at the prior owner's death. Tracking methods are L42's subject.
How long you owned an investment before selling, counted from the day after purchase through the day of sale. One year or less = short-term; more than one year (at least a year and a day) = long-term. The single line that sets which rate applies.
A gain on something held one year or less. Gets no tax break — it's taxed at your ordinary income rates, the same as your paycheck (often 22%, 24%, or higher). The 'flipper's rate' the code charges for quick selling.
A gain on something held more than one year. Taxed at the preferential 0%, 15%, or 20% rates — deliberately set below ordinary income rates to reward patient investing. The cheapest tax break in the system; it costs only time.
The three-rung ladder for long-term gains (and qualified dividends), separate from the ordinary income brackets. 2026 single-filer thresholds: 0% up to $49,450 of taxable income, 15% up to $545,500, 20% above (married: $98,900 and $613,700).
The rule that decides which capital-gains rung your gain lands on: ordinary income fills the brackets from the bottom first, then the long-term gain stacks on top and is taxed by where it sits. Income lifts the gain; the gain doesn't lift the income.
The space left in the 0% rung after your ordinary income fills the bottom — the amount of long-term gain you could realize and pay nothing on. Large for low-income people (Ruth), zero for high earners (the Okonkwos). The basis of gain harvesting.
A 3.8% surtax on investment income (gains, dividends, interest — not wages or retirement withdrawals) for higher earners, when MAGI exceeds $200,000 single / $250,000 married. Stacks on top of the capital-gains rate → 18.8% or 23.8%. Thresholds are fixed, never inflation-adjusted.
An income measure — for most people, just their adjusted gross income — used to decide whether the NIIT surtax applies. Distinct from taxable income (which sets the capital-gains bracket); confusing the two is a common error.
A loss from selling below cost basis. Losses first cancel gains dollar-for-dollar; excess loss can offset up to $3,000 of ordinary income per year ($1,500 if married filing separately), and anything beyond that carries forward indefinitely. Turning this into strategy is L39.
Capital losses beyond what you can use this year don't expire — they carry forward to future years, keeping their short- or long-term character, until fully used to offset gains or $3,000/yr of ordinary income.
Deliberately realizing long-term gains in a low-income year to fill your 0% headroom and pay 0% tax, then optionally rebuying to reset cost basis higher (no wash-sale rule applies to gains). Powerful for retirees and lean-income years; watch the AGI knock-ons (Social Security taxation, Medicare IRMAA).
A taxable gain a mutual fund (or some ETFs) passes to you when the fund's manager sells winning holdings inside it — owed even if you never sold your own shares, usually paid each December. Larger for high-turnover active funds; a reason to favor index funds in taxable accounts.
Two named exceptions to the 0/15/20% rates: gains on collectibles (art, coins, metals) are taxed at a maximum 28%, and the depreciation portion of a gain on rented real estate (unrecaptured Section 1250 gain) at a maximum 25%. Edge cases most investors never meet.
Key takeaways
- You're taxed only on the gain (sale price minus cost basis), never the whole balance, and only in the year you choose to sell.
- The holding-period cliff is one year and a day - exactly one year is still short-term, taxed at your full ordinary rate instead of the gentle 0/15/20%.
- Long-term gains stack on top of your ordinary income, so where the gain lands in the glass - not the gain itself - sets whether it's 0%, 15%, or 20%.
- The 3.8% NIIT surtax stacks on top for high earners above $200,000 single / $250,000 married, making the real rate 18.8% or 23.8%.
- The same $11,000 long-term gain costs Ruth $0 in the 0% bracket and the Okonkwos $2,068 - proof your rate is set by your income, not by the gain.
Knowledge check
5 questions
What two things determine the tax rate on a capital gain - both of which you have real control over?