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:
- Purchase price or adjusted cost basis
- Sale price or amount realized
- Selling expenses if there are any
- income before the gain
- Filing status
- Tax year
- Capital losses if there are any
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.
- Long-term capital gain: profit on an asset held for more than one year
- Short-term capital gain: profit on an asset held for one year or less
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:
- The holding period for things you buy usually starts the day after you buy them.
- There are some situations, like when you get property from someone who passed away or when you get assets as a gift and these situations have their own special rules, for the holding period of the assets.
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 Status | 0% Rate | 15% Rate | 20% Rate |
| Single | Up to $49,450 | $49,451–$545,500 | Over $545,500 |
| Married Filing Jointly | Up to $98,900 | $98,901–$613,700 | Over $613,700 |
| Head of Household | Up to $66,200 | $66,201–$579,600 | Over $579,600 |
| Married Filing Separately | Up to $49,450 | $49,451–$306,850 | Over $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
- Amount realized is generally what you receive from the sale, often after selling costs like commissions.
- Adjusted basis is usually your original purchase price, adjusted for things like improvements, depreciation, or corporate actions (such as stock splits).
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
- Enter the cost of the item or the adjusted value.
- Enter the money received when it was sold or the total amount you got.
- Add any costs related to selling if the tool allows for this.
- Enter the income you had before the profit.
- Choose your filing status.
- Choose the year for taxes (2026).
- Enter any losses, from selling items that you want to use against this profit if allowed.
- Check the estimated profit amount.
- Check the estimated tax rate or rates that apply.
- Check the estimated taxes you need to pay because of the profit.
Required Calculator Inputs
| Input | What It Means |
| Purchase Price / Adjusted Basis | What you paid for the asset, adjusted for relevant tax rules |
| Sale Price / Amount Realized | What you received from selling it |
| Selling Costs | Eligible expenses tied to the sale |
| Taxable Income | Your taxable income before adding the gain |
| Filing Status | Determines which threshold table applies |
| Capital Losses | Losses 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%
- The remaining $11,100 is taxed at 15%
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
| Feature | Long-Term Capital Gains | Short-Term Capital Gains |
| Typical holding period | More than 1 year | 1 year or less |
| Federal tax treatment | Preferential rates may apply | Generally taxed as ordinary income |
| Common rates | 0%, 15%, 20% | 10%–37% (ordinary rates) |
| Depends on taxable income | Yes | Yes |
| Capital losses matter | Yes | Yes |
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:
- Collectibles (art, coins, precious metals) and certain qualified small business stock gains — taxed at up to 28%
- Unrecaptured Section 1250 gain (a portion of real estate depreciation recapture) — taxed at up to 25%
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
- Confusing term and short-term holding periods
- Ignoring how filing status changes the thresholds
- Using gross income instead of taxable income
- Forgetting to net capital losses against gains
- Using the original purchase price instead of adjusted basis
- Ignoring selling expenses that reduce the amount realized
- Assuming state tax rules match federal rules
- Overlooking special rates, for collectibles or depreciation recapture
- Treating a calculator estimate as your final tax bill
Limitations
This calculator provides a federal estimate and may not account for:
- State and local taxes
- The 3.8% Net Investment Income Tax (NIIT) that can apply to higher-income taxpayers
- asset categories like collectibles Section 1250 property and qualified small business stock
- Capital-loss carryovers, from previous years
- Other deductions and credits that change your total return
Suggested Internal Links
- Calculatorul de Impozit pe Câștiguri de Capital
- Calculatorul de Investiții
- Calculatorul de Impozit pe Venit
- Calculatorul de Dobândă Compusă
- Calculatorul pentru Pensiune
- Calculatorul de 401(k)
Relevant External Source Opportunities
- The Internal Revenue Service has a lot of information about capital gains and losses which is covered in IRS Topic No. 409.
- They also have IRS Publication 550 this one is about the income and expenses that people get from their investments.
- The Internal Revenue Service has another publication it is called IRS Publication 544. This one is about what happens when people sell things they own.
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
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.
Take the value you got when you sold the asset. Then take away your adjusted cost basis. Find the difference, between those two numbers.
Yes. Each filing status has its income levels for the zero percent rate, the fifteen percent rate and the twenty percent rate.
Yes if the gain goes over than one threshold different parts can be taxed at different rates.
Only if you kept it for, than one year. Exactly one year is usually still considered short-term.

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.
