Taxes on Stocks: How Selling Stocks Affects Your Taxes

Jul 9 18:23

As an investor, if you sell a stock and profit from the sale, the length of time that you have owned it matters as you'll need to pay taxes on stock sales. Selling a stock that you’ve held for one year or longer, and made a profit, you will have to pay a long-term capital gains tax. However, if you sold a stock owned for one year or less, and profited, then you will pay a short-term gains tax rate.

Read on to learn more about taxes on stocks.

Taxes on stocks: Capital gains tax and dividends

While an investor can determine the length of time they’ve held their investment to determine if it's a short-term or long-term capital gains, it's also important to understand how are stocks taxed as there is taxation on stocks sales. Investors will also need to calculate their profits to help determine the amount of the capital gains tax on stocks they’ll need to pay.

This can be done by subtracting the cost basis (also known as your tax basis) from total proceeds. The cost basis includes the amount paid to buy the stock, commissions or fees paid for buying and selling the shares. From this adjusted amount, the profit is what the investor will pay taxes on; this is called a capital gains tax or it may be thought of as a tax on stock sales.

Capital gains tax

Many investors may see buying and selling stock as an opportunity to incur potential profits and possibly build some wealth. Enduring profits on a stock sale will still require paying taxes, similar to other income-generating activities. Investors will need to remember to pay a tax on stock sales.

Called capital gains, these will set a level for taxes to be paid from selling a stock. When an investor has incurred a capital gains tax on a stock, it will be paid when the stock is sold for more than the initial amount paid. There are both short-term capital gains taxes and long-term capital gains tax. Different factors will define taxes on stock gains and the tax rates will vary.

What is capital gains tax?

A capital gains tax is the tax levied on the profit from selling a stock. When an investor has incurred a capital gains tax on stock sales, it will be paid when the stock is sold for more than the initial amount paid.

How the capital gain is taxed depends on various factors, including an investor’s tax filing status, taxable income, and how long the stock was owned by the investor before selling it. Note the capital gains tax rate isn’t one fixed rate, but its rate is 0%, 15% or 20% on most assets held for longer than a year or based on an investor's income if the asset was held by the investor less than a year.

Short-term capital gains tax

A short-term capital gains tax comes from selling an asset, such as a stock, that has been held for one year or less. The tax rate uses ordinary income taxes rates and it will depend on an investor's taxable income.

For 2023 tax rates (taxes paid in 2024), they will vary from 10% up to 37%. Please be sure to use the correct rates for the tax year as rates may change.

Here's an example. If you bought $5,000 worth of stock in August and then sold it for $6,000 in December during that same year, you’ve incurred a $1,000 short-term capital gain. Now, if you’re in the 22 percent tax bracket, you will owe the IRS $220 from your $1,000 capital gains as an individual filer. After subtracting this, you will then have a $780 net gain.

Long-term capital gains tax

Time is on your side when it comes to a long-term capital gains tax. By holding your asset, such as a stock, for greater than a year, there is the potential to benefit from a lower tax rate on your profits.

For investors who are in the a lower tax bracket, they may not pay anything for their capital gains tax rate. This is because the long-term capital gains rate is derived from an investor's tax bracket; rates for the 2023 tax year are 0%,15% or 20% but may vary slightly annually. Be sure to double-check the rates every tax year.

Here's an example. If you incurred a long-term capital gain for the 2023 tax year and your income as a single filer is $40,000, then you'll pay $0. If your income is $50,000 and you've incurred a $500 capital gain, then you'll pay a 15% rate, then you'll owe $75.

article image

Dividend stocks

Dividend stocks are typically from well-established companies with a history of distributing earnings back to shareholders. Some well-known dividend stock companies that you may know include International Business Machines (IBM), Cisco Systems (CSCO), and Taiwan Semiconductor Manufacturing (TSMC).

Over time, investors may see dividend stock companies increase their dividend payouts throughout the year with an average dividend on some dividend stocks reaching over 10%. Some investors may reinvest their dividend payouts rather than take the income. The timeframe for dividend distribution is typically each quarter, but it varies as some companies may also pay dividends semiannually or yearly.

