How can I reduce a large capital gains tax bill before I file?

Sold a rental property I'd held for about 12 years and the gain is way bigger than I expected. Broker estimated somewhere in the range that's going to hurt badly. I also sold some index fund shares earlier this year that did well. I'm filing jointly and we have no other big losses to offset anything. I've looked at harvesting losses from a couple of underperforming stocks I still hold, and I know I need to be careful about wash sales if I want to rebuy. I also heard something about opportunity zone funds and installment sales but don't really understand either one. And someone mentioned that charitable giving could help. What are the legitimate options here to reduce a large capital gains tax bill? Trying to understand what's actually worth doing versus what's just noise, and what has a deadline before year-end.

42 comments

Tax-loss harvesting is the most straightforward move left if you still have unrealized losers in your portfolio. Sell them before December 31. The loss offsets your gains dollar for dollar on Schedule D — short-term against short-term first, then the netting rules apply. Watch the wash sale window: if you sell at a loss and buy back substantially identical shares within 30 days before or after, the loss is disallowed and gets added to the new shares' cost basis instead. You can buy a similar-but-not-identical fund immediately to stay invested.

Carla W.

Author

Wash sale window: so the 30 days runs both directions from the sale date, not just forward?

Correct. 30 days before AND 30 days after the sale. So if you sold on December 15 you can't have bought substantially identical shares anytime from November 15 through January 14. The IRS is clear on that in Publication 550.

Installment sale is worth understanding for real property. If you structured the sale so the buyer pays over multiple years, you only recognize the gain as payments come in, spreading it across tax years. But if the sale already closed and you received full payment, that ship has sailed for this year. It's a planning tool for next time or if you can still negotiate terms before closing.

Carla W.

Author

Sale already closed, full payment received. So installment isn't available to me now?

Right, once you receive full proceeds it's fully recognized in the year of sale. Installment treatment under section 453 has to be set up before or at closing. Something to know for future transactions.

Qualified Opportunity Zone (QOZ) funds are real but often misunderstood. You invest the capital gain amount (not the full proceeds, just the gain) into a QOZ fund within 180 days of the sale. That defers recognition of that gain. The rules are layered and the fund itself has to meet IRS requirements. It doesn't eliminate the gain forever, just defers it and potentially reduces it if you hold long enough. Worth reading the IRS opportunity zone guidance before committing to anything.

The 180-day clock starts on the sale date, right? Not when you receive payment?

For most sales yes, it starts on the date of sale. But partnership K-1 gains have different start dates. Since this sounds like a direct property sale, the sale date is your clock start.

When I sold a large stock position two years ago I uploaded my 1099-B and the preliminary Schedule D to taxr.ai and had it list every adjustment that could legally reduce what landed on line 16 — things I'd missed like prior year carryover losses I'd forgotten about. Really helped me see the full picture before I decided on harvesting. If you have any capital loss carryforwards from prior years, those flow into Schedule D and reduce this year's net gain directly. Check your last year's Schedule D line 16 and the carryover worksheet.

Carla W.

Author

Prior year carryover — I think I had a small loss in 2022. Would that show on my 2023 return somewhere?

Yes, look at your 2023 Schedule D and the Capital Loss Carryover Worksheet that should be in your 2023 return file. Whatever carried forward from 2022 into 2023 would be reflected there, and anything unused again carries to 2024.

Charitable giving angle: if you donate appreciated stock directly to a qualified charity instead of selling it, you generally deduct the fair market value and never recognize the capital gain yourself. The charity, being tax-exempt, sells it without owing tax. You avoid the gain entirely on that portion. This only works for shares you give directly — if you sell first and donate cash, you still owe the gain. Talk to the charity about accepting stock transfers; most large ones do.

Carla W.

Author

The rental property gain is already realized. But I still have appreciated index fund shares I haven't sold. Could I donate some of those instead of selling?

Exactly. The shares you haven't sold yet are where the charitable donation strategy still applies. The rental property gain is locked in. Donating the index fund shares directly avoids recognizing that gain — reduces the total gain you're reporting this year.

Don't overlook the basis calculation on the rental property itself. Depreciation recapture is taxed at a different rate than the long-term capital gain portion, but you also get to include in your basis all the capital improvements you made over the years, your closing costs when you bought, and your selling expenses. A lot of people undercount basis and overstate the gain. Pull every record — receipts for a new roof, HVAC, additions — it all adds to basis and reduces the taxable gain.

Carla W.

Author

I definitely added a deck and replaced the roof while renting it. Where does that show up on the tax forms?

Those go into your adjusted basis calculation before you get to the forms. You'd add them to your original cost basis. Then you subtract the depreciation you claimed (or should have claimed) over the years. A rental property sale is reported on Form 4797 rather than Form 8949, and the net adjusted basis goes on its cost or other basis line.

One thing people get wrong: you can't just defer or avoid a capital gain by reinvesting the proceeds into another stock or fund (other than a QOZ fund for the deferral). The sale triggers recognition regardless of what you do with the money after. I see this misconception a lot. The only exceptions with real legal basis are QOZ funds, installment sales, and 1031 exchanges — but 1031 is only for real property held for use in a trade or business or for investment, and I believe the rules now exclude personal property.

