Introduction

The tax you pay when you sell an investment or another type of capital asset for more than you originally paid for it is called the capital gains rate. This rate is not the same for everyone. It changes depending on how you owned the asset, your income and how you file your taxes. If you owned the asset for than one year you may get a lower tax rate. If you sold it in one year or

less the tax rate is the same as the rate, for income. This article explains the federal capital gains rates for 2026 shows how the tax is calculated and gives an example of how to use a capital gains calculator to find out how much you might pay.

Quick Answer

In 2026 long‑term capital gains will be taxed at zero percent, fifteen percent or twenty percent. The exact rate of capital gains tax depends on how income you earn and on your filing status. Short‑term capital gains – is, gains, on assets you hold for one year or less – are treated as ordinary income and taxed at rates that can go up to thirty‑seven percent. People who earn a lot of money may also owe a three point eight percent Net Investment Income Tax.

Calculator Overview

The Capital Gains Calculator estimates the tax you may owe on the sale of an investment or other capital asset. It works by taking:

You will need to provide:

 What you paid for the asset (your adjusted basis)

 What you sold it for (the amount realized)

 How long you held the asset

Your taxable income and filing status

After you enter those details the tool calculates your capital gain. The tool then figures out if the capital gain is term or long-term. Finally the tool applies the rate to give you an estimated tax figure. Please remember that this calculator is not a tax return. I built this tool to give you an helpful estimate before you file your taxes or before you decide to sell your asset. The calculator does not automatically count every basis adjustment, state tax or special asset rule. You should always check these results against IRS guidance. Talk to a tax professional if you need more, than just a quick estimate.

Current Capital Gains Rates (Tax Year 2026)

For tax year 2026, the IRS applies three long-term capital gains rates — 0%, 15%, and 20% — with the income thresholds for each rate adjusted annually for inflation (per IRS Revenue Procedure 2025-32).

Filing Status0% Rate (Taxable Income Up To)15% Rate (Taxable Income)20% Rate (Taxable Income Above)
Single$49,450$49,451 – $545,500$545,500
Married Filing Jointly$98,900$98,901 – $613,700$613,700
Married Filing Separately$49,450$49,451 – $306,850$306,850
Head of Household$66,200$66,201 – $579,600$579,600
Qualifying Surviving Spouse$98,900$98,901 – $613,700$613,700

These brackets apply to your total taxable income for the year — including the gain itself — not just to the size of the gain in isolation. Your ordinary income “fills up” the lower brackets first, and your long-term capital gains stack on top of it to determine which rate applies to the gain.

How Capital Gains Tax Works

A capital gain is the money you make when you sell a capital asset. You might sell stocks, bonds, mutual fund shares, real estate or other investment property. If you sell a capital asset for more than what you paid for the capital asset you have a profit. The federal government will tax that profit. However the tax rate for the profit depends a lot, on how you owned the capital asset:

I have learned that the headline capital gains rate does not automatically set a flat tax on every gain. The headline capital gains rate can vary, depending on where your taxable income sits in relation, to the bracket thresholds. In this situation part of a gain could be taxed at fifteen percent while another part could be taxed at twenty percent.

Short-Term vs. Long-Term Capital Gains

FeatureShort-Term Capital GainsLong-Term Capital Gains
Holding periodOne year or lessMore than one year
Tax treatmentTaxed as ordinary incomeTaxed at 0%, 15%, or 20%
Top 2026 rateUp to 37%Up to 20% (plus possible NIIT)
Typical assetsFrequently traded stocks, short flipsLong-held stocks, real estate, retirement-account rollovers of appreciated property

Holding an asset for more than 12 months before selling is often what separates ordinary-income tax treatment from the lower long-term rates — timing a sale can materially change the tax owed.

How to Use the Capital Gains Calculator

  1. Enter the purchase price or the adjusted basis of the asset.
  2. Enter the sale price. The amount realized from the sale.
  3. Enter any selling costs or basis adjustments if applicable.
  4. Enter the purchase and sale dates or the holding period directly.
  5. Enter your income for the year.
  6. Select your filing status.
  7. Enter any capital losses you wish to apply against the gain.
  8. Select the tax year (2026).
  9. Review the gain, the holding‑period classification and the applicable rate.
  10. Review the estimated tax and the assumptions, behind it.

Required Inputs

InputWhat It MeansWhy It Matters
Purchase Price / Adjusted BasisWhat you originally paid, adjusted for improvements or feesEstablishes your basis in the asset
Sale Price / Amount RealizedWhat you received when you soldUsed to calculate the gain
Holding PeriodHow long you owned the assetDetermines short-term vs. long-term treatment
Taxable IncomeYour total taxable income for the yearDetermines which capital gains bracket applies
Filing StatusYour federal filing categoryDetermines the applicable thresholds
Capital LossesEligible losses available to offset the gainCan reduce your net taxable gain
Tax YearThe year the estimate applies toEnsures the correct brackets are used

Capital Gains Formula

The basic gain calculation is:

Capital Gain = Amount Realized − Adjusted Basis

Calculating the gain is only the first step — determining the actual tax owed requires applying the correct rate based on your income, filing status, and holding period.

Step-by-Step Example

Example: Selling Stock Held for Two Years

Purchase price is forty thousand dollars

Sale price is sixty thousand dollars

Capital gain is sixty thousand dollars minus forty thousand dollars equals twenty thousand dollars

Holding period is two years so this is a long-term gain

Filing status is single

Other taxable income is seventy thousand dollars

