How Is Withdrawing From a Brokerage Account Taxed?

Withdrawing money from a brokerage account is not, by itself, a taxable event. What the IRS taxes is the profit you realize when you sell an investment inside the account. If the cash you’re moving to your bank came from selling shares at a gain, that gain is taxable whether or not you actually withdraw the proceeds. If the cash was already sitting there from a prior sale, a dividend, or a deposit, transferring it out triggers no new tax. So the real question behind how withdrawing from a brokerage account is taxed is what, if anything, you had to sell to raise the money.

When Moving Cash Out Isn’t a Tax Event

Cash already in your settlement fund or money market can leave the account without generating anything new for the IRS. The tax consequences, if any, were locked in earlier: when the sale happened, or when the income was credited.

Dividends and interest earned inside a taxable brokerage account are taxed in the year they’re credited, whether you withdraw them or leave them alone. The IRS treats income as “constructively received” the moment it’s available to you.1Internal Revenue Service. Publication 550, Investment Income and Expenses A $500 dividend paid in 2026 is 2026 income even if the money stays parked until 2028.

The scenario that produces a fresh tax bill is different: you need cash, you don’t have enough sitting in the account, and you sell an investment to raise it. That sale is what the IRS cares about.

The Taxable Event: Selling to Raise Cash

A gain doesn’t count until you sell. A stock that has tripled owes nothing while you hold it; the profit is “unrealized.” Sell to fund a withdrawal and that profit becomes “realized” and taxable.2Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss

Holding period decides which rate applies. One year or less, and the profit is a short-term capital gain. More than one year, and it qualifies as a long-term capital gain.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses The difference between day 365 and day 366 can move you into a much lower rate, so it’s worth checking a purchase date before you sell.

Netting Gains and Losses

If you make multiple sales in a year, the IRS doesn’t tax each one on its own. Short-term gains and losses offset each other first, long-term gains and losses do the same, and if one category ends up positive and the other negative, they offset across. If losses exceed gains overall, you can deduct up to $3,000 of net losses against ordinary income ($1,500 if married filing separately), and anything left over carries forward to future years.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

How the Gain Is Calculated

Your taxable gain is the sale price minus your cost basis, which is generally what you paid for the investment plus any transaction fees. Buy 100 shares at $50 and your basis is $5,000. Sell them for $8,000 and the taxable gain is $3,000.2Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss

Cost basis shifts over time. Every reinvested dividend creates a new purchase lot with its own basis. If you put $10,000 into a mutual fund and reinvested $2,000 of dividends over a few years, your total basis is $12,000. Missing those reinvestments is a common mistake, and it means overpaying tax on a gain that’s smaller than it looks.

Which Shares Count as Sold

If you bought the same holding at different times and prices, the default rule is first-in, first-out: your oldest shares are treated as sold first.4Internal Revenue Service. Stocks (Options, Splits, Traders) 3 For a holding that has risen steadily, FIFO usually means selling the lowest-basis shares and reporting the largest gain.

Specific share identification is often better for tax purposes. You tell your broker exactly which lots to sell, letting you pick higher-basis shares to shrink the gain, or shares at a loss to offset other gains. You have to identify the lots at or before settlement, and most brokerage trade screens now allow this directly. The brokerage tracks basis and holding period and reports them to the IRS, but accuracy on your return is your responsibility.

What Rate You’ll Pay

Short-Term Gains

Short-term capital gains are taxed like wages, at federal ordinary income rates that run from 10% to 37% for 2026.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses A single big short-term sale can bump you into a higher bracket for the year.

Long-Term Gains

Long-term gains get preferential rates of 0%, 15%, or 20%. For 2026 single filers:

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

For joint filers, the 0% band runs through $98,900, 15% covers $98,901 through $613,700, and 20% applies above that. Most people land in the 15% bracket, which means holding past the one-year mark can roughly halve the tax rate compared to a short-term sale.

The Net Investment Income Tax

Higher earners owe an additional 3.8% Net Investment Income Tax on top of the capital gains rate. It applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).5Internal Revenue Service. Topic No. 559, Net Investment Income Tax Those thresholds don’t adjust for inflation, so they catch more taxpayers each year. Combined with the 20% long-term rate, the top federal rate on long-term gains reaches 23.8%.6Internal Revenue Service. Questions and Answers on the Net Investment Income Tax

Qualified Dividends

Dividends from most U.S. stocks and many stock funds can qualify for the same 0%, 15%, or 20% rates as long-term gains rather than being taxed as ordinary income.7Internal Revenue Service. Topic No. 404, Dividends and Other Corporate Distributions They’re taxed in the year received whether or not you withdraw them.

Reporting the Sale on Your Return

