Capital gains tax: rates, rules and ways to pay less
Reviewed by a licensed financial advisor
When you sell an investment, a home or another asset for more than you paid, the profit is a capital gain, and it may be taxed. This guide explains the 2026 and 2027 long-term capital gains tax rates, how short-term gains differ and the legal ways to reduce the bill.

In this guide
Profit on an asset held for more than one year is a long-term capital gain, taxed at 0%, 15% or 20% depending on your taxable income. For 2027, the 0% rate applies up to $51,050 of taxable income for single filers and $102,100 for married couples filing jointly. Profit on an asset held one year or less is a short-term gain, taxed at your ordinary income rates of 10% to 37%. Higher earners may also owe a 3.8% net investment income tax.
What capital gains tax is
A capital gain is the difference between what you sell an asset for and your basis in it. Basis is usually what you paid, plus certain costs such as commissions and, for real estate, the cost of improvements. If you buy shares for $10,000 and sell them for $16,000, your gain is $6,000. Capital assets include stocks, bonds, mutual funds, exchange-traded funds, real estate, cryptocurrency and most other property held for investment or personal use.
You owe tax only when a gain is realized, meaning you have actually sold. An investment that has risen in value but has not been sold has an unrealized gain, which is not taxed. That gives investors control over timing, which is the basis for most capital gains planning.
Short-term vs long-term gains
The holding period decides which rates apply. The clock starts the day after you buy and includes the day you sell.
| Short-term | Long-term | |
|---|---|---|
| Holding period | One year or less | More than one year |
| Federal rate | Ordinary income rates, 10% to 37% | 0%, 15% or 20% |
| Where it is reported | Form 8949 and Schedule D | Form 8949 and Schedule D |
Holding an investment for at least a year and a day can cut the tax on the gain substantially. For someone in the 24% bracket, waiting changes the rate on the gain from 24% to 15%.
Long-term capital gains tax rates for 2026 and 2027
The rate depends on your taxable income, which is income after deductions, including the gain itself.
| Rate | Single 2026 | Single 2027 | Married jointly 2026 | Married jointly 2027 |
|---|---|---|---|---|
| 0% | Up to $49,450 | Up to $51,050 | Up to $98,900 | Up to $102,100 |
| 15% | $49,451 to $545,500 | $51,051 to $563,200 | $98,901 to $613,700 | $102,101 to $633,600 |
| 20% | Over $545,500 | Over $563,200 | Over $613,700 | Over $633,600 |
For heads of household, the 0% rate applies up to $68,350 of taxable income in 2027. Qualified dividends are taxed at these same rates.
How gains stack on top of other income
Long-term gains are treated as the top layer of your income. Your ordinary income, such as wages and retirement account withdrawals, fills the brackets first. Gains then sit on top, and each dollar of gain is taxed at the capital gains rate that applies at that level. This means a gain can be taxed partly at 0% and partly at 15%.
It also means ordinary income can push gains into a higher rate, and the reverse is not true: a capital gain does not raise the rate on your wages. It can, however, raise your adjusted gross income, which affects other things such as the taxation of Social Security benefits and Medicare premium surcharges.
Worked examples
Example 1. A married couple has $80,000 of taxable ordinary income in 2027 and a $40,000 long-term gain. The 0% rate runs to $102,100, so the first $22,100 of the gain is taxed at 0%. The remaining $17,900 is taxed at 15%, for a federal tax of $2,685 on the gain. That is an average of 6.7%.
Example 2. A retired couple has $60,000 of taxable ordinary income and realizes $30,000 of long-term gains. Their total taxable income is $90,000, below the $102,100 threshold, so the entire gain is taxed at 0%.
Example 3. A single filer with $85,000 of taxable income sells stock held for eight months at a $10,000 profit. The gain is short-term and taxed at 22%, or $2,200. Had they waited until the holding period passed one year, the tax would have been $1,500 at 15%.
Run your own numbers with the capital gains tax calculator.
Talk to an advisor about timing the sale and what to do with the proceeds.
Special rates and the 3.8% net investment income tax
- Net investment income tax. An extra 3.8% applies to investment income, including capital gains, to the extent modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. These thresholds are not adjusted for inflation. The top combined federal rate on long-term gains is therefore 23.8%.
- Collectibles, such as coins, art and precious metals, are taxed at a maximum of 28%.
- Depreciation recapture on real estate is taxed at a maximum of 25%.
- Qualified small business stock may qualify for a partial or full exclusion if detailed requirements are met.
Selling your home
The sale of a main home gets generous treatment. You can exclude up to $250,000 of gain, or $500,000 if married filing jointly, if you owned the home and lived in it as your main residence for at least two of the five years before the sale. You can generally use the exclusion once every two years. Gain above the exclusion is taxed as a long-term capital gain. Keep records of what you paid and of improvements such as additions and new roofs, because they raise your basis and lower the gain. Second homes and rental properties do not qualify for the exclusion.
Capital losses
Losses offset gains. Short-term losses first offset short-term gains and long-term losses first offset long-term gains, then any remaining loss offsets the other type. If your losses exceed your gains for the year, you can deduct up to $3,000 of the excess against ordinary income, or $1,500 if married filing separately. Any unused loss carries forward to future years with no time limit.
The wash sale rule blocks a loss if you buy the same or a substantially identical security within 30 days before or after the sale. Losses on personal property, such as a car or your home, are not deductible. Our guide to tax-loss harvesting explains how investors use losses deliberately.
Ways to reduce capital gains tax
- Hold for more than a year so gains qualify for long-term rates.
- Realize gains in low-income years. Early retirement, before Social Security and required distributions begin, is often a window for gains at 0%.
- Harvest losses to offset gains.
- Use tax-advantaged accounts. Trades inside a 401(k) or IRA do not create capital gains. See 401(k) vs IRA.
- Donate appreciated assets. Giving shares held more than a year to charity avoids the gain and may give a deduction for the full value.
- Give or leave assets thoughtfully. Assets inherited at death generally receive a stepped-up basis equal to their value on the date of death, which erases the unrealized gain. Gifts made during life carry your original basis to the recipient.
- Choose which shares to sell. Selling the highest-cost lots first reduces the gain.
- Favor tax-efficient funds in taxable accounts, such as broad index funds, which tend to distribute fewer gains.
- Spread a large gain across tax years, for example with an installment sale of property.
State taxes
Most states tax capital gains as ordinary income at their regular rates. A few states have no income tax, and a few treat gains differently from wages. Because state rates range from zero to more than 10%, where you live when you sell can matter. See our guide to states with no income tax and the state pages under retirement taxes.
Tax rules are detailed and change over time, so confirm your situation with a tax professional before a large sale. If you want help planning the sale of investments or property as part of a wider financial plan, talk to an advisor. Request a free call with the form on this page and a licensed advisor will reach out by phone or video, with no obligation.
Local advisor pages near you
Local rules and costs differ by state and county, so it helps to see how advisors in your area approach this. Browse advisor pages by state, or start with Georgia financial advisors, Oklahoma financial advisors, Connecticut financial advisors and Utah financial advisors. City pages include Financial advisors in Las Vegas, Financial advisors in Portland and Financial advisors in Minneapolis, and county pages include Advisors in Denver County and Advisors in Middlesex County. Ready to talk it through? Talk to an advisor: a licensed advisor will reach out by phone or video, free and with no obligation.
Related reading
- Capital gains tax calculator
- Tax-loss harvesting
- 2027 tax brackets
- Tax planning guide
- Inheritance tax
- Tax advisor near me
Frequently asked questions
What is the capital gains tax rate?
Long-term gains are taxed at 0%, 15% or 20% depending on taxable income. Short-term gains are taxed at ordinary income rates of 10% to 37%.
How long do I have to hold an asset for long-term rates?
More than one year. Selling at exactly one year or less produces a short-term gain.
How can I pay 0% capital gains tax?
Keep your taxable income, including the gain, at or below the 0% threshold, which for 2027 is $51,050 for single filers and $102,100 for married couples filing jointly.
Do I pay capital gains tax when I sell my house?
Often not. You can exclude up to $250,000 of gain, or $500,000 for married couples filing jointly, if you meet the ownership and residence tests.
Are capital gains taxed inside an IRA or 401(k)?
No. Sales inside these accounts are not taxed as capital gains. Withdrawals from traditional accounts are taxed as ordinary income.
Sources and further reading
- IRS Topic 409: capital gains and losses
- IRS Topic 701: sale of your home
- IRS: net investment income tax
See our editorial standards for how we research and review our guides.
Want help with a tax-smart investment plan?
Talk to an advisor by phone or video call. Free and with no obligation.
Latest money guides and ideas
- States With Inheritance Tax: Rates and Who Pays in 2026Five states with inheritance tax remain: Kentucky, Maryland, Nebraska, New Jersey and Pennsylvania. See each state’s rates, who is exempt and worked examples.
- Treasury Bills: How to Buy T-Bills and How They Are TaxedTreasury bills are short-term U.S. government debt sold at a discount. Learn how T-bills pay interest, two ways to buy them, and how the interest is taxed.
- Is Long-Term Care Insurance Worth It? Cost and CoverageIs long-term care insurance worth it? See what a policy covers, what drives the premium, when to buy, who should skip it and the 2027 tax limits.
- Mega Backdoor Roth: How It Works and 2027 LimitsA mega backdoor Roth moves after-tax 401(k) contributions into a Roth account. See the 2027 limits, what your plan has to allow, worked examples and the steps.
- Saver’s Match 2027: Who Qualifies and How to Claim ItThe Saver’s Match starts with 2027 contributions: a federal deposit of up to $1,000 a year into your retirement account. See the income limits, what counts and how to claim it.
- How to Avoid Capital Gains Tax on Real Estate: 7 WaysSeven legal ways to reduce or avoid capital gains tax on real estate, from the $250,000 and $500,000 home sale exclusion to 1031 exchanges, with worked examples for a home and a rental.
- Medicare Supplement Plans Comparison Chart for 2027Compare all 10 Medicare supplement plans side by side for 2027: what Plans A through N cover, the new deductibles and out-of-pocket limits, and a worked example of what each would leave you to pay.
- FERS Supplement: Who Gets It, How Much, When It StopsThe FERS supplement pays eligible federal retirees an extra monthly amount until age 62. See who qualifies, how it is calculated and how the earnings test can reduce it.
- 403(b) vs 401(k): Key Differences and 2027 LimitsA 403(b) and a 401(k) share the same 2027 contribution limits, but they differ in who offers them, what you can invest in and one extra catch-up for long-serving employees.











