Do you pay less tax replacing salary income with long-term capital gains?

Trying to figure out if do you pay less tax replacing salary income with long-term capital gains, or if it only looks that way on the surface. Situation: I've been building up a taxable brokerage account for a few years and I have the option to cut my hours (and salary) this year. The idea would be to sell appreciated index fund shares I've held more than a year and live on those proceeds instead. My W-2 would drop, the LTCG would go up by roughly the same dollar amount. I know the LTCG rates are lower than ordinary income rates in general, but I've seen people say the net investment income tax and other phaseouts can eat into that. Are there thresholds I need to worry about, and is the swap actually worth it on paper before I talk to a CPA?

42 comments

Schedule D and your 1040 are where this plays out. Long-term capital gains get their own rate calculation — they don't just stack on top of your ordinary income at the same rate. The IRS Qualified Dividends and Capital Gain Tax Worksheet (inside the 1040 instructions) shows how the rates are determined based on your total taxable income, not just the gains themselves. So yes, in many situations swapping salary for LTCG does reduce your federal tax rate on that income, but the actual number depends on your total picture.

Isaac L.

Author

The worksheet inside the 1040 instructions — is that something I fill out separately or does tax software run it automatically?

Software runs it automatically but you can find it in the Form 1040 instructions on irs.gov and work through it by hand to see the math before you make any decisions. Worth doing once so you understand what's driving the number.

One thing that tripped a lot of people I know: lowering W-2 income can actually push your LTCG into a lower rate bracket, not just keep it the same. The LTCG rate that applies to you depends on your total taxable income including the gains. If your ordinary income drops enough, more of your gains might be taxed at 0%. The flip side is that the 3.8% net investment income tax kicks in above certain thresholds — check Topic no. 409 at irs.gov and the NIIT instructions (Form 8960) to see where those lines fall for your filing status.

Isaac L.

Author

Form 8960 — hadn't looked at that one. So the NIIT is a separate calculation on top of the regular LTCG rate?

Form 8960 computes it separately, yes. It applies to the lesser of your net investment income or the amount your modified AGI exceeds the threshold. Your software will generate it automatically if you're over the line, but you want to know in advance whether you're close.

Publication 550 at irs.gov walks through the holding period rules and how gains are classified. I uploaded my 1099-B and my draft 1040 to taxr.ai and had it map every lot to the right part of Form 8949 and flag which ones were long-term versus short-term — saved me from accidentally treating a 13-month hold as short-term. For your planning question it also walked me through how the LTCG worksheet interacted with my W-2 line by line so I could see the actual tax difference before I sold anything.

Isaac L.

Author

That's exactly the kind of pre-sale check I need. Did it also catch anything about the NIIT exposure?

Form 8960 came up in that review too — it flagged that I was close to the threshold and showed me which income items counted as net investment income versus which didn't. Gave me enough to bring a specific question to my CPA rather than going in blind.

Worth flagging: Social Security and Medicare taxes (FICA) don't apply to capital gains, but they do apply to wages. So if you're currently paying FICA on that salary income, replacing it with LTCG also removes that payroll tax cost. The employee share alone is meaningful. That's part of why the effective rate difference can be larger than just comparing the income tax rates.

Schedule SE isn't relevant here since this is W-2 income not self-employment, but the point stands — FICA on wages is real money and gains don't have it.

Isaac L.

Author

Good point, I hadn't factored FICA into the comparison at all. That tilts it further toward the gains side.

Don't forget your state. Some states tax LTCG at the same rate as ordinary income — California being the obvious one — so the federal advantage can be partly or fully offset depending on where you live. The federal math might look great and your state return looks the same either way.

Isaac L.

Author

I'm in a state with no income tax so that at least isn't a complication for me.

Form 8949 is where each individual sale gets reported, then it flows to Schedule D. If you're selling lots you've held various lengths of time, make sure you identify which shares you're selling (specific identification method) rather than defaulting to FIFO. Using specific ID lets you pick the lots with the longest holding period and potentially the highest basis, reducing both the gain amount and making sure everything lands in Part II (long-term) rather than Part I.

Specific identification has to be confirmed with the broker before or at the time of sale, not after. Some brokers call it "specific lot" in their interface. If you don't elect it, they default to FIFO and you lose control over which lots get sold.

Isaac L.

Author

Specific ID — will check my broker's interface. I had no idea the method had to be chosen at the time of sale.

Schedule D line 15 is your net long-term gain or loss. What I found useful when I was doing a similar analysis: I pulled my prior year 1040 and had Taxr walk through how my AGI would change under two scenarios — lower W-2, higher LTCG versus current mix. It drafted a comparison showing which lines on the return shifted and whether any credits or deductions phased out. That made the conversation with my accountant much faster because we had real numbers to react to rather than starting from scratch.

Isaac L.

Author

Schedule D line 15 feeding into the overall AGI picture — that's where the phaseout risk shows up too, right? Like if AGI goes up even with the swap?

AGI can actually go either direction depending on your income mix. Capital gains do increase AGI just like wages do, so if you're replacing dollar-for-dollar the AGI stays similar. The benefit comes from the preferential rate applied to the LTCG portion, not from a lower AGI per se.

