Should I sell index funds at short-term gain to get cash back?

I have about 8 months of positions in a couple of broad market index funds sitting in my taxable brokerage account. Life stuff came up and I need liquidity. I know if I sell now the gains are short-term since I haven't crossed the one-year mark yet. My broker's app is showing a pretty decent unrealized gain on both positions. I already checked my emergency fund and it's tapped. My question is whether selling index funds at short-term gain to get cash back is actually as bad as people say, or if there's a math situation where it still makes sense. I don't have any capital losses sitting around to offset anything. Currently single filer, W-2 income only, no other investments really.

33 comments

It depends entirely on your marginal ordinary income tax rate. Short-term gains are taxed as ordinary income, same rate as your W-2 wages, so stacking a gain on top of your salary could push part of it into a higher bracket. The question isn't "is it bad" — it's whether the cost of the tax hit is lower than the cost of whatever alternative you're considering (credit card interest, a loan, etc.). Run the actual numbers before deciding.

Hannah A.

Author

That's the comparison I should be making. I keep thinking of the tax bill as a pure loss but you're right that it has to be weighed against the cost of the alternative.

Also worth checking: do you actually have a gain on each lot, or are some lots underwater? Index funds bought at different times can have very different cost bases. Your 1099-B next February will show the per-lot basis if your broker reports it. Selling a losing lot and a gaining lot separately might not change your cash need but would change the tax math.

Hannah A.

Author

Both positions are in the green but I bought in tranches so some early lots have more gain than recent ones. I didn't think about choosing which lots to sell — can I actually do that?

Yes, most brokers let you select specific lots before you place the sell order. You'd use specific identification as your cost basis method. Once you sell, that choice is locked in, so do it before confirming the trade.

One thing I'd flag: you said you don't have losses to offset, but are you sure there's nothing in another account? A spouse's account, a Roth, anything? Wash sale rules aside, coordinating gains and losses across accounts before selling can matter a lot.

Hannah A.

Author

Single, no spouse. I have a Roth IRA but nothing sold in there recently and I don't think I have unrealized losses in it either. So yeah, nothing to offset.

Before I sold a chunk of a fund last year in almost this same situation, I uploaded my brokerage statements to taxr.ai and it mapped out each lot, flagged which ones were short-term vs. long-term, and drafted a projection of what the Schedule D would look like under two different selling scenarios. Really helped me see the actual tax line before I pulled the trigger. For your situation: short-term gain goes on Form 8949, Part I, box A if your broker reports basis to the IRS (which almost all do for covered securities). It flows to Schedule D line 1b, then onto Form 1040. The tax itself is at ordinary income rates, not the lower long-term rates.

Hannah A.

Author

This is super helpful. So I'll definitely get a 1099-B for whatever I sell, and the gain lands on Form 8949 Part I. Good to know the box matters — I always just skipped past that.

The box matters because box A means basis is already reported to the IRS, so if the broker's basis is wrong you still enter the 1099-B basis in column (e) of Form 8949 and fix it with code B in column (f) and an adjustment in column (g). Most of the time with index funds the broker's basis is right so it's straightforward.

Practically speaking, if you need the cash in the next few weeks, the tax bill isn't due until you file (or pay estimated taxes). So the liquidity question and the tax question are on different timelines. You get the cash now; the tax comes later. That said, if the amount is large enough that you'd owe a penalty for underpayment, you'd want to factor that in.

This is true but don't forget that "later" might be April of next year with a bill you haven't budgeted for. Setting aside the estimated tax portion in a savings account right after the sale is the move.

Hannah A.

Author

Good point. I'd rather not get to April and owe a chunk I forgot about. I'll look at whether I need to make a Q4 estimated payment.

Worth knowing: the holding period for securities traded on an established market starts the day after your trade date (not settlement date) and ends on the trade date you sell. So if you're close to the one-year mark, count carefully. You need MORE than one year — if you bought on March 10 last year and sell on March 10 this year that's exactly one year, still short-term. March 11 is your first long-term day.

Hannah A.

Author

Wait really? I assumed exactly one year counted. So I need to hold past the anniversary date, not just to it?

Exactly. The IRS rule in Publication 550 says more than one year for long-term. The day you acquired the property isn't counted; the day you dispose of it is. So day 366 is your first long-term day for most positions.

