Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (2024)

If you're thinking of investing or selling a stock, it's important to familiarize yourself with the term "capital gains tax" before you begin.

The profit you make from the sale of capital assets, such as stock, houses, cars or other types of investments, is considered income in the eyes of the IRS. How it gets taxed depends on a few factors, including your income.

What is capital gains tax?

A capital gains tax is a tax on the profit from the sale of an asset. How your capital gain is taxed depends on your filing status, taxable income and how long you owned the asset before selling it. Capital gains taxes are progressive, similar to income taxes.

The capital gains tax rate is 0%, 15% or 20% on most assets held for longer than a year. Capital gains taxes on assets held for a year or less are taxed according to ordinary income tax brackets: 10%, 12%, 22%, 24%, 32%, 35% or 37%.

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (1)

Simple tax filing with a $50 flat fee for every scenario

With NerdWallet Taxes powered by Column Tax, registered NerdWallet members pay one fee, regardless of your tax situation. Plus, you'll get free support from tax experts. Sign up for access today.

for a NerdWallet account

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (2)

Transparent pricing

Hassle-free tax filing* is $50 for all tax situations — no hidden costs or fees.

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (3)

Maximum refund guaranteed

Get every dollar you deserve* when you file with this tax product, powered by Column Tax.

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (4)

Faster filing

File up to 2x faster than traditional options.* Get your refund, and get on with your life.

*guaranteed by Column Tax

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (5)

How does capital gains tax work?

Capital gains taxes apply to the sale of capital assets, such as stocks, bonds, cryptocurrency, real estate, cars, boats and other tangible items.

The holding period — the time between buying the asset and selling it — determines how the profit is classified for tax purposes. Profits made on assets held for a year or less before sale are considered short-term capital gains. Profits made on assets held for longer than a year are long-term capital gains.

» Selling a home? Taxes on the sale of a home can work differently.

A long-term capital gains tax is a tax on profits from the sale of an asset held for more than a year. Long-term capital gains tax rates are generally lower and more favorable than short-term capital gains tax rates.

The long-term capital gains tax rate is 0%, 15% or 20%. The rate depends on your taxable income and filing status, but the IRS says most people pay no more than 15% on their long-term capital gains.

» Ready to crunch the numbers? Our capital gains tax calculator can help you estimate your gains.

File your taxes with confidence

Register for a free NerdWallet account or sign in to gain access to an exclusive one-hour, previously recorded webinar about tax filing and tax planning strategies. Watch on demand!

Get started

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (6)

Short-term capital gains tax

A short-term capital gains tax is a tax on profits from the sale of an asset held for one year or less. Short-term capital gains are added to income and taxed at your ordinary income tax rates.

» Dive deeper: See the 2023-2024 income tax brackets

Capital gains tax rate 2023

These long-term capital gain rates apply to assets sold for a profit in 2023. Capital gains are reported on Schedule D, which is submitted with your federal tax return by April 15, 2024, or Oct. 15, 2024, with an extension.

2023 long-term capital gains tax rates

Filing status

0%

15%

20%

Single

$0 to $44,625

$44,626 to $492,300

$492,301 or more

Married filing jointly

$0 to $89,250

$89,251 to $553,850

$553,851 or more

Married filing separately

$0 to $44,625

$44,626 to $276,900

$276,901 or more

Head of household

$0 to $59,750

$59,751 to $523,050

$523,051 or more

Short-term capital gains are taxed as ordinary income according to federal income tax brackets.

» Looking for a way to defer capital gains taxes? Putting money in an IRA or a 401(k) could help postpone or even avoid future capital gains tax bills.

Capital gains tax rate 2024

These long-term capital gains tax rates apply to assets sold for a profit in 2024, which are reported on tax returns filed in 2025.

2024 long-term capital gains tax rates

Fling status

0%

15%

20%

Single

$0 to $47,025

$47,026 to $518,900

$518,901 or more

Married, filing jointly

$0 to $94,050

$94,051 to $583,750

$583,751 or more

Married, filing separately

$0 to $47,025

$47,026 to $291,850

$291,851 or more

Head of household

$0 to $63,000

$63,001 to $551,350

$551,351 or more

Short-term capital gains are taxed as ordinary income according to federal income tax brackets.

Capital gains tax calculator

Use this capital gains calculator to estimate your taxes on assets sold in 2023 (taxes filed in 2024).

» MORE: Estimate your refund or bill with NerdWallet's tax calculator

Capital gains tax rules and considerations

Here are some other notable rules and exceptions that come into play.

Collectible assets

