The short answer: capital gains tax is the federal tax on your profit when you sell an asset for more than you paid, adjusted for things like improvements. Hold it more than a year and the gain is long-term, taxed at 0%, 15% or 20%. Hold it a year or less and it is short-term, taxed like regular income.
- 2026 long-term rates: 0% up to $49,450 of taxable income for single filers and $98,900 for married couples filing jointly. 20% starts above $545,500 (single) or $613,700 (joint).
- Good to know: you may exclude up to $250,000 of gain on a main home sale ($500,000 joint). A net capital loss can offset up to $3,000 of other income a year.
Checked November 16, 2026 against IRS Topic 409, IRS Revenue Procedure 2025-32 (the 2026 inflation adjustments), IRS Topic 701 on selling your home and IRS Topic 559 on the net investment income tax. Below: how the tax works, the rate tables, how to figure a gain, five worked examples, home sales, losses, the extra 3.8% tax and what to keep. This is general education, not tax advice, and every dollar amount in an example is made up for illustration.
What is capital gains tax?
A capital asset is almost anything you own for personal or investment use, such as a home, a car, furniture, stocks or bonds. IRS Topic 409 says that when you sell one, the difference between your adjusted basis and the amount you realized is a capital gain or a capital loss.
- Gain: you sold for more than your adjusted basis.
- Loss: you sold for less than your adjusted basis.
- Personal-use loss: the IRS says a loss on a personal item such as your home or car is not tax deductible.
Basis is generally what you paid for the asset. If you received it as a gift or inheritance, the basis rules are different, and the IRS points to Publication 551 for those.
You only owe the tax when you sell, not while an investment just goes up in value. That is why the tax is often described as a tax on gains you have "realized."
Short-term vs long-term capital gains
The holding period decides which rates apply. The IRS counts from the day after you acquired the asset up to and including the day you disposed of it.
| Short-term | Long-term | |
|---|---|---|
| Held for | One year or less. | More than one year. |
| Taxed at | Ordinary income rates (10% to 37% in 2026). | 0%, 15% or 20% for most gains. |
| Tax impact | Same as wages. | Usually lower than your regular rate. |
| Example | Sold a stock after 8 months. | Sold the same stock after 14 months. |
The IRS notes that exceptions exist for property acquired by gift or from a decedent, and for some other special assets, so check Publication 544 for those.
2026 long-term capital gains tax rates
The 2026 thresholds come from IRS Revenue Procedure 2025-32. They apply to your taxable income (after deductions), including the gain, on returns you file in 2027.
| Filing status | 0% rate: taxable income up to | 15% rate: taxable income up to | 20% rate: taxable income above |
|---|---|---|---|
| Single | $49,450. | $545,500. | $545,500. |
| Married filing jointly | $98,900. | $613,700. | $613,700. |
| Married filing separately | $49,450. | $306,850. | $306,850. |
| Head of household | $66,200. | $579,600. | $579,600. |
Your regular income fills the brackets first, and your long-term gains sit on top of it. Only the slice of gain that falls under the 0% line is tax-free, and the slice above is taxed at 15%, so one gain can be taxed at two rates. See the examples below, and our tax brackets guide for how ordinary income is taxed.
Higher rates for some assets
Topic 409 lists exceptions where the top rate can be more than 20%:
- Collectibles such as coins or art: taxed at a maximum of 28%.
- Qualified small business stock (section 1202): the taxable part can be taxed at a maximum of 28%.
- Unrecaptured section 1250 gain on real property: a maximum of 25%.
How to calculate a capital gain
The formula is short:
Capital gain or loss = amount realized (what you got) − adjusted basis (what you paid, adjusted)
- Find your amount realized: the sale price, minus selling costs such as commissions, in most cases.
- Find your adjusted basis: the purchase price plus improvements or other adjustments.
- Subtract. A positive number is a gain and a negative number is a loss.
- Check your holding period to see whether it is short-term or long-term.
- Apply the right rate, based on your taxable income and filing status.
Capital gains tax examples (2026 rules)
All names and amounts are examples. Swap in your own numbers.
Example 1: long-term gain taxed at 0%
Maya is single and buys $5,000 of stock. She sells it 14 months later for $8,200, a long-term gain of $3,200. Her other taxable income is $40,000.
- Total taxable income: $40,000 + $3,200 = $43,200.
- That is under the $49,450 line for single filers, so the gain is taxed at 0%. Tax on the gain: $0.
Example 2: long-term gain taxed at 15%
Same sale, but Maya's other taxable income is $60,000.
- Her income is already above $49,450, so the whole $3,200 is at 15%.
- $3,200 × 15% = $480.
Example 3: short-term gain taxed as ordinary income
Maya sells after only 8 months and has the same $3,200 gain, with $60,000 of other taxable income. The 2026 single brackets put income between $50,400 and $105,700 in the 22% bracket.
- $3,200 × 22% = $704.
- Holding a few more months would have cut the tax by $224 ($704 − $480).
Example 4: a gain split across two rates
Jordan is single with $40,000 of other taxable income and a $20,000 long-term gain.
| Piece of the gain | Math | Tax |
|---|---|---|
| Fills the space up to $49,450 | $49,450 − $40,000 = $9,450 at 0%. | $0. |
| The rest of the gain | $20,000 − $9,450 = $10,550 at 15%. | $1,582.50. |
| Total | $1,582.50. |
Example 5: losses offset gains
Priya sold one stock at a $2,000 gain and another at a $7,000 loss, all in the same year.
- $2,000 gain − $7,000 loss = net loss of $5,000.
- She can deduct $3,000 against other income this year and carry the other $2,000 forward to next year.
Selling your home: the $250,000 / $500,000 exclusion
If you sell your main home, you may be able to exclude a large part of the gain. IRS Topic 701 says you may exclude up to $250,000 of gain, or up to $500,000 if you file a joint return.
To qualify you generally need to meet both tests during the 5 years ending on the sale date:
- Ownership test: you owned the home for at least 24 months.
- Use test: you lived in it as your main home for at least 24 months.
Those months do not have to be the same 24 months, and the IRS says you generally cannot take the exclusion if you excluded the gain on another home sale in the prior two years. You still must report the sale if you receive a Form 1099-S or if you cannot exclude all of the gain. Publication 523 has the full rules and worksheets.
For rental or investment property, a home sale exclusion does not apply in the same way, so keep good records. Our guide on real estate investing covers the basics.
Capital losses and the $3,000 limit
Topic 409 says that if losses exceed gains, you can claim the lesser of $3,000 ($1,500 if married filing separately) or your total net loss against other income. Anything over the limit carries forward to later years, and the Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions walks through it.
The 3.8% net investment income tax
Higher earners may owe an additional 3.8% on investment income, including gains from selling stocks, bonds, mutual funds and real estate that is not part of an active business. IRS Topic 559 says it applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds:
| Filing status | MAGI threshold |
|---|---|
| Single or head of household | $200,000. |
| Married filing jointly or qualifying surviving spouse | $250,000. |
| Married filing separately | $125,000. |
Gain on the part of a home sale that you can exclude is not subject to this tax.
How to report capital gains
- Form 8949: list each sale and calculate the gain or loss. Your broker's Form 1099-B has most of the details.
- Schedule D (Form 1040): summarize the totals. If Schedule D does not apply to you, the IRS says you check a box on line 7b of Form 1040.
- Estimated taxes: a taxable gain may mean you owe estimated tax payments. See our guide on how to pay quarterly taxes, and check your paycheck with a W-4 guide if you also have wages.
- When it is due: gains from a 2026 sale go on your 2026 return. See when taxes are due for the 2027 deadline and extensions.
Federal capital gains tax is only part of the picture. Some states with no income tax still tax certain capital gains, so check your state's rules before you budget the bill.
What records to keep
Gather these before you sell, and again at tax time:
- Purchase confirmations or statements showing the date and the price you paid.
- Receipts for improvements, if you sold property.
- Sale confirmations and your broker's year-end tax forms.
- Inherited or gifted property paperwork that shows the starting basis.
Our tax documents checklist lists what else to collect, and the tax deductions list covers common write-offs. Inside a 401(k) or IRA, trades normally do not create capital gains tax, which is one reason to understand what a 401(k) is and how an index fund fits in. If you are new to investing, start with how to start investing.
Plan for the tax bill
A big sale can mean a big bill in April, so budget for it the day you sell:
- Estimate the gain, then multiply by the rate that fits your income from the tables above.
- Move that amount into a savings pot right away.
- Add the sale to your yearly plan so the cash flow in other months still works.