Publication 550 (chapter 4) covers the holding period rules in detail. The key point for planning: the holding period for securities traded on an established market begins the day after the trade date you bought and ends on the trade date you sell — not the settlement date. So if you're counting days to clear the one-year threshold, use trade dates.

Isaac L.

Author

Trade date, not settlement date. Good to know — I was vaguely thinking settlement date counted.

A lot of people assume settlement date. For most standard trades it doesn't change the outcome much, but for trades right at the one-year mark it can matter.

The effective rate comparison also needs to include any impact on your itemized deductions or the standard deduction. Changing your income mix won't affect the standard deduction, but if you itemize, some deductions are limited by AGI. Worth checking whether your charitable contribution deduction, medical expenses, or anything else shifts with your income change.

Form 6251 is worth at least glancing at if you have ISOs or other AMT preference items. For most people with only W-2 and LTCG the AMT isn't triggered, but if you've got stock options in the mix it changes the analysis entirely. LTCG is still included in AMTI, so the preferential rate doesn't eliminate AMT exposure if you're already in that territory.

Isaac L.

Author

No ISOs here, just regular index fund shares. So Form 6251 probably isn't my concern, but good to know for others reading.

For the NIIT specifically: net investment income includes capital gains, dividends, and certain other passive income — but NOT wages. So replacing wages with gains doesn't reduce NIIT exposure, it can actually increase it if your modified AGI stays above the threshold. The Form 8960 instructions on irs.gov lay out exactly what's included and what's excluded from net investment income.

Form 8960 line 5a is where capital gains feed in. Wages never appear on that form at all — they're excluded from NII by definition. So the swap can actually increase your NIIT hit if the LTCG pushes your modified AGI higher.

Isaac L.

Author

So if my LTCG replaces wages dollar-for-dollar and my modified AGI stays about the same, the NIIT exposure is roughly the same or slightly higher because the gains are inside NII but the wages weren't?

Form 8960 modified AGI threshold is the same either way, but the composition of NII changes. If wages drop and gains rise by the same amount, more of your income is now subject to the NIIT calculation even if total AGI doesn't move. Whether you owe more depends on whether you were already above the threshold.

Topic no. 409 at irs.gov gives the clearest federal overview of how LTCG rates interact with ordinary income. When I was restructuring how I took income from my portfolio last year, I uploaded a few years of 1040s to Taxr and it built a side-by-side showing how the LTCG worksheet result changed as I adjusted my W-2 versus gains mix — made it easy to see exactly where the rate shifted.

Isaac L.

Author

A multi-year comparison like that is exactly what I'd want. Did the analysis show a clean breakeven or was it more of a gradual taper?

The Qualified Dividends and Capital Gain Tax Worksheet showed a step function, not a gradual taper — there's a point where the 0% rate on LTCG kicks in and then another where the 15% applies, and they're driven by total taxable income. The transition isn't smooth so the exact income numbers matter a lot.

ACA premium tax credit is another thing to watch if you're buying health insurance through the marketplace. LTCG counts toward MAGI for ACA purposes just like wages do, so the swap itself may not change your subsidy eligibility. But if reducing W-2 income was also going to reduce your total MAGI, that's a separate variable worth modeling before you change your hours.

Isaac L.

Author

I have employer coverage so ACA isn't a factor for me, but that's a really important one for anyone who's self-employed or leaving a job.

Schedule D instructions are worth reading in full before you do this — the section on the LTCG rate worksheets explains how gains are layered on top of ordinary income, which is the core mechanic here. Your ordinary income fills up the lower brackets first, then gains are taxed starting at whatever bracket remains.

That layering is the key insight. Ordinary income and LTCG don't just average together — the ordinary income occupies the bottom of the tax brackets and the gains sit on top of it, which means the rate that applies to the gains depends on how much ordinary income you have below them.

Isaac L.

Author

So cutting W-2 income basically lowers the "floor" that the gains are sitting on, which can push them into a lower LTCG bracket or even the 0% zone. That makes the whole strategy make a lot more sense to me now.

One caveat on the strategy: if you have capital loss carryforwards from prior years, those will offset your LTCG first before any rates are applied. Topic no. 409 covers the carryforward rules. If you have prior losses sitting on Schedule D, your effective gain might be lower than you're planning for — could be good news or could mean the tax benefit from the swap is smaller than expected.

Isaac L.

Author

No carryforward losses for me, fresh account, but good point for anyone who had a rough year in the market recently.

Bottom line from everything here: the federal rate advantage of LTCG over wages is real and the math generally favors the swap, but the NIIT, your state tax, ACA MAGI, and phaseouts of any credits you currently claim all need to be checked. Run the numbers on a draft 1040 before cutting your hours — the Qualified Dividends and Capital Gain Tax Worksheet inside the 1040 instructions is the right place to start.

Isaac L.

Author

This thread answered every piece of the question I had. Running a draft 1040 with the LTCG worksheet before I do anything is the clear next step. Thanks all.