How can I calculate capital gains tax?

Asked by: Jamison Glover  |  Last update: October 11, 2026
Score: 4.2/5 (6 votes)

To calculate capital gains tax, find your gain (Sale Price - Basis), determine your holding period (short-term if ≤ 1 year, long-term if > 1 year), then apply the correct tax rate (short-term taxed as ordinary income, long-term at lower 0-20% rates) based on your income bracket. The basic formula is: (Sale Price - Basis) = Capital Gain/Loss, then Capital Gain * Tax Rate = Tax Owed.

What is the formula for calculating capital gains?

The long-term capital gains chargeable to tax formula is: LTCG chargeable to tax = Net sale consideration - Cost of Acquisition - Cost of Improvement - Exemptions under Section 54/54B/54D/54EC/54F. 12.5% tax rate is applied on LTCG amount chargeable to tax. If the indexation benefit is applied, 20% tax rate is applied.

How do I figure out what my capital gains tax will be?

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

  1. Determine your basis. ...
  2. Determine your net proceeds. ...
  3. Subtract your basis (what you paid) from the realized amount (how much you sold it for) to determine the difference. ...
  4. Review the descriptions in the section below to know which tax rate may apply to your capital gains.

What is the 20% rule for capital gains?

The 20% rule for capital gains refers to the highest federal tax rate for long-term capital gains, applying to higher income brackets when you sell investments (stocks, real estate) held for over a year, with lower rates of 0% and 15% for lower incomes, and even higher rates for special assets like collectibles. This rate kicks in for single filers earning over approximately $492,300 (2024) or $533,401 (2025), and higher for joint filers, making holding assets over a year a key tax strategy.

How much capital gains tax on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

How to PAY ZERO Taxes on Capital Gains (Yes, It's Legal!)

38 related questions found

How long will $500,000 last using the 4% rule?

Your $500,000 can give you about $20,000 each year using the 4% rule, and it could last over 30 years. The Bureau of Labor Statistics shows retirees spend around $54,000 yearly. Smart investments can make your savings last longer.

How much capital gains can I have without paying taxes?

The amount of tax-free capital gain depends on the asset, but the most common exemption is for your primary home, allowing single filers to exclude up to $250,000 (or $500,000 for married couples) of profit if you've lived there 2 of the last 5 years. Additionally, certain long-term investments in qualified small businesses or Opportunity Funds, plus gains on inherited assets (due to stepped-up basis at death), can also be tax-free, while lower income levels may qualify for a 0% long-term capital gains tax rate. 

How much capital gains do I have to pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

What is the simple formula for capital gains tax?

To calculate your capital gain or loss, you need to subtract the original cost of the asset and any associated expenses from the selling price. The remaining amount is your capital gain (if positive) or capital loss (if negative).

How much amount of capital gain is tax free?

The amount of tax-free capital gain depends on the asset, but the most common exemption is for your primary home, allowing single filers to exclude up to $250,000 (or $500,000 for married couples) of profit if you've lived there 2 of the last 5 years. Additionally, certain long-term investments in qualified small businesses or Opportunity Funds, plus gains on inherited assets (due to stepped-up basis at death), can also be tax-free, while lower income levels may qualify for a 0% long-term capital gains tax rate. 

How does the IRS calculate capital gains?

Capital gains taxes are levied on profits made from the sale of assets like stocks or real estate. The tax is based on the holding term and the taxpayer's income level and is computed using the difference between the asset's sale price and its acquisition price.

What is the 36 month rule for capital gains tax?

The "36-month rule" for capital gains tax (CGT) primarily refers to the UK's Principal Private Residence (PPR) Relief, where the final 36 months (or 9 months for most) of a property's ownership period are tax-exempt, even if not lived in, provided it was a main home at some point. In the US, the relevant rule for home sales is the "2-out-of-5-year rule" for the Section 121 exclusion, allowing up to $250k/$500k profit tax-free if owned and used as a main home for 2 of the 5 years before sale, with exceptions for unforeseen circumstances.

Are capital gains calculated on gross or net income?

While capital gains may be taxed at a different rate, they're still included in your adjusted gross income (AGI) and can affect your tax bracket and your eligibility for some income-based investment opportunities.

How much capital gains tax on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

Who is exempt from capital gains tax?

Certain joint returns can exclude up to $500,000 of gain. You must meet all these requirements to qualify for a capital gains tax exemption: You must have owned the home for a period of at least two years during the five years ending on the date of the sale.

What is the 2 year 5 year rule?

The "2-year, 5-year rule" primarily refers to the IRS rule allowing homeowners to exclude up to $250,000 (or $500,000 married) of capital gains from the sale of their primary residence if they owned and lived in it as their main home for at least 2 years out of the 5 years before the sale, meeting both ownership and use tests within that 5-year window. There's also a "5-year rule" for Roth IRAs, requiring separate 5-year periods for contributions and conversions to avoid taxes. 

What is the one-time capital gains exemption?

The primary "one-time" capital gains exemption in the U.S. allows single filers to exclude up to $250,000 (or $500,000 for married couples filing jointly) of profit from selling their main home, provided they've owned and lived in it for at least two of the last five years before the sale. While it's often called a one-time exclusion, you can use it multiple times, but you must wait two years before claiming it again on another property.
 

How much capital gains do I pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%).