The capital gains tax rates in the tables above apply to most assets, but there are some noteworthy exceptions. Long-term capital gains on so-called “collectible assets” can be taxed at a maximum of 28%. This includes items such as coins, precious metals, antiques and fine art. Short-term gains on such assets are taxed at the ordinary income tax rate.

» Traded cryptocurrency last year? Other rules for crypto taxes

The net investment income tax

Some investors may owe an additional 3.8% of either your net investment income or the amount by which your modified adjusted gross income exceeds the amounts listed below — whichever is smaller.

The income thresholds that might make investors subject to the net investment income tax are:

  • Single or head of household: $200,000.

  • Married, filing jointly: $250,000.

  • Married, filing separately: $125,000.

  • Qualifying widow(er) with dependent child: $250,000.

» Having trouble deciding whether and when to sell? A qualified financial advisor can help you understand your options.

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (7)

Simple tax filing with a $50 flat fee for every scenario

With NerdWallet Taxes powered by Column Tax, registered NerdWallet members pay one fee, regardless of your tax situation. Plus, you'll get free support from tax experts. Sign up for access today.

for a NerdWallet account

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (8)

How to avoid or reduce capital gains taxes

1. Hold on

Whenever possible, hold an asset for longer than a year so you can qualify for the long-term capital gains tax rate, since it's significantly lower than the short-term capital gains rate for most assets. Our capital gains tax calculator shows how much that could save.

» Dive deeper: Read more about taxes on stocks, and how to pay less.

2. Use tax-advantaged accounts

These include 401(k) plans, individual retirement accounts and 529 college savings accounts, in which the investments grow tax-free or tax-deferred. That means you don’t have to pay capital gains tax if you sell investments within these accounts. Roth IRAs and 529 accounts in particular have big tax advantages. Qualified distributions from those are tax-free; in other words, you don’t pay any taxes on investment earnings. With traditional IRAs and 401(k)s, you’ll pay taxes when you take distributions from the accounts in retirement.

» Learn more: We break down taxes on your retirement accounts.

3. Rebalance with dividends

Rather than reinvest dividends in the investment that paid them, rebalance by putting that money into your underperforming investments. Typically, you'd rebalance by selling securities that are doing well and putting that money into those that are underperforming. But using dividends to invest in underperforming assets will allow you to avoid selling strong performers — and thus avoid capital gains that would come from that sale.

» Learn more about the dividend tax rate and how it works.

4. Exclude home sales

To qualify, you must have owned your home and used it as your main residence for at least two years in the five-year period before you sell it. You also must not have excluded another home from capital gains in the two-year period before the home sale. If you meet those rules, you can exclude up to $250,000 in gains from a home sale if you’re single and up to $500,000 if you’re married filing jointly.

» Learn more about how capital gains on home sales work.

5. Carry losses over

The IRS taxes your net capital gain, which is simply your total capital gains (investments sold for a profit) minus your total capital losses (investments sold at a loss). The IRS lets you use investment capital losses to offset gains. For example, if you sold a stock for a $10,000 profit this year and sold another at a $4,000 loss, you’ll be taxed on capital gains of $6,000.

If your net capital loss exceeds your net capital gains, you can offset your ordinary income by up to $3,000 ($1,500 for those married filing separately). Any additional losses can be carried forward to future years to offset capital gains or up to $3,000 of ordinary income per year.

6. Consider a robo-advisor

Robo-advisors manage your investments for you automatically, and they often employ smart tax strategies, including tax-loss harvesting, which involves selling losing investments to offset the gains from winners.» Ready to get started? See our picks for best robo-advisors

Frequently asked questions

How do I avoid capital gains taxes?

One way to avoid capital gains taxes on your investments is to hold them inside a tax-advantaged account, such as a 401(k) or an IRA. Investment earnings within these accounts aren't taxed until you take distributions in retirement (and in the case of a Roth IRA, the investment earnings aren't taxed at all, provided you follow the Roth IRA rules).

Otherwise, you can minimize — but not avoid — capital gains taxes by holding your investments for over a year before selling at a profit.

Do I have to pay capital gains taxes on cryptocurrency?

Yes, capital gains taxes apply to all capital assets, including cryptocurrency. Other examples of capital assets that may incur capital gains taxes when sold are stocks, mutual funds, real estate and cars.

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet (2024)

FAQs

Capital Gains Tax: How It Works, Rates and Calculator - NerdWallet? ›

How do capital gains taxes work? Capital gains can be subject to either short-term tax rates or long-term tax rates. Short-term capital gains are taxed according to ordinary income tax brackets, which range from 10% to 37%. Long-term capital gains are taxed at 0%, 15%, or 20%.

Can you tell me how capital gains tax works? ›

Capital gain taxes are taxes imposed on the profit of the sale of an asset. The capital gains tax rate will vary by taxpayer based on the holding period of the asset, the taxpayer's income level, and the nature of the asset that was sold.

