Free to compare · No sign-up
How it worksAd disclosure
Topic

Capital Gains Tax: How Selling Investments Gets Taxed

Short-term vs. long-term rates, the 0%, 15%, and 20% brackets for 2025 and 2026, the home sale exclusion, and the $3,000 loss rule, explained without the jargon.

You are taxed on the profit, not the sale

Sell an investment for more than you paid and the difference is a capital gain. Sell for less and it is a capital loss. The tax only ever touches the gain, the price minus your cost basis, and only in the year you actually sell. Paper gains in an account you have not touched owe nothing.

Simple so far. The rate you pay is where the system rewards patience, sharply.

The one-year line is worth real money

Hold an asset for one year or less and the gain is short-term: taxed as ordinary income, at the same rates as your paycheck. Hold it more than one year and it is long-term, taxed at special rates of 0%, 15%, or 20% depending on your taxable income.

For tax year 2025, the return filed in 2026, the 0% rate applies up to $48,350 of taxable income for single filers and $96,700 for married couples filing jointly. The 15% rate runs from there up to $533,400 single and $600,050 joint, and 20% applies above that. For tax year 2026, the 0% bracket rises to $49,450 single and $98,900 joint.

Read the 0% line again. A married couple with taxable income under $96,700 in 2025 pays nothing on long-term gains. Not a reduced rate. Zero. A retiree or a low-income year can be a legitimate window to realize gains tax-free, which is exactly the kind of move worth confirming with a CPA before pulling the trigger.

And the flip side: selling a winner at eleven months instead of thirteen can multiply the tax on that gain. If you are close to the one-year mark, check the purchase date before you hit sell. One day matters here.

High earners get one more layer: the net investment income tax adds 3.8% on investment income above $200,000 of modified adjusted gross income for singles, $250,000 for joint filers.

Your house has its own, better rule

The home sale exclusion is the most generous capital gains break ordinary people ever touch. If the home was your main residence for at least two of the five years before the sale, up to $250,000 of gain is simply excluded from tax, $500,000 for joint filers.

Most home sales owe nothing because of it. The people who do get caught are long-tenure owners in markets that ran hard, landlords converting rentals, and sellers who do not know that improvements raise their cost basis. Kept receipts for the kitchen remodel shrink the taxable gain. This is the other place a CPA pays for themselves: a six-figure gain above the exclusion is not a TurboTax-at-midnight situation.

Losses are worth something too

Investment losses offset gains dollar for dollar, and if losses win the year, up to $3,000 of the excess offsets ordinary income, with the rest carrying forward indefinitely. Harvesting losses in a down year to bank against future gains is standard, legal, and built into the form.

One trap: the wash sale rule. Sell at a loss and rebuy the same or a substantially identical investment within 30 days, before or after, and the loss is disallowed for now. Swap into something similar but not identical, or wait out the window.

A bookkeeping note that saves headaches: your broker reports every sale to the IRS on Form 1099-B, with basis included for most modern purchases. Match your return to the form. The IRS’s computers certainly will. More on the form family in our 1099 basics guide.

What this is not

None of this is a reason to hold a bad investment past one year, or to sell a good one just to harvest a loss. Tax is a discount on decisions, never the decision. The orderly version: know your holding periods, realize gains in low-income years when you can, harvest losses when the portfolio hands them to you, and call a professional when the numbers get six figures long.

Remember that not every dollar belongs in assets that generate capital gains paperwork at all. The cash you might need this year does its job better in a high-yield savings account, where the return is plain interest, the principal does not swing, and tax season needs exactly one extra line. Gains are for money with a long runway. The short-runway money should just sit somewhere safe and earn.

Frequently asked questions

What is the difference between short-term and long-term capital gains?

Hold an asset one year or less and the profit is short-term, taxed at your ordinary income rates. Hold it more than a year and it is long-term, taxed at the much friendlier 0%, 15%, or 20% rates. One extra day of holding can change the rate on the entire gain.

What are the long-term capital gains brackets?

For tax year 2025 (filed in 2026), the 0% rate covers taxable income up to $48,350 single or $96,700 married filing jointly, and the 15% rate runs up to $533,400 single or $600,050 joint, with 20% above that. For tax year 2026, the 0% bracket rises to $49,450 single and $98,900 joint.

Do I pay capital gains tax when I sell my house?

Often not. If the home was your main residence for at least two of the last five years, you can exclude up to $250,000 of gain ($500,000 for joint filers) from tax entirely. Gains beyond the exclusion are taxable, and the rules have wrinkles, so big gains deserve professional advice.

Can investment losses reduce my taxes?

Yes. Losses offset gains first, and up to $3,000 of leftover net loss can offset ordinary income each year, with the rest carrying forward to future years. Watch the wash sale rule: rebuy the same or a substantially identical investment within 30 days and the loss is disallowed for now.

What is the net investment income tax?

An extra 3.8% tax on investment income, including capital gains, for taxpayers with modified adjusted gross income above $200,000 single or $250,000 married filing jointly. It stacks on top of the regular capital gains rate.

Ready to compare?

Find your best Taxes match in 2 minutes.

Free to compare. No spam, no commitment.