Does ordinary income affect the 0 percent long-term capital gains rate for single filers?

Filing single this year and I have a mix of W-2 wages, a small amount of freelance income, and some long-term stock gains from shares I sold last spring. I kept hearing that there's a 0% rate on long-term capital gains if your income is low enough, so I was hoping some of my gains would land there. But my tax software is showing none of them qualifying at 0%, and I can't figure out why. My wages plus the freelance put me pretty close to whatever the threshold is. Does ordinary income push you into a higher bracket for the capital gains rate even if the gains themselves are small? I already looked at Schedule D and the Qualified Dividends and Capital Gain Tax Worksheet but I still can't tell which number is doing the stacking. Would really appreciate help understanding how this actually works.

31 comments

Yes, ordinary income absolutely stacks under your long-term capital gains. The way the worksheet works, your taxable income is one pile: wages, self-employment income, and everything else sits at the bottom, and the long-term gains sit on top. The 0% rate only applies to the portion of gains that falls within the 0% threshold for your filing status. If your ordinary income alone already fills that space, your gains get pushed into the next bracket even if the gain amount is tiny.

Paul S.

Author

That explains it. My W-2 plus the Schedule C income basically ate up all the room before the gains even showed up. I had no idea it worked as a stack like that.

Went through this last year. Had about four months of consulting income that pushed my ordinary income high enough that my stock gains landed entirely in the 15% bucket. The Qualified Dividends and Capital Gain Tax Worksheet in the Form 1040 instructions walks through the stacking step by step — line by line you can see exactly where the gains start and what rate applies to each dollar.

Paul S.

Author

I actually printed that worksheet out and I see the line now where it subtracts the ordinary income from the threshold. That's the moment where my gains got bumped.

Same worksheet caught me off guard too. Worth doing it by hand once just to see the mechanics clearly.

I uploaded my 1040 draft and my Schedule D into taxr.ai last filing season when I was confused about the same stacking question. Taxr went through the Qualified Dividends and Capital Gain Tax Worksheet line by line on my actual numbers and flagged exactly which line was pushing my gains out of the 0% range — turned out my freelance net was larger than I thought after the self-employment deduction. Helped me understand what I was actually looking at before I filed.

Paul S.

Author

A line-by-line pass on my own numbers is what I need. I think my Schedule C net is the culprit but I'm not 100% sure.

The technical answer is that your "taxable income" for purposes of the rate thresholds includes everything — it's not just the gains in isolation. The IRS lays this out in Topic no. 409 at irs.gov. The 0% rate applies only to the amount of net long-term capital gain that, when added to your other taxable income, stays within the threshold. Once ordinary income fills the threshold, the gains start at whatever the next rate is.

I learned this the hard way. Retired early one year, thought I had low income, took a big Roth conversion — and the conversion counted as ordinary income and bumped all my long-term gains out of the 0% zone. People forget that IRA distributions, Roth conversions, even Social Security that becomes taxable all stack the same way wages do.

Roth conversion stacking is brutal. Planned mine over two years just to keep room for the gains.

Paul S.

Author

Good point, I didn't think about those other income types. Mine is just W-2 and Schedule C but useful to know for the future.

Worth noting: it's your taxable income that matters, not gross income. So above-the-line deductions like the student loan interest deduction and the self-employment tax deduction, plus your standard deduction (which comes off after AGI), all reduce the number before you check whether gains fall in the 0% zone. Sometimes people think they're over the threshold and they're actually not once you subtract everything.

Subtracting everything first actually saved me a couple hundred dollars. I ran the worksheet before and after the SE deduction and the difference moved a slice of my gains back into 0%.

Paul S.

Author

So I should make sure my Schedule 1 is showing the deductible half of SE tax before I assume I'm over the line. Got it.

Taxr helped me here too — I gave it my W-2, my 1099-NEC, and my 1099-B and it prepared a draft of the capital gain tax worksheet using my numbers and showed me which slice of gains would be at 0% versus 15%. I could see the stacking visually on the draft. Really clarified what the software was doing under the hood.

I ran into this with RSU vesting income. RSU ordinary income shows up on your W-2 and it stacks just like wages. So even if you sell the shares immediately after vesting and the gain from vesting to sale is tiny, the vesting income itself can fill the entire 0% threshold. I had Taxr look at my W-2 and my broker's 1099-B side by side and it spotted that the RSU compensation income already embedded in my W-2 was the number pushing my gains into 15%.

Paul S.

Author

No RSUs for me this year but that's good to know. The W-2 hiding RSU income is something I'd never have caught on my own.

RSU overlap with the threshold is a common blind spot. The 1099-B shows the sale but doesn't remind you that the vesting income already hit your W-2.

To put some structure on this: the Qualified Dividends and Capital Gain Tax Worksheet in the 1040 instructions is the controlling calculation. The key step is where it takes your taxable income, subtracts your net qualified dividends and net long-term capital gains, and that remainder is your "ordinary income" floor. The 0% bucket is whatever space exists between that floor and the threshold. If the floor is at or above the threshold, every dollar of gains faces at least the 15% rate.

This is the clearest mechanical description of it. The floor concept is what most people are missing when they're confused about why the rate didn't apply.

Holding period matters here too, and the rules for it are in Publication 550 at irs.gov. If any of those shares were held a year or less they're short-term, taxed as ordinary income, and they stack at the bottom too — not at the top with the long-term gains. Worth double-checking your trade dates before assuming everything qualifies as long-term.

Paul S.

Author

I checked those — all held more than a year, so they're long-term. But I can see how mixing short and long-term would make the worksheet even more confusing.

Saw someone above mention deductions reducing taxable income — also worth remembering that if you're itemizing instead of taking the standard deduction, a larger itemized deduction reduces taxable income further and can open up more 0% room. Same logic, different lever.

I tried to game this by harvesting gains in a year I expected low income. It worked, but I had to be careful about the wash sale rules — they don't apply when you're harvesting gains (wash sales only apply to losses), but I wanted to make sure I wasn't confusing gain harvesting with loss harvesting. Worth being clear on which you're doing.

Good distinction. Gain harvesting to use up 0% space is a real strategy and wash sale rules aren't triggered by it, since those rules apply to losses only per Publication 550.

Something that tripped me up: net investment income tax is a separate calculation from the capital gains rate brackets. Even if some gains qualify for the 0% long-term rate, you might still owe NIIT depending on your modified AGI. That's figured on Form 8960, not Schedule D. Check the Form 8960 instructions if your income is anywhere near the NIIT threshold.

Important add. The two calculations run on parallel tracks. A gain can be 0% for regular tax purposes and still be subject to NIIT. Different thresholds, different form.

I checked my software line by line after reading a thread like this one. The numbers that told me everything were lines 15 and 16 of Schedule D feeding into the worksheet. Once I saw how the qualified dividends and capital gains worksheet pulled the smaller of those and stacked it above the ordinary income, I finally understood why my rate was what it was.

If after all this your ordinary income is just barely over the threshold, it might be worth checking whether maxing a traditional IRA contribution before the filing deadline would reduce your AGI enough to bring some gains back into 0% territory. Deductible IRA contributions reduce adjusted gross income, which flows into taxable income after the standard or itemized deduction. The IRA contribution limits and deductibility rules are in Publication 590-A.

Paul S.

Author

I hadn't thought about using an IRA contribution to shift the number. I might still be within the window for that. Worth running the worksheet again with that change to see how much moves.

Ended up just accepting the 15% rate on mine once I did the math. The stacking left no room at 0% and the gap was too large to close with any deduction I had available. Knowing why it happened still felt better than not understanding it.