Credential Index

Education and certification signals, decoded.

12

Taxes on Stocks: What You Have to Pay & How to Pay Less

Back to libraryUnknown authorApr 1, 2026
Taxes on Stocks: What You Have to Pay & How to Pay Less

You’re our first priority.
Every time.

We believe everyone should be able to make financial decisions with confidence. While we don’t cover every company or financial product on the market, we work hard to share a wide range of offers and objective editorial perspectives.

So how do we make money? Our partners compensate us for advertisements that appear on our site. This compensation helps us provide tools and services - like free credit score access and monitoring. With the exception of mortgage, home equity and other home-lending products or services, partner compensation is one of several factors that may affect which products we highlight and where they appear on our site. Other factors include your credit profile, product availability and proprietary website methodologies.

However, these factors do not influence our editors’ opinions or ratings, which are based on independent research and analysis. Our partners cannot pay us to guarantee favorable reviews. Here is a list of our partners.

do not influence our editors’ opinions or ratings

Taxes on Stocks: What You Have to Pay & How to Pay Less

Learn how dividends and capital gains on stock sales can affect your tax bill, and how you can reduce what you pay.

Many, or all, of the products featured on this page are from our advertising partners who compensate us when you take certain actions on our website or click to take an action on their website. However, this does not influence our evaluations. Our opinions are our own. Here is a list of our partners and here's how we make money.

Updated · 4 min read

How is this page expert verified?

NerdWallet's content is fact-checked for accuracy, timeliness and relevance. It undergoes a thorough review process involving writers and editors to ensure the information is as clear and complete as possible.

More on our editorial rigor

Editor & Content Strategist

Expertise Taxes Investing

Sabrina Parys is an editor and content strategist on the taxes and investing team at NerdWallet, where she manages and writes content on personal income taxes. Her previous experience includes five years as a copy editor and associate editor in academic and educational publishing. She is based in Brooklyn, New York.

Sabrina Parys is an editor and content strategist on the taxes and investing team at NerdWallet, where she manages and writes content on personal income taxes. Her previous experience includes five years as a copy editor and associate editor in academic and educational publishing. She is based in Brooklyn, New York.

Published in Editor & Content Strategist + more + more

Professor of accounting

Lei Han, Ph.D., is an associate professor of accounting at Niagara University in Western New York and a New York state-licensed CPA. She obtained her Ph.D. in accounting with a minor in finance from the University of Texas at Arlington. Her teaching expertise is advanced accounting and governmental and nonprofit accounting. She is a member of the American Accounting Association and New York State Society of Certified Public Accountants. At NerdWallet, our content goes through a rigorous editorial review process. We have such confidence in our accurate and useful content that we let outside experts inspect our work. Professor of accounting + more + more

Head of Content, Investing & Taxes

19 years of experience Expertise Retirement planning investment management investment accounts

Arielle O’Shea leads the investing and taxes team at NerdWallet. She has covered personal finance and investing for nearly 20 years, and was a senior writer and spokesperson at NerdWallet before becoming an editor. Previously, she was a researcher and reporter for leading personal finance journalist and author Jean Chatzky, a role that included developing financial education programs, interviewing subject matter experts and helping to produce television and radio segments. Arielle has appeared on the "Today" show, NBC News and ABC's "World News Tonight," and has been quoted in national publications including The New York Times, MarketWatch and Bloomberg News. She is based in Charlottesville, Virginia.

Arielle O’Shea leads the investing and taxes team at NerdWallet. She has covered personal finance and investing for nearly 20 years, and was a senior writer and spokesperson at NerdWallet before becoming an editor. Previously, she was a researcher and reporter for leading personal finance journalist and author Jean Chatzky, a role that included developing financial education programs, interviewing subject matter experts and helping to produce television and radio segments. Arielle has appeared on the "Today" show, NBC News and ABC's "World News Tonight," and has been quoted in national publications including The New York Times, MarketWatch and Bloomberg News. She is based in Charlottesville, Virginia.