How do you calculate the correct capital gains calculation? ›

The correct capital gain calculation is: Sales Price - Basis - Selling Costs = Gain/Loss. Transcribed image text: Identify the correct capital gain calculation.

How do you calculate capital gains rate? ›

How to Calculate Long-Term Capital Gains Tax
  1. Determine your basis. The basis is generally the purchase price plus any commissions or fees you paid. ...
  2. Determine your realized amount. ...
  3. Subtract the basis (what you paid) from the realized amount (what you sold it for) to determine the difference. ...
  4. Determine your tax.

How to calculate capital gains on sale of property? ›

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.

At what age do you not pay capital gains? ›

Capital Gains Tax for People Over 65. For individuals over 65, capital gains tax applies at 0% for long-term gains on assets held over a year and 15% for short-term gains under a year. Despite age, the IRS determines tax based on asset sale profits, with no special breaks for those 65 and older.

What is the formula for taxable gains? ›

A taxable gain is a profit earned on the sale of an asset. To calculate the taxable gain on the sale of an asset, an individual takes the difference between the original purchase price and the sale price of the investment.

What is the capital gains tax for dummies? ›

Profits made on assets held for a year or less are considered short-term capital gains. Profits made on assets held for more than a year are considered long-term capital gains. For long-term capital gains, the tax rate for tax year 2023 is 0%, 15% or 20%, depending on your status and income.

Is capital gains tax calculated on gross or net income? ›

Federal long-term capital gains tax rates are based on adjusted gross income (AGI). The basic capital gains rates are 0%, 15%, and 20%, depending on your taxable income. The income thresholds for the capital gains tax rates are adjusted each year for inflation.

Which capital gains rate do I pay? ›

Short-term capital gains are taxed at the same rate as your ordinary income. Meanwhile, long-term gains are taxed at either 0%, 15%, or 20%. The rate you pay is based on your taxable income. Just like with ordinary income tax rates, the higher your income, the higher your long-term capital gains tax rate.

How much capital gains are tax free? ›

Long-term capital gains tax rates for the 2023 tax year
FILING STATUS0% RATE20% RATE
SingleUp to $44,625Over $492,300
Married filing jointlyUp to $89,250Over $553,850
Married filing separatelyUp to $44,625Over $276,900
Head of householdUp to $59,750Over $523,050
1 more row
Mar 13, 2024

Do I have to pay capital gains tax immediately? ›

It is generally paid when your taxes are filed for the given tax year, not immediately upon selling an asset. Working with a financial advisor can help optimize your investment portfolio to minimize capital gains tax.

Do you have to pay capital gains after age 70? ›

As of 2022, for a single filer aged 65 or older, if their total income is less than $40,000 (or $80,000 for couples), they don't owe any long-term capital gains tax. On the higher end, if a senior's income surpasses $441,450 (or $496,600 for couples), they'd be in the 20% long-term capital gains tax bracket.

How many years is considered long-term capital gains? ›

Generally, if you hold the asset for more than one year before you dispose of it, your capital gain or loss is long-term. If you hold it one year or less, your capital gain or loss is short-term.

How much capital gains are you allowed in a lifetime? ›

There is no limit, either on how much you can gain from rising appreciation in assets or the amount of taxes you can owe. However, there are some exemptions and some tactics to minimize your taxes. The most well-known and widespread exemption from capital gains taxes is for homeowners who sell a primary residence.

How do I avoid capital gains on my taxes? ›

Here are four of the key strategies.
  1. Hold onto taxable assets for the long term. ...
  2. Make investments within tax-deferred retirement plans. ...
  3. Utilize tax-loss harvesting. ...
  4. Donate appreciated investments to charity.

Is capital gains tax based on total income or taxable income? ›

Net capital gains are taxed at different rates depending on overall taxable income, although some or all net capital gain may be taxed at 0%. For taxable years beginning in 2023, the tax rate on most net capital gain is no higher than 15% for most individuals.

What is the capital gains tax for people over 65? ›

The capital gains tax over 65 is a tax that applies to taxable capital gains realized by individuals over the age of 65. The tax rate starts at 0% for long-term capital gains on assets held for more than one year and 15% for short-term capital gains on assets held for less than one year.

At what income level does capital gains tax kick in? ›

Long-term capital gains tax rate 2023
Filing status0%15%
Single$0 to $44,625$44,626 to $492,300
Married filing jointly$0 to $89,250$89,251 to $553,850
Married filing separately$0 to $44,625$44,626 to $276,900
Head of household$0 to $59,750$59,751 to $523,050
1 more row
3 days ago

Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5766

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.