Do Stocks Count as Income for Tax Purposes? Dividends and Gains

Stocks do not count as income for tax purposes just because you own them. Under federal tax law they are property, and they only become income when something specific happens: the company pays you a dividend, you sell shares for more than you paid, or shares granted by an employer vest. Until one of those events occurs, the IRS has no claim on the value sitting in your account, even if that value has grown substantially.

The rules below walk through each event that turns stock into taxable income, the situations that look like income but are not, and the extra taxes that can apply once your investment income crosses certain thresholds.

Rising Share Prices Are Not Taxable

If your stock has gone up in value but you have not sold it, you have what tax law calls an unrealized gain. The IRS does not tax it. A portfolio can grow by $100,000 in a year without generating a dollar of federal tax liability, because no taxable event has occurred. The growth stays an untaxed part of your net worth until you sell, exchange, or otherwise dispose of the shares. This is why it is possible to have significant wealth on paper and still report modest taxable income in a given year.

Dividends Count as Income

When a company distributes a share of its earnings to stockholders, each payment is taxable income for the year it is paid, whether or not you pull the cash out of your brokerage account. Your broker reports these payments on Form 1099-DIV, which splits them into two categories with different rates.1Internal Revenue Service. About Form 1099-DIV, Dividends and Distributions

  • Ordinary dividends are taxed at the same rates as wages and salary, from 10% to 37% for 2026 depending on your total taxable income.2Internal Revenue Service. Topic No. 404, Dividends and Other Corporate Distributions
  • Qualified dividends are taxed at the lower long-term capital gains rates of 0%, 15%, or 20%. To qualify, you generally must hold the stock at least 61 days during the 121-day window surrounding the ex-dividend date.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Reinvested dividends still count. If you are enrolled in a dividend reinvestment plan and the payment automatically buys more shares, the IRS treats the original distribution as income in the year it was issued. You owe tax on it whether or not you ever saw the cash.4Internal Revenue Service. Stocks (Options, Splits, Traders) 2

If you hold international stocks or foreign-focused funds, a foreign country may withhold tax on your dividends before you receive them. That foreign tax generally qualifies for a dollar-for-dollar credit against your U.S. tax bill, reported on your 1099-DIV, so the same income is not taxed twice.5Internal Revenue Service. Foreign Taxes That Qualify for the Foreign Tax Credit

Selling Stock at a Profit

Selling stock for more than you paid produces a realized capital gain. The gain is the difference between your sale price and your cost basis — what you paid plus any commissions — and you report it on Schedule D of your federal return.6Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses

How long you held the shares before selling controls the rate:

  • Short-term gains, on stock held one year or less, are taxed at your ordinary income rates, up to 37% for 2026.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses
  • Long-term gains, on stock held more than one year, are taxed at 0%, 15%, or 20% depending on taxable income and filing status. For 2026, single filers pay 0% on long-term gains if taxable income is at or below $49,450, 15% above that, and 20% once taxable income exceeds $545,500.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

If a stock becomes completely worthless — for instance, the company goes bankrupt — you can still claim a capital loss. The IRS treats worthless securities as if they had been sold on the last day of the tax year for zero dollars. You report the loss on Form 8949, and your holding period decides whether it is short-term or long-term.7Internal Revenue Service. Capital Gains, Losses, and Sale of Home

Losses That Cut Your Tax Bill

Selling a stock for less than you paid produces a capital loss, and losses offset gains. The IRS requires you to net short-term gains against short-term losses first, do the same for long-term transactions, and then combine the two.8Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets A $5,000 long-term gain paired with a $2,000 long-term loss leaves $3,000 taxable.

If your total losses exceed your total gains, you can deduct up to $3,000 of the net loss against other income like wages. The limit is $1,500 if you are married filing separately. Anything above that carries forward to future tax years until it is fully used.9Internal Revenue Service. 2025 Instructions for Schedule D (Form 1040)

The Wash Sale Rule

You cannot claim a loss if you buy the same or a substantially identical stock within 30 days before or after the sale. The IRS calls this a wash sale. The disallowed loss is not gone: it gets added to the cost basis of the replacement shares, so you recover the benefit when you eventually sell those. Your broker flags wash sales in Box 1g of Form 1099-B.10Internal Revenue Service. Case Study 1 – Wash Sales

Employer Stock Compensation

Stock granted by an employer becomes income at different points depending on the type of award.

Restricted Stock Units

