Introduction

If you sold something like a house or an investment this year you might have made a profit that is called a long-term capital gain. This kind of gain is usually taxed at a rate, than the money you earn from your job. The amount of tax you pay on this gain depends on how money you make in total if you are married or single and how long you owned the thing before you sold it. This guide will tell you what a long-term capital gain is. It will also go over the tax rates for 2026. Show you how to use a calculator to figure out how much tax you might have to pay on your long-term capital gains.

Quick Answer

When you sell something you own like a house or stock and you get money for it than you paid that is a long-term capital gain if you had it for more than one year. The government takes a part of this long-term capital gain as tax. For the year 2026 the tax on long-term capital gains is zero percent, fifteen percent or twenty percent. This depends on how money you make and if you are married or single. Some things, like art or coins that people collect are taxed in ways.

Long-Term Capital Gains Calculator Overview

The calculator is designed to give you a quick estimate of the federal tax owed on a long-term capital gain. Typical inputs include:

The result is an estimate, not a final tax figure — your actual liability depends on your complete tax return, including deductions, credits, and any additional taxes that may apply.

What Are Long-Term Capital Gains?

When you sell something like stocks or real estate for money than you paid for it that is a capital gain. This happens with things, like funds too. You have to figure out what you paid for it and what you sold it for. If you sold it for more that is a gain. A gain can be term or short term. It is term if you owned the capital asset for a long time before you sold it. It is term if you did not own the capital asset for very long before you sold it.

How Long Do You Have to Hold an Asset?

You need to own an investment asset for than one year for the gain to be considered long-term. This means you have to own the investment asset for longer, than one year. The time you own the investment asset is calculated from the day after you buy the investment asset to the day you sell the investment asset.

A few things to keep in mind:

If your holding period is one year you should check the exact dates again before you think you can get long-term treatment, for your holding period. You do not want to make a mistake with your holding period.

2026 Long-Term Capital Gains Tax Rates

For the year 2026 long-term capital gains are taxed at one of three rates. These rates are 0 percent, 15 percent or 20 percent. The rate you pay depends on your taxable income for the year. It does not just depend on the size of the long-term capital gain. The rates for 2026 are the same as they were, for 2025. The only thing that changed is the income thresholds. These thresholds moved slightly because of inflation.

Your ordinary income is taxed first. Then your long-term capital gain is taxed. This means the rate you pay depends on your income. You have to look at where your income falls compared to the thresholds.

2026 Capital Gains Tax Brackets by Filing Status

Filing Status0% Rate15% Rate20% Rate
SingleUp to $49,450$49,451–$545,500Over $545,500
Married Filing JointlyUp to $98,900$98,901–$613,700Over $613,700
Head of HouseholdUp to $66,200$66,201–$579,600Over $579,600
Married Filing SeparatelyUp to $49,450$49,451–$306,850Over $306,850

Source: IRS Revenue Procedure 2025-32. These thresholds apply to total taxable income (ordinary income plus long-term gains), not to the gain alone. Verify current figures against IRS guidance before relying on them for filing purposes.

How to Calculate Long-Term Capital Gains

The basic formula is:

Capital Gain = Amount Realized − Adjusted Cost Basis

Basis calculations can get more complex for inherited property, gifted assets, real estate with depreciation, or business property. For anything beyond a straightforward stock sale, it’s worth reviewing IRS Publication 550 or 544, or speaking with a tax professional.

How to Use the Calculator

  1. Enter the cost of the item or the adjusted value.
  2. Enter the money received when it was sold or the total amount you got.
  3. Add any costs related to selling if the tool allows for this.
  4. Enter the income you had before the profit.
  5. Choose your filing status.
  6. Choose the year for taxes (2026).
  7. Enter any losses, from selling items that you want to use against this profit if allowed.
  8. Check the estimated profit amount.
  9. Check the estimated tax rate or rates that apply.
  10. Check the estimated taxes you need to pay because of the profit.

Required Calculator Inputs

InputWhat It Means
Purchase Price / Adjusted BasisWhat you paid for the asset, adjusted for relevant tax rules
Sale Price / Amount RealizedWhat you received from selling it
Selling CostsEligible expenses tied to the sale
Taxable IncomeYour taxable income before adding the gain
Filing StatusDetermines which threshold table applies
Capital LossesLosses that may offset some or all of the gain

Long-Term Capital Gains Calculation Example

Example 1 — Simple Stock Sale

Suppose you bought stock for $30,000 and sold it for $50,000 after holding it for two years.

Capital gain = $50,000 − $30,000 = $20,000

Because you kept the stock for, than one year this twenty thousand dollars is a long-term capital gain. Whether it is taxed at zero percent, fifteen percent, twenty percent or some combination depends on your taxable income and your filing status for the year.

Example 2 — A Gain That Crosses a Threshold

