How to calculate capital gains tax (2024)

When you sell capital assets like mutual funds or stocks there’s a tax implication. But knowing what tax rate applies depends on several factors. In this post, we’ll outline capital gains taxes and how to calculate them.

What is capital gains tax?

How to calculate capital gains tax (1)

The definition is pretty simple: It’s the difference between what you paid for a capital asset (like bonds, mutual funds, real property, or stocks) and what you sold it for. If you sell your asset for more than you bought it, you’ll have a capital gain – If the opposite is true and you sell the asset for less than you bought it, you’ll have a capital loss.

Capital gains tax is the taxation of capital assets. The taxation is classified by the length in which you own the asset, which we’ll describe in detail below!

Sold stock or crypto and need to talk to tax pro? Save $124 with H&R Block versus TurboTax.* File online today!

*Comparison based on price on TurboTax.com as of 3/7/24. TurboTax is a registered trademark of Intuit, Inc.

How to calculate capital gains tax — step-by-step

The basics of a capital gain calculation is to find the difference between what you paid for your asset or property and what you sold it for. Let’s take it step-by-step and find out the answer to “How does capital gains tax work?”

Capital gain calculation in four steps

  1. Determine your basis. This is generally the purchase price plus any commissions or fees paid. Basis may also be increased by reinvested dividends on stocks and other factors.
  2. Determine your realized amount. This is the sale price minus any commissions or fees paid.
  3. Subtract your basis (what you paid) from the realized amount (how much you sold it for) to determine the difference.
    • If you sold your assets for more than you paid, you have a capital gain.
    • If you sold your assets for less than you paid, you have a capital loss. Learn how you can use capital losses to offset capital gains tax.
  4. Review the descriptions in the section below to know which tax rate may apply to your capital gains.

Looking for a capital gains tax calculator? When you file with , there’s a capital gains tax calculator built right in. Once you’ve added the information about your asset, you’ll see a results page that outlines your total gain or loss. Of course, you could also get help from our tax pros when you file.

File with H&R Block to get your max refund

File with a tax pro

Capital gains tax rates: Short vs. long

At this point, you may know that you have a gain (or a loss). But you may also be wondering how much is capital gains tax? Well, that will depend on if it’s a short- or long-term capital gain. Here, we’ll outline the differences.

Short-term capital gain tax rates

Short-term capital gains are gains apply to assets or property you held for one year or less. They are subject to ordinary income tax rates meaning they’re taxed federally at either 10%, 12%, 22%, 24%, 32%, 35%, or 37%.

Long-term capital gains tax rate

Long-term capital gains apply to assets that you held for over one year and are taxed differently. The federal tax rate for your long-term capital gains depends on where your income falls in relation to three cut-off points.

2023 long-term capital gains tax rates, by filing status

Tax filing status0% tax rate15% tax rate20% tax rate
SingleUp to $44,625$44,626 to $492,300$492,301 and up
Married filing separatelyUp to $44,625$44,626 to $276,900$276,901 and up
Head of householdUp to $59,750$59,751 to $523,050$523,051 and up
Married filing jointlyUp to $89,250$89,251 to $553,850$553,851 and up

2024 long-term capital-gains rates, by filing status

Tax filing status0% tax rate15% tax rate20% tax rate
SingleUp to $47,025$47,026 to $518,900$518,901 and up
Married filing separatelyUp to $47,025$47,026 to $291,850$291,851 and up
Head of householdUp to $63,000$63,001 to $551,350$551,351 and up
Married filing jointlyUp to $94,050$94,051 to $583,750$583,751 and up

Source:IRS

Note: Gains on the sale of collectibles (rental real estate income, collectibles, antiques, works of art, and stamps) are taxed at a maximum rate of 28%.

More help with capital gains calculations and tax rates

In most cases, you’ll use your purchase and sale information to complete Form 8949 so you can report your gains and losses on Schedule D.

If you still have looming questions like, “How much is capital gains tax for a specific capital asset I sold this year?” or “What is tax loss harvesting?” let H&R Block help. Our tax pros know the ins and outs of taxes and are dedicated to making sure you’ve filed with accuracy, so you get the biggest refund possible – guaranteed.

