Skip Navigation
Home / investing / What Happens When You Sell Investments From a Brokerage Account?

investing

Jul 16, 2021

What Happens When You Sell Investments From a Brokerage Account?

You may owe either short-term or long-term capital gains taxes.

By Stash Team

Last updated: June 09, 2026

Selling an investment in a taxable brokerage account does three separate things: it places a trade, turns the investment into cash after settlement, and may create a tax event. The tax part is the piece many investors miss. You can owe tax even if the money never leaves your brokerage account.

Here’s what usually happens when you sell stocks, ETFs, mutual funds, or other investments from a taxable brokerage account, including settlement timing, capital gains taxes, losses, dividends, and tax forms.

Understanding brokerage account selling

When you invest in the stock market, the value of your investment can rise or fall. If you sell for more than you paid, you generally have a capital gain. If you sell for less than you paid, you generally have a capital loss.

A simple example:

  • You buy 10 shares at $20 each, so your cost basis is $200.

  • Later, you sell those shares for $60 each, so your proceeds are $600.

  • Your capital gain is $400 before any adjustments.

That gain is “realized” when you sell. In a taxable brokerage account, realized gains are generally reportable for tax purposes. It does not matter whether you withdraw the cash, leave it sitting in the account, or reinvest it in something else.

If the same investment fell and you sold it for $150, you would generally have a $50 capital loss. That loss may help offset capital gains and, in some cases, a limited amount of ordinary income.

Think of it this way: the IRS usually cares about the sale, not the withdrawal. The sale is what locks in the gain or loss.

What happens right after you sell an investment?

The details depend on your brokerage firm and the type of investment, but the process usually looks like this:

  1. Your order is placed. You submit a sell order. Depending on the order type and market conditions, it may execute right away or later.

  2. The investment is sold. Once the order executes, you no longer own the shares or units you sold.

  3. The proceeds become unsettled cash. The sale has happened, but the cash may not be available to withdraw yet.

  4. The trade settles. After settlement, the proceeds generally become settled cash in the account.

  5. You decide what to do next. You may be able to reinvest, hold cash, or request a withdrawal, subject to your brokerage’s rules.

This article focuses on taxable brokerage accounts. Retirement accounts, such as traditional IRAs and Roth IRAs, have different tax rules. In many retirement accounts, buying and selling investments inside the account does not create the same immediate taxable capital gain or loss, but withdrawals may have their own rules.

How long does it take for a brokerage sale to settle?

In the U.S., the standard settlement cycle for most stocks, ETFs, corporate bonds, municipal bonds, and listed options is T+1. This rule took effect on May 28, 2024. T+1 means the trade generally settles one business day after the trade date.

Example: If you sell a stock on Monday and Tuesday is a normal business day, the trade typically settles on Tuesday. If you sell on Friday, the trade typically settles on Monday, unless Monday is a market holiday.

Some investments can settle on a different timeline. Certain mutual funds, Treasury securities, or other products may follow different rules depending on the investment and brokerage platform. Withdrawing money can also take additional time after settlement, depending on your brokerage firm, bank, and transfer method.

Settlement timing and tax timing are not the same thing. For tax purposes, investment sales are generally reported based on the trade date, not the day cash arrives in your bank account.

Short-term capital gains vs. long-term capital gains

Capital gains are usually split into two categories:

  • Short-term capital gains: gains on investments held one year or less.

  • Long-term capital gains: gains on investments held for more than one year.

Short-term capital gains are taxed at your ordinary federal income tax rate. For tax year 2026, federal ordinary income tax rates range from 10% to 37%, depending on taxable income and filing status.

Long-term capital gains are often taxed at lower federal rates: 0%, 15%, or 20%. For tax year 2026, the 0% long-term capital gains rate applies up to $49,450 of taxable income for single filers and $98,900 for married couples filing jointly. The 20% rate begins when taxable income is over $545,500 for single filers and over $613,700 for married couples filing jointly. Many taxpayers fall into the 15% range between those thresholds.

High-income taxpayers may also owe the 3.8% net investment income tax. That tax can apply when modified adjusted gross income is over $200,000 for single filers, $250,000 for married couples filing jointly, or $125,000 for married people filing separately. These thresholds are not indexed for inflation. State and local taxes may also apply.

This is one reason Stash takes a long-term view. Frequent trading can create more taxable events, more records to track, and more chances to let emotion drive the decision. Investing for the long term, staying diversified, and investing consistently is not flashy. But for many investors, it is a more durable approach than chasing quick moves.

What happens if you sell at a loss?

