Menu burger Close thin Facebook Twitter Google plus Linked in Reddit Email arrow-right-sm arrow-right
Loading
Tap on the profile icon to edit
your financial details.

Capital Gains Tax Calculator (Long-Term and Short-Term)

Your Details Done
See how the gains you make when selling stocks will be impacted by capital gains taxes in your location.
Initial Value
Dismiss
Sale Value
Dismiss
Length of Ownership
Location
Dismiss
Annual Income
Dismiss
Filing Status
401(k) Contribution
Dismiss
IRA Contribution
Dismiss
Itemized Deductions
Dismiss
Number of Personal Exemptions
Dismiss
Total Capital Gains Tax You Will Pay
Your Capital Gains Taxes
Tax Type Marginal Tax Rate Effective Tax Rate Tax Amount
Federal
State
Local
Total Capital Gains Taxes
Length of Ownership Comparison
Federal Capital Gains
State Capital Gains
Local Capital Gains
Federal Capital Gains
State Capital Gains
Local Capital Gains
You would save () by waiting more than a year before selling this investment
Save more with these rates that beat the National Average
Unfortunately, we are currently unable to find savings account that fit your criteria. Please change your search criteria and try again.
Searching for accounts...
As of
Marketing Disclosure
Unfortunately, we are currently unable to find savings account that fit your criteria. Please change your search criteria and try again.
Searching for accounts...
As of
Marketing Disclosure
Share Your Feedback
How would you rate your experience using SmartAsset’s financial advisor matching service so far?
What is the most important reason for that score? (optional)
Please limit your response to 150 characters or less.
Thank you for your answer! Your feedback is very important to us.

What Are Capital Gains?

Photo credit: © iStock/James Brey

If you're reading about capital gains, it probably means your investments have performed well. Or you're preparing for when they do in the future.

When you have built a low-cost, diversified portfolio and the assets being held are worth more than what you paid for them, you might consider selling some of those assets to realize those capital gains. 

Capital gains are defined as the profits that you make when you sell investments like stocks or real estate. These include short-term gains for investments held and sold in less than one year and long-term gains for those held and sold in a period that is over a year. 

Capital gains and losses will either increase or decrease the value of your investment. But you only have to pay capital gains taxes after selling an investment – the money you make from an investment is subject to taxation at the federal and state levels. But you should also note that you might be able to lower your capital gains taxes with the sale of an investment that is losing money (more on tax-harvesting below).

A financial advisor can help you manage your investment portfolio. To find a financial advisor who serves your area, try SmartAsset's free online matching tool.

Capital Gains: How Much Will I Pay?

Let's say you buy some stock for a low price and after a certain period of time the value of that stock has risen substantially. You decide you want to sell your stock and capitalize on the increase in value.

The profit you make when you sell your stock (and other similar assets, like real estate) is equal to your capital gain on the sale. The IRS taxes capital gains at the federal level and some states also tax capital gains at the state level. The tax rate you pay on your capital gains depends in part on how long you hold the asset before selling.

Taxes on Long-Term Capital Gains

Long-term capital gains are gains on assets you hold for more than one year. They're taxed at lower rates than short-term capital gains.

Depending on your regular income tax bracket, your tax rate for long-term capital gains could be as low as 0%. Even taxpayers in the top income tax bracket pay long-term capital gains rates that are nearly half of their income tax rates. That's why some high net worth Americans don't pay as much in taxes as you might expect.

The table below breaks down how much you would owe in long-term capital gains for tax year 2023 (which is filed in early 2024), based on your tax-filing status and income:

Long-Term Capital Gains Taxes for Tax Year 2023 (Due April 2024)

Single Filers
Taxable IncomeRate
$0 - $44,6250%
$44,625 - $492,30015%
$492,300+20%
Married, Filing Jointly
Taxable IncomeRate
$0 - $89,2500%
$89,250 - $553,85015%
$553,850+20%
Married, Filing Separately
Taxable IncomeRate
$0 - $44,6250%
$44,625 - $276,90015%
$276,900+20%
Head of Household
Taxable IncomeRate
$0 - $59,7500%
$59,750 - $523,05015%
$523,050+20%

The next table shows the long-term capital gains tax rates and brackets for tax year 2024 (which is filed in early 2025), based on your tax-filing status and income:

Long-Term Capital Gains Taxes for Tax Year 2024 (Due April 2025)

Single Filers
Taxable IncomeRate
$0 - $47,0250%
$47,025 - $518,90015%
$518,900+20%
Married, Filing Jointly
Taxable IncomeRate
$0 - $94,0500%
$94,050 - $583,75015%
$583,750+20%
Married, Filing Separately
Taxable IncomeRate
$0 - $47,0250%
$47,025 - $291,85015%
$291,850+20%
Head of Household
Taxable IncomeRate
$0 - $63,0000%
$63,000 - $551,35015%
$551,350+20%

