What's the "usual order" people mention, and is it a rule?
The shorthand is taxable accounts first, tax-deferred accounts next, Roth accounts last. It's a rule of thumb, not a rule: no section of the Code sets an order. The reasoning is that tax-deferred and Roth money keeps growing without yearly tax while you spend money that was already taxed. It's a starting point, not an answer. Brackets, health-coverage credits, Medicare premiums, required withdrawals later and what you leave to others can each pull another way, which is why the mix can differ from one year to the next. We don't recommend an order; your facts decide.
Sources
Authority, strongest first
- Code I.R.C. 1(h), 1(j)
- Code I.R.C. 72(t)(1)-(5), (10), (11)
No authority sets a withdrawal order. The interplay described on this page comes from 1(h) (stacking of gains), 72 (the extra tax), 408A (Roth ordering) and 36B (income for the credit).
What does "filling a bracket" mean?
Income is taxed in layers: the first slice of taxable income at the lowest rate, the next slice at the next rate, and so on. A low-income year leaves low-rate layers unused. Pre-tax money can be taken, or converted to Roth, in such a year up to the top of a layer that would otherwise go unused, rather than left to be taxed in a higher layer later. That is a planning method, not a rule, and it pays off only if rates later turn out higher than the layer you filled, which nobody knows. The 2025 law made the current brackets permanent, so they don't expire on a schedule, though the dollar amounts shift each year with inflation. The first worked example shows the arithmetic with made-up numbers.
Sources
What's the case against taking pre-tax money early?
Taxing pre-tax dollars in a low year pays off only if the alternative is worse, and the alternative isn't certain. Taking money early raises the income other rules measure: the premium tax credit this year, Medicare premiums 2 years later, the share of Social Security that's taxed, and the senior deduction, which shrinks as income passes a threshold. It can also spend money that might have stayed invested or gone to someone else. The case for it runs the other way: large pre-tax balances can force large required withdrawals later, and a surviving spouse can end up in single-filer brackets. Both directions are real, and which one dominates depends on facts a web page doesn't have.
Sources
What exactly is taxed when I sell from a taxable account?
Only the gain: what you received minus what you paid (your basis). The rest of the sale is a return of your own money. A gain on something held longer than a year is long-term and taxed at the lower capital gain rates, 0% for income up to a limit and 15% above it, up to a second limit past which a higher rate applies; a shorter holding period is taxed as ordinary income. Interest and dividends in the account are income in the year they are paid whether or not you take them out. Keep your basis records: a basis you can't show can't be used.
Sources
Authority, strongest first
- Code I.R.C. 1(h), 1(j)
- Code I.R.C. 1222(3), (4)
1222(3)-(4): long-term means held "for more than 1 year". 1(h)(1)(B)-(D): the zero, fifteen and twenty percent rates. The income limits are indexed; the 2026 amounts are in the federal-2026 library (Rev. Proc. 2025-32).
How do capital gains and ordinary income share the brackets?
Ordinary income (pre-tax withdrawals, conversions, pay, interest) fills the low brackets first, and long-term gains are stacked on top. So the 0% rate on gains is available only up to a taxable-income limit ($49,450 for a single filer and $98,900 on a joint return in 2026), and every dollar of conversion or IRA withdrawal uses up that room before any gain does. The last worked example shows it. Gains also count in the income used for the premium tax credit, whatever rate they're taxed at.
Sources
Authority, strongest first
- Code I.R.C. 1(h), 1(j)
1(h)(1)(A)-(B): the ordinary-rate tax is computed on "taxable income reduced by the net capital gain" and the zero rate applies to adjusted net capital gain up to the excess of the below-25-percent amount over the taxable income reduced by that gain. Gains are in AGI, so also in the credit's modified AGI (36B(d)(2)).
What is "gain harvesting" in the zero-rate band, and what does it do and not do?
It's a label, not a tax-law term. It means selling shares that have gone up, in a year when your taxable income leaves room in the 0% band, so the part of the long-term gain that fits in that room is taxed at 0%; any gain above it is taxed at the next rate. If you buy the same shares back, your basis is the new, higher price, so less gain is left to tax later. The wash-sale rule doesn't stop this: it blocks losses, not gains. What it doesn't do: the gain still counts as income for the share of Social Security that's taxed, the senior deduction phase-down, the premium tax credit and, two years on, Medicare premiums, and your state may tax it. The room is measured on taxable income after deductions, so it changes with every other number on the return. And the shares bought back start a new holding period.
Sources
Authority, strongest first
- Code I.R.C. 1(h), 1(j)
- Code I.R.C. 1091(a)
1(h)(1)(B): the zero rate applies to adjusted net capital gain up to the excess of the zero-rate amount over taxable income reduced by that gain. 1012(a): basis is cost. 1091(a) disallows losses only. 1223(3) tacks the old holding period only to shares acquired in a wash sale under 1091, so a repurchase after a gain starts a new period. Status: settled.
Does "harvesting" a loss help in a low-income year?
Sometimes less than people expect. A loss first offsets gains; any net loss left offsets up to $3,000 of other income a year ($1,500 if married filing separately), and the rest carries forward with no end date. Two retirement-year points. A loss used against a gain that would have been taxed at 0% saves no tax now, and it leaves less loss to carry to later years. And a loss deducted against ordinary income in a low bracket saves only that bracket's rate. The law does protect one case: if your deductions were larger than your income, so taxable income was below zero, the part of the yearly allowance that had no income to offset isn't treated as used and stays in the carryover. So the same loss can be worth more in a year with a large gain, a Roth conversion or higher income. The wash-sale rule still applies: buying the same or substantially identical shares 30 days before or after the sale, in any of your accounts, including an IRA, disallows the loss.
Sources
Authority, strongest first
- Code I.R.C. 1211(b); 1212(b)(1)-(2)
- Code I.R.C. 1091(a)
1211(b): losses allowed to the extent of gains plus the lower of the yearly limit or the net loss. 1212(b)(1): carryover keeps its character, no expiry. 1212(b)(2): the amount allowed under 1211(b) is treated as a short-term gain for the carryover only up to 'adjusted taxable income' (taxable income plus that amount and 'the deduction allowed for such year under
section 151 or any deduction in lieu thereof', negative where deductions exceed gross income). The 151 exemption amount is zero after 2017 (151(d)(5)(A)); whether the senior deduction in 151(d)(5)(C) is added back is not settled by anything we read (our reading: its placement in 151 suggests yes). 1091(a) for the wash sale; Rev. Rul. 2008-5 on IRA repurchases (see the capital gains page). 'Tax-loss harvesting' is not a Code term. Status: settled.