You pay taxes on stocks when something turns a paper position into a realized event: selling shares for more than you paid, receiving a dividend (even one automatically reinvested), having employer stock vest or exercising certain options, or being cashed out in a merger. Simply watching a share price rise creates no tax. Once a triggering event happens, the federal tax on it is generally due April 15 of the following year, with quarterly estimated payments required along the way if you expect to owe $1,000 or more.
Selling Shares at a Profit
A sale is the most common trigger. The difference between your sale price and your cost basis is a capital gain, and the IRS treats the trade execution date as the moment the liability arises.1Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss Whether you sweep the cash to your bank or leave it in the brokerage account makes no difference.
How long you held the shares before selling determines the rate. One year or less produces a short-term gain, taxed at the same rates as your wages, up to 37 percent for the highest earners in 2026.2Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses Hold for more than a year, and the profit qualifies for long-term capital gains rates of 0, 15, or 20 percent based on taxable income.
For 2026, single filers pay 0 percent on long-term gains at or below $49,450 of taxable income, 15 percent from there up to $545,500, and 20 percent above that. Married couples filing jointly cross into the 15 percent rate above $98,900 and the 20 percent rate above $613,700.3Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
High-income investors also owe a 3.8 percent net investment income tax on top of these rates. It applies to the smaller of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately). These thresholds are not indexed for inflation.4Internal Revenue Service. Questions and Answers on the Net Investment Income Tax
Receiving Dividends
Dividends are taxable in the year they’re paid to you, and enrollment in a dividend reinvestment plan changes nothing about that. The IRS treats a reinvested dividend as income received and then voluntarily used to buy more shares, so you owe tax on it even though no cash ever hit your bank account.
Qualified dividends, paid by most U.S. corporations on stock you have held for at least 61 days during the 121-day window surrounding the ex-dividend date, are taxed at the same 0, 15, or 20 percent rates as long-term capital gains.5Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed Ordinary (non-qualified) dividends are taxed at your regular income rate.
Foreign stocks add one wrinkle. If a foreign government withholds tax on your dividends, you can generally claim a foreign tax credit on your U.S. return. When total foreign taxes withheld are $300 or less ($600 for joint filers) and all the income is passive (dividends on a 1099-DIV, for example), you can claim the credit directly on your return without filing Form 1116.6Internal Revenue Service. Instructions for Form 1116 (2025)
Employer Stock: When the Tax Event Happens
If part of your compensation is stock, when you owe tax depends on the type of award.
Restricted Stock Units
RSUs trigger tax at vesting, not at grant and not at sale. The fair market value of the shares on the vest date is ordinary income, taxed alongside your wages, and most employers withhold by selling a portion of the vested shares automatically.7Internal Revenue Service. U.S. Taxation of Stock-Based Compensation If you keep the shares and later sell for more than their value at vesting, that additional profit is a separate capital gain measured from the vest date.
Stock Options
Nonqualified stock options (NQSOs) are taxed when you exercise them. The spread between the market price and your exercise price becomes ordinary income right then, whether you sell the shares immediately or hold them, and any later appreciation is a capital gain.8Internal Revenue Service. Topic No. 427, Stock Options
Incentive stock options (ISOs) work differently. Exercising typically produces no regular income tax, though the spread can trigger the alternative minimum tax. The taxable event for regular income tax purposes is the eventual sale of the shares.8Internal Revenue Service. Topic No. 427, Stock Options
Employee Stock Purchase Plans
For a qualified ESPP, the tax trigger is the sale of the shares, not the purchase. Hold the shares at least one year after the purchase date and two years after the option grant date, and part of the gain is ordinary income with the remainder taxed as long-term capital gain. Sell earlier and the discount you got at purchase becomes ordinary income in the year of the sale.9Internal Revenue Service. Stocks (Options, Splits, Traders) 5
Mergers, Buyouts, and Stock Splits
Some tax events come from the company, not from you. When a company you own is acquired for cash, the IRS treats the payout as a sale, and any gain over your cost basis is taxable in the year the deal closes.10Office of the Law Revision Counsel. 26 USC 356 – Receipt of Additional Consideration A pure stock-for-stock merger with no cash may be tax-free, with your old basis carrying over to the new shares.11Office of the Law Revision Counsel. 26 USC 354 – Exchanges of Stock and Securities in Certain Reorganizations A mixed deal is taxable up to the amount of cash received.
A standard stock split is not a taxable event. You end up with more shares representing the same ownership, and your total cost basis stays the same, just spread across more shares.12Internal Revenue Service. Stocks (Options, Splits, Traders) 7
Trades Inside Retirement Accounts Don’t Trigger Tax
Buying and selling stocks inside a traditional IRA, 401(k), or similar tax-deferred account creates no current-year tax, no matter how much you trade or how large the gains.13Investor.gov. Traditional and Roth 401(k) Plans Tax comes when you take money out. Withdrawals from traditional accounts are ordinary income, and taking money before age 59½ generally adds a 10 percent early-distribution penalty.14Internal Revenue Service. Retirement Plans FAQs Regarding IRAs Distributions (Withdrawals)
Roth accounts go a step further. Qualified distributions, meaning those taken after age 59½ and at least five tax years after your first Roth contribution, come out entirely tax-free, including all investment growth.15Office of the Law Revision Counsel. 26 U.S. Code 408A – Roth IRAs Withdrawing earnings before meeting both requirements makes the earnings portion taxable and potentially subject to the 10 percent penalty.
Using Losses to Reduce What You Owe
Selling losing positions can shrink the tax on your winners. Short-term losses first offset short-term gains and long-term losses first offset long-term gains. If losses exceed gains for the year, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately), with anything left over carrying forward to future years indefinitely.16Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses
Watch the wash sale rule. If you buy the same or a substantially identical stock within 30 days before or after a loss sale, you cannot deduct the loss in the year of sale. The disallowed loss gets added to the cost basis of the replacement shares instead of disappearing.17Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss from Wash Sales of Stock or Securities
When the Money Is Actually Due
Report your gains, losses, and dividends on the return due April 15 of the year after the taxable event. A stock sold in 2026 is reported on the return due April 15, 2027.18Internal Revenue Service. When to File Capital gains and losses go on Schedule D with individual trades detailed on Form 8949. Dividends flow from the Form 1099-DIV your broker sends.
Quarterly Estimated Payments
If you expect to owe $1,000 or more after withholding and credits, the IRS expects payments during the year, not a single check in April.19Office of the Law Revision Counsel. 26 USC 6654 – Failure by Individual to Pay Estimated Income Tax For 2026, the quarterly due dates are:
- First quarter: April 15, 2026
- Second quarter: June 15, 2026
- Third quarter: September 15, 2026
- Fourth quarter: January 15, 2027
You can skip the January 15 payment if you file the full 2026 return and pay the balance by February 1, 2027.20Internal Revenue Service. 2026 Form 1040-ES
Safe Harbor
You can dodge underpayment penalties even on a huge year-end gain if your withholding and estimates cover the lesser of 90 percent of your current-year tax or 100 percent of last year’s tax. If prior-year adjusted gross income topped $150,000 ($75,000 if married filing separately), the prior-year threshold rises to 110 percent.21Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty The prior-year safe harbor gives investors with lumpy gains a fixed target regardless of what the market does.
Extensions Don’t Buy More Time to Pay
Filing Form 4868 gives you until October 15 to file the return, but any tax owed is still due April 15 and starts accruing interest after that date.22Internal Revenue Service. Application for Automatic Extension of Time to File U.S. Individual Income Tax Return Miss the payment deadline and the IRS adds a failure-to-pay penalty of 0.5 percent of the unpaid balance for each month or part-month it stays unpaid, capped at 25 percent.23Internal Revenue Service. Failure to Pay Penalty
Forms From Your Broker
Your broker issues the forms you’ll need. Form 1099-DIV, reporting dividends, is due to you by January 31. Form 1099-B, reporting proceeds from sales, is due by mid-February.24Internal Revenue Service. General Instructions for Certain Information Returns (2025) If you hold accounts at more than one firm or own foreign stocks, wait for every form to arrive before filing so you don’t have to amend later.
State tax is separate. Most states treat capital gains and dividends as ordinary income under their regular brackets, but rates and exclusions vary widely, so check your state’s tax agency for the treatment that applies to you.