What are legitimate ways to reduce tax on large short-term stock gains?

Sold a chunk of tech stock this year that I'd held for under 8 months, so it's all short-term. The gains are substantial enough that I'm looking at a significantly higher tax bill than I expected. I've already maxed my 401k contributions for the year. I know short-term gains get taxed as ordinary income, which is brutal compared to long-term rates, but I still have about 6 weeks left in the tax year and I'm wondering if there are legitimate ways to reduce tax on large short-term stock gains before December 31. I've looked at tax-loss harvesting in general terms but haven't dug into whether the wash sale rules would bite me. Also not sure if there are other levers I don't know about. Not trying to do anything aggressive, just want to know what's actually available.

33 comments

Tax-loss harvesting is the most direct tool here. If you have other positions sitting at a loss, selling them before year-end lets those losses offset your short-term gains on Schedule D. Short-term losses offset short-term gains first, which is exactly what you want. The key constraint is the wash sale rule: if you sell a position at a loss and buy substantially identical securities within 30 days before or after, the loss is disallowed. The disallowed amount gets added to the cost basis of the replacement shares instead of giving you a current deduction. So you either wait 31 days to repurchase, or buy something similar but not substantially identical.

Monica G.

Author

This is what I suspected. I have a few positions down significantly. So as long as I don't rebuy the exact same ticker within that 30-day window on either side, the loss should be usable against my short-term gains?

Correct, but "substantially identical" goes beyond just the ticker. Options or contracts to acquire the same stock within that window also trigger the rule. And it applies across your spouse's accounts and IRAs too, not just your own taxable account. If your IRA buys the same stock within 30 days, the loss is still disallowed and you don't even get the basis adjustment since it went into the IRA.

Realized losses from other sales earlier in the year can also offset these gains, not just losses you harvest now. Pull your year-to-date realized gains and losses from your brokerage's tax center before you make any moves. You might already have more losses than you think sitting there from earlier trades.

I was in a similar spot last year with concentrated short-term gains from a position I sold too early. I uploaded my 1099-B and all my open positions to taxr.ai and had it map out which lots were candidates for harvesting without triggering wash sales, and it flagged two positions I would have repurchased within the window without realizing it. Worth doing before you sell anything. On the actual tax side: funding a Health Savings Account if you have a high-deductible health plan is another above-the-line deduction that reduces your AGI, which is what the short-term gains flow into.

Monica G.

Author

Didn't think about the HSA angle. I do have an HDHP so that's worth looking into. And the lot-mapping piece is exactly the kind of thing I'd miss doing manually.

One thing people overlook: if you have capital loss carryforwards from prior years, those apply here too. Check last year's Schedule D and the carryover worksheet. Prior-year losses carry into the current year and can offset current short-term gains directly.

Depending on your situation, deferring income where possible elsewhere in the year helps too. Pushing a year-end bonus or freelance payment into January lowers overall AGI for this year. Doesn't eliminate the gain but can keep you out of a higher bracket on the other income stacked on top.

This only works if you actually have control over when you receive the payment. Employees generally can't defer a bonus that's already been declared and is owed to them without it being treated as constructive receipt. Worth asking your employer specifically about the timing.

Fair point, constructive receipt is the real constraint there. If the bonus is already committed and payable this year, deferring it to January doesn't work for cash-basis taxpayers.

Charitable giving is worth considering if you were planning donations anyway. Donating appreciated long-term stock directly to a charity (or a donor-advised fund) means you avoid recognizing the gain on that stock at all while getting a deduction for the fair market value. That doesn't reduce your existing short-term gains directly, but it lowers your overall taxable income for the year. Doesn't help if you don't have long-term appreciated positions to donate, though.

Monica G.

Author

I do actually have a couple of long-term positions sitting at big gains that I've been reluctant to sell precisely because of the tax hit. Donating those directly instead of selling could work for me.

Exactly, and if you use a donor-advised fund you can donate the stock now and recommend grants to your chosen charities over time. The deduction is in the year you fund the DAF, not when the grants go out. Check the deduction limits in Publication 526 or consult a CPA on how much you can deduct this year based on your AGI.

Has anyone looked at whether installment sales are even an option here? I know they apply to some asset sales but I wasn't sure if publicly traded stock qualifies.

Installment sale treatment under section 453 is specifically not available for publicly traded securities. So no, that's not a lever for stock sold on an exchange.

