It’s easy to look at an investment that’s gone up in value and assume all of that growth is yours to keep.
But once you sell an asset for more than you paid, whether it’s a stock, a mutual fund, real estate, or another investment, you may trigger a capital gain, and that gain could be taxable. For many people, this comes as a surprise, especially if they were expecting to keep all the profit.
Understanding how capital gains work—when they apply, how they’re taxed, and what factors matter—can help you be better prepared when it’s time to file your taxes.
What Are Capital Gains?
A capital gain is the profit you make when you sell an investment—like a stock, bond, or property—for more than you paid.
Capital gain = what you sold it for – what you paid for it
General Example:
You invest $5,000 in a stock. Later, you sell it for $7,000.
Your capital gain is:
$7,000 − $5,000 = $2,000
That $2,000 may be taxable.
You can incur capital gains from many different types of investments. Some of the most common include:
- Stocks
- Mutual funds (including capital gains distributions when the fund sells investments)
- Exchange traded funds (ETFs)
- Real estate, especially second homes or investment properties
- Cryptocurrency or collectibles
When Do You Actually Pay Capital Gains Tax?
You don’t owe taxes just because an investment goes up in value on paper. You generally owe taxes when you sell that investment and lock in, or “realize,” the gain.
Here are a few common situations where this can come up:
- Selling investments in a brokerage account - when you sell stocks, ETFs, or funds for more than you paid
- Rebalancing your portfolio - shifting money between investments can trigger gains if something is sold at a profit
- Selling a second home or investment property - these don’t get the same tax treatment as a primary residence
- Mutual fund distributions - you can receive taxable gains from a fund even if you didn’t sell anything yourself
š Note: Capital gains are included in your overall income, so they can affect your tax bracket and other income-based calculations.
Does the Type of Investment Account Matter for Capital Gains Taxes?
Yes. Capital gains taxes generally apply to investments held in taxable brokerage accounts.
Investments held inside tax-advantaged accounts—such as IRAs, 401(k)s, Roth accounts, and 529 plans—can usually be bought and sold without triggering capital gains taxes. Instead, taxes depend on how and when money comes out of the account.
Does Selling Your Primary Home Trigger Capital Gains?
Not always. If you sell your primary residence, you may be able to exclude a large portion of the gain from taxes. In many cases, that means:
- Up to $250,000 of gain if you’re single (2026)
- Up to $500,000 of gain if you’re married filing jointly (2026)
To qualify, you generally need to have owned and lived in the home for at least two of the past five years before the sale.
Because of this, many primary home sales don’t result in capital gains tax—but it ultimately depends on your situation.
What is the Difference Between Short-Term and Long-Term Capital Gains?
How long you hold an investment plays a big role in how it’s taxed.
If you sell an investment within one year or less, any profit is considered a short term capital gain. These gains are taxed at your ordinary income tax rates, the same rates that apply to wages or salary.
If you hold an investment for more than one year before selling, the profit is treated as a long-term capital gain and is taxed at separate, generally lower rates.
How Long-Term Capital Gains Tax Rates Work
Long term capital gains are usually taxed at 0%, 15%, or 20%, depending on your taxable income. The IRS adjusts the income thresholds each year for inflation.
Here’s a general snapshot of the 2026 long term capital gains rates:
Single filers (2026)
- 0% on taxable income up to about $49,450
- 15% on taxable income up to about $545,500
- 20% on taxable income above that
Married filing jointly (2026)
- 0% on taxable income up to about $98,90
- 15% on taxable income up to about $613,700
- 20% on taxable income above that
These thresholds are based on taxable income (after deductions) and are updated annually by the IRS.
š Note: Higher income investors may also owe an additional 3.8% Net Investment Income Tax (NIIT) on capital gains once income passes certain thresholds.
What is a Capital Loss?
A capital loss occurs when you sell an investment for less than you paid for it.
Capital losses are calculated the same way as capital gains—the result is just negative.
Capital gain or loss = what you sold it for − what you paid for it
General Example:
You invest $7,000 in a stock. Later, you sell it for $5,000.
Your capital loss is:
$5,000 − $7,000 = −$2,000
That $2,000 loss isn’t necessarily wasted. It can be used for tax purposes in a few helpful ways:
- Losses first offset capital gains
- If losses exceed gains, you can use up to $3,000 per year to offset other income
- Any remaining losses can be carried forward to future years
š Note: Buying an investment back within 30 days of selling it at a loss may delay your ability to use that loss.
Why Capital Gains Matter for Financial Planning
Capital gains are one part of how taxes fit into your overall financial picture. With a little planning, they don’t have to be a surprise—small timing decisions can make a difference over time.
If you’re thinking about selling an investment, rebalancing your portfolio, or just want to understand how taxes might factor into your plan, we’re here to help. You can schedule a complimentary introductory meeting with our team in Glastonbury or Wilton, Connecticut.
Michael Nicoletti is a CERTIFIED FINANCIAL PLANNER® professional and works with clients throughout Connecticut and nationwide, offering financial planning and wealth management services. Based in Glastonbury and Wilton, CT, Michael helps families and individuals plan for their financial, insurance, investment, and retirement goals. Schedule a complimentary introductory meeting with Michael.
Have a quick question instead? Send us a note.
This information has been obtained from sources considered to be reliable, but we do not guarantee that the foregoing material is accurate or complete, it is not a statement of all available data necessary for making an investment decision and it does not constitute a recommendation. Investing involves risk and you may incur a profit or loss regardless of strategy selected. Every investor's situation is unique and you should consider your investment goals, risk tolerance and time horizon before making any investment. Be sure to contact a qualified professional regarding your particular situation before making any investment or withdrawal decision.
Raymond James and its advisors do not offer tax or legal advice. You should discuss any tax or legal matters with the appropriate professional.. Any opinions are those of the author, and not necessarily those of Raymond James. Expressions of opinion are as of this date and are subject to change without notice.