How are dividends taxed?

Most investors understand receiving dividends is considered income but some don't always remember it's not free money; dividends are taxable income and the taxes on them are due in the same tax year they’re received.

There are two dividend types for tax purposes: qualified and nonqualified (or called "ordinary" because the Internal Revenue Service (IRS) taxes them as ordinary income.). Different factors define these dividend types and investors will pay different tax rates holding them.

For qualified dividends, three tax rates of 0%, 15% or 20% apply based on an investor's taxable income and filing status while nonqualified dividends are taxed as income with tax rates up to 37%. Investors in higher tax brackets will pay a higher dividend tax rate for both dividend types and the IRS form 1099-DIV is sent to individuals to help them correctly report their annual dividend incomes.

Non-qualified (or ordinary) dividends

It's important to define non-qualified dividends. Non-qualified or ordinary dividends can come from different sources including real estate investment trusts (REITS), master limited partnerships (MLPs) and some specific foreign corporations; however, they are not eligible for lower capital gains rates.

Ordinary dividends are taxed at an investor's tax bracket. For example, if they are in a 32% tax bracket, then their ordinary dividends would have that tax rate.

Qualified dividends

If a dividend is to be classified as a qualified dividend, then it needs to meet certain criteria. This includes the following:

  • A U.S. company or a qualifying foreign company must pay the dividend.

  • If you owned a stock for more than 60 days in the 121-day period that started 60 days before the ex-dividend date (the day the stock begins trading without the value of its next dividend payment). The stock must meet this time period.

  • Dividends cannot be either payments from tax-exempt organizations or capital gains distributions.

If a dividend meets qualified dividend defintion, then the investor will pay one of three tax rates: 0%, 15% or 20%, based on their taxable income and filing status. For example, an investor is single and they have an income greater than $41,675, they'll incur a 15% tax rate on the qualified dividends.

When are taxes due on your stock trading?

Many investors ask, "When do you pay taxes on stock sales? The good news is they only pay taxes on stocks once: when they are sold.

Investors may see a stock’s value change in their portfolio—whether it’s a rise or decline—but if they let the stocks remain there, no taxes will be due.

If you have a stock that has increased in value, sitting in your portfolio but you haven’t sold it, this is referred to as an unrealized gain. On the other hand, if you own a stock that has declined in value, and you continue to hold on to it for now, then you’ve incurred an unrealized loss.

Selling stocks at a loss may be advantageous for your tax situation. If you decide to sell the declining stock and it’s sold at a loss, then you won’t incur any taxes. This may be advantageous to your tax strategy and it has a name: tax-loss harvesting.  

Keep in mind, if we flip the situation and you decide to sell a stock that has increased in value and it brings a profit, then you’ll need to pay a capital gains tax. And this will be required to do so in the same year that you sold the profitable stock as selling stock taxes are paid annually.

article image

How to identify when your stock profits are subject to taxes

Selling stock can help investors achieve their investing goals and potentially gain some income. Paying taxes is typically part of the process; however, there are some strategies that can help investors minimize their tax liabilities. This can come from different ways.

Investing for the long-term can help investors benefits from long-term capital gains rates. Holding on to investments and not selling them will not incur taxation. Taxes only occur when there are stock sales.

If an asset, such as a stock, is held longer than a year and a capital gain has been occurred, the tax rates on these capital gains can be lower than an investor's ordinary income tax rates. For the 2023 tax year, this is 0%, 15% or 20% based on taxable income and filing status.

Depending on your tax rate, you may want to consider other assets for your portfolio, such as ETFs or municipal bond funds. A municipal bond's interest may be exempt from federal taxes and state and local taxes, depending on your resident state.

Investment accounts are another way. These accounts can help investors not only achieve savings goals, such as a retirement, they can also offer tax advantages.

Whatever tax efficiency strategies you choose, it's important to also speak with a tax professional.

Using a tax-advantaged stock account

A tax-advantaged account is an investment account that offers investors tax benefits when used for a specified savings goal such as retirement. Savings can be made in different accounts such as 401(k), 403(b) or individual retirement accounts (IRA).