Published in Head of Content, Investing & Taxes + more + more

Editor & Content Strategist

23 years of experience Expertise Taxes Small business Social Security and estate planning Home services RIA

Tina Orem is an editor and content strategist at NerdWallet. Prior to becoming an editor and content strategist, she covered small business and taxes at NerdWallet. She has a degree in finance, as well as a master's degree in journalism and an MBA. Previously, she was a financial analyst and director of finance at public and private companies. Tina's work has appeared in a variety of local and national media outlets.

Tina Orem is an editor and content strategist at NerdWallet. Prior to becoming an editor and content strategist, she covered small business and taxes at NerdWallet. She has a degree in finance, as well as a master's degree in journalism and an MBA. Previously, she was a financial analyst and director of finance at public and private companies. Tina's work has appeared in a variety of local and national media outlets.

Published in Editor & Content Strategist + more + more

Investing can be a great way to build wealth and financial security, but it’s important to understand how the sale of stocks could affect your tax bill.

Investing can be a great way to build wealth and financial security, but it’s important to understand how the sale of stocks could affect your tax bill.

Do you have to pay taxes on stocks?

Do you have to pay taxes on stocks?

If you sell stocks for a profit, your earnings are known as capital gains and are subject to capital gains tax.

If you sell stocks for a profit, your earnings are known as capital gains and are subject to capital gains tax.

Generally, any profit you make on the sale of an asset is taxable at either 0%, 15% or 20% if you held the shares for more than a year, or at your ordinary tax rate if you held the shares for a year or less. Any dividends you receive from a stock are also usually taxable.

Generally, any profit you make on the sale of an asset is taxable at either 0%, 15% or 20% if you held the shares for more than a year, or at your ordinary tax rate if you held the shares for a year or less. Any dividends you receive from a stock are also usually taxable.

» MORE: Learn about federal tax brackets and rates

» MORE: » MORE: Learn about federal tax brackets and rates

How are stocks taxed?

How are stocks taxed?

Profits from a stock are taxed as either short-term or long-term capital gains. Tax rates on long-term capital gains are usually lower than those on short-term capital gains. That can mean paying lower taxes — and sometimes even no tax — on profits.

Profits from a stock are taxed as either short-term or long-term capital gains . Tax rates on long-term capital gains are usually lower than those on short-term capital gains. That can mean paying lower taxes — and sometimes even no tax — on profits.

Capital gains tax on stocks

Capital gains tax on stocks

Short-term capital gains tax: A tax on profits from the sale of an asset held for a year or less. Short-term capital gains tax rates are taxed as regular income, which means they're subject to federal income tax rates.

Short-term capital gains tax: Short-term capital gains tax: A tax on profits from the sale of an asset held for a year or less. Short-term capital gains tax rates are taxed as regular income, which means they're subject to federal income tax rates.

Long-term capital gains tax: Long-term capital gains tax is a tax on profits from the sale of an asset held for longer than a year. Long-term capital gains tax rates are 0%, 15% or 20%, depending on your taxable income and filing status.

Long-term capital gains tax: Long-term capital gains tax: Long-term capital gains tax is a tax on profits from the sale of an asset held for longer than a year. Long-term capital gains tax rates are 0%, 15% or 20%, depending on your taxable income and filing status.

» Dive deeper: How to calculate capital gains taxes

» Dive deeper: » Dive deeper: How to calculate capital gains taxes

The more you earn, the more complex your taxes become. Learn the 10 traps to dodge.

GET THE FREE GUIDE

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

When do you pay taxes on stocks?

When do you pay taxes on stocks?

Taxes on stocks are incurred in the tax year the stock is sold or the dividend payment is made. Filers report and pay those taxes when they file their annual income tax return the following year. Form 1099-B — a summary of your trading activity — should arrive from your brokerage by mid-February, and this document will help you tally up total taxes on gains and losses.

Taxes on stocks are incurred in the tax year the stock is sold or the dividend payment is made. Filers report and pay those taxes when they file their annual income tax return the following year. Form  1099-B — a summary of your trading activity — should arrive from your brokerage by mid-February, and this document will help you tally up total taxes on gains and losses.