If you're 8 months in and the gain is significant, the math of waiting 4 more months to get long-term rates can be very compelling depending on your income. Long-term rates are lower than short-term for most filers. The IRS instructions for Schedule D and Topic 409 on irs.gov lay out how the rates work. I'd model both scenarios before deciding.

Had a similar decision last spring. I ran my brokerage PDF through Taxr and it pulled out every lot with its acquisition date, proceeds estimate, and short-term vs. long-term flag, then showed me what Form 8949 would look like if I sold all vs. just the older lots. Saved me a lot of spreadsheet time. Anyway — the actual answer for your situation: if even one lot has crossed the one-year line, selling only that lot gets you long-term treatment on that piece. You don't have to sell everything at once.

Hannah A.

Author

I hadn't thought about partial sales. I could sell just the oldest lot to get some cash and leave the rest. That's probably the move while I figure out if I really need all of it.

Don't overlook the "just wait" option either. If you can cover the cash need another way for even 90 days, some of those 8-month lots get to 11 months. A couple months after that and you're long-term on everything. Time is a real variable here, not just a tax abstraction.

To make sure the basics are clear: short-term capital gain = held 1 year or less, taxed as ordinary income. Long-term capital gain = held more than 1 year, taxed at preferential rates. That distinction alone can be a meaningful difference depending on your bracket. Topic no. 409 on irs.gov has the breakdown.

Small correction to your framing: it's not "1 year or less" vs "more than 1 year" in a fuzzy sense — the cutoff is precisely more than one year for long-term. Exactly one year is still short-term. Your summary is right, just wanted that to be sharp since the original poster was asking about timing.

Something people miss: if you're selling to cover a genuine emergency and you end up with a relatively small gain, it might barely move your tax bill. Run the marginal-rate math on just the gain amount, not your total income. The tax hit on a small gain at a moderate rate might be much less scary than you're imagining.

Hannah A.

Author

That's honestly reassuring. I think I've been catastrophizing the tax piece. The actual dollar impact of the gain might be pretty manageable if I look at it on its own.

Also: index fund dividends and any distributions you received while holding are separate from the capital gain on the sale. Those show up on a 1099-DIV, not the 1099-B. Don't mix them up when you're estimating your total tax exposure from the position.

When I was sorting out a similar sale last year I gave Taxr my draft Schedule D and the 1099-B from my broker side by side, and it spotted that one lot had the wrong acquisition date entered — would have made it look long-term when it was actually short-term. Worth double-checking that stuff before you file. On the reporting side: each lot you sell gets its own row on Form 8949. If your broker reports basis as a covered security, you check box A in Part I, fill in the acquisition date, sale date, proceeds from column (d), and cost basis in column (e). If the numbers match your 1099-B exactly and there are no adjustments, column (g) stays blank and column (f) is blank too.

Hannah A.

Author

Good to know about the acquisition date issue. I'll make sure to cross-reference what the broker shows with my own purchase confirmations before I file.

One scenario you haven't mentioned: do you have any positions that are at a loss right now, even unrealized? If you do, selling a loser at the same time as the gainer could offset some or all of the short-term gain on Schedule D. Worth a quick look at your whole account before committing to only selling the winner.

Hannah A.

Author

I checked again and both positions are up. No losers to harvest right now. Would have been nice.

Unfortunate timing but at least you know. If the market dips before you sell you could revisit, though obviously don't wait on a sale you need just to hope for a dip.

To be clear on the Form 8949 flow for anyone reading: proceeds and basis land on Form 8949, then each part totals to Schedule D (Part I short-term to Schedule D line 1b if basis was reported, line 2 if not, or line 1a if you use Exception 1 and skip 8949 entirely for unajusted covered transactions). Schedule D net short-term gain feeds into Form 1040 and gets taxed at ordinary rates. There's no separate short-term capital gains line that gets special treatment — it just adds to your income.

Bottom line from this thread: if you need the money now, selling is a valid choice — just go in knowing the gain is ordinary income, pick specific lots if some are closer to one year than others, set aside what you'll owe, and report each lot on Form 8949 when you file. If you can wait a few months, the long-term rate difference might be worth it. Neither answer is wrong — it's about your actual cash need vs. the actual tax cost.

Hannah A.

Author

This wraps it up well for me. I'm going to look at my oldest lots, see if any are within a couple weeks of the one-year mark, and decide from there. Thanks everyone.