How Long Do You Have to Hold a Stock to Avoid Taxes?

To pay the lowest tax on a stock sale, hold the shares for more than one year before selling. That moves the profit from short-term capital gains, taxed at ordinary income rates as high as 37 percent, to long-term capital gains, taxed at 0, 15, or 20 percent depending on your income.1Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 For a regular brokerage sale, no holding period lets you avoid tax entirely. A narrow slice of stock — qualified small business stock held five years or more — can be sold with the entire gain excluded, and that is covered further down.

The One-Year Rule and How to Count the Days

The holding period starts the day after you buy the stock and includes the day you sell.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Buy on March 1, and your clock begins March 2. To get long-term treatment, you would need to sell no earlier than March 2 of the following year. Selling on March 1 exactly one year later still counts as short-term. That one extra day matters.

One year or less means short-term, taxed at your ordinary income rate. More than one year means long-term, taxed at the preferential rate. There is no in-between category and no partial credit for holding eleven months.

What the Difference Actually Costs

The gap between the two rates is large. A single filer earning $200,000 with a $50,000 stock gain would owe 24 percent on that profit if short-term, versus 15 percent if long-term. That’s $4,500 in tax on the same trade, decided by the calendar.

Two additional layers can raise the bill regardless of which side of the one-year line you land on. The net investment income tax adds 3.8 percent on investment income once modified adjusted gross income passes $200,000 for single filers or $250,000 for married couples filing jointly.4Internal Revenue Service. Topic No. 559, Net Investment Income Tax Those thresholds are not indexed for inflation. The effective top federal rate on a long-term gain for high earners is therefore 23.8 percent, not 20.

State tax is the other layer. Most states treat capital gains as ordinary income and do not distinguish between short-term and long-term. Rates run from zero in states with no income tax to above 13 percent in the highest-tax states. Combined with federal tax, a short-term gain in a high-tax state can approach 50 percent for top earners.

Employer Stock Has Its Own Clocks

If you got your shares through work, the one-year rule is not the whole story. Different types of equity compensation come with their own holding requirements, and missing them converts what would have been a capital gain into ordinary wage income.

Incentive Stock Options

An incentive stock option gets its favorable tax treatment only if you satisfy two holding periods at the same time: at least two years from the grant date, and at least one year from the exercise date.5Office of the Law Revision Counsel. 26 USC 422 – Incentive Stock Options Meet both, and your profit is a long-term capital gain. Sell before either mark and the sale becomes a disqualifying disposition, with the gain reported as ordinary compensation on your W-2 and taxed at your regular income rate.

Employee Stock Purchase Plans

Employee stock purchase plans use the same two-year-from-grant, one-year-from-transfer structure.6Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans Because ESPPs typically let you buy company stock at a discount of up to 15 percent, selling before you satisfy both holding periods means that discount is taxed as ordinary income rather than at capital gains rates.

Restricted Stock and the 83(b) Election

Restricted stock that vests over time is normally taxed at each vesting event, based on the value on that date. A Section 83(b) election lets you instead pay tax on all the shares upfront at their value on the grant date, and starts the long-term capital gains clock immediately.7GovInfo. 26 CFR 1.83-2 – Election to Include in Gross Income in Year of Transfer The deadline is 30 days from the date you receive the stock. There are no extensions.

The election is a bet on the stock rising. If the price climbs, everything above the grant-date value gets long-term treatment. If you leave before your shares vest, you have paid tax on stock you never kept, and you can only deduct what you originally paid.

Qualified Small Business Stock: The Real Exclusion

Section 1202 of the tax code is the one place where holding a stock long enough can actually eliminate the tax on the gain. The exclusion scales with the holding period:8Office of the Law Revision Counsel. 26 USC 1202 – Partial Exclusion for Gain From Certain Small Business Stock

  • 3 years: 50 percent of the gain excluded
  • 4 years: 75 percent excluded
  • 5 years or more: 100 percent excluded

On a $1 million startup gain, selling at three years excludes $500,000; waiting until five excludes the whole million.

The eligibility rules are strict. The issuing company must be a C-corporation with gross assets of $50 million or less when the stock was issued. You must have acquired the shares at original issue, not on the secondary market. And the company must operate in a qualifying trade or business, which excludes most professional and service fields including law, accounting, consulting, financial services, and health care. There is no IRS certification for QSBS, so the burden is on you to confirm that every requirement was met throughout the holding period.

Selling at a Loss: Watch the 30-Day Window

If you are selling to claim a loss rather than a gain, a different holding rule can wipe out the deduction. Buy the same stock, or something substantially identical, within 30 days before or after the loss sale, and the wash sale rule disallows the loss.9Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The window runs in both directions, creating a 61-day zone around the sale. The rule also applies if your spouse buys the shares, or if you repurchase them inside an IRA or Roth IRA.10Internal Revenue Service. Publication 550 – Investment Income and Expenses

A disallowed loss is not lost forever. It is added to the cost basis of the replacement shares, deferring the benefit rather than erasing it. But if you were counting on the loss to offset a gain this year, the wash sale can undo that plan. “Substantially identical” means the same security. Selling one company’s stock and buying a competitor’s does not trigger the rule.

Restricted and Control Securities Under Rule 144

Some shares are not free to sell at all until a required waiting period passes, regardless of any tax planning. If you received shares through a private placement, as startup compensation, or you are an officer, director, or major shareholder of the company, they are likely restricted or control securities. SEC Rule 144 sets the minimum hold at six months for stock in a company that files regular SEC reports, and one year for stock in a company that does not.11eCFR. 17 CFR 230.144 – Persons Deemed Not to Be Engaged in a Distribution You must have paid the full purchase price before the clock starts. Affiliates continue to face volume caps on how much they can sell in any three-month period even after the holding period ends.12U.S. Securities and Exchange Commission. Rule 144 – Selling Restricted and Control Securities

Ordinary Shares: No Minimum Hold, Only Tax Consequences

Stock you bought on the open market through a regular brokerage account carries no minimum holding period. You can sell the day after you buy, or the same day. The only cost is on the tax side: every profitable sale within a year of purchase is a short-term gain taxed at your ordinary rate. Active traders often accumulate a much larger tax liability than they realize until filing season.

Purchase dates carry real money. Most brokerages track cost basis and holding periods automatically, but errors show up with employer plan shares, inherited stock, and accounts transferred between brokerages. When your sale is a day or two shy of the long-term line, the accuracy of that acquisition date is what stands between the lower rate and the higher one.