Investing in an tax-advantaged investment account can help eliminate capital gains taxes on your portfolio. You can buy and sell stocks, bonds, and other assets without triggering capital gains taxes. Withdrawals from a traditional IRA, 401(k) and similar accounts may lead to using ordinary income taxes. However Roth IRA accounts, another IRA accounts, eliminate taxes on eligible withdrawals if certain conditions are met.

Net investment income tax

As an investor, if you made money from your investments, you may pay a net investment income tax at the annual tax filing time. It is important to determine if you will be hit with this tax to avoid any potential surprises.

There are two factors at play for this potential tax: your net investment income, such as dividends, interest, rental property income, and your modified adjusted grow income (MAGI).

What is net investment income tax (NIIT)? This is the 3.8% surcharge on the lowest number between the NIIT and the amount of an investor’s MAGI that goes past their income threshold.

FAQ About Taxes on Stocks

Do I pay taxes on stocks I don't sell?

No, you don’t pay taxes on unsold stocks or unrealized capital gains. Until stock shares are sold, you will not be taxed—regardless of how long you’ve either held the shares or the amount they’ve increased in value. But do note: when it comes to taxes, most tax payers pay a higher rate on their taxable income vs. long-term capital gains they may have incurred.

What happens if you sell a stock but don't withdraw money?

If the stock was sold in a retirement account, such as an IRA, 401(k) or 403 (b) then taxes won't be owed until the money is withdrawn.

If the stock had been sold in a taxable brokerage account, taxes are owed if the stock had been sold for a profit. This capital gain is reported on an individual's tax return and the amount due depends the length of time the stock was held and annual income. With a stock sale loss in a taxable brokerage account, an investor won't owe any taxes; this may potentially lower a tax bill.

Do I have to pay capital gains tax immediately?

No, you are not required by any rules to pay a capital gains tax at the time you've sold an asset. But if you are in a situation where you may owe $1,000 in taxes or more, you could make these estimated tax payments during the year. If you plan ahead for this tax debt, it could help you avoid interest and penalties.

This presentation is for informational and educational use only and is not a recommendation or endorsement of any particular investment or investment strategy. Investment information provided in this content is general in nature, strictly for illustrative purposes, and may not be appropriate for all investors. Read more

Recommend

Moomoo Offers Extended Trading Hours for Options Trading on Oct 19

At-the-Money (ATM) - How It Works in Options Trading

Out-of-the-Money in Options Trading - How It Works & Examples

Covered Call: A Comprehensive Guide to Options Trading

Strangle Options Strategy - A Helpful Guide for Traders

Straddle vs. Strangle: Understanding the Key Differences

Triple Witching: Understanding Its Impact on the Stock Market

Underlying Asset: Definition, Types and Examples

What Are Option Premiums

Covered Calls and Covered Puts - Strategies for Options Trading

Expiration Date in Options Trading

Options Break-Even Point: Definition, Formula, and Examples

Credit Spread: Definition, Examples & How to Calculate

Bull Put Spread: Definitions, How It Works & Examples

How to Manage Your Risk in Options Trading

How to Pick the 'Right' Strike Price

Options Wheel Strategy Explained: Definition and How to Trade

Long Collar Options Strategy: Definition, How It Works & Examples

Long Call Options Strategy: Definition, Potential Benefits, and Risks

Exercise of Options: When and How to Exercise Options

Time Value: Definition, Calculation, Importance in Options Trading

Short Call Options Strategy: Guide & Examples

What Are Bitcoin ETF Options: Investment Insights & Strategies

Hedge with Options: Protect Your Portfolio in 2026

Options Chains: Definition, How to Read and Analyze Them

Options Profit Calculation: Overview, Formula & Examples

What is Theta in Options Trading: Overview and Strategies

Debit Spread: Definition, Types & Examples

Butterfly Spread: Definition and Application in Options Trading

What Is an Options Screener and How to Use?

Unusual Options Activity: Insights and Strategies for Traders

Protective Put Strategy: Definition, How It Works & Examples

What Are Stock Options: Types, How They Work and Examples

Weekly vs. Monthly Options: Choosing the Right Expiration Date