However, some people may need to pay taxes sooner via estimated tax payments. This could occur because you aren't having enough tax withheld on your W-4 to cover the taxes incurred from the gain, or if your income isn't subject to income tax withholding (e.g., freelancers). Generally, if you expect to owe more than $1,000 in taxes when you file, paying estimated taxes can help you avoid getting hit with an underpayment penalty.

However, some people may need to pay taxes sooner via estimated tax payments . This could occur because you aren't having enough tax withheld on your W-4 to cover the taxes incurred from the gain, or if your income isn't subject to income tax withholding (e.g., freelancers). Generally, if you expect to owe more than $1,000 in taxes when you file, paying estimated taxes can help you avoid getting hit with an underpayment penalty .

Your tax software or a qualified tax pro can help calculate how much and when to pay.

Your tax software or a qualified tax pro can help calculate how much and when to pay.

» MORE: How to find a CPA near you

» MORE: » MORE: How to find a CPA near you

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

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

No. Even if the value of your stocks goes up, you won't pay taxes until you sell the stock. Once you sell a stock that's gone up in value and you make a profit, that's when you'll have to pay the capital gains tax.

No. Even if the value of your stocks goes up, you won't pay taxes until you sell the stock. Once you sell a stock that's gone up in value and you make a profit, that's when you'll have to pay the capital gains tax.

When the value of your stocks goes up, but you haven't sold them, this is known as "unrealized gains." Similarly, if the value of your stocks goes down and you haven't sold them, this is known as "unrealized losses." Selling a stock for profit locks in "realized gains," which will be taxed. However, you won't be taxed anything if you sell stock at a loss. In fact, it may even help your tax situation — this is a strategy known as tax-loss harvesting.

When the value of your stocks goes up, but you haven't sold them, this is known as "unrealized gains." Similarly, if the value of your stocks goes down and you haven't sold them, this is known as "unrealized losses." Selling a stock for profit locks in "realized gains," which will be taxed. However, you won't be taxed anything if you sell stock at a loss. In fact, it may even help your tax situation — this is a strategy known as tax-loss harvesting .

Note, however, that if you receive dividends, you will have to pay taxes on those.

Note, however, that if you receive dividends, you will have to pay taxes on those.

» MORE: How to find a financial advisor who can help

» MORE: How to find a financial advisor who can help

How are dividends taxed?

How are dividends taxed?

For tax purposes, there are two kinds of dividends: qualified and nonqualified. The tax rate on qualified dividends is 0%, 15% or 20%, depending on your taxable income and filing status. This is usually lower than the rate for nonqualified dividends. The tax rate on nonqualified dividends, sometimes called ordinary dividends, is the same as your regular income tax bracket.

For tax purposes, there are two kinds of dividends: qualified and nonqualified. The tax rate on qualified dividends is 0%, 15% or 20%, depending on your taxable income and filing status. This is usually lower than the rate for nonqualified dividends. The tax rate on nonqualified dividends, sometimes called ordinary dividends, is the same as your regular income tax bracket.

In both cases, people in higher tax brackets pay more taxes on dividends.

In both cases, people in higher tax brackets pay more taxes on dividends.

How and when you own a dividend-paying investment can dramatically change the tax bill on the dividends.

How and when you own a dividend-paying investment can dramatically change the tax bill on the dividends.

There are many exceptions and unusual scenarios with special rules; see IRS Publication 550 for the details

There are many exceptions and unusual scenarios with special rules; see IRS Publication 550 for the details Internal Revenue Service. About Publication 550, Investment Income and Expenses. Accessed Nov 14, 2025. .

» MORE: Learn how dividend taxes work

» MORE: » MORE: Learn how dividend taxes work

What is net investment income tax?

What is net investment income tax?

Some high-income investors may also be subject to an additional 3.8% tax called the net investment income tax. The IRS imposes this tax on either your net investment income or the amount by which your modified adjusted gross income exceeds a certain threshold (below), whichever one ends up being less.

