How long to hold a stock to avoid capital gains — what's the actual rule?

Trying to figure out how long to hold a stock to avoid capital gains at the higher short-term rate. I bought shares in a tech ETF back in the spring and I'm thinking about selling. My broker's app shows a little clock icon next to the position but doesn't explain the threshold. I pulled up my 1099-B from last year and saw how much of a difference the short-term vs long-term column made on my Schedule D, so I know it matters. I've read "over a year" in a few places but I want to understand exactly how the IRS counts the days — does it start the day I bought, the day after, settlement date? And does "long-term" actually mean zero capital gains tax or just a lower rate?

35 comments

The holding period rule: you start counting the day AFTER your trade date (not the settlement date, not the calendar date you clicked buy). The day you sell counts as the last day. So if you bought on March 5, the first day that qualifies as long-term is March 6 of the following year — that's the day you can sell and have it land in long-term. More than one year means long-term. One year or less means short-term. That's the dividing line per Publication 550.

Derek D.

Author

So March 5 buy means I need to sell on March 6 the next year at the earliest, not March 5? That's the part I always second-guessed.

Exactly. The day of purchase doesn't count. Day one of your holding period is March 6. So you need to sell on March 6 or later the following year to clear the more-than-one-year bar.

Long-term does NOT mean zero tax for most people. It means the long-term capital gains rate, which is lower than the short-term rate (short-term is taxed as ordinary income). Whether your long-term rate is zero depends on your overall taxable income for the year. The IRS doesn't publish a fixed rate in a vacuum — check the Schedule D instructions or Topic 409 on irs.gov for the current brackets.

Derek D.

Author

That clears up the "avoid capital gains" framing I had. I really meant avoid the short-term rate, not literally pay nothing.

Right, that's the distinction worth knowing. Some lower-income filers do qualify for a 0% long-term rate, but most people are aiming to get out of ordinary income treatment, not eliminate the tax entirely.

Settlement date trips a lot of people up. For stocks traded on an established exchange, the holding period starts the day after the trade date and ends on the trade date you sell — settlement is irrelevant for this calculation. Publication 550 is explicit on that point.

Didn't realize settlement was irrelevant. I'd been counting from when the shares appeared in my account, which was two days later.

Uploaded my 1099-B and Schedule D to taxr.ai last tax season because I had a mix of short and long-term lots from buying the same ETF at different times. It went through each lot's acquisition date and sale date and flagged which ones were short-term and which had cleared the one-year mark. Saved me from manually counting about a dozen rows. On the substance: the rule is more than one year from the day after trade date. That's what lands a sale in Part II of Form 8949 instead of Part I.

Derek D.

Author

The lot-by-lot thing is what I'm worried about. I did a few buys over several months so each lot has its own clock.

Each lot really does run independently. FIFO is the default if you don't specify, but you can designate specific lots at sale — your broker has to confirm the designation. Worth knowing before you sell.

One scenario people miss: inherited stock. If you inherit shares, the holding period is automatically long-term regardless of how long you personally hold them or how long the decedent held them. That's a specific carve-out in the rules, though it obviously doesn't apply to shares you bought yourself.

If you're managing multiple lots, your broker should show each lot's acquisition date separately. When you go to sell, you can often select which lot. Identifying a lot that's already crossed the one-year mark lets you lock in long-term treatment while leaving the newer lots alone. Your Form 8949 will reflect whichever lot the broker reports.

Derek D.

Author

Does the broker confirmation of the specific lot have to happen before the trade settles or just before the sale?

Generally it has to be done at or before the time of sale, before settlement. Check your broker's specific process — some require you to designate during the order, others let you do it same day. Keep records of the confirmation.

Had a wash sale situation that complicated my holding period tracking last year. Sold shares at a loss, rebought within 30 days, so the disallowed loss got added to the new lot's cost basis and the original holding period carried over to the new shares. I ran my trade history through Taxr and it matched each replacement lot's adjusted basis and start date — things I'd have miscounted on my own. The wash sale rule can extend a holding period in ways that aren't obvious from the 1099-B alone.

Derek D.

Author

Wait, the holding period carries over on wash sale replacement shares?

Yes. The new lot inherits the holding period of the shares sold. So if you held the original shares for 10 months, those 10 months count toward the replacement lot's clock. That's part of why wash sales get complicated fast.

The practical move before you sell: open your broker's tax lot screen, find the acquisition date for the lot you want to sell, count forward one year and one day from that acquisition date (using the day-after rule), and don't sell before that date if long-term treatment matters to you. Takes two minutes and avoids a surprise on Schedule D.

Worth pointing out that "avoiding capital gains" is different from deferring them. Holding longer makes the gain long-term, it doesn't make it disappear. The only way gains disappear is if losses offset them on Schedule D, you're in a qualifying 0% bracket, or you hold until death and the basis steps up for your heirs. Those are three very different strategies.

The step-up at death angle is real but obviously not a planning tool most people want to use aggressively.

Ha, fair. It's worth knowing it exists for estate planning conversations, but yeah, most people just want to know when to sell.

Are there cases where short-term is actually fine? If your ordinary income is low enough that the rates are close, the difference between short and long-term might not be huge. The gap depends on your tax bracket. Sometimes selling sooner and reinvesting makes more financial sense than waiting for long-term treatment — that's a math question for your specific situation.

Derek D.

Author

That's a good point. I've been treating long-term as automatically better without actually running the numbers on my bracket.

If you have capital losses sitting on Schedule D from prior years or this year, those losses offset gains dollar-for-dollar before the short vs. long-term distinction matters as much. Net your gains and losses first. If a loss offsets the short-term gain entirely, the holding period becomes less urgent.

Can you use long-term losses to offset short-term gains or does it have to match?

The netting order matters. Short-term losses offset short-term gains first, long-term losses offset long-term gains first. After that, any excess from either bucket can offset the other. The Schedule D instructions walk through the netting order step by step.

Be careful with ETFs that do in-kind redemptions — the holding period question is usually about your shares in the ETF, not what's inside it. Your clock starts when you bought your ETF shares, full stop. The ETF's internal trades generally don't generate a personal holding period event for you.

Publication 550 and Topic 409 on irs.gov both spell out the holding period rules clearly if you want to read the primary source. The Form 8949 instructions also describe which part (I vs II) each transaction goes in based on holding period. Looking at those three together gives you the full picture.

Derek D.

Author

I'll read through Topic 409 — good to have the actual IRS language on hand when I'm deciding the timing.

The form-level view: short-term sales go in Part I of Form 8949, long-term in Part II. Part I flows to Schedule D line 1 or 2, Part II to line 8 or 9. Your broker's 1099-B should already classify each sale, but verify that the acquisition date it has matches your records — brokers occasionally have wrong dates especially after corporate actions or transfers.

This is a good practical check. I found a wrong acquisition date on a 1099-B after a broker transfer. Had to use code B in column (f) of Form 8949, and because basis was reported to the IRS (box A/D), I entered the 1099-B basis in column (e) and fixed it with an adjustment in column (g).

To bring it back: more than one year from the day after trade date = long-term = Part II of Form 8949. One year or less = short-term = Part I. That's the whole rule. The rate that applies to the long-term gain is a separate question that depends on your income.

If you're holding multiple lots across a volatile year, figuring out which ones have cleared the one-year mark gets tedious. Worth building a simple spreadsheet with each lot's trade date, your calculated "long-term eligible" date, and planned sale amounts. Keeps you from eyeballing it wrong under pressure.

Derek D.

Author

Yeah I have about six or seven lots from buying in tranches. A spreadsheet is probably the right move here.