Taxes on Short-Term Capital Gains

Short-term capital gains are gains you make from selling assets held for one year or less. They're taxed like regular income. That means you pay the same tax rates that are paid on federal income tax

For tax year 2023 (which is filed in early 2024), single investors earning over $578,125 will pay a maximum of 37% on short-term capital gains. The table below breaks down the income brackets for each filing status for the 2023 tax year:

Short-Term Capital Gains Taxes for Tax Year 2023 (Due April 2024)

Single Filers
Taxable IncomeRate
$0 - $11,00010%
$11,000 - $44,72512%
$44,725 - $95,37522%
$95,375 - $182,10024%
$182,100 - $231,25032%
$231,250 - $578,12535%
$578,125+37%
Married, Filing Jointly
Taxable IncomeRate
$0 - $22,00010%
$22,000 - $89,45012%
$89,450 - $190,75022%
$190,750 - $364,20024%
$364,200 - $462,50032%
$462,500 - $693,75035%
$693,750+37%
Married, Filing Separately
Taxable IncomeRate
$0 - $11,00010%
$11,000 - $44,72512%
$44,725 - $95,37522%
$95,375 - $182,10024%
$182,100 - $231,25032%
$231,250 - $346,87535%
$346,875+37%
Head of Household
Taxable IncomeRate
$0 - $15,70010%
$15,700 - $59,85012%
$59,850 – $95,35022%
$95,350 - $182,10024%
$182,100 - $231,25032%
$231,250 - $578,10035%
$578,100+37%

This table shows the same short-term capital gains tax rates and brackets, but for tax year 2024 (which is filed in early 2025):

Short-Term Capital Gains Taxes for Tax Year 2024 (Due April 2025)

Single Filers
Taxable IncomeRate
$0 - $11,60010%
$11,600 - $47,15012%
$47,150 - $100,52522%
$100,525 - $191,95024%
$191,950 - $243,72532%
$243,725 - $609,35035%
$609,350+37%
Married, Filing Jointly
Taxable IncomeRate
$0 - $23,20010%
$23,200 - $94,30012%
$94,300 - $201,05022%
$201,050 - $383,90024%
$383,900 - $487,45032%
$487,450 - $731,20035%
$731,200+37%
Married, Filing Separately
Taxable IncomeRate
$0 - $11,60010%
$11,600 - $47,15012%
$47,150 - $100,52522%
$100,525 - $191,95024%
$191,950 - $243,72532%
$243,725 - $365,60035%
$365,600+37%
Head of Household
Taxable IncomeRate
$0 - $16,55010%
$16,550 - $63,10012%
$63,100 - $100,50022%
$100,500 - $191,95024%
$191,950 - $243,70032%
$243,700 - $609,35035%
$609,350+37%

To recap: The amount you pay in federal capital gains taxes is based on the size of your gains, your federal income tax bracket and how long you have held on to the asset in question.

To figure out the size of your capital gains, you need to know your basis. Basis is the amount you paid for an asset. How much you owe in taxes - your tax liability - stems from the difference between the sale price of your asset and the basis you have in that asset. In plain English, that means you pay tax based on your profit.

How Earned and Unearned Income Affect Capital Gains

Photo credit: © iStock/samdiesel

Why the difference between the regular income tax and the tax on long-term capital gains at the federal level? It comes down to the difference between earned and unearned income. In the eyes of the IRS, these two forms of income are different and deserve different tax treatment.

Earned income is what you make from your job. Whether you own your own business or work part-time at the coffee shop down the street, the money you make is earned income.

Unearned income comes from interest, dividends and capital gains. It's money that you make from other money. Even if you're actively day trading on your laptop, the income you make from your investments is considered passive. So in this case, "unearned" doesn't mean you don't deserve that money. It simply denotes that you earned it in a different way than through a typical salary.

The question of how to tax unearned income has become a political issue. Some say it should be taxed at a rate higher than the earned income tax rate, because it is money that people make without working, not from the sweat of their brow. Others think the rate should be even lower than it is, so as to encourage the investment that helps drive the economy.

How to Lower Capital Gains Taxes With Tax-Loss Harvesting

Photo credit: © iStock/banarfilardhi

No one likes to face a large tax bill in April. Of the many ways to lower your tax liability, tax-loss harvesting is among the more common - and the more complicated.

Tax-loss harvesting is a strategy that allows investors to avoid paying capital gains taxes. It uses the money that you lose on an investment to offset the capital gains that you earned on the sale of profitable investments. This means that you can write off those losses when you sell the depreciated asset, which cancels out some or all of your capital gains on appreciated assets. 

You can even wait and re-purchase the assets you sold at a loss if you want them back, but you'll still get a tax write-off if you time it right. Some robo-advisor firms have found ways to automate this process by frequently selling investments at a loss and then immediately buying a very similar asset. This allows you to stay invested in the market while still taking advantage of the tax deductions from your losses.