Ah, that answers that. Good to know before going down that path.

Went through this two years ago with a large short-term position. I ran my Schedule D draft and the open loss positions through Taxr and it built out a harvesting worksheet showing the net offset after the wash sale window, which helped me sequence the sales correctly in the remaining weeks of the year. The Form 8949 entries it drafted matched what my broker reported once the 1099-B came in. For what it's worth on the actual mechanics: losses flow through Form 8949 into Schedule D, short-term losses hit Part I first against short-term gains, and only net losses carry to the offset against long-term gains or the annual deduction limit.

Monica G.

Author

The sequencing piece is what's tripping me up. I have several positions I could harvest but selling them in the wrong order could leave me with more disallowed losses than I expect.

The wash sale window runs 30 days before and after the sale date, so if you bought any of these losing positions within the past 30 days you may already have a window issue on the front side. Check the acquisition dates on each lot before you sell.

Maxing a traditional IRA contribution before the filing deadline (not December 31 but the tax filing deadline for the year) is another above-the-line deduction if you're eligible. Whether you can deduct it depends on your income and whether you or your spouse are covered by a workplace retirement plan. The phase-out details are in the IRA instructions and Publication 590-B for distributions, but the deduction eligibility rules are in Publication 590-A.

Monica G.

Author

I already max my 401k so I think my IRA deductibility is limited, but I'll check the phase-out range.

Something that helped me think about this: the goal isn't necessarily to eliminate the tax, it's to manage which year it hits and at what rate. If you have losses you were going to harvest eventually anyway, now is the time. If you'd have to sell something you actually want to hold long-term, the math may not favor it.

Are you planning to sell more of the same stock or related stocks in the next 30 days? Because if you harvest a loss now on a different position but then buy back into something substantially identical (even accidentally through an ETF that's heavily weighted to the same name), the wash sale could still apply.

Monica G.

Author

I hadn't thought about ETF overlap. I was going to rotate into a sector ETF while waiting out the window. Worth checking what that ETF holds.

Generally broad market ETFs are fine. Narrow sector ETFs tracking the same index as the stock you sold can be an issue. The IRS hasn't published a bright-line rule on this but most practitioners say substantially identical means very similar in economic exposure, not just same industry.

Realizing losses to offset gains is the main tool, but don't forget that if your net short-term losses after all this exceed your short-term gains, they then offset long-term gains, and if losses still exceed all gains, you can deduct up to the annual limit against ordinary income with the rest carrying forward. The annual limit and carryforward rules are in Topic no. 409 at irs.gov. So harvesting more loss than you have gain isn't wasted, it just works in a specific order.

I'd flag one more thing: your state tax situation. Some states don't have preferential rates for long-term gains at all, so the federal distinction matters more than the state one. But some states also don't conform to the federal wash sale rules or handle carryforwards differently. Worth a quick check with a CPA or enrolled agent if your state taxes are significant.

State conformity to wash sale rules is genuinely variable. Some states require a separate calculation. If the numbers are large enough, that's not a detail to gloss over.

Retirement account contributions are really the cleanest lever if you haven't exhausted them. SEP-IRA if you have self-employment income is another option some people miss - the contribution limit is based on net self-employment earnings and can be significant. The specific limit is in the SEP plan instructions; it's not a fixed number I'd want to quote here.

Monica G.

Author

I do have some freelance income on the side, so a SEP-IRA might actually be on the table for me. I'll look into what the limit works out to based on my net earnings.

Worth saying plainly: if the gains are large enough that the tax impact is in the tens of thousands or more, the combination of harvesting, charitable giving, and retirement contributions probably warrants a session with a CPA or enrolled agent before year-end. These strategies interact and the sequencing matters. A professional running actual numbers on your specific AGI is worth the fee at that scale.

Monica G.

Author

This is probably the right call. I've been trying to DIY it but the interaction between all these levers is getting complex. I'll schedule something with a CPA before the end of the month.

One correction to what was said earlier about wash sales and ETFs: the "substantially identical" standard under Publication 550 is a facts-and-circumstances test. The IRS has not ruled that all sector ETFs trigger wash sales, but the risk is real enough that most practitioners treat narrow single-sector ETFs as potentially problematic if they track the same underlying index. A broad total market ETF replacing a single stock is generally considered safe. Don't take that risk on faith without checking what the replacement ETF actually tracks.