Restricted stock units, or RSUs, are a promise to give you shares after you meet employment milestones, usually staying at the company for a set period. When the shares vest, their fair market value counts as ordinary earned income and shows up on your W-2 alongside your salary.11Internal Revenue Service. U.S. Taxation of Stock-Based Compensation If $10,000 of shares vest, that entire amount is added to your gross income, and your employer withholds federal and payroll taxes, often by selling some of the vested shares on your behalf. The vesting-date value becomes your cost basis, so any later change in price is a separate capital gain or loss.

Non-Qualified Stock Options

A non-qualified stock option, or NQSO, lets you buy company shares at a fixed grant price. When you exercise the option, the spread between the current market price and the grant price is taxed as ordinary wages in that year.12Internal Revenue Service. Topic No. 427, Stock Options Exercising at $20 when the stock trades at $50 produces $30 per share of ordinary income.

Incentive Stock Options

Incentive stock options, or ISOs, get more favorable treatment. You do not owe regular income tax at exercise, but the spread between grant price and market price at exercise may trigger the alternative minimum tax.12Internal Revenue Service. Topic No. 427, Stock Options Holding the stock for more than one year after exercise and more than two years after the grant date qualifies any profit on sale for long-term capital gains rates. Selling sooner is a disqualifying disposition, and part or all of the gain becomes ordinary income.

Gifted and Inherited Stock

Receiving stock as a gift is not taxable income for you. The donor may need to file a gift tax return, Form 709, if the value exceeds the annual gift tax exclusion, which is $19,000 per recipient for 2026.13Internal Revenue Service. Frequently Asked Questions on Gift Taxes Your cost basis in gifted shares is generally the same as the donor’s original basis, so tax comes into the picture only when you later sell.

Inherited stock is treated differently. The cost basis resets to the stock’s fair market value on the date of the original owner’s death, a rule called the stepped-up basis. If your parent bought shares at $10 and they were worth $100 at death, your basis is $100, and all of the appreciation during their lifetime escapes income tax entirely.14Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent

The 3.8% Net Investment Income Tax

Higher-income investors pay an extra 3.8% surtax on net investment income, which includes dividends and capital gains from stock sales. The tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds the threshold for your filing status:15Internal Revenue Service. Topic No. 559, Net Investment Income Tax

  • Single or head of household: $200,000
  • Married filing jointly: $250,000
  • Married filing separately: $125,000

These thresholds are fixed by statute and are not adjusted for inflation.16Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax When the surtax applies, the effective rate on long-term capital gains can reach 23.8% at the highest income levels.

Stocks Held Inside Retirement Accounts

The rules above assume a regular taxable brokerage account. Stocks held inside a tax-advantaged retirement account follow different rules: dividends and gains inside the account are not taxed as they occur.

  • In a traditional IRA or 401(k), dividends and gains are untaxed while the assets stay in the account. Distributions in retirement are taxed as ordinary income regardless of whether the growth came from dividends, capital gains, or interest.17Internal Revenue Service. Traditional IRAs
  • In a Roth IRA or Roth 401(k), qualified distributions taken after age 59½ and at least five tax years after your first Roth contribution are completely tax-free, including all investment gains.18Internal Revenue Service. Roth IRAs

A traditional account gives you a deduction on the way in, but every dollar you withdraw later is taxed at ordinary income rates, even growth that would have qualified for the lower capital gains rate in a taxable account. A Roth flips that: after-tax dollars go in, and qualified withdrawals owe nothing.

Planning for Tax on Investment Income

Investment income usually arrives with no withholding, so a large stock sale or a big dividend payout mid-year can produce a surprise bill at filing time.

If you expect to owe at least $1,000 in tax for the year after withholding and refundable credits, the IRS generally requires quarterly estimated payments. You can avoid an underpayment penalty by paying at least 90% of the current year’s tax or 100% of the prior year’s tax through a combination of withholding and estimated payments. That safe harbor rises to 110% of the prior year’s tax if your prior-year adjusted gross income exceeded $150,000.19Internal Revenue Service. Estimated Tax

A few mistakes come up repeatedly on stock-related returns:

  • Leaving out reinvested dividends. They are still taxable in the year paid, and skipping them understates income.
  • Missing wash sales. Selling at a loss and buying back within 30 days disallows the loss for that year.10Internal Revenue Service. Case Study 1 – Wash Sales
  • Using the wrong cost basis. When you have bought the same stock at different prices over time, the accounting method your brokerage uses by default (often first-in-first-out) may not match what you intended, and the wrong basis will overstate or understate the gain.
  • Ignoring the RSU withholding gap. Many employers withhold on vested RSUs at the 22% supplemental rate, which is lower than a higher earner’s marginal rate, leaving a shortfall at filing time.