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

I've been trying to figure out how long to hold stocks to avoid capital gains or at least get the lower rate. My broker account shows some positions I've had for 8 months and some for 14 months, and when I ran a rough estimate the tax difference looked huge. I know there's a "long-term" cutoff somewhere but I'm not clear on exactly when the clock starts, whether it's the trade date or settlement date, and whether "avoid" is even the right word or if I just get a lower rate. I sold a few lots already this year and I'm trying to figure out if any of them missed the cutoff by a day or two. Already looked at my 1099-B but the holding period column just says S or L and doesn't explain the rule.

36 comments

The holding period is the key. Per Publication 550, if you hold investment property more than 1 year the gain or loss is long-term; 1 year or less it's short-term. And for stocks traded on an established market, the clock starts the day AFTER your trade date and ends on the trade date you sell — not the settlement date. So if you bought on June 1, day one of your holding period is June 2, and you'd need to sell on June 2 of the following year at the earliest to clear the one-year mark.

Matt N.

Author

So settlement date is irrelevant for the holding period? My broker confirmation shows both and I wasn't sure which one to use.

Correct, settlement date doesn't count for this purpose. Trade date in, trade date out. Publication 550 is explicit on that point.

Worth clarifying: "avoid" capital gains isn't really the right frame. Long-term doesn't mean zero tax — it means the gain is taxed at the long-term capital gains rate rather than your ordinary income rate. The actual rate you pay depends on your taxable income for the year. Publication 550 and Topic 409 on irs.gov cover the rates; I'd check those rather than assume long-term means no tax at all.

Matt N.

Author

Yeah I was using "avoid" loosely. I really meant avoid the short-term rate which hits like ordinary income. The difference on my estimates was significant enough that a few extra weeks of holding would matter a lot.

When you actually file, all of this plays out on Form 8949 and Schedule D. Each lot gets its own row on Form 8949 and you check box A, B, D or E depending on whether the 1099-B shows basis reported to the IRS and whether the holding period is short or long. The S or L your broker puts on the 1099-B maps directly to those boxes. I had Taxr read through my 1099-B last year and it listed every lot flagged S that I might want to double-check — pointed out two where the holding period was borderline and I hadn't realized. taxr.ai is where I uploaded it.

Matt N.

Author

Going lot by lot like that is what I need to do before I file. I didn't realize each lot was reported separately on 8949 — I thought the 1099-B total just flowed somewhere as one number.

Form 8949 is per-lot, yes. Under Exception 1 in the 8949 instructions you can skip the form for covered transactions with no adjustments and put those totals directly on Schedule D line 1a or 8a, but you still need to reconcile your lots internally.

The day-after rule trips a lot of people. If your trade date was March 15 last year, day 1 of the holding period is March 16. To be long-term you need to sell on March 16 this year at the earliest — that's the trade date that makes the holding period just over one year. Selling March 15 would leave you at exactly one year which is NOT more than one year and is therefore short-term.

Matt N.

Author

Wait — exactly one year is still short-term? So you need more than 365 days, not 365 days even?

Exactly. The rule is "more than 1 year" not "1 year or more." That one day can cost you a meaningful amount on a large position.

Another thing to check: wash sale rules can interact with your holding period. If you sold a lot at a loss and the wash sale rule applied, the disallowed loss gets added to the cost basis of the replacement shares, and the holding period of the old shares carries over to the new ones. So your replacement lot might have a longer holding period than its own purchase date would suggest. This is reported with code W in column (f) of Form 8949.

Matt N.

Author

I haven't had any wash sales as far as I know but good to keep in mind. Does the broker always catch this on the 1099-B?

Only for covered securities where the identical shares were bought in the same account with the same CUSIP. Cross-account or spousal wash sales won't appear on the 1099-B but the loss is still disallowed by law.

Something I learned the hard way: inherited stock is always treated as long-term regardless of how long you actually hold it. The basis is generally the fair market value at the date of death. So if you inherit shares and sell them the next week, the gain is still long-term. Publication 551 covers the basis rules for inherited property.

There's a narrow exception there — if the decedent died in 2010 and the executor elected to file Form 8939 the standard step-up doesn't apply the same way. Probably not relevant to most people here but worth knowing the rule isn't universal.

