Capital Gains Tax Explained

Why does the profit from selling a stock sometimes get taxed less than your paycheck? The answer is capital gains tax. This is the tax you owe on the profit when you sell an asset for more than you paid for it. How much you owe depends on one big thing: how long you held the asset before you sold it.

Quick Answer
Capital gains tax is a tax on profit. You owe it when you sell an asset, like a stock or property, for more than its cost basis. If you held the asset one year or less, the gain is short-term and taxed at your regular income tax rates. If you held it more than one year, the gain is long-term and taxed at a lower rate of 0%, 15%, or 20%, based on your income. These rates and income cutoffs change often, so always check the current IRS rules.

What Is a Capital Gain?

A capital gain is the profit you earn when you sell an asset for more than it cost you. The asset can be many things you own for investment or personal use.

Common examples include:

  • Stocks, bonds, and mutual funds
  • Real estate, such as land or a second home
  • Other valuable property, like collectibles

The gain is simply the sale price minus what you paid. If you sell for less than you paid, that is a capital loss instead, and losses are treated differently.

Realized vs Unrealized Gains

Here is a key point that trips up many new investors. You do not owe capital gains tax just because an asset went up in value.

A gain is only “realized” when you actually sell the asset and lock in the profit. Until then, any increase is an “unrealized” gain, sometimes called a paper gain.

Say you own a stock that doubled in price. If you keep holding it, you owe no tax yet. You generally owe capital gains tax only in the year you sell.

Cost Basis: Where the Math Starts

Your cost basis is usually what you paid for the asset. It can also include certain costs, like broker commissions or fees.

For a home, your basis can include the purchase price plus major improvements you paid for over time. A higher basis means a smaller taxable gain.

This is why good records matter. Keep proof of what you paid and what you spent, because it directly lowers the gain the IRS can tax.

Short-Term vs Long-Term Capital Gains

This is the split that matters most for your tax bill. The dividing line is your holding period, measured from the day after you buy to the day you sell.

  • Short-term: held one year or less. Taxed at your ordinary income tax rates, the same as your wages.
  • Long-term: held more than one year. Taxed at the lower rates of 0%, 15%, or 20%.

The lesson is clear for many investors. Holding an asset for just over a year can move your profit into the lower long-term rates.

Short-Term vs Long-Term Capital Gains at a Glance
Attribute Short-Term Long-Term
Holding period One year or less More than one year
Tax rate Ordinary income rates 0%, 15%, or 20%
Usually the rate is Higher Lower
Depends on Your income tax bracket Your taxable income and filing status
Short-term capital gains compared with long-term capital gains Two cards compare the two gain types. Short-term gains are held one year or less and taxed at ordinary income rates. Long-term gains are held more than one year and taxed at 0, 15, or 20 percent. Short-Term vs Long-Term Capital Gains S Short-Term Held 1 Year or Less Taxed at Ordinary Income Rates L Long-Term Held More Than 1 Year Taxed at 0%, 15%, or 20%
The holding period decides which rules apply to your gain.

How Long-Term Capital Gains Tax Rates Work

Long-term gains use three rate tiers: 0%, 15%, and 20%. Which tier applies depends on your taxable income and filing status.

Many middle-income sellers land in the 15% tier. Lower earners can qualify for the 0% rate, while the highest earners reach 20%.

The exact income cutoffs for each tier change every year. Treat any specific dollar thresholds as figures that shift, and confirm the current numbers with the IRS before you plan a sale.

These lower rates are one reason many investors hold assets for the long run. Waiting past the one-year mark can meaningfully shrink the tax on a profit.

The three long-term capital gains tax rate tiers shown as bars A bar chart shows three long-term rate tiers. The first bar is 0 percent and very short. The second bar is 15 percent and medium height. The third bar is 20 percent and the tallest. Long-Term Capital Gains Rate Tiers 0% Lower income 15% Middle income 20% Higher income Your tier depends on taxable income and filing status, and the cutoffs change yearly.
Long-term gains are taxed at 0%, 15%, or 20% depending on your income.

The Capital Gain Formula and a Worked Example

The basic math is short and simple. You subtract your cost basis from your sale price.

The capital gain formula: sale price minus cost basis equals capital gain Three boxes show the formula. Sale price of 15,000 dollars minus cost basis of 10,000 dollars equals a capital gain of 5,000 dollars. Capital Gain = Sale Price – Cost Basis Sale Price $15,000 Cost Basis $10,000 = Capital Gain $5,000 Held more than one year, a $5,000 long-term gain taxed at 15% costs $750.
A simple worked example of the capital gain formula.