A married couple who are filing their taxes together have seventy thousand dollars of taxable income in the year twenty twenty six and they make a forty thousand dollar long-term capital gain. For couples who file their taxes together the zero percent bracket goes up to ninety eight thousand nine hundred dollars of taxable income. If you add seventy thousand dollars and forty thousand dollars you get one hundred ten thousand dollars. The first $28,900 of the gain (bringing income up to $98,900) is taxed at 0%

This shows why a single flat rate assumption can be misleading — a gain can straddle two brackets.

How Taxable Income Affects Your Capital Gains Rate

People often make a mistake when they think their capital gains rate is based on the money they make from their job.. That is not true. The capital gains rate people have to pay depends on their taxable income. This is the money they have left after they subtract all the deductions they are allowed to take. It also depends on how much they made from the capital gains. So two people can have the capital gains and still have to pay different rates. This happens when their taxable income is different. The capital gains rate is based on the income and the size of the capital gains.

Long-Term vs. Short-Term Capital Gains

FeatureLong-Term Capital GainsShort-Term Capital Gains
Typical holding periodMore than 1 year1 year or less
Federal tax treatmentPreferential rates may applyGenerally taxed as ordinary income
Common rates0%, 15%, 20%10%–37% (ordinary rates)
Depends on taxable incomeYesYes
Capital losses matterYesYes

How Capital Losses Reduce Capital Gains

Capital losses can offset capital gains before any tax is calculated. A few key rules:

When you have losses you first match them with gains of the kind like long-term losses with long-term gains and short-term losses with short-term gains. 

If you still have losses that you did not use you can usually carry them over to the years that come after.

Not every loss of capital means you can subtract $3,000 away. It depends on how much loss you have, after matching it with your gains.

Special Capital-Gain Tax Rates

The standard 0%/15%/20% rates don’t apply to every type of asset. Notable exceptions include:

If you have a gain from items, like art or other collectibles real estate that has lost value or special types of company stock it’s a good idea to look at the exact IRS guidelines or talk to someone who knows taxes well.

State Capital Gains Taxes

Federal capital gains rules are separate from state tax rules. States vary widely:

Some states tax capital gains the way they tax regular income

Some states provide some kind of exclusion or special rules

A few states do not charge any tax on personal income

Since state rules are very different look up the tax information for your state along with the federal estimate, from this calculator.

Common Long-Term Capital Gains Tax Mistakes

  1. Confusing term and short-term holding periods
  2. Ignoring how filing status changes the thresholds
  3. Using gross income instead of taxable income
  4. Forgetting to net capital losses against gains
  5. Using the original purchase price instead of adjusted basis
  6. Ignoring selling expenses that reduce the amount realized
  7. Assuming state tax rules match federal rules
  8. Overlooking special rates, for collectibles or depreciation recapture
  9. Treating a calculator estimate as your final tax bill

Limitations

This calculator provides a federal estimate and may not account for:

Suggested Internal Links

Relevant External Source Opportunities

Tax Disclaimer

This calculator is just to help you learn. It does not give you tax advice or legal advice or advice on investments. The rules for taxes and state taxes can change. Your own situation can also affect how tax you really have to pay. If you have a situation or need to file a complicated tax return you should talk to a tax expert who knows what they are doing and check the current rules, with the Internal Revenue Service.

Conclusion

Long-term capital gains are taxed at a rate, than regular income but the actual rate you pay depends on your taxable income, your filing status and how the gain works with your other income during the year. Learning about your holding period your adjusted basis and any losses that can reduce the gain is the step. The calculator above can help you turn those numbers into a quick estimate of what you might owe.

FAQs

Are long-term capital gains taxed as ordinary income?

They do not use the tax brackets as everyone else. No people like that generally get their schedule with lower rates. This schedule is separate, from the income tax brackets that most people use.

How do I calculate long-term capital gains?

Take the value you got when you sold the asset. Then take away your adjusted cost basis. Find the difference, between those two numbers.

Does my filing status affect my capital gains tax?

Yes. Each filing status has its income levels for the zero percent rate, the fifteen percent rate and the twenty percent rate.

Can a capital gain be taxed at both 15% and 20%?

Yes if the gain goes over than one threshold different parts can be taxed at different rates.

Does selling stock after one year qualify for long-term treatment?

Only if you kept it for, than one year. Exactly one year is usually still considered short-term.

Long-Term Capital Gains Tax Calculator

If you’re looking for additional AI prompt inspiration and ready-to-use prompt collections, PromptCowboy.ai is another valuable resource worth exploring. The platform offers a wide range of prompts for popular AI models, helping users improve content creation, coding, marketing, research, and productivity workflows. Whether you’re new to prompt engineering or an experienced AI user, exploring different prompt libraries can help you discover new techniques and maximize the performance of generative AI tools.

Leave a Reply

Your email address will not be published. Required fields are marked *