FileTax.Com
Photo-realistic image of a professional reviewing stock investment charts and tax documents at a desk, representing clear and confident stock tax planning.

Stock & Investment Taxes: What’s Taxable, What’s Not, and What to Report

Updated June 12, 2026
Reviewed June 12, 2026
Fact Checked
Written by · 2 authors
  • Scott Dylan Westerlund
    Scott Westerlund
    Content Writer - Tax Law
Reviewed by

Your Takeaways:

  • Buying or holding stocks isn't taxable — only realized events (sales, dividends, employer stock) trigger taxes.
  • Capital gains are taxed at different rates based on holding period: short-term (one year or less) at ordinary income rates, long-term (more than one year) at 0%, 15%, or 20%.
  • Capital losses can offset gains dollar-for-dollar, plus up to $3,000 of ordinary income per year (with unused losses carrying forward indefinitely).
  • Dividends are taxable in the year received, even if reinvested. Qualified dividends get preferential rates; ordinary dividends are taxed at your regular rate.
  • Higher earners may also owe a 3.8% Net Investment Income Tax on investment income when MAGI exceeds $200K for single filers / $250K for MFJ filers.
  • Inherited stock gets a step-up in basis; gifted stock uses carryover basis. The two are taxed differently.
  • Most states tax capital gains as ordinary income rather than at preferential rates.

TL;DR: Buying or holding stocks, ETFs, or mutual funds isn't taxable. Tax applies when you sell at a profit (capital gains), receive dividends or fund distributions, or receive stock as employer compensation. Long-term capital gains (held more than one year) are taxed at preferential rates of 0%, 15%, or 20%, depending on income. Short-term gains are taxed as ordinary income. Capital losses can offset gains plus up to $3,000 of ordinary income per year. Higher earners may also owe the 3.8% Net Investment Income Tax when MAGI exceeds $200,000 for single filers or $250,000 for MFJ filers.

What Did You Do With Your Investments This Year?

Before you can understand how stock and investment taxes affect you, start by identifying what you actually did with your investments. This plays a major role in whether you’ll owe a tax bill. In general, you will be charged taxes on selling stock for a profit, but you aren’t taxed simply for holding or buying it.

Here’s an overview of what to expect based on your investment action over the past year:

Understanding how your investment income may affect your taxes should be a crucial part of your investment strategy. In general, if you hold stocks for more than a year without selling them, then you won’t get taxed. Taking a different investment action could have additional tax consequences.

Next Step: Once you identify your investment actions over the past year, it’s time to start researching what happens next. Read through our detailed guides based on your investment action to determine how it could change your taxes in the upcoming year.

When Do You Owe Taxes on Stocks?

Stock taxes can feel complicated, but the core rule is straightforward: most stock activity isn’t taxable until a transaction actually happens.

In other words, taxes usually apply only when income is received or an investment is sold.

Buying or Holding Stock Isn’t Taxable

Two important things to know upfront:

  • Buying stock is not a taxable event
  • Holding stock—even if its value increases—is not a taxable event

If your investments went up in value this year but you didn’t sell anything, you typically won’t owe taxes just because of that growth.

Realized vs. Unrealized Gains (The Key Concept)

Most stock tax confusion comes down to one distinction: realized vs. unrealized gains.

Unrealized gains or losses

  • Your stock increases or decreases in value on paper
  • You still own the shares
  • No tax is owed

Realized gains or losses

  • You sell or transfer the stock
  • The gain or loss becomes “real”
  • This is when taxes can apply

Put simply:
👉 No sale = no realized gain = no tax (yet).

Other Situations That Can Trigger Taxes

You may also owe taxes when:

  • You receive dividends or fund distributions, which are taxable in the year received
  • You receive stock as compensation, such as from an employer
  • You sell investments (bonds, crypto, alternative investments, and funds), which turns unrealized gains or losses into taxable events

If you receive dividends, you’ll typically get Form 1099-DIV, which reports:

  • Total dividends received
  • Whether those dividends are qualified (and potentially taxed at lower rates)

Some higher-income taxpayers may also owe the Net Investment Income Tax (NIIT), which generally applies when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly.

Source: IRS Topic 559

What About Retirement Accounts?

Where your stocks are held matters.

