What Happens When You Sell a Stock: Settlement and Taxes

When you sell a stock, two things happen in parallel. The trade settles through a clearinghouse by the next business day, transferring the shares to the buyer and cash to you. And the IRS treats the sale as a taxable event you’ll report next April, with the rate depending on how long you owned the shares and what you earn. What happens when you sell a stock is mostly a story about those two clocks: the short one that controls when you can touch your money, and the longer one that controls how much of the gain you keep.

The Trade Settles the Next Business Day

Your sell order fills in seconds once it reaches an exchange or market maker, but “filled” and “settled” are not the same thing. Since May 28, 2024, SEC Rule 15c6-1 has required most stock trades to settle by the next business day after the trade date, a cycle known as T+1.1U.S. Securities and Exchange Commission. Shortening the Securities Transaction Settlement Cycle The Depository Trust and Clearing Corporation and its subsidiaries handle the reconciliation between the two brokerages.2DTCC. Clearing and Settlement Services

Weekends and market holidays pause the clock. Sell on a Friday and settlement lands Monday. Sell the day before a Monday holiday and you’re waiting until Tuesday.

Once settlement completes, you no longer own the shares. Voting rights, future dividends, and any claim on the company’s assets go with them. One quirk: if you sell after the ex-dividend date but before the payment date, you still collect that dividend, because ownership on the record date is what counts.

What You Can Do With the Proceeds Right Away

After settlement, the proceeds sit as settled cash in your account. You can reinvest, leave it, or withdraw. An ACH transfer to a linked bank account takes one to three business days. Wire transfers arrive the same day if you initiate them before the bank’s cutoff, and most brokerages charge $20 to $35 for the service, deducted from your cash balance.

Most brokerages let you use “buying power” from an unsettled sale to buy new securities immediately. In a cash account, that convenience has a catch. A good faith violation happens when you buy a stock and sell it before the cash from a previous sale has actually settled. Three violations within 12 months restricts your account for 90 days, limiting you to buying only with fully settled cash. A more serious violation called free-riding happens when you buy shares, sell them at a profit, and never had enough settled funds to cover the original purchase; that triggers an immediate 90-day restriction after a single occurrence.

The practical rule: if you sell on Monday, you can use that buying power to buy something new right away, but don’t sell the new position until Wednesday, when Monday’s sale has settled. Margin accounts sidestep this problem but carry interest on borrowed funds.

The Sale Is a Taxable Event

Every stock sale in a taxable account produces a gain or loss equal to what you received minus your adjusted cost basis, which is what you originally paid plus commissions and fees.3Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss How that gain is taxed depends entirely on how long you held the shares.

Stock held for one year or less produces a short-term capital gain, taxed at your ordinary income rates, which run from 10% to 37%.4Internal Revenue Service. Federal Income Tax Rates and Brackets Stock held for more than one year produces a long-term capital gain, which gets preferential rates.5Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses

For 2026, the long-term rates for single filers are:

  • 0% on taxable income up to $49,450
  • 15% from $49,451 to $545,500
  • 20% above $545,500

For married couples filing jointly, the 15% rate starts above $98,900 and the 20% rate above $613,700. The gap between short-term and long-term treatment can be enormous. A single filer earning $100,000 who sells stock held for 11 months pays 22% on the gain. Waiting one more month drops the rate to 15%. That one-year mark is the single most powerful timing lever most investors have.

The 3.8% Surcharge for Higher Earners

The Net Investment Income Tax adds 3.8% on top of the regular rate for higher earners. It applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds these thresholds:6Internal Revenue Service. Topic No. 559, Net Investment Income Tax

  • Single or head of household: $200,000
  • Married filing jointly: $250,000
  • Married filing separately: $125,000

These thresholds are not indexed for inflation and have stayed the same since 2013, so more taxpayers cross them each year. A married couple with $280,000 in salary and a $50,000 stock gain pays the surcharge on $80,000 (the amount their $330,000 MAGI exceeds $250,000), adding $3,040 to their tax bill on top of the capital gains rate.

Which Shares Did You Sell?