- Sinking Funds Tracker, $4.99: figures out how much to set aside each month for a tax bill or any other goal.
- Annual Budget Spreadsheet, $6.99: one file for 12 months of income, bills and savings.
- Ultimate Budget Bundle, $19.99 (
$46.42when bought separately): all 6 budget spreadsheets plus both printable planners.
Browse every template on the Spreadsheets page or the Bundles page, and more tax guides in our taxes hub.
Frequently asked questions
What is capital gains tax? Capital gains tax is the federal tax on the profit you make when you sell a capital asset for more than your adjusted basis, such as stock, a home or other investments. The IRS says almost everything you own and use for personal or investment purposes is a capital asset.
What are the capital gains tax rates for 2026? For 2026, long-term gains are taxed at 0%, 15% or 20% depending on taxable income. A single filer pays 0% up to $49,450 and 20% above $545,500. A married couple filing jointly pays 0% up to $98,900 and 20% above $613,700. Short-term gains are taxed at ordinary income rates.
What is the difference between short-term and long-term capital gains? The difference is how long you held the asset. The IRS says a gain is long-term if you held the asset more than one year, and short-term if you held it one year or less. Long-term gains get lower rates, while short-term gains are taxed like ordinary income.
How do you calculate a capital gain? Subtract your adjusted basis from the amount you realized from the sale. Basis is generally what you paid for the asset, adjusted for items like improvements. If you sell for more than basis you have a gain, and if you sell for less you have a loss.
How much is capital gains tax on a $10,000 profit? It depends on how long you held it and your income. For a long-term gain, the tax could be $0 at the 0% rate, $1,500 at 15% or $2,000 at 20%. A $10,000 short-term gain is taxed at your ordinary rate, so a 22% bracket would mean $2,200.
Do I pay capital gains tax when I sell my house? Not always. If you meet the ownership and use tests, you may exclude up to $250,000 of gain, or $500,000 if you file a joint return. The IRS says you generally need to have owned and lived in the home at least 24 months of the last 5 years.
How much of a capital loss can I deduct? You can deduct up to $3,000 of net capital loss a year against other income, or $1,500 if married filing separately. The IRS says any extra loss carries forward to later years, so a loss this year can still reduce taxes next year.
What is the 0% capital gains rate? The 0% rate means no federal tax on some or all of your long-term gain. For 2026 it applies up to $49,450 of taxable income for single filers, $98,900 for married couples filing jointly and $66,200 for heads of household. Your gain counts toward that taxable income.
Are capital gains taxed as regular income? Short-term gains are, and long-term gains are not. IRS Topic 409 says net short-term gains are taxed as ordinary income at graduated rates. Long-term gains use the lower 0%, 15% and 20% rates, with a few exceptions such as collectibles, which can reach 28%.
What is the net investment income tax? The net investment income tax is an extra 3.8% on investment income for higher earners. The IRS says it applies to the lesser of your net investment income or the amount your modified adjusted gross income is above $200,000 for single and head of household filers, or $250,000 for married filing jointly.
What form do I use to report capital gains? You report sales on Form 8949, then summarize the gains and losses on Schedule D of Form 1040. The IRS says some filers who have no Schedule D requirement can check a box on line 7b of Form 1040 instead. Your broker's Form 1099-B shows the sales.
Do I need to make estimated tax payments on capital gains? Possibly. The IRS says a taxable capital gain can require estimated tax payments, and withholding from a paycheck may not cover it. If you had a big gain, check whether you need to pay quarterly, or adjust withholding on your W-4 so you are not surprised.
Which HomeBase spreadsheet helps me set money aside for taxes? The Sinking Funds Tracker ($4.99) works out how much to save each month toward a goal, including an expected tax bill. Set a target, a due date and a monthly amount, and the sheet shows whether you are on track. It works in Excel and Google Sheets.
Is there a HomeBase template that shows my whole year of money? The Annual Budget Spreadsheet ($6.99) tracks income, bills and savings by month in one file, so a big sale and the tax set aside for it show up in the right month. For all 6 budget spreadsheets plus both printable planners, the Ultimate Budget Bundle is $19.99, or $46.42 bought separately.
Newsletter
Get new budget templates and money tips
Get the HomeBase Paper Co. email every Mon/Wed/Fri for budget templates, practical money tips and new products.