Some investors include tax-loss harvesting in their overall portfolio investment strategy to save money. Others say that it costs you more in the long run because you're selling assets that could appreciate in the future for a short-term tax break.. And if you repurchase the stock, you're essentially deferring your capital gains taxation to a later year. Critics of tax-loss harvesting also point out that since Congress can make changes to the tax code, you could also run the risk of paying high taxes when you sell your assets later.

State Taxes on Capital Gains

Some states also levy taxes on capital gains. Most states tax capital gains according to the same tax rates they use for regular income. So, if you're lucky enough to live somewhere with no state income tax, you won't have to worry about capital gains taxes at the state level.

New Hampshire, for example, doesn't tax income, but does tax dividends and interest. By comparison, states with high income tax California, New York, Oregon, Minnesota, New Jersey and Vermont) also have high taxes on capital gains too. A good capital gains calculator, like ours, takes both federal and state taxation into account.

Capital Gains Taxes on Property

If you own a home, you may be wondering how the government taxes profits from home sales. As with other assets such as stocks, capital gains on a home are equal to the difference between the sale price and the seller's basis.

Your basis in your home is what you paid for it, plus closing costs and non-decorative investments you made in the property, like a new roof. You can also add sales expenses like real estate agent fees to your basis. Subtract that from the sale price and you get the capital gains. When you sell your primary residence, $250,000 of capital gains (or $500,000 for a couple) are exempted from capital gains taxation. This is generally true only if you have owned and used your home as your main residence for at least two out of the five years prior to the sale.

If you inherit a home, you don't get the $250,000 exemption unless you've owned the house for at least two years as your primary residence. But you can still get a break if you don't meet that criteria. When you inherit a home you get a "step up in basis."

Say your mother's basis in the family home was $200,000. Today the market value of the home is $300,000. If your mom passes on the home to you, you'll automatically get a stepped-up basis equal to the market value of $300,000. If you sell the home for that amount then you don't have to pay capital gains taxes. If you later sell the home for $350,000 you only pay capital gains taxes on the $50,000 difference between the sale price and your stepped-up basis. If you’ve owned it for more than two years and used it as your primary residence, you wouldn’t pay any capital gains taxes.

Stepped-up basis is somewhat controversial and might not be around forever. As always, the more valuable your family's estate, the more it pays to consult a professional tax adviser who can work with you on minimizing taxes if that's your goal.

Net Investment Income Tax (NIIT)

Under certain circumstances, the net investment income tax, or NIIT, can affect income you receive from your investments. While it mostly applies to individuals, this tax can also be levied on the income of estates and trusts. The NIIT is levied on the lesser of your net investment income and the amount by which your modified adjusted gross income (MAGI) is higher than the NIIT thresholds set by the IRS. These thresholds are based on your tax filing status, and they go as follows:

  • Single: $200,000
  • Married filing jointly: $250,000
  • Married filing separately: $125,000
  • Qualifying widow(er) with dependent child: $250,000
  • Head of household: $200,000

The NIIT tax rate is 3.8%. The tax only applies for U.S. citizens and resident aliens, so nonresident aliens are not required to pay it. According to the IRS, net investment income includes interest, dividends, capital gains, rental income, royalty income, non-qualified annuities, income from businesses that are involved in the trading of financial instruments or commodities and income from businesses that are passive to the taxpayer.

Here's an example of how the NIIT works: Let's say you file your taxes jointly with your spouse and together you have $200,000 in wages. The threshold for your filing status is $250,000, which means you don't owe the NIIT solely based on that income. However, you also have $75,000 in net investment income from capital gains, rental income and dividends, which pushes your total income to $275,000. Because your income is now $25,000 past the threshold, and that number is the lesser of $75,000 (your total net investment income), then you would owe taxes on that $25,000. At a 3.8% tax rate, you'd have to pay $950.

Places with the Savviest Investors

SmartAsset’s interactive map highlights the places in America with the savviest investors. Zoom between states and the national map to see where in the country the best investors live.

Least
Most
Rank City Annual Return Volatility Post-Tax Return

Methodology Our study aims to find the places in the country with the savviest investors. We wanted to find where people are not only seeing good returns on their investments but where they are doing so without taking too much risk.

In order to find the places with the savviest investors we calculated investment returns and portfolio volatility over the last year. We focused on data of user portfolios provided by our partner Openfolio.

We calculated the risk-adjusted return of the stocks using the Sharpe Ratio. The Sharpe Ratio is the stock return minus the risk-free rate divided by volatility.

We indexed and ranked each of the locations based on this risk-adjusted return to find the places where people were seeing the best returns for the least risk.

Finally, we calculated the amount of money investors were taking home after paying both federal and state capital gains taxes.

Sources: Openfolio - "Openfolio is a free and open network that lets people share their portfolios - but no dollar amounts, only percentages. The idea is that sharing will help everyone be better informed, like with this map."