Had a similar situation last year — sold two appreciated positions and was staring at a big Schedule D number. I ran my 1099-B and the gain worksheet through Taxr and it flagged that one of my sales had the wrong cost basis because my broker hadn't adjusted for a stock split years back. Getting that corrected dropped the gain noticeably. Worth checking every lot individually if you have multiple transactions. If basis was reported to the IRS but is wrong, enter the 1099-B basis in column (e) of Form 8949, use code B in column (f), and fix it with an adjustment in column (g).

Carla W.

Author

How do you correct it on the form if the broker reported it to the IRS already?

If box A or D is checked (basis reported to IRS), you enter the basis the broker showed on the 1099-B in column (e) even though it's wrong, then put the adjustment in column (g) as a negative number if the correct basis is higher. Code B in column (f). Don't just put the right number in (e) and move on — the IRS matching will catch the difference.

Roth conversion timing matters here too — if a large capital gain pushes you into a higher bracket this year, it might affect whether a Roth conversion makes sense this same year vs. waiting. Not a direct way to reduce the capital gains tax but it affects overall planning. Worth mapping out your projected AGI before making other moves.

If you have kids in college or other family members in a lower tax bracket, gifting appreciated shares to them before you sell is another strategy some people use. The recipient's tax rate on the gain when they sell could be lower. But there are gift tax rules and kiddie tax rules that can limit this depending on the recipient's age and income. Don't do this without checking those rules or talking to a CPA.

Carla W.

Author

Kiddie tax angle — my youngest is 20 and in college. Does kiddie tax still apply at that age?

Kiddie tax can apply to full-time students under 24 if their earned income doesn't exceed a threshold. It's worth checking Publication 929 or asking a tax professional before gifting to a college-age child specifically for this reason.

Deferred compensation plans or maxing out retirement contributions won't directly reduce capital gain taxes — those reduce ordinary income, and long-term capital gains are taxed on their own rate schedule. But reducing your overall AGI can sometimes keep you below the threshold for the net investment income tax (NIIT), which stacks on top of capital gains for higher earners. So retirement contributions still matter for the full picture.

AGI threshold for NIIT — where do I find the actual number?

The thresholds are in the Form 8960 instructions on irs.gov. The IRS also covers it in the investment income topics. I'd rather point you there than state a figure that could be outdated by filing season.

Worth separating the rental property gain into its two components before panicking at the total number. The depreciation recapture portion is capped at 25% for most people (unrecaptured section 1250 gain). The remaining long-term gain gets the preferential long-term capital gain rate. These are reported differently on Schedule D and the Unrecaptured Section 1250 Gain Worksheet. Your total tax may be lower than a flat estimate suggests.

Carla W.

Author

I had a CPA estimate it as one lump number. Should I ask them to break out the 1250 recapture separately?

Yes, ask them to show you the Unrecaptured Section 1250 Gain Worksheet. It's part of the Schedule D instructions and it's what drives the tax on the recapture piece. Seeing it broken out shows you exactly which part has the most room for planning.

Went through a similar rental sale situation and had Taxr read through my entire Schedule D draft line by line — it caught that I'd double-counted a selling expense in both the basis and the closing costs column, which would have overstated my loss adjustment. Small error but it would've been a problem. I had it list every line that looked inconsistent before I handed the draft to my CPA. Really useful to have a second set of eyes on the numbers before the professional review.

Carla W.

Author

Double-counting selling expenses sounds like exactly the kind of thing I'd miss. Those go in the basis calculation, not separately on 8949?

Selling expenses reduce your amount realized (proceeds minus selling costs), so they come off the top before you calculate the gain — count them only once. A rental sale goes on Form 4797, not Form 8949, and its basis line takes what you paid plus improvements and expense of sale, minus depreciation. Mixing them up inflates either the basis or understates the proceeds figure.

Has anyone here actually used a Donor-Advised Fund (DAF) for this? You contribute appreciated securities to the DAF, get the charitable deduction in the year you contribute, and then recommend grants to actual charities over time. The DAF sells the appreciated shares tax-free. It lets you bunch the charitable deduction into a high-income year (like a big capital gains year) even if you spread the actual giving over several years.

DAF is legitimate and useful exactly in this scenario. The deduction timing is what makes it valuable — you get it the year you fund it, not the year the grants go out.

Carla W.

Author

I hadn't considered a DAF. Would the deduction be limited relative to AGI?

Yes, there are AGI-based limits on charitable deductions — the percentage depends on the type of property donated and the type of recipient organization. The IRS covers this in Publication 526. Any amount above the limit carries forward for up to five years.

Losses on personal-use property — your car, your personal home if sold at a loss — are not deductible and can't offset your capital gains. I mention this because someone always brings up selling a car at a loss to offset gains and it doesn't work. Only investment property losses count.

Pulling it all together from this thread: (1) harvest investment losses before year-end, mind the wash sale window; (2) check prior-year carryover losses on last year's Schedule D; (3) verify adjusted basis on the rental including all improvements; (4) separate depreciation recapture from long-term gain; (5) consider donating appreciated shares or funding a DAF; (6) look at QOZ fund if the gain is large and you have tolerance for illiquidity. The rental recapture and the index fund gains are already two separate problems that need separate planning.

Carla W.

Author

This summary helps a lot. The carryover check and the basis verification are both things I can do right now before I even talk to my CPA again.