When to Sell Stocks: How to Decide the Best Time to Buy and Sell
By Markets & Investing DeskUpdated Nov 10, 2026

Key takeaways
- Selling winners to restore a target mix, such as 70% stocks and 30% bonds, keeps your chosen level of risk.
- Ask whether you would buy the stock today at today's price; if the business has changed, the price you paid is no reason to hold.
- Shares held more than one year qualify for long-term capital gains rates, which are lower than ordinary income rates.
- The wash sale rule disallows a loss if you buy the same or a substantially identical security within 30 days before or after.
There is no single best time to buy and sell stock that works for every investor, and no reliable way to time the market’s exact highs and lows. In practice, the best time to sell a stock is when you have a reason that would justify the sale even if the price had not moved that day. Good reasons include needing the money within your time horizon, a portfolio that has drifted away from its target mix, a price target you set in advance, a business that has changed for the worse, a clearly better use for the capital, or a tax situation that favors acting now. The best time to buy is when you have money you will not need for years and a researched view that the price is reasonable for what you are getting.
Start with the plan: time horizon and risk tolerance
Every sell decision depends on two things you should settle before buying: when you will need the money, and how much loss you can absorb along the way.
Time horizon is how long until the invested money has to be spent. A long horizon lets you ride out corrections and bear markets, because prices have time to recover before you sell. A short horizon, roughly under one or two years, removes that option. If the money is for a house down payment next spring, a 25% drop the month before is a real loss, not a paper one.
Age is a common proxy but not a rule. A 25-year-old saving for retirement can hold for decades, while a retiree drawing income must sell part of the portfolio regularly to pay bills. One person can also have several horizons: an emergency fund, a five-year goal and a retirement account each call for different selling rules.
Risk tolerance is how much volatility and potential loss you are willing and able to accept for a higher expected return. U.S. Treasury securities held to maturity repay their face value but have generally returned less than stocks over long periods. Investors with more tolerance tend to hold more stocks, for example through an index fund that tracks the S&P 500.
Risk tolerance shapes what you buy, your split between stocks and bonds, and how you react when prices fall. Learn it before a selloff, not during one, by sizing positions so that a bad year does not force a sale.
Buy and hold still needs exit rules
Buy and hold means purchasing stocks or funds chosen on long-term fundamentals, such as revenue growth, profit potential and management quality, and keeping them for years regardless of short-term swings. It keeps trading costs low, defers capital gains taxes and avoids predicting short-term moves. It does not mean you never sell. A buy-and-hold investor still sells to fund goals, to rebalance, or because the original thesis has broken, since owning a well-run company does not guarantee its share price rises indefinitely.
Two pieces of information make a buy-and-hold exit easier: your purchase price (your cost basis, which determines the taxable gain or loss) and the reasons you bought. If you write those reasons down, you can later check whether they still hold instead of reacting to the price alone.
Short-term investors holding a position for less than a year may sell as soon as it reaches a planned gain or when they need cash. That requires more active monitoring and, in the U.S., usually means gains are taxed at ordinary income rates.
Good reasons to sell a stock
You need the money
Freeing up capital for a down payment, a new business, medical expenses or a major purchase is one of the most straightforward reasons to sell. If you see the need coming, you can spread the sale over several months, choose which shares to sell for tax purposes, and avoid being forced to sell on the worst possible day.
Money with a near-term purpose belongs in assets with little price risk well before the date arrives. The question is not whether the market will rise next month but whether you could accept the outcome if it fell.
Your portfolio has drifted from its target
A portfolio can become unsuitable in two ways. First, your situation changes. Marriage, divorce, a new child or retirement can change both your horizon and how much risk you can carry.
Second, the portfolio drifts on its own. Winners grow into a larger share of the total, creating an accidental concentration in one stock or sector. That undermines your asset allocation, the mix you chose based on goals, risk tolerance and time horizon, and the diversification that keeps one company’s decline from doing too much damage.
Hypothetical example: You target 70% stocks and 30% bonds in a $100,000 portfolio. After a strong year for stocks, the portfolio is worth $115,000, with $87,000 in stocks and $28,000 in bonds. Stocks are now about 75.7% of the total. To return to 70/30, stocks should be $80,500 and bonds $34,500, so you would sell $6,500 of stocks and buy $6,500 of bonds (ignoring taxes and trading costs). The sale has nothing to do with predicting the market. It restores the level of risk you chose.
Some investors rebalance on a calendar, such as once a year. Others rebalance when an allocation moves more than a set number of percentage points from its target. Either method replaces an emotional decision with a rule.
The stock reached your price target
Many investors set a target price or range at the time of purchase, based on their estimate of what the company is worth. When the stock reaches that range, they sell, either all at once or in stages at several target levels.
Scaling out, for example selling a third at the first target, a third at the second and holding the rest, locks in some gain while keeping exposure if the company keeps growing. It also reduces the pain of being wrong in either direction, which makes the plan easier to follow.
A target works best when it rests on valuation rather than a round number. Raising it because earnings grew faster than expected can be reasonable; raising it only because the stock went up turns a discipline back into a guess. See fundamental analysis for the valuation methods behind price targets.
The company’s fundamentals changed
A deterioration in the business is one of the strongest reasons to sell. Signs include earnings that decline quarter after quarter, results that lag industry peers, shrinking margins, rising debt, or management that repeatedly misses its own guidance.
Monitoring a long-term holding means reading the financial statements, following revenue and management performance, and understanding how the company makes money and how strong its industry position is. When the business is no longer performing as you expected, selling before its finances weaken further can limit the damage.
Some changes are outside anyone’s control. A technological shift can make products obsolete, and a scandal can destroy confidence overnight. Enron shares traded around $90 in mid-2001; after its accounting fraud came to light, the stock fell to about $0.60. Investors who held because the company “had always been reliable” lost nearly everything.
The useful test is whether you would buy the stock today, at today’s price, knowing what you now know. If the answer is no because the business has changed, the price you originally paid is not a reason to keep holding.
A better use for the money
Every dollar in one investment is a dollar not invested elsewhere. That is opportunity cost. If a stock has been underperforming the market for a long time and you have a researched alternative with better prospects, selling the laggard and moving the money can make sense.
A holding that returns very little year after year carries a cost even if it never shows a loss, so compare it with what the money could earn in a broad index fund. Make sure “better prospects” means analysis, not a stock that has simply risen faster recently, or opportunity cost turns into chasing performance.
A merger or acquisition changes what you own
When a company you own is acquired, the deal terms decide what happens to your shares. In an all-cash deal, your shares are converted into cash at the agreed price when the deal closes. In a stock deal, you receive shares of the acquiring company, so you end up owning a different business. Some deals mix cash and stock.
When a deal is announced at a premium, the target’s share price can jump toward the offer price. Before closing, it typically trades somewhat below the offer, with the gap reflecting the time to close and the risk that the deal falls through. Selling after the announcement locks in most of the premium and removes deal risk. Holding to closing captures the remaining gap but leaves you exposed if regulators or shareholders block the deal.
In a stock deal, ask whether the combined company is one you would choose to own. If its fundamentals look weaker after the merger, or it no longer fits your portfolio, selling may be the better decision.
Technical signals
Investors who use technical analysis read price and volume patterns and may set predefined sell signals. A common tool is the simple moving average (SMA), the arithmetic mean of closing prices over a set number of days:
SMA = (sum of closing prices over N days) / N
When a stock’s 50-day SMA crosses below its 200-day SMA, the pattern is called a death cross. Technical traders read it as a bearish signal that the trend may be turning down, and an investor expecting a prolonged downtrend might reduce or exit the position. The opposite pattern is a golden cross.
Historical example: Intel (INTC) formed a death cross in early May 2024, and by mid-September 2024 the stock had fallen about 32%. Selling on the signal would have avoided much of that decline, but this is one case seen in hindsight. Moving averages are built from past prices, so crossovers arrive after a move has started and can be followed by a recovery the seller misses. Use technical signals alongside fundamentals, not as a standalone rule; our overview of fundamental and technical stock analysis compares the two.
Selling into a market selloff
A broad market decline is different from a problem with one company. In a selloff, good and bad stocks fall together, and the drop says little about whether any individual business has changed.
For long-term investors with money they will not need for years, selling during a selloff often turns a temporary decline into a permanent loss and leaves them deciding when to get back in. Markets have historically recovered from past bear markets, though recovery times have varied widely.
The situation changes when your horizon is short. After a recession, a portfolio may take years to return to its earlier level, and people in or near retirement may have to sell during the downturn to cover living expenses. The defense is preparation: keep near-term spending money in cash or high-quality bonds so a selloff does not force stock sales at depressed prices.
If a selloff reveals that your allocation is riskier than you can tolerate, adjusting it is a legitimate decision. It is usually better made gradually and deliberately than in a single panicked sale on a day of heavy losses.
Taxes: what a sale costs you
In a taxable U.S. brokerage account, selling above your cost basis creates a capital gain and selling below it creates a capital loss. Sales inside IRAs and 401(k)s do not trigger capital gains tax at the time of sale. Rules vary by country; the points below describe the U.S. system, and a tax professional can review your situation.
Holding period
Shares held more than one year produce long-term capital gains, taxed at lower rates than short-term gains on shares held one year or less, which are taxed at your ordinary income rate. If you have held a stock with a large unrealized gain for 11 months, waiting a few more weeks can noticeably cut the tax, provided the sale is not urgent and you accept the price risk of waiting.
Using losses
Investors often sell a stock that has fallen and is unlikely to recover. The realized loss can offset capital gains from other sales. If losses exceed gains, up to $3,000 of net capital loss per year ($1,500 if married filing separately) can offset ordinary income, and the rest carries forward to future years. Selling losers deliberately to offset gains is called tax-loss harvesting.
The wash sale rule limits this. If you buy the same or a substantially identical security within 30 days before or after selling it at a loss, the loss is disallowed for now and added to the cost basis of the new shares. Selling a loser and buying it back the next day does not produce a usable loss.
Which shares you sell
If you bought the same stock at different times and prices, each purchase is a separate tax lot. Unless you tell your broker otherwise, sales are typically matched on a first-in, first-out (FIFO) basis, meaning the oldest shares are sold first. You can instead use specific identification and choose which lots to sell.
Worked example: You bought 50 shares each year for four years at $10, $15, $20 and $15 per share. The stock now trades at $25 and you need to sell 50 shares.
| Lot sold | Cost per share | Gain per share | Total gain on 50 shares |
|---|---|---|---|
| Year 1 (FIFO default) | $10 | $15 | $750 |
| Year 3 (specific ID) | $20 | $5 | $250 |
Selling the Year 3 lot cuts the taxable gain from $750 to $250, while the low-cost Year 1 shares stay in your account. If the Year 3 lot has been held a year or less, its gain is short-term, which could offset some of the benefit. Specific identification must be made at the time of sale, typically through your broker’s lot selection settings.
Order types for carrying out the decision
Once you decide to sell, the order type controls how the sale happens. The differences matter for the price you actually receive.
- Market order: sells promptly at the best available price. It prioritizes execution over price, so in a fast-moving or thinly traded stock the fill can differ from the last quoted price.
- Limit order: sells only at your limit price or better. It controls price but may not fill if the stock never reaches the limit. A limit order at your price target automates that part of the plan.
- Stop order (stop-loss): becomes a market order once the stock trades at or below your stop price. The stop price is the trigger, not a guaranteed fill. If a stock gaps down overnight from $50 to $42, a stop at $45 can fill near $42.
- Stop-limit order: becomes a limit order when the stop is triggered. It protects against a fill far below your limit but may not execute at all if the price falls through the limit quickly.
- Trailing stop: the stop price follows the stock up by a set dollar amount or percentage and stays fixed when the stock falls, which lets gains run while defining an exit.
Pre-set orders take part of the decision out of the moment, when emotions are strongest. They support a plan rather than replace it, and a stop set too close to the current price can be triggered by ordinary daily swings.
Poor reasons to sell
These reasons, common among newer investors, tend to produce worse outcomes because they respond to price or mood rather than to your goals or the investment:
- Reacting to short-term volatility. A temporary drop caused by market swings or outside news is not evidence the business has changed. With intact fundamentals and a long horizon, a falling price alone is a weak reason to sell.
- Following the herd. Selling because others are selling puts the crowd in charge of your decision and can mean missing a recovery.
- Having no plan. Without written goals and exit conditions, every price change becomes a new decision, and impulsive sales become more likely.
- Treating recent performance as destiny. A stock that has lagged for a few months may still have strong long-term prospects. Past performance does not reliably predict future returns.
The role of emotions: fear, greed, regret and FOMO
Emotions shape both halves of the decision. Fear pushes investors to sell during dips. Greed keeps them holding after a stock has passed any reasonable valuation, waiting for a little more. Regret makes people hold losing positions to avoid admitting a mistake, and overconfidence leads them to dismiss evidence that a thesis is failing. Behavioral finance has a name for the tendency to sell winners too early and hold losers too long: the disposition effect.
Fear of missing out (FOMO) works on the buying side: watching a stock soar creates pressure to buy late, or to sell a steady holding to chase it. A defined strategy limits that pressure, and a diversified portfolio reduces the regret of missing any single stock.
Practical safeguards include writing down why you bought and what would make you sell, setting orders in advance, and reviewing positions on a schedule instead of daily.
When to buy a stock
Buying uses the same inputs as selling: research, valuation, market conditions and, for some investors, technical signals. A stock may look attractive when fundamental analysis suggests it trades below the value of its business, when a broad market dip has pulled down a company whose prospects have not changed, or when catalysts such as a new product or improving margins support the case.
For long-term investors, conviction in the company matters more than a perfect entry, since nobody reliably buys at the bottom. Dollar-cost averaging, investing a fixed amount at regular intervals, buys more shares when prices are low and fewer when they are high, which reduces timing risk. Whatever the method, set your exit conditions when you buy.
A checklist before you sell
- Name the reason. Is it one of the sound reasons above, or a technical signal you planned to act on?
- Check the reason against your plan. Would you make this sale if the stock had been flat today?
- Ask the fresh-money question. Would you buy this stock now at this price? If yes, and you do not need the cash, selling needs a strong reason.
- Estimate the tax. Check the holding period of each lot, whether the gain is short- or long-term, which lots to sell, and whether a wash sale could apply to a loss.
- Decide how much. All at once, or in stages?
- Choose the order type. Market, limit, stop or stop-limit, with the trigger and fill risk in mind.
- Plan the proceeds. Know where the money goes next, whether that is a bill, another investment or a rebalance.
FAQs
Can I sell my stock whenever I want?
Yes, in a standard brokerage account you can generally sell shares of a listed stock during market hours, and some brokers also offer extended-hours trading with thinner liquidity and wider price gaps. Selling is not the same as having the cash: U.S. stock trades settle one business day after the trade (T+1), and in a cash account, buying with unsettled proceeds and selling again before settlement can lead to trading restrictions. Shares in employer plans or with lockup or vesting restrictions may have their own limits.
The Bottom Line
Investors with taxable accounts, near-term goals or a portfolio that has drifted from its target gain the most from clear exit rules. Write down why you bought and what would make you sell, then judge each sale against that plan rather than the day's price. Before you act, check holding periods and tax lots, choose an order type that fits the trigger and fill risk, and know where the proceeds will go.