Form 1099-B, box 1b shows the acquisition date and box 2 shows whether the gain/loss is short-term or long-term as reported by the broker. If box 2 is wrong — say the broker used settlement date instead of trade date — you can correct it on Form 8949. With box B or E checked you enter the correct basis and a -0- in column (g); with box A or D you enter what the 1099-B shows and adjust in column (g). I had Taxr compare my actual trade confirmations against my 1099-B and it flagged a lot where the broker's date looked off. Saved me from either overpaying or having a mismatch the IRS could notice.

Matt N.

Author

How common is it for brokers to get the date wrong? I assumed the 1099-B was always accurate.

Rare but it happens, especially with corporate actions, splits, or transferred-in positions. Worth cross-checking any lot that's close to the one-year line.

If your gains are still short-term this year, one planning move is to just wait out the remaining months before selling. The holding period clock doesn't reset if you don't sell. I've held positions an extra few weeks specifically to flip from S to L on the 1099-B.

This assumes the stock price doesn't drop enough in those weeks to wipe out the tax savings. Sometimes it's worth running the numbers: potential tax savings vs. price risk of holding longer.

Topic no. 409 on irs.gov is a good quick reference for the capital gains and losses framework — holding period, the difference between short-term and long-term, and the deduction limit if your losses exceed your gains. For losses, Publication 550 explains that if capital losses exceed capital gains, the amount you can claim against other income is capped, and the rest carries forward.

Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions is what you'd use if you have losses carrying forward. The carryforward keeps its character — a long-term loss carryforward stays long-term in future years and offsets long-term gains first.

Matt N.

Author

Good to know. I don't have carryforwards currently but I want to understand the full picture.

One scenario people miss: gifted stock. If someone gives you stock, your holding period includes the donor's holding period (tacked on) when your basis is the donor's adjusted basis. So you might receive shares and immediately be in long-term territory. Publication 551 covers the gift basis rules — the basis depends on whether the fair market value at the date of gift was above or below the donor's adjusted basis, and there are separate rules for figuring gain vs. loss.

Tacking is the right term. It applies because your basis is the donor's basis, so the IRS treats the holding period as continuous from when the donor originally acquired the shares.

Form 3921 matters if you're in ISO territory — exercising incentive stock options doesn't generate regular income but there's an AMT adjustment on Form 6251 line 2i for the spread between FMV and exercise price. The holding period for favorable ISO treatment (long-term capital gain on sale) requires holding the shares more than two years from grant AND more than one year from exercise — both tests. I had Taxr read my Form 3921 and my exercise records and it laid out exactly which lots still needed to clear each deadline. Really cut through the confusion on which shares qualified.

Matt N.

Author

I don't have ISOs right now but this is useful context. The two-year-from-grant requirement is news to me — I thought it was just one year from exercise.

Both tests have to be met. Miss either one and the sale is a disqualifying disposition, which changes the tax treatment significantly. Worth tracking grant dates carefully if you ever do get ISOs.

RSUs work differently — there's no holding period question at exercise because you don't exercise RSUs, you just receive shares when they vest. The holding period for capital gain purposes starts the day after the vesting date. The FMV at vest is ordinary income (reported on your W-2), and any gain or loss after that is capital. So the "one year from vest" rule is what matters for long-term on RSU shares.

Correct. And a lot of people sell immediately at vest and never have a capital gain at all — just the ordinary income piece. If you hold past vest and the price rises, that incremental gain is what becomes long-term after one year.

If you have a lot of positions close to the one-year line and significant unrealized gains, it might be worth talking to a CPA or enrolled agent before you make any sales. The interaction between holding period, your other income, any carryforwards, and estimated payments can get complicated fast and a professional can run the actual numbers with your specific situation.

Matt N.

Author

This is probably the right call for me given the size of some of these positions. I've been trying to DIY it but I'm realizing there's more to track than I thought.

Honestly, the 8949 instructions at irs.gov/instructions/i8949 are readable and walk through each column. If you go through one of your lots line by line using those instructions you'll understand the whole framework — acquisition date, sale date, proceeds in column (d), basis in column (e), adjustments in columns (f) and (g), and the net in column (h). Doing it manually once makes the 1099-B much easier to interpret.

To add one point on the settlement-date question from earlier: the trade-date rule for holding period is specific to securities traded on an established market. If you're dealing with something that doesn't trade on an exchange — certain private placements or restricted shares — the rules may differ. Worth checking Publication 550 if your situation involves anything other than standard listed equities.

Matt N.

Author

All standard listed stocks for me, so trade date it is. But useful to know that rule doesn't apply universally.