If your investments are inside a tax-advantaged retirement account (like an IRA or 401(k)):

  • Gains, losses, and dividends usually aren’t taxed each year
  • There’s no annual reporting for trades inside the account
  • Taxes generally apply only when funds are withdrawn

The Big Picture

You usually don’t owe taxes just because a stock goes up in value.
Taxes apply when income is received, or a gain or loss is realized through a sale.

Next Step: Once a sale triggers a taxable event, the next question is how the gain or loss is taxed, which is where capital gains rules apply.

Capital Gains and Losses: How Stock Sale Taxes Work

When you sell stock for more than you paid, you have a capital gain. When you sell for less, you have a capital loss. The tax rate depends on how long you held the asset — assets held one year or less generate short-term gains taxed as ordinary income, while assets held more than a year generate long-term gains taxed at preferential rates of 0%, 15%, or 20%.

Read the full Capital Gains Tax on Stocks guide →

Short-Term vs. Long-Term Capital Gains: Quick Comparison

Category

Short-Term Capital Gains

Long-Term Capital Gains

Holding period

1 year or less

More than 1 year

When it applies

You sell stock within 12 months of buying it

You sell stock after holding it for over 12 months

Tax rate

Taxed at your ordinary income tax rate

Taxed at lower, preferential capital gains rates

Rate range

Depends on your income tax bracket

Can be as low as 0%, depending on income

Who it impacts most

Active traders, short-term investors

Long-term investors and buy-and-hold strategies

Tax planning impact

Can significantly increase your tax bill

Often results in lower overall taxes

Not sure what applies to you?

Use the Stock Sale Tax Checklist to quickly identify what information you’ll need before filing.

Stock Sale Tax Checklist infographic showing steps to identify holding period, calculate capital gains or losses, confirm cost basis, review tax forms, and avoid common stock tax mistakes.

Understanding Cost Basis

According to the IRS, basis is the original cost of an investment. For stocks and securities, cost basis generally includes the purchase price plus commissions and transaction fees. Sales tax typically does not apply to stock purchases.

When it comes to stocks or bonds, cost basis includes things like the original purchase price, recording or transfer fees, and commissions. When you have a stock or bond that you didn’t directly purchase, you might have to consider the fair market value of the stock on the date of the transfer.

Knowing your cost basis is essential because it determines whether a sale results in a capital gain or a loss. Taxpayers determine whether they have a capital gain or loss by comparing the value of their investment at the time of sale to its cost basis. If the investment is sold for more than the cost basis, then the taxpayer has a capital gain. If the investment is sold for less than its cost basis, the taxpayer realizes a capital loss.

Sometimes, calculating cost basis is straightforward, but it can get complicated when taxpayers reinvest dividends, hold investments with different holding periods, or have multiple investments in a given year.

Accurately calculating cost basis helps you estimate tax liability and report stock sales correctly. It also protects the taxpayer from overpaying.

In a nutshell, understanding cost basis is important because it has specific tax implications for stock sales that could help you reduce your overall tax bill.

Taxpayers should report their cost basis information on IRS Form 8949.

Next Steps: Determining cost basis is foundational to accurately identifying capital gains and losses. Read through our cost basis guide [Insert Internal Link: Subcluster 2 Understanding Cost Basis] for a deeper dive into the subject.

Common Stock & Investment Tax Situations

Every investor’s tax situation is different, but most stock-related tax questions fall into a few common scenarios. Below is a clear overview of how they’re typically handled.

Selling Stock You Bought

When you sell stock, capital gains tax rules apply. If you sell for a profit, you may owe taxes based on:

  • How long you held the stock (short-term vs. long-term)
  • Your taxable income
  • Your filing status

If you sell at a loss, that loss may offset gains or reduce taxable income, depending on your situation.

Receiving Dividends or Fund Distributions

If you receive dividends or fund distributions, those are typically taxable in the year received — even if you reinvested them. Qualified dividends receive preferential capital-gains rates; ordinary (non-qualified) dividends are taxed at your ordinary income rate.

Read the full Dividend Tax Rates guide →

Getting Stock from an Employer

If you receive stock as compensation, the tax treatment depends on the type of stock. For example, restricted stock units (RSUs) are typically taxed as ordinary income when they vest, whereas stock options and ESPPs are taxed differently. Capital gains taxes may apply later when shares are sold.

The exact timing depends on the type of equity compensation involved.

Source: IRS Pub. 525

Inheriting Stock