Make an appointment with one of our tax pros today.

Or if you prefer to file on your own, can help you file your taxes and calculate your capital gains taxes.

How to calculate capital gains tax (2024)

FAQs

How to calculate capital gains tax? ›

This is the sale price minus any commissions or fees paid. Subtract your basis (what you paid) from the realized amount (how much you sold it for) to determine the difference. If you sold your assets for more than you paid, you have a capital gain.

What is the formula for calculating capital gain? ›

This is the sale price minus any commissions or fees paid. Subtract your basis (what you paid) from the realized amount (how much you sold it for) to determine the difference. If you sold your assets for more than you paid, you have a capital gain.

What is the 2 of 5 rule for capital gains? ›

When selling a primary residence property, capital gains from the sale can be deducted from the seller's owed taxes if the seller has lived in the property themselves for at least 2 of the previous 5 years leading up to the sale. That is the 2-out-of-5-years rule, in short.

What are the three methods of calculating a capital gain? ›

There are three methods that are used to calculate a capital gain: the indexation method, the discount method and the 'other' method. There is only one way to calculate a capital loss. The three methods of calculating capital gains are summarised and compared in the table Capital gain calculation methods.

What determines how much capital gains you pay? ›

Capital gains are the profit from selling an asset, such as a stock, mutual fund, or ETF. You may owe capital gains taxes when you realize capital gains by selling an asset. Taxes are determined by your income level and how long you held the investment before selling.

Do you pay capital gains after age 65? ›

This means right now, the law doesn't allow for any exemptions based on your age. Whether you're 65 or 95, seniors must pay capital gains tax where it's due. This can be on the sale of real estate or other investments that have increased in value over their original purchase price, which is known as the 'tax basis'.

What is an example of a capital gain? ›

Example: Suppose a person purchased 100 shares of Rs 100 each at a total cost of Rs 10,000. (Case 1: Capital Gain) After some time, say one year, if he sells those shares for Rs 130 each with the total selling price of those 100 shares being Rs 13,000, it would result in a profit of Rs 3,000.

At what age do you not pay capital gains? ›

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.

Do I have to pay capital gains tax immediately? ›

This tax is applied to the profit, or capital gain, made from selling assets like stocks, bonds, property and precious metals. It is generally paid when your taxes are filed for the given tax year, not immediately upon selling an asset.

How do I avoid capital gains on my taxes? ›

Minimizing capital gains taxes
  1. Hold onto taxable assets for the long term. ...
  2. 2. Make investments within tax-deferred retirement plans. ...
  3. Utilize tax-loss harvesting. ...
  4. Donate appreciated investments to charity.

How is capital gains calculated on sale of property? ›

The gain or loss is the difference between the amount realized on the sale and your tax basis in the property. The capital gain will generally be taxed at 0%, 15%, or 20%, plus the 3.8% surtax for people with higher incomes.

What is an example of a capital gains tax discount? ›

Justin, an Australian resident, buys a block of land. He owns it for 18 months and sells it, making a profit of $10,000. He has no capital losses. Justin is entitled to the 50% CGT discount for the land.

Is capital gains added to your total income and puts you in higher tax bracket? ›

Long-term capital gains can't push you into a higher tax bracket, but short-term capital gains can. Understanding how capital gains work could help you avoid unintended tax consequences. If you're seeing significant growth in your investments, you may want to consult a financial advisor.

Do you pay 20% on all capital gains? ›

Gains from the sale of assets you've held for longer than a year are known as long-term capital gains, and they are typically taxed at lower rates than short-term gains and ordinary income, from 0% to 20%, depending on your taxable income.

How much is capital gains tax on 100k? ›

In this example, you see a capital gain of $100,000 on your home sale. If your income and asset class put you in the 20% capital gains tax bracket, you pay 20% of your profit. That's 20% of $100,000, or $20,000. You don't need to pay 20% of the entire $350,000 sale because you had to spend $250,000 to buy the asset.

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6151

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.