Yes, capital gains do count as income. Every dollar of profit from selling a stock, a property, or almost any other asset gets folded into your gross income and shows up on your tax return. What changes is how that income is taxed: profits on assets you held longer than a year get their own preferential rate schedule, separate from the brackets that apply to your paycheck. But the gain still flows into your adjusted gross income, and that has consequences beyond the capital gains tax itself, from shrinking deductions and credits to raising your Medicare premiums two years down the road.
Two Different Rate Structures
The single most important factor in how your gain is taxed is how long you held the asset. Sell within a year of buying and you have a short-term capital gain, taxed at the same ordinary income rates as your wages, anywhere from 10% to 37% depending on your bracket.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses There is no special treatment. The IRS stacks the gain on top of your other income and taxes it at your marginal rate.
Hold the asset longer than a year and the profit becomes a long-term capital gain, taxed at 0%, 15%, or 20%.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses The rate depends on your total taxable income and filing status. For 2026:2Tax Foundation. 2026 Tax Brackets
- 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), $66,200 (head of household).
- 15% rate: taxable income from those thresholds up to $545,500 (single), $613,700 (married filing jointly), $579,600 (head of household).
- 20% rate: taxable income above the 15% ceiling.
A common misconception is that the rate applies to the gain alone. It actually depends on where the gain sits within your total taxable income. If your ordinary income already puts you at $540,000 and you add a $20,000 long-term gain, part of that gain lands in the 20% bracket even though most of it stays in the 15% zone.
How Capital Gains Feed Into Your AGI
Even when your long-term gain qualifies for the 0%, 15%, or 20% rate, it still gets added to your adjusted gross income. AGI is the number the IRS uses as a gateway for dozens of deductions, credits, and phase-outs, so a spike in capital gains can push you past thresholds you would otherwise clear comfortably.
Medical expense deductions are only available for the portion of expenses that exceeds 7.5% of your AGI. A higher AGI from a gain raises that floor and can eliminate the deduction. Income-sensitive credits like the Child Tax Credit begin phasing out at specific AGI levels. Eligibility for direct Roth IRA contributions depends on modified adjusted gross income: for 2026, contributions phase out between $153,000 and $168,000 for single filers and between $242,000 and $252,000 for married couples filing jointly. One large gain can push you past those limits in a year you would not otherwise expect it.
MAGI also determines your eligibility for premium tax credits under the Affordable Care Act.3HealthCare.gov. What’s Included as Income If you buy insurance through the Marketplace, a capital gain that raises your MAGI can reduce or eliminate your subsidy for the year.
The 3.8% Net Investment Income Tax
Higher earners face an additional 3.8% surtax on net investment income, including capital gains. This Net Investment Income Tax applies when your MAGI exceeds $200,000 for single filers or $250,000 for married couples filing jointly.4Internal Revenue Service. Topic No. 559, Net Investment Income Tax The tax hits the lesser of your net investment income or the amount by which your MAGI exceeds the threshold.
These thresholds are not adjusted for inflation, so more taxpayers cross them every year. A married couple with $260,000 in MAGI, of which $30,000 is a long-term gain, would owe the 3.8% surtax on $10,000, the amount above the $250,000 threshold. That adds $380 on top of the regular capital gains tax. For someone with substantial investment income well above the threshold, the NIIT effectively raises the top long-term rate from 20% to 23.8%.
Medicare Premium Surcharges Two Years Later
Capital gains can also increase your Medicare premiums through the Income-Related Monthly Adjustment Amount, or IRMAA. Medicare uses your MAGI from two years earlier to set your Part B and Part D premiums, so a large gain today can trigger higher premiums two years out.5Social Security Administration. Medicare Income-Related Monthly Adjustment Amount – Life-Changing Event
Surcharges start when MAGI exceeds $109,000 for individuals or $218,000 for married couples filing jointly. At the lowest tier, the additional monthly cost is roughly $81 for Part B and $15 for Part D. At the highest tier, MAGI above $500,000 for individuals or $750,000 for couples, the combined monthly surcharge exceeds $570.5Social Security Administration. Medicare Income-Related Monthly Adjustment Amount – Life-Changing Event Over a year, that’s nearly $7,000 in extra premiums people rarely factor into their planning.
If the gain was tied to a one-time event and you have also experienced a qualifying life-changing event like retirement, a work reduction, or the death of a spouse, you can file SSA Form 44 to ask Social Security to use a different year’s income.
You May Owe Estimated Taxes During the Year
Wages have taxes withheld automatically. Capital gains from selling investments generally do not. If you realize a significant gain, you may need to make estimated tax payments to avoid an underpayment penalty. The IRS expects quarterly payments if you will owe $1,000 or more after withholding and credits, and your withholding will not cover at least 90% of your current year’s tax or 100% of your prior year’s tax (110% if your prior-year AGI exceeded $150,000).6Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc.
This trips people up. You sell a rental property in June, enjoy the windfall, and then discover in April that you owe not just the capital gains tax but also a penalty for not paying it throughout the year. If the gain happened mid-year, you can use the annualized income installment method (Schedule AI of Form 2210) to line up your estimated payments with the quarter you actually received the income. If you also have a W-2 job, you can bump up your withholding for the rest of the year to cover the additional tax. The IRS treats withheld wages as paid evenly throughout the year regardless of when the withholding actually occurred.6Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc.
Losses Reduce the Income You Report
You don’t pay tax on every winning trade in isolation. At year-end, you combine all your capital transactions through netting on Form 8949 and Schedule D.7Internal Revenue Service. Instructions for Form 8949 Short-term gains are offset against short-term losses. Long-term gains are offset against long-term losses. If one category still shows a net gain and the other a net loss, the two are combined.
If you end the year with a net capital loss overall, you can deduct up to $3,000 of it against ordinary income ($1,500 if married filing separately).8Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Any loss beyond that carries forward to the next year and keeps carrying until it is fully used.9Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers A carried-forward long-term loss stays long-term, and a short-term loss stays short-term.
When the Gain on Your Home Doesn’t Count
The biggest capital gain most people ever realize is the profit from selling their home, and much of it may not count as taxable income at all. If you owned and lived in the home as your principal residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain. Married couples filing jointly can exclude up to $500,000.10Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
The two years of ownership and use don’t need to be consecutive. They just need to add up to 24 months within the five-year lookback window.11eCFR. 26 CFR 1.121-1 – Exclusion of Gain From Sale or Exchange of a Principal Residence For the $500,000 joint exclusion, either spouse must meet the ownership test, both must meet the use test, and neither can have claimed the exclusion on another home sale within the prior two years.10Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Any gain above the excluded amount is taxable, and if you owned the home for more than a year, the excess qualifies for the long-term rates.
Tracking your basis matters here. Your basis is what you paid plus capital improvements like a new roof, a kitchen renovation, or an added bathroom.12Internal Revenue Service. Property Basis, Sale of Home, Etc. Routine maintenance does not count. Failing to keep records of improvements can mean paying tax on profit that would otherwise have fit inside the exclusion.
Don’t Forget State Tax
The federal picture is only part of it. Most states tax capital gains as ordinary income, with rates ranging from zero in the roughly nine states without an income tax to more than 13% at the top end. A few states offer partial exclusions or lower rates for certain types of gains, and at least one taxes only gains above a specific dollar threshold. Combined federal, state, and NIIT liability on a long-term gain can approach 37% or more for high earners in the highest-tax states. When you are planning a major sale, the state treatment is worth checking alongside the federal rate.