Short-term or long-term? Holding period calculator, with the wash-sale tack-on

By Wash-Sale Guardian (who's behind it) · Published 2026-11-04 · Last updated 2026-11-09 · How the checker works

Get the year-end reminders by email ↓

Enter the date you bought the shares, and the date you sold them if you have one. You get short-term or long-term, the first date a sale would be long-term, and the days held. If a wash sale added days to the shares you hold now, fill in the second part. The dates stay in this page; nothing you enter is sent anywhere.

Your result appears here as soon as you pick the date you bought.

If a wash sale added days (optional)

Read it as: the shares I sold at a loss were bought on the first date and sold on the second; I bought the replacement shares on the third.

This only does the dates, one lot at a time. To see which of your real trades wash across every account, with dollar amounts and the term of each sale, use the free checker.

How the count works

IRS Publication 550 says: "If you hold investment property more than 1 year, any capital gain or loss is a long-term capital gain or loss. If you hold the property 1 year or less, any capital gain or loss is a short-term capital gain or loss." IRC §1222 draws the same line. On the count, Pub 550 says: "To determine how long you held the investment property, begin counting on the date after the day you acquired the property. The day you disposed of the property is part of your holding period."

For stock traded on an exchange, Pub 550 says the holding period "begins the day after the trade date you bought the securities, and ends on the trade date you sold them." The settlement date plays no part. Use the trade dates from your confirmations.

Rev. Rul. 66-7 (1966-1 C.B. 188) counts in calendar months. It was written when the long-term line was six months: a purchase on a month's last day could not be sold as long-term before the first day of the seventh month after. We apply the same counting to the one-year line, as our checker does. For most purchase dates, the first long-term sale date is the day after the first anniversary. For a purchase on the last day of a month, it is the first day of the 13th month after. On two days in each leap cycle, that counting and the plain anniversary reading give different terms: a purchase on February 29 sold on March 1 a year later, and a purchase on February 28 the year before a leap year sold on February 29. When your dates land on one of those, the calculator says so.

The wash-sale tack-on

IRC §1223(3) adds the time you held the shares sold at a loss to the holding period of the shares that replaced them. Pub 550 (Wash Sales) says: "Your holding period for the new stock or securities includes the holding period of the stock or securities sold." A purchase counts only inside the 61-day window: 30 days before the loss sale through 30 days after it.

The calculator moves the date the replacement is treated as bought on back by the days you held the loss shares, as our worksheet does. The count starts the day after that date. If you bought the replacement after the loss sale, that gives one date. If you bought it before the loss sale, you held both lots at once for some days. IRC §1223(3) doesn't say whether those days count once or twice, so the calculator shows both first long-term sale dates and sends you to a CPA or EA. The disallowed loss also goes into the replacement's cost basis; this page does the dates only.

Examples you can check by hand

  • Pub 550's own example. Bought January 31, 2024. A sale on January 29, 2025 is short-term (364 days held). A sale on February 6, 2025 is long-term (372 days). The first long-term sale date is February 1, 2025. That comes from the counting in Rev. Rul. 66-7, which we apply to the one-year line: a purchase on a month's last day is long-term from the first day of the 13th month after. Pub 550's two dates agree with it. February 1, 2025 is a Saturday, so the first market day to sell on is Monday, February 3, 2025.
  • A replacement bought after the loss sale. The loss shares were bought January 15, 2026 and sold at a loss June 10, 2026: held 146 days. You bought the replacement June 20, 2026. June 20 minus 146 days is January 25, 2026. The replacement is treated as bought that day, so the first long-term sale date is January 26, 2027. Without the carry-over it would be June 21, 2027.
  • Loss shares held more than a year. The loss shares were bought January 15, 2024 and sold at a loss June 10, 2026: held 877 days. You bought the replacement June 20, 2026. June 20 minus 877 days is January 25, 2024, and a count from there reaches the first long-term date on January 26, 2025, long before the replacement was bought. So the page doesn't print that date. It says a sale of the replacement is long-term from the day you bought it, June 20, 2026.
  • A replacement bought before the loss sale. Same loss shares, but you bought the replacement May 20, 2026, 21 days before the loss sale. Counting the days you held both twice, the replacement is treated as bought on December 25, 2025 and the first long-term sale date is December 26, 2026. Counting them once, it is treated as bought on January 15, 2026 and the date is January 16, 2027. IRC §1223(3) doesn't say which to use, so ask a CPA or EA.

What this doesn't cover

  • Short sales, whose term follows separate rules.
  • Options, and shares you receive by exercising one or by being assigned.
  • Straddles. Pub 550 says a straddle position's holding period generally begins no earlier than the date the straddle ends.
  • Constructive sales of appreciated positions (IRC §1259).
  • Section 1256 contracts. Their gain or loss is 60% long-term and 40% short-term, which Pub 550 says "is true regardless of how long you actually held the property."
  • Gifts, which can take the donor's holding period depending on how the basis is set (Pub 550). Inherited property is generally long-term, however long you held it (Pub 550).
  • Partial replacements. If you bought fewer replacement shares than you sold at a loss, the wash sale rules reach only as many of the shares you sold as you bought, so only that many replacement shares take the carried-over days, and this purchase doesn't disallow the loss on the rest (Treas. Reg. §1.1091-1(c)). If you bought more, only the matching number of replacement shares take them, and the others keep their own purchase date (§1.1091-1(d)). Pub 550 says: "Match the shares bought in the same order that you bought them, beginning with the first shares bought." Enter the dates of the lot you are asking about. Ask a CPA or EA how your shares match.
  • Anything but dates, one lot at a time. It can't tell which shares a purchase replaces. If the shares you sold at a loss had already carried over days from an earlier wash sale, enter the date they are treated as bought on as the date they were bought. The free checker reads your broker CSVs and does every lot across accounts.

Frequently asked questions

When does a stock become long-term?

When you have held it more than one year. The count starts the day after you bought it and includes the day you sell (IRS Publication 550). For most purchase dates, the first long-term sale date is the day after the first anniversary: bought March 10, 2025, long-term from March 11, 2026. If you bought on the last day of a month, we count it from the first day of the 13th month after: bought January 31, 2025, long-term from February 1, 2026. That is the calendar-month counting in Rev. Rul. 66-7, written for the old six-month line and applied here to the one-year line. It is not a fixed number of days.

Does a wash sale change the holding period?

Yes, for the replacement shares. IRS Publication 550 says: "Your holding period for the new stock or securities includes the holding period of the stock or securities sold" (IRC §1223(3)). The days you held the shares sold at a loss are added in front of the replacement’s own holding period, so it can turn long-term sooner. If the replacement was bought before the loss sale, you held both at the same time for some days, and IRC §1223(3) doesn’t say how to count those days. The calculator shows both readings. Ask a CPA or EA.

Does the settlement date matter?

No. For stock traded on an established market, the holding period "begins the day after the trade date you bought the securities, and ends on the trade date you sold them" (IRS Publication 550). Use your trade dates. Pub 550 adds: "Do not confuse the trade date with the settlement date."

Informational, not tax advice. Primary sources: IRS Publication 550, IRC §1222, IRC §1223, Rev. Rul. 66-7, Rev. Rul. 56-602, 1956-2 C.B. 527 — linked inline above. Found an error? Tell us and we'll fix it.

Get the year-end wash-sale reminders

Short emails at the moments that matter: before Nov 30 (the last day to sell at a loss and still re-buy within 2026); before Dec 31; and when 1099-Bs arrive in February. The one-page year-end checklist PDF comes with it.

Sign up and a link to the PDF appears right here. Confirm the email we send and you're on the list: about four to six emails a year, and you can unsubscribe in one click from any of them. Your trades stay in your browser. The form sends our email service only your email address and the page you signed up from — nothing else (see Privacy).