Can You Sell All Your Stocks at Once: Taxes, Wash Sales, Settlement

Yes, you can sell every stock in your portfolio in a single day, and the tax consequences of selling all your stocks at once are the main thing standing between the sale price and what actually lands in your bank account. Each position sold for more than you paid triggers a capital gain, taxed at either your ordinary income rate or the long-term capital gains rate depending on how long you held it. High earners owe an extra 3.8% on top. Losses in the portfolio offset the gains, cash takes a business day to settle, and if the bill is large enough you’ll owe the IRS before next April rather than with your return.

How Your Gains Will Be Taxed

The IRS sorts capital gains into two buckets based on holding period. Shares you held for one year or less produce short-term gains, taxed at your ordinary income tax rate. Shares held longer than a year qualify for long-term capital gains rates of 0%, 15%, or 20%, depending on your total taxable income.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

For 2026, single filers pay 0% on long-term gains if taxable income stays at or below $49,450, and 15% on income between that threshold and $545,500. The 20% rate applies above $545,500. Married couples filing jointly hit a 0% ceiling of $98,900 and cross into the 20% bracket above $613,700. These thresholds adjust for inflation annually, so liquidating in a high-income year versus splitting the sale across two tax years can meaningfully change what you owe.

Your brokerage reports every sale to the IRS on Form 1099-B, listing your cost basis (what you originally paid) and gross proceeds. That information flows onto Schedule D of your federal return. Nothing is withheld at the time of sale from a regular taxable brokerage account, so you need to set money aside from the proceeds to cover the bill yourself.

The 3.8% Net Investment Income Tax

High earners face an additional 3.8% surtax on net investment income, including capital gains. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 for single filers and $250,000 for joint filers.2Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax Those thresholds are not indexed for inflation, so they catch more households each year. If a full liquidation pushes your total income past those marks, the effective federal rate on long-term gains can reach 23.8%.3Internal Revenue Service. Topic No. 559, Net Investment Income Tax

State Taxes on Top

Most states tax capital gains as ordinary income, with rates running from roughly 0% to over 10% depending on where you live. A handful of states impose no income tax at all. Combined federal and state rates can approach 35% or more on short-term gains for residents of high-tax states, so factor your state’s rate in when estimating what you’ll actually keep.

Losses Offset Gains, But Watch the Wash Sale Rule

When you sell everything at once, some positions will show gains and others losses. The losses directly offset the gains, so you only owe tax on the net result. If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income each year ($1,500 if married filing separately).4Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Any unused loss carries forward indefinitely until fully used.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

The wash sale rule can quietly erase this benefit. If you sell a stock at a loss and buy the same security or something substantially identical within 30 days before or after the sale, the IRS disallows the loss.5Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount attaches to the cost basis of the replacement shares, so the deduction is deferred rather than lost forever. If you’re truly exiting the market, this won’t come up. If you plan to sell and immediately reinvest in something similar, you can accidentally wipe out the tax benefit of your losing positions.

Paying the IRS Before Next April

A full liquidation can produce a tax bill far larger than what regular withholding covers. If you’ll owe more than $1,000 in additional tax for the year, the IRS expects estimated quarterly payments or increased withholding to make up the shortfall. The safe harbor rule lets you avoid a penalty if you pay at least 90% of the current year’s tax or 100% of the prior year’s tax, whichever is smaller.6Internal Revenue Service. Estimated Taxes

Timing matters. Sell in January and you have four quarterly deadlines to spread payments across. Sell in December and you have very little time before the January 15 deadline for the Q4 estimate. Missing these deadlines produces interest-based penalties that accrue daily. Many people who liquidate in a single event are surprised by an underpayment penalty the following April because they never adjusted their withholding or sent in a quarterly check.

When the Cash Actually Arrives

Clicking sell doesn’t put cash in your bank account immediately. The U.S. securities market runs on a T+1 settlement cycle, meaning the trade finalizes one business day after execution.7U.S. Securities and Exchange Commission. Shortening the Securities Transaction Settlement Cycle – Final Rule Until settlement, the money sits as unsettled cash in your brokerage account. You can typically use it to buy other securities, but you cannot withdraw it.

Once cash settles, moving it to your bank takes more time. An ACH transfer usually clears in one to three business days. Wire transfers arrive the same day or the next day but commonly cost $15 to $25. If you need the proceeds by a specific date, count backward: one day for settlement plus one to three days for the bank transfer means selling at least two to four business days ahead.

Selling Inside a 401(k) or IRA Is Different

Everything above applies to a regular taxable brokerage account. Selling all the holdings inside a 401(k) or traditional IRA triggers no immediate tax, because retirement accounts are tax-deferred. The tax event happens when you withdraw the cash, not when you sell the underlying investments.

If you’re under 59½ and pull the proceeds out of a traditional IRA or 401(k), the IRS adds a 10% early withdrawal penalty on top of ordinary income tax.8Office of the Law Revision Counsel. 26 U.S. Code 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts Exceptions exist, including substantially equal periodic payments, certain medical expenses, and first-time home purchases for IRAs.9Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions Without a qualifying exception, the penalty applies to the entire taxable amount.

Brokerages withhold 10% for federal taxes on IRA distributions by default unless you elect a different rate on Form W-4R.10Internal Revenue Service. Form W-4R – Withholding Certificate for Nonperiodic Payments and Eligible Rollover Distributions For a large distribution, 10% is almost certainly not enough to cover the real tax owed. Raise the withholding rate or plan on estimated payments to avoid a shortfall.

Two Details That Change the Final Number

If any of your holdings pay dividends, sale timing decides whether you collect the next payment. The key date is the ex-dividend date: sell before it and you get the dividend, sell on or after it and the buyer does.11Investor.gov. Ex-Dividend Dates: When Are You Entitled to Stock and Cash Dividends Across a diversified portfolio, checking these dates before liquidating can be worth hundreds or thousands of dollars for the sake of waiting a day or two.

If your real goal is switching brokers rather than cashing out, selling everything is the wrong move. An in-kind transfer through the Automated Customer Account Transfer Service (ACATS) moves your holdings as-is, without selling. The process typically completes within six business days.12U.S. Securities and Exchange Commission. Transferring Your Brokerage Account: Tips on Avoiding Delays Because nothing is sold, no gains are realized and no tax is owed. Cost basis and holding periods carry over with the shares. The only reason to sell first is if the new brokerage doesn’t support certain investments, such as proprietary mutual funds from the old firm.