When you sell an asset for more than you paid for it — a stock, mutual fund, rental property, or your home — the profit is a capital gain, and the IRS taxes it. How much you pay depends on how long you held the asset and your total income. Long-term capital gains, from assets held longer than one year, are taxed at lower rates than ordinary income. Understanding the rules helps you time sales, reduce what you owe, and avoid surprises at tax time.

Short-Term vs. Long-Term Capital Gains
The IRS distinguishes between two types of capital gains based on how long you held the asset before selling it. This distinction determines the tax rate — and the difference can be substantial.
Short-Term Capital Gains
If you sell an asset you held for one year or less, the profit is a short-term capital gain. Short-term gains are taxed as ordinary income — the same rates that apply to wages, salaries, and retirement account withdrawals. Depending on your tax bracket, that rate could be anywhere from 10% to 37%. There is no preferential treatment for short-term gains, which is why holding an asset just past the one-year mark can make a meaningful difference.
Long-Term Capital Gains
Assets held for more than one year before sale qualify for long-term capital gains rates, which are lower than ordinary income rates. For 2025, the rates are: 0% for income up to $48,350 (single) or $96,700 (married filing jointly); 15% for most middle-income filers; and 20% for higher earners above $533,400 single or $600,050 married filing jointly. Many retirees with moderate income pay 0% on long-term gains.
Net Investment Income Tax (NIIT)
Higher-income taxpayers may also owe an additional 3.8% Net Investment Income Tax on capital gains. The NIIT applies to the lesser of your net investment income or the amount by which your modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly). This pushes the effective top rate on long-term gains to 23.8%. Most retirees with moderate income are not affected, but those with large one-time gains — a property sale, for example — should check whether it applies.
The Home Sale Exclusion
If you sell your primary residence, the IRS allows you to exclude up to $250,000 in capital gains from taxable income ($500,000 for married couples filing jointly). To qualify, you must have owned and lived in the home as your primary residence for at least two of the five years before the sale. If your gain exceeds the exclusion, the excess is taxable as a long-term capital gain. This is one of the most valuable tax benefits available to homeowners.
Cost Basis and How It Affects Your Gain
Your taxable gain is the sale price minus your cost basis. Cost basis is typically what you paid for the asset, plus any improvements (for real estate) or reinvested dividends (for mutual funds). Keeping accurate records of your cost basis matters — if you cannot document it, the IRS may calculate your gain using a less favorable method. For inherited assets, the cost basis is generally stepped up to the fair market value at the date of the original owner’s death, which can significantly reduce or eliminate taxable gain.
Losses, Offsets, and Carryforwards
Capital losses — selling an asset for less than you paid — can offset capital gains. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income in a given year. Any remaining loss carries forward to future tax years. This is called tax-loss harvesting when done deliberately — selling assets at a loss specifically to offset gains elsewhere in your portfolio. The strategy works only in taxable accounts; gains and losses inside IRAs and 401(k)s do not affect your tax return.
Who This Page Is For
- Homeowners considering selling a property and wanting to understand the tax on the gain
- Investors holding stocks, mutual funds, or ETFs who want to know the difference between short- and long-term rates
- Retirees who received inherited assets and want to understand the stepped-up basis rules
- Anyone who sold an asset during the year and is trying to estimate what they owe
- People with investment losses who want to understand how to use them to offset gains
What to Do Next
- Identify any assets you sold during the year — stocks, property, mutual funds — and calculate the gain or loss for each
- Determine whether each gain is short-term (held one year or less) or long-term (held more than one year)
- Check whether you qualify for the home sale exclusion if you sold a primary residence — confirm you meet the two-year ownership and residency requirement
- Look up your long-term capital gains rate based on your taxable income — many retirees with moderate income qualify for the 0% rate
- Review your cost basis records — brokerage statements and prior tax returns are the most common sources; contact your broker if records are incomplete
Recent Tax Articles
- Trump’s Proposed Capital Gains Cut: Who Actually Saves Money?
President Trump and his advisers are discussing two different tax ideas: adjusting capital gains for inflation, and increasing or removing the limit on the home-sale tax exclusion. Neither is law yet. Here’s how each would actually work, and who would really save money if either becomes real. - How to Read a 1099-NEC: A Line-by-Line Guide
If you did freelance, contract, or gig work and a single client or business paid you $600 or more during … Read more - What is an IRS Tax Transcript and How Do You Get One?
An IRS tax transcript is a free summary of your tax return information, taken from IRS records and printed in … Read more - Tax Filing Deadlines: What You Need to Know
Tax deadlines follow a predictable pattern every year. Here’s how the April filing deadline, extensions, and estimated-tax due dates work, and what happens if you miss one.
Explore Related Topics
Money Instructor does not provide tax, legal, or investment advice. This material has been prepared for educational and informational purposes only. You should consult your own tax advisor regarding your specific situation.
Stay Informed
Get helpful money updates
Get updates on benefits, savings programs, Social Security, Medicare, and new MoneyInstructor tools.