Here is the example in words. You buy a stock for $10,000. A few years later, you sell it for $15,000.

Your capital gain is $15,000 – $10,000 = $5,000. Because you held it more than one year, it is a long-term gain.

If your income puts you in the 15% tier, your tax is $5,000 x 15% = $750. Held one year or less, that same gain would be taxed at your higher ordinary rate instead.

That gap is the whole point of the holding period. Selling just a few days too early can push the same profit into a higher tax bracket.

How You Report Capital Gains

You report most capital gains and losses on your federal tax return. Investment sales flow through the forms that feed into Schedule D.

Your brokerage usually sends a Form 1099-B each year. It summarizes your sales and often shows your cost basis, which makes filing much easier.

Keep these forms with your own records. If the reported basis looks wrong, you can correct it, since an accurate basis lowers the gain you are taxed on.

Selling Your Home: A Quick Note

Your main home gets special treatment. If you meet the ownership and use tests, you may exclude up to $250,000 of gain if single, or $500,000 if married filing jointly. These limits can change, so confirm the current rules with the IRS.

Can Losses Lower Your Capital Gains Tax?

Yes. Selling investments that dropped in value creates capital losses, and those losses can offset your gains.

This strategy has its own timing rules and limits, so it deserves its own guide. For the full picture, read our sibling article on Tax-Loss Harvesting Explained.

How Capital Gains Fit Your Bigger Tax Picture

Capital gains are only one piece of your yearly return. Two related topics sit just outside this guide.

First, the way your overall tax rate is figured is separate from these gain tiers. To understand that, see How to Calculate Your Effective Tax Rate.

Second, whether you take the standard deduction or itemize is its own subject that affects your taxable income, not your gain rate directly.

No single tool covers every tax at once. There is no dedicated capital gains calculator on our site, but if you also need to estimate tax on a purchase, our Sales Tax Calculator is a handy general tax tool.

Taxes touch many parts of daily spending, not just investments. When you need to work out the tax added to a purchase, try our Sales Tax Calculator for a fast, clear estimate. For the profit math above, confirm your gain rate with the current IRS rules.

Frequently Asked Questions About Capital Gains Tax

What Is Capital Gains Tax?

Capital gains tax is the tax you owe on the profit from selling an asset for more than you paid. The asset can be a stock, bond, fund, or property. You generally owe the tax only in the year you sell and realize the gain, not while you still hold the asset.

What Is the Difference Between Short-Term and Long-Term Capital Gains?

The difference is the holding period. A short-term gain comes from an asset held one year or less, and it is taxed at your ordinary income rates. A long-term gain comes from an asset held more than one year, and it is taxed at the lower rates of 0%, 15%, or 20%.

What Are the Long-Term Capital Gains Tax Rates?

Long-term gains use three tiers: 0%, 15%, and 20%. The tier that applies depends on your taxable income and filing status. Lower earners may pay 0%, many middle-income sellers pay 15%, and the highest earners pay 20%. The income cutoffs change each year, so check current IRS figures.

How Do I Calculate a Capital Gain?

Use this formula: capital gain equals sale price minus cost basis. For example, a stock bought for $10,000 and sold for $15,000 gives a $5,000 gain. If it is long-term and taxed at 15%, the tax is $750. A capital loss happens when you sell for less than your basis.

What Is Cost Basis?

Cost basis is usually what you paid for an asset, plus certain costs like commissions or fees. For a home, it can include major improvements. A higher basis means a smaller taxable gain. Keeping clear records of what you paid helps you prove your basis and lower the gain that can be taxed.

Do I Pay Capital Gains Tax When I Sell My Home?

Often you do not, because of the home sale exclusion. If you meet the ownership and use tests, you may exclude up to $250,000 of gain if single, or $500,000 if married filing jointly. Gain above those limits can be taxable. These amounts and rules can change, so confirm with the IRS.

Are Unrealized Gains Taxed?

Generally no. An unrealized gain is an increase in value on an asset you still own, sometimes called a paper gain. You usually owe capital gains tax only after you sell and realize the profit. Until you sell, a rising value does not create a capital gains tax bill for most investors.

Sources

Authoritative Sources Used in This Article

This article is for general education only, not tax advice. Tax laws, rates, brackets, and limits change often and vary by state and situation, so check the current IRS rules and consult a tax professional for your situation. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 12, 2026.


Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.

Leave a Comment