If you bought the same stock at different times and prices, the method used to identify which lot you sold changes the tax bill.7Internal Revenue Service. Publication 551, Basis of Assets The default is first-in, first-out: the oldest shares are treated as sold first. If the stock has risen over time, FIFO produces the largest gain because those oldest shares have the lowest basis.

The alternative is specific identification, where you tell your broker exactly which lot to sell. You might pick higher-cost shares to shrink the gain, or shares held over a year to qualify for the long-term rate. Most brokerages let you set a default in account settings and some allow lot selection trade by trade. Pick the method before you sell; changing after the fact creates reporting problems and may not be permitted.

Losses Cut Your Tax Bill, but Watch the Wash Sale Rule

Capital losses offset capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 of the remaining loss against ordinary income ($1,500 if married filing separately).8Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything beyond that carries forward indefinitely to future years.9Internal Revenue Service. 2025 Instructions for Schedule D Form 1040

Selling losing positions to generate deductions that offset gains elsewhere is called tax-loss harvesting. It works well until you try to buy the stock back too soon. If you sell at a loss and buy the same stock, or something “substantially identical,” within 30 days before or after the sale, the IRS disallows the loss under the wash sale rule.10Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed loss isn’t erased; it gets added to the basis of the replacement shares, deferring the benefit until you sell those.11Internal Revenue Service. Case Study 1 – Wash Sales

Sell 100 shares at a $500 loss, buy the same stock back two weeks later for $2,000, and you can’t take the $500 loss this year. Your basis in the new shares becomes $2,500. The rule also applies if the replacement shares land in a different account, including an IRA. To stay clear, wait a full 31 days before repurchasing, or buy a different stock in the same sector if you want to keep the market exposure.

Sales Inside a Retirement Account Work Differently

The tax discussion above applies to taxable brokerage accounts. Sales inside a traditional IRA, Roth IRA, or 401(k) trigger no capital gains tax at all. The gains stay in the account and can be reinvested untaxed. Traditional IRAs and 401(k)s tax you at ordinary income rates only when you withdraw, regardless of whether the underlying trades were short-term or long-term. Roth withdrawals in retirement are tax-free once you meet the age and holding requirements. Cost basis choices, holding periods, and the wash sale rule are irrelevant inside these accounts. The tradeoff is that losses realized inside an IRA or 401(k) can’t be used to offset gains in your taxable accounts.

A Big Gain May Trigger an Estimated Tax Payment

A large sale can push you into owing quarterly estimated tax. The IRS expects estimated payments if you’ll owe at least $1,000 after withholding and credits, and your withholding won’t cover at least 90% of this year’s tax or 100% of last year’s tax.12Internal Revenue Service. Estimated Tax If your prior year’s AGI exceeded $150,000 ($75,000 if married filing separately), the safe harbor rises to 110% of last year’s tax.

The 2026 quarterly due dates are April 15, June 15, September 15, and January 15, 2027.13Taxpayer Advocate Service. Making Estimated Tax Payments Realize an unexpected $50,000 gain in August, and a payment by September 15 protects you from an underpayment penalty. As an alternative to writing a quarterly check, you can ask your employer to increase W-2 withholding for the rest of the year.14Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty

How the Sale Gets Reported

Your brokerage reports every sale to the IRS on Form 1099-B, which you’ll receive by mid-February for the prior tax year. The form shows the sale proceeds and, for shares purchased after certain dates, your cost basis.15Internal Revenue Service. 2026 Instructions for Form 1099-B You report each sale on Form 8949, which feeds Schedule D.

If the basis on your 1099-B is wrong, don’t quietly substitute your own number. The IRS has the same 1099-B. Enter the broker’s reported basis on Form 8949, then use a separate column to enter an adjustment with the appropriate code explaining the correction.16Internal Revenue Service. 2025 Instructions for Form 8949 Basis mismatches are one of the most common reasons the IRS sends a letter. Common reasons the broker’s number is off: shares transferred from another brokerage, inherited stock, or shares received as a gift.

Don’t Forget State Tax

Federal tax is only part of the bill. Most states tax capital gains as ordinary income, with rates running from roughly 2% to over 13%. A handful of states have no personal income tax, so gains escape state tax entirely there. Some states follow the federal short-term/long-term distinction; others tax all gains at the same rate. Check your state’s rules before assuming the federal rate is your whole obligation.