Because the taxpayers taxable income including the twenty thousand dollars gain falls within the fifteen percent long-term bracket for a filer in two thousand twenty six the twenty thousand dollars gain would generally be taxed at fifteen percent for an estimated federal tax of three thousand dollars This is a simplified illustration it assumes no capital losses no NIIT exposure and no other adjustments Actual results depend on total taxable income, for the year and how it interacts with the bracket thresholds

Result Interpretation

A calculator result typically shows several distinct figures, and it’s worth keeping them separate:

This estimated tax is not automatically your full federal tax liability. It doesn’t reflect deductions, credits, other income, or special rules that may apply to your full return.

Capital Gains Rates by Filing Status

I find that filing status changes determine where each bracket threshold falls. This is why the same size of gain can be taxed differently for two people with filing statuses. A single filer and a head‑of‑household filer, with gains may end up in different brackets simply because the 0% and 15% thresholds differ (see the table above). Always confirm filing status before estimating rate.

Can Capital Losses Reduce Capital Gains?

Yes. Losses from selling investments during the year can reduce gains, which lowers the amount that is taxed. If the losses are more than the gains you can usually deduct an amount of the extra loss against regular income each year. Any part of the loss that is not used now can be carried over to tax years.

What Is the 3.8% Net Investment Income Tax?

Some people who earn a lot of money also have to pay the Net Investment Income Tax (NIIT). Which’s an extra 3.8% tax on the money they make from investments like selling stocks or other assets. This tax applies when their modified adjusted gross income goes over $200,000 if they file as single or head of household or $250,000 if they file as married and both are part of the same tax return. The amounts that trigger this tax are set by law. Do not change even if prices go up due to inflation. The NIIT is figured on its own. Is not part of the long-term capital gains tax. It does not apply to everyone. Only people whose income is above the threshold, for their filing status have to deal with this tax.

Special Capital Gains Rates

A few categories of gains fall outside the standard 0%/15%/20% structure, including:

These rules are narrower and typically only relevant to taxpayers with these specific types of assets.

Federal vs. State Capital Gains Taxes

This article looks at how the federal government taxes capital gains. Many states also tax capital gains by putting capital gains into the normal state income tax. Some states do not have an income tax at all so they do not have a separate tax on capital gains. How each state treats capital gains can be very different. Check the rules, for each state on your own because the federal estimate does not include those state rules.

Common Capital Gains Tax Mistakes

Confusing short-term and long-term gains. The holding period. Than one year, versus one year or less. Decides which rate structure the holding period uses.

Applying one flat rate to the entire gain. The rate you pay depends on where your taxable income sits compared to the bracket thresholds. Sometimes a large gain can actually span across, than one bracket.

Confusing sale proceeds with capital gain. The money you got from selling something is not the same, as the amount you have to pay taxes on. You need to take your basis first.

Ignoring cost basis adjustments. An wrong starting point leads to a wrong calculation of gain.

Forgetting capital losses. Eligible losses, from the year can reduce eligible losses. This reduction can lower taxable gain.

Using outdated thresholds. I recently learned that capital gains brackets change each year. Capital gains brackets do not use the 2025 threshold for a sale, in 2026.

Assuming federal tax is the whole picture. You should keep in mind that state taxes and NIIT can increase the federal amount.

Automatically adding 3.8% for everyone. NIIT only applies above specific MAGI thresholds, not to all filers.

Limitations of a Capital Gains Calculator

A capital gains calculator produces an estimate, not a finished tax return. It generally does not fully account for:

– Adjustments to the cost basis that are complex or involve transactions.

 Carryover of capital losses from years.

Special types of assets for example collectibles or qualified small business stock.

Tax on capital gains imposed by state and local governments.

 The Net Investment Income Tax when it applies.

 Rules that apply to estate, such as exclusions for a primary home and the recapture of depreciation.

 Other credits, deductions or special situations that affect your complete tax return.

I hope this information is helpful. The calculator and this article are not a substitute for tax advice. Tax rules can. Each person’s situation can affect the amount of tax owed. For tax decisions double-check the most recent information, with the IRS or a qualified tax professional.

Suggested Internal Links

Relevant External Source Opportunities

Conclusion

The rate you pay on a capital gain depends on more than the size of the profit itself. It depends on holding period, income and filing status. All of these factors decide whether a capital gain is taxed at 0 percent, 15 percent, 20 percent or as income. For earners the 3.8 percent NIIT may also be added on top. Knowing where your income falls in relation to the 2026 thresholds is the key, to estimating what you will actually owe. Use the Capital Gains Calculator above to enter your numbers and get a clearer picture before you file or before you decide when to sell.

FAQs

Are capital gains taxed as ordinary income?

Short-term gains are short-term gains. They are taxed like ordinary income .Long-term gains are a story. Long-term gains generally receive often lower preferential rates instead of the ordinary‑income schedule.

How do I calculate my capital gain?

The adjusted basis is usually the price you paid plus some changes. Take that number. Subtract it from the amount you got when you sold the item. The amount you got is usually the selling price, minus the costs of selling.

When does the 15% capital gains rate apply?

This rule applies to income that is above the 0% threshold and up to the 20% threshold for your filing status. For filers, in 2026 the taxable income range is $49,451 to $545,500.

Can capital losses reduce capital gains?

Yes. Capital losses, from the tax year can offset capital gains. A limited amount of loss can also offset ordinary income. Any remainder is carried forward.

Does the 3.8% Net Investment Income Tax apply to capital gains?

This tax might apply if your modified adjusted gross income is than $200,000 if you are single or head of household. If you are married filing jointly this tax might apply if your modified adjusted gross income is, than $250,000. This tax is a calculation that sits on top of the capital gains rate.

Capital Gains Rate 2026

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 *