What selling stock, your home or a rental adds to your 2026 federal and state tax, worked out on top of your other income
Capital gains tax is the tax on the profit when you sell something for more than you paid. A married couple, both 67, with $50,000 of Social Security and $50,000 of IRA withdrawals, who sell stock for a $100,000 long-term gain in 2026 owe $9,510 of federal tax on it and $3,990 of North Carolina tax: 13.5% of the gain. $1,830 of the federal figure is ordinary income tax, because the gain makes $10,150 more of their Social Security taxable and shrinks their senior deduction.
Loading the calculator…
Amounts are for the whole year. One year's tax on the planner's 2026 tables, priced the way the planner prices the year of a sale: your return without the sale and with it. A couple's income is split evenly between you. A gain held a year or less is taxed as ordinary income. Not included: other capital gains and losses and loss carryovers, collectibles (taxed at up to 28%), qualified small business stock, the smaller home exclusion for a move for work, health or an unforeseeable event, a home that was once a rental or a second home, depreciation on a home office, installment sales, like-kind exchanges, the alternative minimum tax, itemized deductions, credits, married filing separately, and the 10% on IRA withdrawals before 59½. For something you inherited, the basis is generally its value on the date of death (see step-up in basis).
On this page: How it is calculated Rates By income Selling your home Selling a rental By state In retirement
An example: a single person, 45, in California, with $90,000 of pay, sells shares for $80,000 that cost $30,000. The gain is $50,000. Their taxable pay after the standard deduction is $73,900, already over the 0% line of $49,450, so the whole gain is taxed at 15%: $7,500 of federal tax, plus $4,650 of California tax, which taxes gains as income. Owned a year or less, the same gain is taxed at 22% and 24%: $11,364 federal.
Long-term gains and qualified dividends are taxed at 0%, 15% and 20%, by taxable income with the gains counted on top. The full brackets, with the ordinary rates that tax short-term gains, are on the tax brackets page.
| Filing status | 2026 | 2027 | ||
|---|---|---|---|---|
| 0% up to | 15% up to | 0% up to | 15% up to | |
| Single | $49,450 | $545,500 | $51,050 | $563,200 |
| Married filing jointly | $98,900 | $613,700 | $102,100 | $633,600 |
| Head of household | $66,200 | $579,600 | $68,350 | $598,400 |
| Married filing separately | $49,450 | $306,850 | $51,050 | $316,800 |
Taxable income, gains included; 20% above the second figure. Sources: IRS Rev. Proc. 2025-32 (Oct 2025); IRS IR-2025-103 (OBBBA amendments); IRS Rev. Proc. 2026-35 (Nov 2026).
The federal tax a $100,000 long-term gain adds in 2026, with pay as the other income (age 50, the net investment income tax included):
| Other income | Single | Share of the gain | Married filing jointly | Share of the gain |
|---|---|---|---|---|
| $0 | $5,168 | 5.2% | $0 | 0% |
| $50,000 | $12,668 | 12.7% | $2,835 | 2.8% |
| $100,000 | $15,000 | 15% | $10,335 | 10.3% |
| $200,000 | $18,800 | 18.8% | $16,900 | 16.9% |
| $400,000 | $18,800 | 18.8% | $18,800 | 18.8% |
With no other income, a married couple's $100,000 gain is all in the 0% bracket after their deduction. As other income rises, less of the 0% room is left, then the net investment income tax starts.
Up to $250,000 of the gain on your main home is excluded, $500,000 for a married couple filing jointly (IRC 121). To take it:
What lowers the taxable gain: the costs of selling (agent commissions, closing costs), the costs of buying, and improvements that add to the home's value or life (not repairs). An example: a married couple, 66 and 64, in California, sell for $1,200,000 the home they bought for $400,000 and improved for $75,000, paying $72,000 to sell. Their gain is $653,000; $500,000 is excluded and $153,000 is taxed: $15,501 federal (with $23,750 more of their Social Security taxable) and $8,083 California, $23,584 in all. $1,104,416 is left from the sale after the selling costs and these taxes, before paying off any mortgage.
Source: IRS Publication 523 (2025), Selling Your Home.
A residential rental is depreciated over 27.5 years in equal amounts, with half a month in the month it is first rented and half in the month it is sold; the land is not depreciated. The depreciation lowers the taxed rent each year and lowers the basis, so it comes back as gain when you sell. That part of the gain is taxed at your ordinary rate but no more than 25%, and the rest at 0%, 15% and 20%. The basis comes down by the depreciation you could have taken even if you did not take it (IRS Publication 551 (12/2025), Basis of Assets). Gains on a rental are generally investment income for the 3.8% tax.
An example: a married couple bought a rental for $250,000 in January 2012, 20% of it land, and sell it for $450,000 in June 2026, paying $27,000 to sell. Depreciation of $7,273 a year comes to $104,848, so their basis is $145,152 and the gain $277,848. $104,848 of it is the depreciation part. With $90,000 of other income, their federal tax on the sale is $51,297 ($104,848 at up to 25% and $173,000 at 15%, and $4,478 of net investment income tax), plus $8,530 of Pennsylvania tax.
A like-kind exchange of real property (IRC 1031) puts off the tax by moving the gain into the property received; the calculator does not work one out.
Source: IRS Publication 527 (2025), Residential Rental Property; the planner's depreciation schedule.
The state tax on a $100,000 long-term gain from stock in 2026 for two married couples: one with $150,000 of pay, and one, both 67, with $50,000 of Social Security and $50,000 of IRA withdrawals. The same gain can cost the two couples different amounts: their other income is taxed differently, so the gain lands in a different bracket, and in some states it changes how much of the retired couple's Social Security or retirement income is taxed.
| State | Working couple | Retired couple | The state's rule for gains |
|---|---|---|---|
| Alabama | $4,250 | $4,525 | Taxed as income |
| Alaska | $0 | $0 | No income tax |
| Arizona | $1,875 | $2,003 | Taxed as income; 25% of long-term gains is not taxed |
| Arkansas | $2,416 | $1,911 | Taxed as income; 50% of long-term gains is not taxed |
| California | $9,141 | $5,014 | Taxed as income; 1% more on income over $1,000,000 |
| Colorado | $4,400 | $4,492 | Taxed as income |
| Connecticut | $5,950 | $7,938 | Taxed as income |
| Delaware | $6,600 | $5,086 | Taxed as income |
| District of Columbia | $8,500 | $6,149 | Taxed as income |
| Florida | $0 | $0 | No income tax |
| Georgia | $4,990 | $0 | Taxed as income |
| Hawaii | $7,250 | $7,008 | Taxed as income; gains taxed at no more than 7.25% |
| Idaho | $5,300 | $5,193 | Taxed as income |
| Illinois | $4,950 | $4,561 | Taxed as income |
| Indiana | $2,950 | $2,950 | Taxed as income |
| Iowa | $3,800 | $2,069 | Taxed as income |
| Kansas | $5,580 | $5,489 | Taxed as income |
| Kentucky | $3,500 | $3,185 | Taxed as income |
| Louisiana | $3,000 | $2,988 | Taxed as income |
| Maine | $7,743 | $3,195 | Taxed as income; 2% more on income over $1,000,000 ($1,500,000 joint) |
| Maryland | $8,760 | $9,790 | Taxed as income; 2% more on net capital gain when federal AGI is over $350,000. Not in the calculator: a home sold for less than $1,500,000 is exempt from the 2% |
| Massachusetts | $5,000 | $5,000 | Taxed as income; 4% more on income over $1,107,750. Not in the calculator: short-term gains are taxed at 8.5% |
| Michigan | $4,250 | $3,749 | Taxed as income |
| Minnesota | $7,085 | $9,219 | Taxed as income. Not in the calculator: a 1% tax on net investment income over $1,000,000 |
| Mississippi | $4,000 | $2,416 | Taxed as income |
| Missouri | $0 | −$52 | Capital gains are subtracted in full. Not in the calculator: short-term gains are subtracted too |
| Montana | $4,100 | $4,198 | Long-term gains taxed at 3% and 4.1% |
| Nebraska | $4,550 | $4,335 | Taxed as income |
| Nevada | $0 | $0 | No income tax |
| New Hampshire | $0 | $0 | No income tax |
| New Jersey | $6,353 | $3,220 | Taxed as income |
| New Mexico | $4,778 | $6,432 | Taxed as income; the first $2,500 of long-term gains is not taxed |
| New York | $6,621 | $4,756 | Taxed as income |
| North Carolina | $3,990 | $3,990 | Taxed as income |
| North Dakota | $1,170 | $0 | Taxed as income; 40% of long-term gains is not taxed |
| Ohio | $2,613 | $2,925 | Taxed as income |
| Oklahoma | $4,500 | $4,500 | Taxed as income |
| Oregon | $9,423 | $8,307 | Taxed as income |
| Pennsylvania | $3,070 | $3,070 | Taxed as income |
| Rhode Island | $5,130 | $6,119 | Taxed as income |
| South Carolina | $3,486 | $2,994 | Taxed as income; 44% of long-term gains is not taxed |
| South Dakota | $0 | $0 | No income tax |
| Tennessee | $0 | $0 | No income tax |
| Texas | $0 | $0 | No income tax |
| Utah | $4,906 | $7,773 | Taxed as income |
| Vermont | $6,414 | $5,941 | Taxed as income; the first $5,000 of long-term gains is not taxed (up to 40% of federal taxable income). Not in the calculator: a 40% exclusion for some assets held more than 3 years |
| Virginia | $5,750 | $6,804 | Taxed as income |
| Washington | $0 | $0 | 7% on long-term gains over $290,000 a year (raised each year), 9.9% on the part over $1,290,000; gains from real estate are exempt |
| West Virginia | $4,580 | $4,530 | Taxed as income |
| Wisconsin | $3,812 | $2,140 | Taxed as income; 30% of long-term gains is not taxed |
| Wyoming | $0 | $0 | No income tax |
State and local income tax as the planner holds each state's rules for 2026; Maryland includes its statewide county average. A figure below zero means the gain lowers that state's tax, for example where the state lets part of the federal income tax be deducted and the gain raises it. Where a rule is "not in the calculator", the calculator shows no figure for that state when the rule applies to your sale.
Related: tax brackets for retirees, effective tax rate calculator, taxable Social Security calculator, IRMAA brackets, which states tax retirement income, step-up in basis, tax-loss harvesting.
For education only, not tax advice. Sources: IRS Rev. Proc. 2025-32 (Oct 2025); IRS IR-2025-103 (OBBBA amendments); IRS Rev. Proc. 2026-35 (Nov 2026) (rates, brackets and deductions); IRS Topic 409, Capital gains and losses; IRS Publication 523 (2025), Selling Your Home; IRS Publication 551 (12/2025), Basis of Assets; IRS Publication 527 (2025), Residential Rental Property; state and local tax rules as the planner holds them, checked 2026-12-01. Your own return can differ with other gains and losses, credits or itemized deductions.
ReadyAimRetire prices selling your home, a rental with its depreciation, or investments in the year of the sale, with your Social Security, Medicare premiums and state tax in that year, and shows what the money does for the rest of your plan.
Free to get started.
Take what you sold it for, less selling costs, and subtract your basis (what you paid plus improvements, less any depreciation): that is the gain. A gain on something held more than a year is taxed at 0%, 15% and 20%, stacked on top of your other taxable income; one held a year or less is taxed like pay. Example: a single person with $90,000 of pay sells shares for $80,000 that cost $30,000. The $50,000 gain is long-term and their other taxable income ($73,900) is already over the 0% line of $49,450, so it is taxed at 15%: $7,500 of federal tax in 2026, plus $4,650 of California tax.
Long-term gains are taxed at 0%, 15% and 20%. In 2026 the 0% rate applies while taxable income, gains included, is up to $49,450 for a single filer and $98,900 for a married couple filing jointly; 15% up to $545,500 and $613,700; 20% above. For 2027: $51,050 and $102,100 for 0%, $563,200 and $633,600 for 15%. Short-term gains are taxed at the ordinary rates. The 3.8% net investment income tax applies above $200,000 of modified AGI ($250,000 joint). The part of a rental's gain from depreciation is taxed at no more than 25%, and collectibles at no more than 28%.
It depends on your other income. On the 2026 federal tables, a $100,000 long-term gain adds $5,168 of federal tax for a single person with no other income, $12,668 with $50,000 of pay and $15,000 with $100,000; for a married couple filing jointly, $0, $2,835 and $10,335. State tax comes on top: for a married couple with $150,000 of pay it runs from $0 in 10 states to $9,423 in Oregon.
The tax code excludes up to $250,000 of the gain on your main home ($500,000 for a married couple filing jointly) if you owned it and lived in it for 2 of the 5 years before the sale and did not exclude a gain on another home in the 2 years before. Only the gain over that is taxed. The gain is the price less selling costs, less what you paid and the improvements you made, so those all lower it. If you sell sooner because of a change in workplace location, a health issue or an unforeseeable event, a smaller exclusion can apply. Example: a married couple sells for $1,200,000 a home they bought for $400,000 and improved for $75,000; $500,000 of their $653,000 gain is excluded and $153,000 is taxed.
The depreciation taken on a rental lowers its basis, so it raises the gain when you sell. That part of the gain is taxed at your ordinary rate but no more than 25%; the rest of a long-term gain at 0%, 15% and 20%. Depreciation you could have taken counts even if you did not take it. Example: a rental bought for $250,000 in January 2012 and sold for $450,000 in 2026 has $104,848 of depreciation over 27.5 years; of the $277,848 gain, $104,848 is that part. Their federal tax on the sale is $51,297, $4,478 of it the net investment income tax.
Most states with an income tax tax capital gains as income. Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas and Wyoming have no income tax, and Missouri subtracts capital gains in full; Washington has a separate 7% tax on long-term gains over $290,000 a year, with real estate exempt. 10 states have rules of their own for gains (a part not taxed, a cap, their own rates or an extra tax): Arizona, Arkansas, Hawaii, Maryland, Montana, New Mexico, North Dakota, South Carolina, Vermont and Wisconsin. On a $100,000 gain, a married couple with $150,000 of pay pays the most state tax in Oregon ($9,423), California ($9,141) and Maryland ($8,760).
Yes, as ordinary income, at the same rates as pay. On a $100,000 long-term gain in 2026, California adds $9,141 for a married couple with $150,000 of pay and $5,014 for a retired couple with $50,000 of Social Security and $50,000 of IRA withdrawals; 1% more applies to taxable income over $1,000,000. California has no lower rate for long-term gains.
Yes. A gain counts in the income that decides how much of your Social Security is taxed and, at 65 and over, how much of the senior deduction you keep. The retired couple in the example above, both 67, with a $100,000 gain, owe $9,510 of federal tax: $7,680 on the gain and $1,830 more at ordinary rates, because $10,150 more of their Social Security becomes taxable and their senior deduction shrinks $5,100. Medicare premiums are set from income two years before: with a $300,000 gain the same couple's 2026 income would meet IRMAA tier 3 of the 2027 brackets, $9,576 more for the two of them for the year.
A gain on something you owned more than one year is long-term, taxed at 0%, 15% and 20%. One year or less is short-term, taxed at the ordinary rates like pay. For the single person with $90,000 of pay, a $50,000 long-term gain adds $7,500 of federal tax; the same gain short-term adds $11,364.