Some high-income investors may also be subject to an additional 3.8% tax called the net investment income tax. The IRS imposes this tax on either your net investment income or the amount by which your modified adjusted gross income exceeds a certain threshold (below), whichever one ends up being less.

The income thresholds for the net investment income tax are $250,000 for those married filing jointly, $125,000 for those married filing separately, and $200,000 for single filers and heads of household

The income thresholds for the net investment income tax are $250,000 for those married filing jointly, $125,000 for those married filing separately, and $200,000 for single filers and heads of household Internal Revenue Service. Topic No. 559 Net Investment Income Tax. Accessed Nov 14, 2025. .

» Dive deeper: Learn more about net investment income tax

» Dive deeper: » Dive deeper: Learn more about net investment income tax

The more you earn, the more complex your taxes become. Learn the 10 traps to dodge.

GET THE FREE GUIDE

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

How to avoid taxes or pay less when selling stocks

How to avoid taxes or pay less when selling stocks

1. Think long term versus short term

1. Think long term versus short term

Holding the shares long enough for the dividends to count as qualified might reduce your tax bill. Just be sure that doing so aligns with your other investment objectives.

Holding the shares long enough for the dividends to count as qualified might reduce your tax bill. Just be sure that doing so aligns with your other investment objectives.

Whenever possible, consider holding an asset for longer than a year, so you can qualify for the long-term capital gains tax rate when you sell. That tax rate is significantly lower than the short-term capital gains rate for most assets. But again, be sure that holding the investment for that long aligns with your investment goals.

Whenever possible, consider holding an asset for longer than a year, so you can qualify for the long-term capital gains tax rate when you sell. That tax rate is significantly lower than the short-term capital gains rate for most assets. But again, be sure that holding the investment for that long aligns with your investment goals.

2. Look into tax-loss harvesting

2. Look into tax-loss harvesting

As a reminder, selling stock at a loss may come with tax advantages. The difference between your capital gains and your capital losses is called your “net capital gain.” If your losses exceed your gains, however, that's called a "net capital loss," and you can use it to offset your ordinary income by up to $3,000 ($1,500 for those married filing separately)

As a reminder, selling stock at a loss may come with tax advantages. The difference between your capital gains and your capital losses is called your “net capital gain.” If your losses exceed your gains, however, that's called a "net capital loss," and you can use it to offset your ordinary income by up to $3,000 ($1,500 for those married filing separately) Internal Revenue Service. Topic No. 409 Capital Gains and Losses. Accessed Nov 14, 2025. .

This can be helpful in years when the stock market is down or volatile. Any additional losses can be carried forward to future years to offset capital gains of up to $3,000 ($1,500 for those married filing separately) of ordinary income per year.

This can be helpful in years when the stock market is down or volatile. Any additional losses can be carried forward to future years to offset capital gains of up to $3,000 ($1,500 for those married filing separately) of ordinary income per year.

3. Hold the shares inside an IRA, a 401(k) or other tax-advantaged account

3. Hold the shares inside an IRA, a 401(k) or other tax-advantaged account

Dividends and capital gains on stock held inside a traditional IRA are tax-deferred (and tax-free if you have a Roth IRA). Dividends and capital gains on stocks in a regular brokerage account typically aren’t.

Dividends and capital gains on stock held inside a traditional IRA are tax-deferred (and tax-free if you have a Roth IRA ). Dividends and capital gains on stocks in a regular brokerage account typically aren’t.

Once the money is in your 401(k), and as long as the money remains in the account, you pay no taxes on investment growth, interest, dividends or earnings. A Roth 401(k) has similar benefits as a Roth IRA: your investments grow tax-free and your money comes out tax-free in retirement.

Once the money is in your 401(k), and as long as the money remains in the account, you pay no taxes on investment growth, interest, dividends or earnings. A Roth 401(k) has similar benefits as a Roth IRA: your investments grow tax-free and your money comes out tax-free in retirement.