Your brokerage sends you Form 1099-B after year-end. It lists each sale, the proceeds, cost basis (for covered securities), and whether the gain or loss is short- or long-term.8Internal Revenue Service. About Form 1099-B, Proceeds from Broker and Barter Exchange Transactions The IRS receives a copy, so mismatches get flagged.

You transfer the 1099-B data to Form 8949, where transactions are listed individually and categorized. The totals from Form 8949 flow to Schedule D, which nets everything and produces the number that lands on your Form 1040.8Internal Revenue Service. About Form 1099-B, Proceeds from Broker and Barter Exchange Transactions

Ways to Reduce the Tax Bill

Harvesting Losses

Selling holdings that are down deliberately generates realized losses, which then offset gains from other sales dollar for dollar. If losses exceed gains, up to $3,000 goes against ordinary income and the rest carries forward.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Watch the wash sale rule. Sell at a loss and buy the same or a substantially identical security within 30 days before or after, and the IRS disallows the loss.9Office of the Law Revision Counsel. 26 USC 1091 – Loss from Wash Sales of Stock or Securities The disallowed amount gets added to the basis of the replacement shares, so it isn’t lost forever, but it doesn’t help the current year’s return.

Picking High-Basis Lots

With specific share identification, you can sell your highest-basis lots to narrow the gain. Own 100 shares bought at $40 and 100 bought at $70, with the stock now at $80, and selling the $70 lot produces a $10-per-share gain instead of $40. On the same withdrawal, that choice can cut the tax by more than half.

Waiting Past the One-Year Mark

The simplest lever is time. Holding for at least a year and a day converts a short-term gain taxed at up to 37% into a long-term gain taxed at 0%, 15%, or 20%. If a sale is close to the line, checking the purchase date can be worth real money.

Donating Appreciated Shares

If you plan to give to charity anyway, donating appreciated securities you’ve held more than a year is usually more efficient than selling and donating the cash. You generally deduct the full fair market value and skip the capital gains tax on the appreciation. The deduction for donated appreciated securities is capped at 30% of your adjusted gross income for the year, with a five-year carryforward for unused amounts.10Office of the Law Revision Counsel. 26 USC 170 – Charitable, Etc., Contributions and Gifts

Estimated Tax After a Large Sale

A big sale can produce a tax bill that paycheck withholding won’t cover. If you expect to owe at least $1,000 after withholding and credits, and your withholding won’t reach either 90% of your 2026 liability or 100% of your 2025 liability, the IRS expects quarterly estimated payments. The prior-year safe harbor rises to 110% if your 2025 adjusted gross income was over $150,000.11Internal Revenue Service. 2026 Form 1040-ES Estimated Tax for Individuals

The four 2026 deadlines:

  • April 15, for income earned January through March
  • June 15, for income earned April through May
  • September 15, for income earned June through August
  • January 15, 2027, for income earned September through December

If your gain hits late in the year, you don’t necessarily owe estimated payments for the earlier quarters. The annualized income installment method on Form 2210, Schedule AI lets you base each quarter’s payment on income actually received in that quarter rather than spreading the full-year liability evenly.11Internal Revenue Service. 2026 Form 1040-ES Estimated Tax for Individuals Missing a required payment produces an underpayment penalty that works like interest.12Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty

State Tax on the Same Gain

Federal tax is only part of the cost. Most states tax capital gains as ordinary income, with top rates ranging from roughly 3% to more than 13%. A handful of states have no income tax and therefore no state-level capital gains tax. Rates and rules vary widely, so checking your state’s treatment before a large sale is worth the effort.

Medicare Premium Surcharges Two Years Later

If you’re on Medicare or approaching it, realized capital gains count toward the modified adjusted gross income that determines Income-Related Monthly Adjustment Amounts on Part B and Part D premiums. IRMAA uses your tax return from two years back, so a big sale in 2026 affects your 2028 premiums.

For 2026, Part B premiums start at $202.90 per month for individuals with MAGI at or below $109,000 (or $218,000 filing jointly). Above that, surcharges kick in at several tiers, reaching $689.90 per month at the highest income bracket. Part D carries its own surcharges on the same brackets.13Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles

If a one-off sale pushed your income up in a year you’ve since had a qualifying life-changing event such as retirement or a work reduction, Form SSA-44 asks Social Security to recalculate your IRMAA on a more current year’s income.14Social Security Administration. Medicare Income-Related Monthly Adjustment Amount – Life-Changing Event

Retirement Accounts Work Differently

Everything above applies to standard taxable brokerage accounts. IRAs, 401(k)s, and other retirement accounts follow separate rules. Trades inside those accounts create no capital gains tax at all while the money stays in the account; instead, withdrawals from traditional accounts are taxed as ordinary income, qualified Roth withdrawals are tax-free, and early withdrawals generally face a 10% penalty on top of any income tax owed.15Vanguard. IRA Withdrawal Rules: What You Need to Know