Does a capital gain count toward the income threshold for 20 percent rate?

Trying to figure out whether a capital gain counts toward the income threshold for 20 percent rate on long-term gains. I sold some index fund shares I've held for about four years, decent gain. My ordinary income from my job puts me somewhere in the middle bracket. I know the long-term rates are 0, 15, and 20 percent, but I can't figure out if the capital gain itself pushes me into the 20 percent bucket or if only my wages count. My broker sent a 1099-B and I've started filling in Form 8949 and Schedule D but I stopped at the rate calculation part. Everything I read online is vague about what exactly counts as "income" for the threshold test.

38 comments

Are you filing single or married filing jointly? That changes which threshold number applies, so it matters a lot for your answer here.

Sean H.

Author

Filing single. No other investment income besides this one sale.

Yes, the capital gain does count. Your taxable income for the threshold test includes the net long-term capital gain itself. So if your wages plus the gain together push your taxable income over the threshold, the portion above it gets taxed at 20 percent, not the whole gain.

Sean H.

Author

So the gain stacks on top of my ordinary income, and the threshold is applied to the combined total?

Exactly. Think of your ordinary income going in first, then the capital gain stacking on top. The 20 percent rate only applies to the slice that lands above the threshold, not to any gain that falls below it.

The Qualified Dividends and Capital Gain Tax Worksheet inside the Schedule D instructions is what actually runs the math. It walks you through stacking ordinary income first, then overlaying the capital gain. I uploaded my 1099-B and Schedule D draft to taxr.ai and it filled in the worksheet line by line and flagged which portion of my gain crossed the threshold. The worksheet itself is in the Schedule D instructions, not on the Form 8949 instructions page.

Sean H.

Author

Didn't know that worksheet existed. Is it inside the Schedule D instructions PDF or somewhere separate?

It's in the Schedule D instructions. If your Schedule D shows a gain on both line 15 and line 16, or you have qualified dividends, the software or the instructions route you to that worksheet instead of the regular tax table.

Wait, so the rate isn't just based on your W-2 income alone? I always thought the bracket was set by your salary.

Common mix-up. Your taxable income for the threshold includes everything: wages, self-employment income, ordinary dividends, and yes, the net capital gain itself. The capital gain doesn't get its own separate threshold test against zero.

That changes things for me. I've been estimating my exposure wrong all year.

Worth pointing out: it's the portion of the gain above the threshold, not all of it. So if your taxable income without the gain is already below the threshold and only part of the gain crosses it, only that crossing portion hits 20 percent. The rest stays at 15.

Sean H.

Author

That's actually reassuring. My wage income alone is below the threshold, so maybe only a small slice of this gain crosses it.

Had a similar situation last year with RSU vesting plus a stock sale in the same year. The RSU ordinary income pushed my wages up and I wasn't sure how much of the capital gain got layered into the 20 percent zone. I pasted my W-2 and 1099-B into Taxr and it built out the stacking calculation showing exactly where the threshold cut fell and what portion of the gain was above it. Helped me see the actual number before I finished Schedule D.

Sean H.

Author

Did it work off the actual form numbers or just estimates?

It read the actual boxes from the W-2 and 1099-B, so the calculation tracked the real figures. I still ran it past a CPA before filing because the RSU side had an AMT question, but the stacking piece was clear.

Does qualified dividend income stack the same way as capital gains for this threshold calculation?

Yes, qualified dividends and net long-term capital gains are treated together in the worksheet. They both get the preferential rate and both count toward taxable income for the threshold test.

One thing to watch: taxable income for the threshold is after the standard deduction or itemized deductions, not your gross income. So your adjusted gross income is not the number you compare to the threshold.

Sean H.

Author

Oh that's a useful distinction. So I should be looking at line 15 of Form 1040, the taxable income line, not line 11.

Correct. Line 15 is the one the worksheet uses. The deductions can make a real difference in whether any part of your gain crosses the threshold or not.

Is the 20 percent threshold indexed for inflation each year? I want to know if I should check the number every year before I sell.

The thresholds are adjusted annually. The Schedule D instructions for the year you're filing will have the current numbers. Don't use a figure from a prior year's instructions.

How does this work if you have both short-term and long-term gains? Do both count toward the threshold?

Short-term capital gains are taxed as ordinary income, so they go in with your wages before the long-term gain stacks. That can push more of your long-term gain into the higher rate zone even if the short-term gain itself doesn't get the preferential rate.

Net short-term loss offsets long-term gain first on Schedule D, right? So losses could actually help here.

Yes, Schedule D lines 15 and 16 net everything before the rate worksheet runs. A net short-term loss reduces the long-term gain that feeds into the stacking calculation.

The IRS topic page for capital gains and losses (Topic no. 409) gives a plain-language overview of the rate tiers if you want a starting point before diving into the Schedule D instructions.

Are there any situations where the capital gain wouldn't count toward the threshold? Like an installment sale or something structured differently?

Installment sale gain recognized in a given year still flows through Schedule D and into taxable income the same way. The structure of the sale changes when you recognize the gain, not whether it counts for the threshold test once recognized.

Coming back to your original situation: do you know yet whether your combined taxable income actually crosses the threshold? Have you run the Schedule D worksheet yet?

Sean H.

Author

Ran it last night. Turns out my ordinary income is comfortably below the threshold and the gain only pushes me a small amount over. So most of the gain lands at 15 percent and a thin slice hits 20. Much less than I feared.

Good outcome. That slicing is exactly what the worksheet is designed to show. Worth saving it with your return so you have the calculation documented.

What line on Schedule D actually feeds into the rate worksheet? I want to make sure I'm starting from the right number.

Schedule D line 18 (unrecaptured section 1250 gain) and line 19 (28 percent rate gain) affect the worksheet if they're nonzero, but for plain stock sales it's the net capital gain from Schedule D line 15 and line 16 that flow to Form 1040 and then into the rate worksheet.

Your 1099-B from the broker will show proceeds and cost basis. Make sure your Schedule D and Form 8949 entries match the 1099-B exactly before you get to the rate question, or the threshold calculation is running off wrong numbers.

Sean H.

Author

Already checked. My broker reported basis to the IRS (box D on Form 8949, since the shares are long-term) and the numbers match what I paid. No adjustments needed in column g.

Before the rate threshold even comes into play, make sure the gain is actually long-term: holding periods and how gains are characterized as short or long term are laid out in IRS Publication 550, which matters before you even get to the rate threshold question. Worth a read if you haven't gone through it.