You can convert a traditional IRA into a Roth IRA so that withdrawals in retirement are tax-free. But note, only post-tax dollars get to go into Roth IRAs. So if you deducted traditional IRA contributions on your taxes and then decide to convert your traditional IRA to a Roth, you’ll need to pay taxes on the money you contributed, just like everyone else who invests in a Roth IRA.

You can convert a traditional IRA into a Roth IRA so that withdrawals in retirement are tax-free. But note, only post-tax dollars get to go into Roth IRAs. So if you deducted traditional IRA contributions on your taxes and then decide to convert your traditional IRA to a Roth, you’ll need to pay taxes on the money you contributed, just like everyone else who invests in a Roth IRA.

4. Call in a pro

4. Call in a pro

Your situation may be more complicated, so consider talking to a qualified financial advisor to help you make the right moves.

Your situation may be more complicated, so consider talking to a qualified financial advisor to help you make the right moves.

» MORE: See our picks for the year's best financial advisors

» MORE: See our picks for the year's best financial advisors » MORE: See our picks for the year's best financial advisors NerdWallet writers are subject matter authorities who use primary, trustworthy sources to inform their work, including peer-reviewed studies, government websites, academic research and interviews with industry experts. All content is fact-checked for accuracy, timeliness and relevance. You can learn more about NerdWallet's high standards for journalism by reading our editorial guidelines. Internal Revenue Service. About Publication 550, Investment Income and Expenses. Accessed Nov 14, 2025. Internal Revenue Service. Topic No. 559 Net Investment Income Tax. Accessed Nov 14, 2025. Internal Revenue Service. Topic No. 409 Capital Gains and Losses. Accessed Nov 14, 2025. About the authors Sabrina Parys Sabrina Parys Sabrina Parys is an editor and content strategist on the taxes and investing team at NerdWallet, where she manages and writes content on personal income taxes. Her work has appeared in The Associated Press, The Washington Post and Yahoo Finance. See full bio. Tina Orem Tina Orem Tina Orem is an editor and content strategist at NerdWallet. Before becoming an editor and content strategist, she was NerdWallet's authority on taxes and small business. Her work has appeared in a variety of local and national outlets. See full bio.

ON THIS PAGE

Do you have to pay taxes on stocks? Do you have to pay taxes on stocks? How are stocks taxed? How are stocks taxed? When do you pay taxes on stocks? When do you pay taxes on stocks? Do you pay taxes on stocks you don't sell? Do you pay taxes on stocks you don't sell? How are dividends taxed? How are dividends taxed? What is net investment income tax? What is net investment income tax? How to avoid taxes or pay less when selling stocks How to avoid taxes or pay less when selling stocks

ON THIS PAGE

Do you have to pay taxes on stocks? Do you have to pay taxes on stocks? How are stocks taxed? How are stocks taxed? When do you pay taxes on stocks? When do you pay taxes on stocks? Do you pay taxes on stocks you don't sell? Do you pay taxes on stocks you don't sell? How are dividends taxed? How are dividends taxed? What is net investment income tax? What is net investment income tax? How to avoid taxes or pay less when selling stocks How to avoid taxes or pay less when selling stocks More like this Taxes How Much Does a Financial Advisor Cost? Most financial advisors charge based on how much money they manage for you. Fees are typically 1% a year but can be lower. 2 By Andrea Coombes, Taryn Phaneuf Do You Need a Financial Advisor? 7 Ways to Tell You may need a financial advisor if you're facing big life changes, don't have financial goals, have complex compensation, high tax bills or for other reasons. Taryn Phaneuf How to Find Cheap or Free Financial Advice Quality financial advice is more accessible than ever — and much of it is free or inexpensive. Here's how to get it. Anna-Louise Jackson Retirement Calculator Are you on track to save enough for retirement? Use our calculator to check your progress, see how much retirement income you'll have and estimate how much more you should save. 2 By June Sham, Alana Benson

Get matched to a financial advisor for free with NerdWallet Advisors Match.

Advertisement