Free tool · runs in your browser
Capital gains calculator: rental property sale
Enter your purchase basis, sale price, depreciation taken and tax rates to see federal recapture tax, long-term capital gains tax, NIIT and your true net proceeds.
Inputs
Results
How the capital gains math works
- Amount realized = sale price − selling costs (commission, transfer taxes, title and closing fees).
- Adjusted cost basis = purchase price + capital improvements + purchase closing costs − accumulated depreciation. Land value sits in your basis but never depreciates, so it is excluded from the depreciation calculation.
- Depreciation is straight-line over 27.5 years for residential rental property (building portion plus closing costs and improvements), accumulated over the years held (capped at a full 27.5-year life).
- Depreciation recapture (unrecaptured §1250 gain): the part of the gain equal to the depreciation you took is taxed at a maximum federal rate of 25% — regardless of your regular capital gains bracket.
- Long-term capital gain = total gain − recapture, taxed at your LTCG rate (0%, 15% or 20% federal).
- NIIT (net investment income tax): an extra 3.8% on the whole gain for high-income filers — single filers with MAGI above $200,000 and joint filers above $250,000 (2025 thresholds, not indexed for inflation).
- State tax: a flat rate applied to the total gain. Most states tax capital gains as ordinary income with no 0/15/20 break; a few states have no income tax at all.
Worked example
You sell the rental above for $350,000. Selling costs at 6% take $21,000, leaving $329,000 realized. You bought for $200,000 with $40,000 of land value and $4,000 of purchase closing costs, so the depreciable basis is $164,000. Straight-line over 27.5 years that is $5,963.64 per year; held 5 years, accumulated depreciation is $29,818.20.
Adjusted basis = $200,000 + $4,000 − $29,818.20 = $174,181.80. Total gain = $329,000 − $174,181.80 = $154,818.20.
Of that, $29,818.20 is unrecaptured §1250 gain taxed at 25% = $7,454.55, and $125,000 is long-term capital gain taxed at 15% = $18,750. Total tax: $26,204.55 — an effective 16.9% of the gain. With no mortgage to pay off, net cash at close: $302,795.45.
Strategies to reduce or defer capital gains tax on a rental sale
The tax bill on a rental sale is significant, but several strategies let you reduce, defer or permanently eliminate it. Understanding your options before you close can save tens of thousands of dollars.
| Strategy | Tax impact | Key requirement | Complexity |
|---|---|---|---|
| 1031 like-kind exchange | Defers 100% of federal and state gains + recapture | Qualified intermediary; 45-day ID and 180-day close deadlines | Moderate — strict rules but widely used |
| Opportunity Zone (QOZ) reinvestment | Defers gain; excludes appreciation if held 10+ years in the fund | Must reinvest within 180 days into a Qualified Opportunity Fund | Moderate — fewer fund options than 1031 |
| Installment sale (seller financing) | Spreads gain across years as payments are received; may keep you in a lower bracket each year | Buyer creditworthiness; installment method reported on Form 6252 | Low — common on smaller deals |
| Charitable Remainder Trust (CRT) | No capital gains on sale inside the trust; you receive an income stream and a partial charitable deduction | Irrevocable gift to charity at death; income stream is still taxable | High — legal setup required |
| Hold until death (step-up in basis) | Eliminates capital gains and recapture permanently — heirs inherit at fair market value | None — just hold the asset; estate plan handles the step-up | None |
Practical note: a 1031 exchange defers the gain but does not eliminate it — the deferred gain and accumulated depreciation carry into the replacement property's adjusted basis. The step-up at death is the only permanent elimination. For most investors the question is whether to pay tax now or continue deferring via 1031 exchanges until the estate step-up permanently zeroes out the liability. See the 1031 Exchange Calculator to model the deferral math.
2026 federal capital gains tax rates: how holding period and income determine your rate
Your rental property gain is taxed at different rates depending on two things: (1) how long you held the property and (2) your total taxable income in the year of sale. The table uses 2026 thresholds adjusted for inflation per IRS Rev. Proc. 2025-32.
Long-term capital gains rates (held more than 12 months) — 2026:
| Filing status | 0% rate up to | 15% rate up to | 20% rate above |
|---|---|---|---|
| Single | $48,350 | $533,400 | $533,401+ |
| Married filing jointly | $96,700 | $600,050 | $600,051+ |
| Head of household | $64,750 | $566,700 | $566,701+ |
Key interactions investors often miss:
- Short-term gain: if you held the property 12 months or less, the entire gain is taxed as ordinary income at your marginal rate — which can be as high as 37% federal. The long-term 0/15/20% brackets do not apply.
- Depreciation recapture is always at 25% — regardless of which LTCG bracket you are in. If your income is low enough for the 0% LTCG bracket, you still owe 25% on the recaptured depreciation.
- Stacking effect: the capital gain is added on top of your ordinary income to determine which LTCG bracket applies. A single filer with $80,000 of W-2 income and $200,000 of LTCG will have $80,000 of the gain in the 15% bracket and $200,000 of the gain in the 20% bracket.
- NIIT: the 3.8% net investment income tax applies on top of the LTCG rate when MAGI exceeds $200,000 (single) or $250,000 (joint), making the effective top rate on investment income 23.8% federal before state taxes.
Thresholds are 2026 figures from IRS Rev. Proc. 2025-32. These may be updated by Congress; verify on IRS.gov before filing.
State capital gains tax on rental property sales: rates and planning implications
Federal rates get most of the attention, but state tax often adds 5–13% on top of your federal bill. For many investors the state tax on a large rental sale rivals the federal LTCG tax. The table below shows the effective state treatment for major investor states as of 2026.
| State | Capital gains treatment | Top state rate on investment income | Planning note |
|---|---|---|---|
| California | Taxed as ordinary income; no LTCG preference | 13.3% (over $1M); 9.3% at $67k–$338k | Highest state burden in the US; a 1031 exchange defers state tax too; no state deadline difference from federal |
| New York | Taxed as ordinary income | 10.9% (over $25M); 8.82% at $2.1M+; 6.85% base rate | NYC residents owe additional city tax (3.876%); total NYC+NYS rate can exceed 14% at high income |
| Texas / Florida / Nevada | No state income tax | 0% | No state capital gains tax on investment property; only federal rates apply |
| Washington | 7% capital gains tax on gains over $262,000 (2026) | 7% flat on the amount above the threshold | Not an income tax — a separate capital gains excise tax upheld by state Supreme Court in 2023 |
| Colorado | Taxed as ordinary income | 4.4% flat rate | Moderate state burden; SALT deduction capped at $10,000 federal limits its offset value |
| Oregon | Taxed as ordinary income | 9.9% (over $125,000 single) | High rate; no LTCG preference; consider timing the sale to a lower-income year |
| Illinois | Taxed as ordinary income | 4.95% flat rate | Lower burden than coastal states; proposed graduated tax failed at ballot (2020) |
Multi-state situations: if you own rental property in a different state than where you live, you generally owe tax in both: the state where the property is located (source state) gets first claim, and your resident state taxes the gain too but typically credits the tax paid to the source state. If the source state has a higher rate, you pay the source state rate and your home state owes nothing extra. If your home state has a higher rate, you pay the difference. Work through both calculations before closing.
1031 exchange and state tax: a federal 1031 exchange generally defers state capital gains tax alongside federal tax. California is an exception — it has a "clawback" provision that taxes California-sourced gain when you eventually sell out of state. If you acquired a California rental and plan to 1031 into another state, consult a CPA before assuming the state tax defers cleanly.
Frequently asked questions
What is depreciation recapture and why is it taxed at 25%?
Every year you depreciate a rental, your cost basis drops by that deduction — so the eventual capital gain gets bigger without any cash changing hands. To claw some of that back, the IRS taxes the portion of your gain matched to straight-line building depreciation ("unrecaptured §1250 gain") at a maximum 25% federal rate. It applies whether or not you actually claimed the depreciation on your returns, which is why accurate records of your depreciation schedule matter on sale.
Do I owe the 3.8% NIIT on my property sale?
The net investment income tax applies the 3.8% rate to investment gains when your modified adjusted gross income exceeds $200,000 (single or head of household) or $250,000 (married filing jointly) — thresholds that are not indexed for inflation. It stacks on top of federal LTCG tax and recapture. If your income is below the threshold the tax is zero; if you only breach it by $10,000, the tax applies to the lower of that breach and your net investment income.
How does my state tax a rental property sale?
Most states simply add capital gains to your ordinary income — so a sale can push you into a high bracket (California goes up to 13.3%). A few states (Texas, Florida, Nevada, Washington, and others for wage income) levy no broad income tax on investment gains, though Washington now taxes very large gains. Enter your marginal state rate on the gain; the calculator applies it flat to the total gain.
Can I sell a rental without paying capital gains tax now?
Yes — a 1031 exchange defers the entire gain, including depreciation recapture and state tax, if you reinvest in a like-kind investment property through a qualified intermediary within 45/180-day deadlines. You can also defer the taxable event by doing a cash-out refinance instead of selling, or defer forever by holding until death, when heirs get a step-up in basis. See the 1031 Exchange Calculator to model the deferral.
What if I owe capital gains tax but also have other debts I cannot pay?
A large property sale can create a tax bill that lands on top of existing credit card debt, medical bills, or a mortgage deficiency — leaving you cash-poor even after closing. If total unsecured debt is unmanageable, a debt settlement or Chapter 7 discharge may resolve the non-tax liabilities, freeing cash flow for the IRS. Capital gains taxes themselves generally survive bankruptcy, but eliminating other debt can still make the tax bill payable. Use a debt settlement calculator to see whether negotiating unsecured balances makes sense before or after a property sale.
Estimates last reviewed . Results are estimates for educational use; not financial or investment advice. Methodology →