If you sell an investment for less than your cost basis, you generally realize a capital loss. Cost basis is usually what you paid for the investment, adjusted for items such as reinvested dividends, return of capital, stock splits, or certain fees.

Capital losses can offset capital gains. If your losses are greater than your gains, you may be able to deduct up to $3,000 of net capital losses from ordinary income each year, or $1,500 if married filing separately. Unused losses can generally be carried forward to future tax years.

Example:

  • You realize $2,000 in capital gains from one investment.

  • You realize $5,500 in capital losses from another investment.

  • Your net capital loss is $3,500.

  • You may be able to deduct $3,000 against ordinary income this year and carry the remaining $500 forward.

One rule matters a lot here: the wash sale rule. If you sell an investment at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the IRS may disallow the loss for current tax purposes. The disallowed loss is generally added to the cost basis of the replacement investment.

Plain English: you usually cannot sell just to claim a tax loss and immediately buy back the same thing as if nothing happened.

Paying taxes on dividends and interest

A dividend is a portion of a company’s earnings, paid out to shareholders of some investments. Some investors automatically reinvest dividends through a dividend reinvestment plan, often called a DRIP.

Whether you reinvest dividends or receive them as cash, they may still be taxable in the year they are paid. Reinvesting changes what happens to the cash. It does not usually erase the tax reporting.

The tax rate depends on whether the dividends are ordinary, also called nonqualified, or qualified. Ordinary dividends are taxed at ordinary income tax rates. Qualified dividends are generally taxed at long-term capital gains rates.

To be qualified, a dividend must meet IRS requirements. Generally, it must be paid by a U.S. company or qualifying foreign company, and you must meet a holding-period requirement tied to the ex-dividend date. You can learn more about qualified dividends and ex-dividend dates here.

Interest from cash, bonds, or other income-producing investments may also be taxable. Some types of interest, such as certain municipal bond interest, may receive different federal or state tax treatment.

Will you get tax forms after selling investments?

If you sell investments in a taxable brokerage account, your brokerage firm will typically provide Form 1099-B or a consolidated 1099 after year-end. This form reports sale proceeds and may include cost basis and holding-period information.

You may also receive:

  • Form 1099-DIV for dividends and capital gain distributions.

  • Form 1099-INT for interest.

  • Form 1099-MISC for certain other reportable income.

Brokerage tax forms are often available by mid-February, though timing can vary and corrected forms can happen. You generally use this information to report investment sales on Form 8949 and Schedule D when filing your federal tax return.

Brokerage firms usually do not withhold federal taxes from investment sales automatically unless backup withholding applies. If you realize a large gain, you may want to consider whether estimated tax payments are needed. A qualified tax professional can help you understand your specific situation.

Do you pay taxes when you withdraw from a brokerage account?

For a taxable brokerage account, the taxable event usually happens when you sell an investment for a gain, receive dividends, or earn interest. Withdrawing settled cash is not usually the taxable event by itself.

Example:

  • You sell stock and realize a $1,000 capital gain.

  • You leave the cash in your brokerage account for two months.

  • You later transfer the settled cash to your bank.

The $1,000 gain may be taxable for the year of the sale. The later withdrawal generally does not create a second taxable event.

This is different from many tax-advantaged retirement accounts, where withdrawals can have separate tax rules, penalties, or reporting requirements.

Things to consider before selling investments

Before selling from a taxable brokerage account, ask yourself:

  • Am I selling because my plan changed, or because the market feels stressful?

  • Am I rebalancing, raising cash, reducing risk, or switching investments for a clear reason?

  • Does this investment have an unrealized gain or loss?

  • Have I held it for one year or less, or more than one year?

  • Could the sale affect my tax bracket, capital gains rate, or eligibility for credits and deductions?

  • Could the wash sale rule apply if I plan to buy a similar investment?

  • Will I need cash soon, and has the trade settled?

  • Are there account, regulatory, or investment-related fees to understand?

Selling is not bad. Sometimes it is the right move for a plan. But selling because of headlines, hype, or panic can turn investing into guesswork. Stash’s point of view is simple: build your portfolio for the long term, diversify, invest consistently, and use guidance instead of trying to decode every money decision by yourself.

A financial advisor in your pocket should not be reserved for people with huge portfolios. That is the point of Stash: guidance for everyone, built into your phone.

Follow the Stash Way

Stash encourages you to follow the Stash Way, our investing philosophy which includes investing regularly, diversifying, and investing for the long run.

The Stash Way does not mean you never sell. It means selling should fit your plan instead of replacing it.

FAQs about selling investments from a brokerage account

What happens when you sell stock in a brokerage account?