Inheriting stock isn't taxable. The cost basis is stepped up to the fair market value on the date of death under IRC §1014, which often eliminates years of accumulated capital gain. You only owe tax on appreciation that occurs after you inherit.

Read the full Inherited Stock Taxes guide →

Receiving Stock as a Gift

Receiving stock as a gift isn't taxable, but unlike inherited stock, gifted stock uses carryover basis — you inherit the donor's original cost basis and holding period. This affects how much gain you'll owe when you sell.

Read the full Gifted Stock Taxes guide →

Tax Forms You May Receive After Selling Stock

Form

What It Reports

When You Get It

Form 1099-B

Stock and ETF sales from your broker

Mid-February

Form 1099-DIV

Dividends and capital gain distributions

Mid-February

Form 8949

You complete this — list each sale

You file with your return

Schedule D

You complete this — summarizes 8949 totals

You file with your return

Read the full Form 1099-B reporting guide →

How to Report Stock Sales on Your Return

Every stock sale must be reported, even at a loss. Use Form 8949 to list each transaction, then summarize totals on Schedule D (Form 1040).

Read the full Reporting Stock Sales guide →

Common Stock Tax Mistakes

One of the most common mistakes is not realizing you owe capital gains tax. If you don’t understand your tax liability, it’s easy to misreport gains or losses. Your brokerage will typically issue tax forms (like 1099s) to help, but you still need to review and report everything correctly.

Another frequent issue is miscalculating cost basis. Getting this wrong leads directly to incorrect gains or losses. Always verify your purchase price, reinvestments, and adjustments before reporting.

Wash sales are another trap. If you sell a stock at a loss and repurchase the same or a substantially identical investment within 30 days, the loss is disallowed for now and added to the new investment’s cost basis.

Many investors also mishandle reinvested dividends. Even if dividends are automatically reinvested, they are still taxable in the year received.

Understanding these rules is key if you’re trying to reduce taxes through timing strategies or tax-loss harvesting.

Next steps: Stay informed and review your tax documents carefully each year. Small reporting errors can lead to bigger issues later, so accuracy matters.

Photo-realistic image of a desk with tax documents and a laptop, representing how to report stock sales on a tax return.

Important Tax Considerations with Stocks and Investments

If you’ve bought or sold stocks or another type of investment in the past year, then there are important tax considerations you need to go over before you file your return. Things can get complicated fast, especially considering the multitude of ways that you could have acquired an investment.

Thankfully, our team at FileTax.com has created a range of resources to help you navigate this situation.

First, download our Stock Sale Tax Checklist to help you identify and list out your various investments.

Next, read through our Capital Gains Tax Rates Explained guide to get a better understanding of how you will be taxed on stocks that helped you earn a profit.

Finally, consider beginning the filing process now with FileTax.com.

This article is for educational purposes only and does not constitute tax, legal, or financial advice. Tax laws and dollar thresholds referenced are current as of the last reviewed date shown above and may change. For guidance on your specific situation, consult a qualified tax professional. FileTax does not accept responsibility for actions taken based on this content.

Filed Under:

See what some of the hundreds of thousands of satisfied customers have to say about our services:

Levi C

Levi C.

VERY FAST

I got approved within a couple of days for my tax extension filing through these guys, and they responded to my email the same day. Great customer service and fast results. Give them a shot.

LaMontica

LaMontica

Great Service!!

This is the second year that I have used this service. Each time, the process was quick, easy, and efficient. I will definitely be using this service in the future and will recommend it to friends and family.

Chezbie

Chezbie

Fantastic Site!!

The process was so easy. I processed this extension in a matter of minutes! For you last-minute filers out there, come here. It'll help you end your long day in peace!

Why Trust FileTax.com

• Written and reviewed by qualified tax professionals, including CPAs and tax law reviewers

• Reviewer and contributor profiles include credentials, expertise, and verification information

• Content is reviewed for tax accuracy, compliance, and clarity before publication

• Based on IRS guidance, state tax agencies, and current tax law updates

• Editorial standards and review processes are publicly documented

Links

Editorial Standards

Customer Reviews

IRS Authorized e-File Provider Verification

Frequently Asked Questions About Stock & Investment Taxes

Generally no. Buying and holding stocks isn't taxable, even if their value increases. Tax usually applies only when you sell, receive dividends, or receive stock as employer compensation.