In the United States, no tax is generally withheld at the moment you sell a stock in a regular taxable brokerage account; instead, the gain or loss is reported on your tax return, and any tax owed is settled then (often through estimated payments during the year). Withholding can occur in narrower situations—certain backup-withholding cases, some cross-border and retirement-account contexts, and specific transaction types—but ordinary stock sales do not trigger automatic federal withholding.

What actually happens when you sell

When you sell a stock, your broker executes the trade and credits the proceeds to your account. The broker does not calculate your personal tax and remit a slice to the IRS the way an employer withholds from wages. What the broker does do is report the transaction: sales of securities are typically reported to you and the IRS on Form 1099-B (or an equivalent consolidated statement), showing proceeds, cost basis (where the broker has it), and whether the gain was short- or long-term.

Your actual tax is determined later, when you file. The taxable amount depends on whether you realized a gain or loss, how long you held the shares, your other income, and your filing status and brackets. A sale at a profit in a taxable account can therefore produce a tax bill with no money having been withheld along the way—a common source of April surprises for new investors.

This separation between the transaction and the tax is the core point. The broker's role is reporting; the taxpayer's role is computing and paying. The "retention" you may be thinking of is more characteristic of payroll (income tax withholding), certain retirement distributions (mandatory withholding on some payouts), or specific statutory backup-withholding rules—not the everyday sale of shares.

The important exception: backup withholding

The clearest case where tax is withheld from a stock sale is backup withholding. Under U.S. federal rules, a broker may be required to withhold a percentage of gross proceeds (the rate has been 24% in recent years, but the applicable rate should be confirmed for the relevant tax year) when, for example:

The payee has not furnished a correct taxpayer identification number (TIN). The IRS has notified the broker that the payee's TIN is incorrect or that backup withholding applies. The payee has failed to certify that they are not subject to backup withholding (for instance, by not providing a required Form W-9 certification).

Backup withholding is not a final tax; it is a prepayment that is credited against your total tax liability when you file. If too much was withheld relative to what you owe, you get it back as a refund. This is a crucial distinction: even in the withholding scenario, the money is not "lost"—it is reconciled on the return.

Note the ambiguity in the question's phrasing. "Are taxes retained when a stock is sold" could mean (a) does the broker automatically withhold tax from sale proceeds, or (b) do you ultimately owe tax on the sale. The answers differ: generally no automatic withholding, but yes, a tax consequence arises if you realize a gain (or a deductible loss if you realize a loss). Both readings are addressed here because conflating them is the usual source of confusion.

When a sale produces a taxable gain or loss

The tax consequence attaches to the realized result, not the mere act of selling. If you sell shares for more than your cost basis, you have a capital gain; if for less, a capital loss. Holding period matters: gains on shares held more than one year are generally long-term and taxed at preferential rates (0%, 15%, or 20% depending on income), while gains on shares held one year or less are short-term and generally taxed at ordinary income rates.

Losses can offset gains and, within limits, ordinary income—the familiar $3,000 annual cap on net capital losses against ordinary income for individual filers, with excess carried forward—though these figures and rules should be checked against the tax year in question. None of this is withheld at sale; it is computed on your return.

An illustrative, clearly hypothetical example: suppose you buy 100 shares at $50 ($5,000 basis) and sell them at $70 ($7,000 proceeds), a $2,000 long-term gain. If your applicable long-term rate is 15%, the federal tax attributable to that gain is about $300—but the broker withholds nothing at the sale. You account for that $300 through estimated tax payments or at filing. (These numbers are illustrative only; your actual rate depends on your full income picture.)

Retirement accounts and other contexts

Inside tax-advantaged accounts, the picture changes. In a traditional IRA or 401(k), selling a stock within the account is not a taxable event at all, and nothing is withheld—taxation is deferred until distribution, and withholding rules apply to certain distributions, not to trades inside the account. In a Roth IRA, qualified distributions can be tax-free. This is a frequent point of confusion: people see a "sell" button and assume a taxable event, but the account wrapper governs.

Certain other situations can involve withholding or reporting nuances—for example, payments to foreign persons may be subject to withholding under different rules, and some corporate actions or distributions carry their own treatment. These are context-specific and depend on facts the question does not supply.

What is unknown here, and what remains answerable

The question does not specify a jurisdiction, account type, holding period, or tax year. The answer above assumes a U.S. federal individual taxable brokerage account and general rules; state tax treatment varies, and non-U.S. systems differ substantially (some countries operate withholding regimes on securities transactions). The specific backup-withholding rate and the capital-loss cap should be confirmed for the year at issue, and the reference date of November 14, 2026, does not itself verify any rate. What is reliably answerable: ordinary stock sales in a U.S. taxable account do not carry automatic tax withholding, but they do carry a reporting and eventual tax obligation based on realized gain or loss.

Practical takeaway

The absence of withholding is not the absence of tax. Because nothing is retained at sale, investors who realize substantial gains should consider estimated tax payments to avoid underpayment penalties. Keeping accurate basis records—especially for shares where the broker may lack basis, such as older or transferred holdings—matters because the 1099-B may be incomplete. If a sale does trigger backup withholding, treat it as a credit to reclaim or apply at filing rather than as a final levy.

For anything involving your specific situation—estimated payments, multi-state issues, or cross-border holdings—a qualified tax professional is the appropriate source; the general principles here are educational and do not substitute for individualized advice.