How to Practice Options Trading with Demo Trading Account

Sell to Open vs Sell to Close: Understanding the Difference

Long Put: Definition, Examples and How to Trade

Iron Condor: Understanding This Options Trading Strategy

Diagonal Spread: Definition, Types & How to Use

Implied Volatility (IV) Rank & Percentile in Options Trading

Trading Earnings with Options

Iron Butterfly: Mastering the Options Trading Strategy

Interest Rate Options: Definition & How They Work

Options Buy to Open vs Buy to Close: What's the difference?

Vertical Spread: Definition, Types, & Examples

Bear Put Spread: An Options Trading Strategy Explained

What is a Dividend Reinvestment Plan (DRIP)?

Put/Call Ratio (PCR): Definition & How to Use

How Are Options Priced? | Calculation and Examples

Naked Calls Options Strategy: Definition & How It Works

Options Vs. Futures: Understanding Their Key Differences

Extrinsic Value: Definition, Calculation, and Trading Strategies

Intrinsic Value: How It Works And How To Calculate It

Bull Call Spread - Examples and Applications in Options Trading

Index Options: Definitions, Strategies and Risks

Short Put Options: Strategies and Risks Explained

Quadruple Witching: How It Can Affect the Stock Market

What Are Options? Everything You Need to Know before Trading

Four Option Trading Strategies for Beginners

10 Options Strategies to Enhance Your Trading Portfolio

American Options vs. European Options

In-The-Money (ITM): Call and Put Options Examples

What is a Calendar Spread?

Open Interest: What it means for traders and investors

Options vs Stocks: Choosing the Right Investment Strategy

Options Strike Prices Explained: A Complete Guide for Beginners

Call vs Put Options: Your Essential Guide to the Basics

Zero Days to Expiration (0DTE) Options: Trade Mag 7 Stock Options Today

What Is An Options Contract? How Does It Work?

What is Synthetic Put? (How Does It Work)

How and When to Roll Covered Calls

Option Volume vs Open Interest: Understanding the Difference

4 Options Trading Levels

How to Trade Options for Beginners?

What Is Implied Volatility (IV)?

What Are Cash Secured Puts: How To Sell Them

What Is a Straddle Options Strategy?

What Is Ratio Spread in Options

What is a Call Option: Strategies and Tips

Taxes on Stocks: How Selling Stocks Affects Your Taxes

Option Greeks Explained - Option Greek Cheat Sheet

Put Options: Hedging Your Portfolio

Put Options: How to Use Them in Your Trading Strategy

Poor Man's Covered Call (PMCC): A Beginner's Guide

Four Option Trading Mistakes to Avoid

Trading Synthetic Options: Risks and Rewards

Call Spread vs. Put Spread: What are the differences?

What is stock options trading

What Is Margin Call and How Can You Avoid the Risks?

Options Trading Strategies: Iron Condor vs. Iron Butterfly

Moomoo Offers Extended Trading Hours for Options Trading on Oct 19

At-the-Money (ATM) - How It Works in Options Trading

Out-of-the-Money in Options Trading - How It Works & Examples

Covered Call: A Comprehensive Guide to Options Trading

Strangle Options Strategy - A Helpful Guide for Traders

Straddle vs. Strangle: Understanding the Key Differences

Triple Witching: Understanding Its Impact on the Stock Market

Underlying Asset: Definition, Types and Examples

What Are Option Premiums

Covered Calls and Covered Puts - Strategies for Options Trading

Expiration Date in Options Trading

Options Break-Even Point: Definition, Formula, and Examples

Credit Spread: Definition, Examples & How to Calculate

Bull Put Spread: Definitions, How It Works & Examples

How to Manage Your Risk in Options Trading

How to Pick the 'Right' Strike Price

Options Wheel Strategy Explained: Definition and How to Trade

Long Collar Options Strategy: Definition, How It Works & Examples

Long Call Options Strategy: Definition, Potential Benefits, and Risks

Exercise of Options: When and How to Exercise Options

Time Value: Definition, Calculation, Importance in Options Trading

Short Call Options Strategy: Guide & Examples