When you sell stock, the shares are removed from your account after the order executes and the sale proceeds generally become cash after the trade settles. For most U.S. stocks and ETFs, settlement is T+1, or one business day after the trade date. If the sale creates a gain or loss, it is generally reportable for tax purposes in a taxable brokerage account.

Do I pay taxes immediately when I sell investments?

You usually do not pay tax at the moment you click sell. But the sale can create a taxable gain for that tax year. You report the sale when you file your tax return, and you may need estimated tax payments if the gain is large enough.

Do you pay taxes if you sell stock and do not withdraw the money?

Yes, you may still owe tax if you sell at a gain. In a taxable brokerage account, the sale is usually the tax event, not the withdrawal. Leaving the proceeds in the account does not make the realized gain disappear.

Do you pay taxes if you sell stock and reinvest the money?

Yes, you may still owe taxes if you sell at a gain, even if you immediately reinvest the proceeds in another investment. Reinvesting does not erase a realized gain in a taxable brokerage account.

Can I sell investments and leave the cash in my brokerage account?

Yes. After the trade settles, you can generally leave the proceeds as cash, reinvest them, or withdraw them. Leaving cash in the account does not change whether a gain or loss was realized for tax purposes.

Do you pay taxes when you withdraw money from a brokerage account?

In a taxable brokerage account, withdrawals of settled cash are generally not taxed by themselves. Taxes are usually tied to realized gains from selling investments, dividends, and interest. If you sold investments before withdrawing, that sale may be taxable even if the withdrawal itself is not.

How long after selling stock can you withdraw the money?

For most U.S. stocks and ETFs, the sale generally settles one business day after the trade date under the T+1 settlement cycle. After settlement, withdrawal timing depends on your brokerage firm, bank, and transfer method.

How are brokerage account losses taxed?

Capital losses can offset capital gains. If your losses exceed your gains, you may be able to deduct up to $3,000 per year against ordinary income, or $1,500 if married filing separately. Additional unused losses can generally be carried forward to future tax years.

What is the wash sale rule?

The wash sale rule can apply if you sell an investment at a loss and buy the same or a substantially identical security within 30 days before or after the sale. If the rule applies, the loss is generally disallowed for current tax purposes and added to the basis of the replacement investment.

Are dividends taxable if I reinvest them?

Yes. Dividends are generally taxable in the year they are paid, whether you take them in cash or reinvest them. Qualified dividends may be taxed at lower long-term capital gains rates, while ordinary dividends are taxed at ordinary income rates.

What tax forms do I get after selling investments?

You will typically receive Form 1099-B or a consolidated 1099 from your brokerage if you sold investments in a taxable account. You may also receive Form 1099-DIV for dividends and Form 1099-INT for interest.

Does selling stock count as income?

A gain from selling stock in a taxable brokerage account is generally considered a capital gain, not wages or salary. Short-term capital gains are taxed at ordinary income tax rates, while long-term capital gains are usually taxed at 0%, 15%, or 20% federally, depending on your taxable income and filing status.

Important disclosures

  • Investing involves risk, including the possible loss of principal. Past performance is not a guarantee of future results.

  • This article is for educational purposes only and is not a recommendation to buy, sell, or hold any security.

  • Stash is not a bank. Banking services are provided by a partner bank, and FDIC insurance is provided through that partner bank.

  • Hypothetical examples are for general illustrative and educational purposes only and are not indicative of the future performance of any actual investment or investment strategy. Actual results will vary due to market conditions, volatility, taxes, fees, and subscription costs.

  • Stash offers subscription plans starting at $3 per month. Other fees may apply; see the fee schedule for details.

  • Stash does not provide tax or legal advice. Consult a qualified tax or legal professional about your own circumstances.

  • This material is for informational and educational purposes only and does not constitute investment, legal, accounting, or tax advice. The information reflects market conditions as of publication and may change without notice. Stash makes no guarantees regarding accuracy or future performance. Investing involves risk, including possible loss of principal. Examples are for illustrative purposes only and not recommendations to buy or sell any security or strategy. Past performance does not guarantee future results. For full disclosures, visit www.stash.com/disclosures.

Written by

Team Stash

We want to turn money into a source of hope and opportunity. We teach people how to build good habits, save more and make it easy and affordable to get started investing. So far, we’ve helped over 6 million people create a more secure financial future with our expert advice and award winning investing app.

1 Remember, not all stocks pay out dividends. And there’s no guarantee any stock will pay dividends in a quarter or year. Dividends may be subject to additional taxes, and are considered taxable income. Please refer to the IRS for additional information.
This should not be construed as tax advice. Please consult a tax professional for additional questions.