What Are Bitcoin ETF Options: Investment Insights & Strategies

Hedge with Options: Protect Your Portfolio in 2026

Options Chains: Definition, How to Read and Analyze Them

Options Profit Calculation: Overview, Formula & Examples

What is Theta in Options Trading: Overview and Strategies

Debit Spread: Definition, Types & Examples

Butterfly Spread: Definition and Application in Options Trading

What Is an Options Screener and How to Use?

Unusual Options Activity: Insights and Strategies for Traders

Protective Put Strategy: Definition, How It Works & Examples

What Are Stock Options: Types, How They Work and Examples

Weekly vs. Monthly Options: Choosing the Right Expiration Date

How to Practice Options Trading with Demo Trading Account

Sell to Open vs Sell to Close: Understanding the Difference

Long Put: Definition, Examples and How to Trade

Iron Condor: Understanding This Options Trading Strategy

Diagonal Spread: Definition, Types & How to Use

Implied Volatility (IV) Rank & Percentile in Options Trading

Trading Earnings with Options

Iron Butterfly: Mastering the Options Trading Strategy

Interest Rate Options: Definition & How They Work

Options Buy to Open vs Buy to Close: What's the difference?

Vertical Spread: Definition, Types, & Examples

Bear Put Spread: An Options Trading Strategy Explained

What is a Dividend Reinvestment Plan (DRIP)?

Put/Call Ratio (PCR): Definition & How to Use

How Are Options Priced? | Calculation and Examples

Naked Calls Options Strategy: Definition & How It Works

Options Vs. Futures: Understanding Their Key Differences

Extrinsic Value: Definition, Calculation, and Trading Strategies

Intrinsic Value: How It Works And How To Calculate It

Bull Call Spread - Examples and Applications in Options Trading

Index Options: Definitions, Strategies and Risks

Short Put Options: Strategies and Risks Explained

Quadruple Witching: How It Can Affect the Stock Market

What Are Options? Everything You Need to Know before Trading

Four Option Trading Strategies for Beginners

10 Options Strategies to Enhance Your Trading Portfolio

American Options vs. European Options

In-The-Money (ITM): Call and Put Options Examples

What is a Calendar Spread?

Open Interest: What it means for traders and investors

Options vs Stocks: Choosing the Right Investment Strategy

Options Strike Prices Explained: A Complete Guide for Beginners

Call vs Put Options: Your Essential Guide to the Basics

Zero Days to Expiration (0DTE) Options: Trade Mag 7 Stock Options Today

What Is An Options Contract? How Does It Work?

What is Synthetic Put? (How Does It Work)

How and When to Roll Covered Calls

Option Volume vs Open Interest: Understanding the Difference

4 Options Trading Levels

How to Trade Options for Beginners?

What Is Implied Volatility (IV)?

What Are Cash Secured Puts: How To Sell Them

What Is a Straddle Options Strategy?

What Is Ratio Spread in Options

What is a Call Option: Strategies and Tips

Taxes on Stocks: How Selling Stocks Affects Your Taxes

Option Greeks Explained - Option Greek Cheat Sheet

Put Options: Hedging Your Portfolio

Put Options: How to Use Them in Your Trading Strategy

Poor Man's Covered Call (PMCC): A Beginner's Guide

Four Option Trading Mistakes to Avoid

Trading Synthetic Options: Risks and Rewards

Call Spread vs. Put Spread: What are the differences?

What is stock options trading

What Is Margin Call and How Can You Avoid the Risks?

Options Trading Strategies: Iron Condor vs. Iron Butterfly

Table of contents
Taxes on stocks: Capital gains tax and dividends
Capital gains tax
Dividend stocks
When are taxes due on your stock trading?
How to identify when your stock profits are subject to taxes
Net investment income tax
FAQ About Taxes on Stocks
Market Insights
Anthropic Opens at $111.50, Up 34% From IPO Price—Can Its Debut Revive the AI Trade?
$Anthropic (ANT.US)$ opened at $111.50 on its Nasdaq debut, surging 34% above its $83 IPO price, which valued the company at approximately $1 Show More
Anthropic Ecosystem
Anthropic-themed ETF