Rental sale tax scenario calculator
Estimate a simplified rental sale gain and tax scenario using basis, depreciation, selling costs, and rates you choose.

How this calculation works
Adjusted basis is original basis plus additions less depreciation. Gain is net sale proceeds less adjusted basis. For this limited depreciable-building scenario, the depreciation-related gain bucket is the smaller of positive gain and depreciation; remaining positive gain uses your other gain rate.
Assumptions to review
Assumes a long-term sale of a rental building with straight-line depreciation. Excludes Section 1245 ordinary-income recapture, Section 1231 lookback, exclusions, exchanges, suspended losses, NIIT, state tax, and bracket calculations. Unrecaptured Section 1250 gain has a maximum 25% federal rate; actual treatment can differ. Losses are shown without estimating tax benefits.
Prepare the records behind a rental sale scenario
Reconcile basis before entering it. Gather purchase and sale closing statements, capital-improvement records and depreciation schedules. Keep original basis, later basis additions and depreciation separate, and avoid entering the same addition twice. The depreciation input includes amounts allowed or allowable; omitting a deduction from a past return does not automatically remove its effect on basis.
Follow proceeds, basis and gain separately. In the starting scenario, $400,000 sale price less $24,000 selling costs gives $376,000 net sale proceeds. Original basis of $250,000 plus $20,000 additions less $40,000 depreciation gives $230,000 adjusted basis and $146,000 gain. Loan payoffs and other closing cash flows need a separate reconciliation; the displayed net proceeds are not a take-home amount after every liability and tax.
Have the rate assumptions reviewed. The entered rates drive this limited building-sale estimate. The calculator does not derive a rate from your filing status, income or other transactions, or decide whether an exclusion, loss, exchange or special treatment applies. Bring the records and scenario to your tax preparer before relying on a tax amount. Keep land, other assets, personal use and the full return under separate review, using the IRS publication below.
What you need to know about capital gains tax on rental property
When you sell a rental for more than your adjusted basis, the difference is a taxable gain. If you held the property for more than one year, the gain is long-term IRS Topic 409. Property held for rent is generally treated as used in a trade or business, and the sale is figured on Form 4797 IRS Publication 544.
For a typical rental sale, federal tax comes in up to three layers:
- The depreciation part: gain up to the depreciation allowed or allowable on the building is unrecaptured section 1250 gain, taxed at a maximum 25% rate IRS Topic 409.
- The remaining long-term gain: taxed at 0%, 15% or 20%, depending on your taxable income IRS Topic 409.
- Net investment income tax: 3.8% of the lesser of net investment income or the amount your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for joint filers or $125,000 for married filing separately IRS Topic 559.
Most states with an income tax also tax the gain. This calculator covers the first two layers only, at rates you choose.
2026 long-term capital gains rates
For tax years beginning in 2026, the 0% rate applies to long-term gain while taxable income is at or below the first amount, the 15% rate up to the second amount, and 20% above it IRS Revenue Procedure 2025-32:
| Filing status | 0% rate up to | 15% rate up to | 20% rate |
|---|---|---|---|
| Single | $49,450 | $545,500 | Above $545,500 |
| Married filing jointly | $98,900 | $613,700 | Above $613,700 |
| Married filing separately | $49,450 | $306,850 | Above $306,850 |
| Head of household | $66,200 | $579,600 | Above $579,600 |
For 2025 returns, the 0% rate applies up to $48,350 of taxable income for single filers and $96,700 for joint filers IRS Topic 409. The thresholds apply to total taxable income, including the gain itself, so a large sale can fall into more than one rate.
How depreciation deductions affect capital gains tax
Each year of depreciation lowers your adjusted basis, whether or not you claimed it: basis goes down by the depreciation you deducted or could have deducted IRS Publication 527. A lower basis means a larger gain when you sell.
For residential rental property placed in service after 1986 and depreciated on the straight-line method, there is no additional depreciation to recapture as ordinary income IRS Publication 544. The depreciation still costs something at sale: that part of the gain is unrecaptured section 1250 gain, taxed at up to 25% rather than the regular long-term rates IRS Topic 409. Estimate the yearly amount with the rental depreciation calculator.
Worked example with example figures
Example figures only, matching the calculator's starting scenario:
| Line | Amount |
|---|---|
| Sale price | $400,000 |
| Less selling costs | $24,000 |
| Net sale proceeds | $376,000 |
| Original basis plus $20,000 of improvements | $270,000 |
| Less depreciation allowed or allowable | $40,000 |
| Adjusted basis | $230,000 |
| Gain ($376,000 minus $230,000) | $146,000 |
| Tax on the $40,000 depreciation part at 25% | $10,000 |
| Tax on the other $106,000 of gain at 15% | $15,900 |
| Estimated federal tax in this scenario | $25,900 |
The 25% figure is a maximum, so your preparer may figure a lower rate on that part. The example leaves out the net investment income tax, state tax and the loan payoff, which changes your cash at closing but not your gain.
How to read the calculator's results
- Adjusted basis: original basis plus basis additions, minus depreciation. Check it against your depreciation schedule; a mismatch usually means a missing improvement or a missed year of depreciation.
- Net sale proceeds: sale price minus selling costs. It is not the cash you take home, because the loan payoff and closing adjustments come out separately.
- Gain or loss: net sale proceeds minus adjusted basis. A negative figure is a loss; the calculator shows it without estimating any tax benefit.
- Depreciation-related gain scenario: the smaller of the gain and the depreciation entered, taxed at the rate you set, up to 25%.
- Other long-term gain scenario: the rest of the gain, taxed at the long-term rate you enter, usually 0%, 15% or 20% from the table above.
- Estimated federal tax in this limited scenario: the two parts added together. Treat it as a starting figure for a conversation with your preparer, not as the tax on your return.
Ways to reduce capital gains tax when selling a rental
Count every basis addition and selling cost
Capital improvements add to basis, and selling expenses reduce the amount you realize from the sale IRS Publication 544. Missing receipts for a new roof or a kitchen remodel means paying tax on gain you didn't have. Keep property records until the period of limitations expires for the year you sell IRS: How long should I keep records?. Our guide to repairs and capital improvements explains which costs add to basis.
Defer the gain with a 1031 exchange
A like-kind exchange lets you trade real property held for business or investment for other such property without recognizing the gain at that time; money or other property you receive is taxable to that extent IRS: Like-kind exchanges, real estate tax tips. Identify the replacement within 45 days after you transfer your property, and receive it within 180 days or by your return's due date, whichever comes first. A home used solely as your residence doesn't qualify, and U.S. and foreign real property are not like-kind IRS Instructions for Form 8824. Read our 1031 exchange review before you list the property.
Consider selling when your income is low
Because the 0%, 15% and 20% rates depend on taxable income, the year you sell matters. A sale in a year with lower wages or business income, such as after you retire, can put more of the gain in a lower bracket. Try different rates in the calculator, then ask your preparer to model the whole return.
Offset gains with losses
Capital losses from other sales offset capital gains, and if losses are larger, you can deduct up to $3,000 of the excess a year, or $1,500 if married filing separately IRS Topic 409. Passive losses from the rental that were suspended in earlier years are generally allowed in full in the year you dispose of your entire interest in a fully taxable sale to an unrelated person IRS Publication 925. See the passive activity loss rules for landlords.
Use the home sale exclusion if you lived there
If the property was your main home, you may exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly, when you owned it and lived in it for at least 2 of the 5 years before the sale. You can't exclude gain equal to depreciation claimed after May 6, 1997, and rental use after 2008 can reduce the exclusion IRS Publication 523.
How rental income affects your capital gains rate
Net rental income from Schedule E is part of your taxable income, so it helps decide which long-term rate applies to the gain. A profitable rental year, a bonus at work or a second property sale in the same year can push more of the gain into a higher rate. Rents and gains from selling real estate are also counted for the 3.8% net investment income tax, unless the rental is part of a trade or business that tax doesn't apply to IRS Topic 559.
Plan the sale with the year's other income in view. Our guides to how rental income is reported and how rental income is taxed cover the ordinary income side, and taxes when selling a rental property gives the short answer.
Special cases to review with a tax professional
- A former home that became a rental: the home sale exclusion, depreciation and rental-use rules interact, as Publication 523 explains.
- Property you inherited or received as a gift: basis follows different rules, set out in IRS Publication 551.
- Appliances, furniture and land: this tool treats the sale as one building. Section 1245 ordinary-income recapture on items such as appliances is outside it.
- An installment sale: you must report any depreciation recapture income in the year of sale, even if no payment arrives that year IRS Publication 537.
- A short holding period: property held one year or less produces short-term gain, which doesn't get the long-term rates.
- Ownership through an LLC or partnership: the entity's return and your share of the gain need review; see LLC planning for rental property.
- State tax: check how your state taxes the gain and whether it requires withholding at closing.
Records to gather before you sell
- The purchase closing statement and any land and building allocation.
- Improvement invoices with dates and amounts.
- Depreciation schedules from every year's return, including Form 4562.
- Expected selling costs: commission, title charges, transfer taxes and legal fees.
- Suspended passive losses carried forward from earlier years.
- Tenant arrangements: leases and deposits that transfer with the sale. Read selling a rental property with tenants.
Rentari's tax packet export gathers a year's rental records for your preparer. Rentari keeps the records; it does not file returns. For help choosing a preparer, see hiring a real estate tax professional.
Questions about the rental sale tax scenario calculator
Do I pay capital gains tax when I sell a rental property?
If what you receive after selling costs is more than your adjusted basis, you have a taxable gain unless an exception such as a like-kind exchange applies. A rental held more than one year produces long-term gain, taxed at 0%, 15% or 20% depending on taxable income, with the depreciation part taxed at up to 25%.
What is depreciation recapture on a rental property?
For a rental building depreciated on the straight-line method, the gain up to the depreciation allowed or allowable is unrecaptured section 1250 gain. It is taxed at a maximum federal rate of 25%, above the usual long-term rates for many owners.
Can I avoid capital gains tax by buying another rental?
A section 1031 like-kind exchange can defer the gain when you trade real property held for business or investment for other such property. You must identify the replacement within 45 days and receive it within 180 days or by your return's due date, whichever is earlier. Cash or other property you receive is taxable.
Can I use the $250,000 home sale exclusion on a rental?
Only if the property was your main home for at least 2 of the 5 years before the sale and you meet the other tests. You still pay tax on gain equal to depreciation claimed after May 6, 1997, and time used as a rental after 2008 can reduce the exclusion.
Does the 3.8% net investment income tax apply to a rental sale?
It can. The IRS includes rents and gains from selling real estate in net investment income, unless the rental is part of a trade or business the tax doesn't apply to. It applies when modified adjusted gross income is above $200,000 for single filers, $250,000 for joint filers or $125,000 for married filing separately.
Free tools and calculators
- Rental property calculator: loan payment, cash flow, cap rate and cash-on-cash return for a purchase.
- Rental cash flow calculator: monthly cash flow after vacancy, expenses, the mortgage and reserves.
- Rental yield calculator: gross yield, net operating yield and cash-on-cash return side by side.
- Mortgage refinance calculator: payment savings, break-even months and remaining loan cost.
- Rental income goal calculator: how many rentals a monthly cash flow goal needs.
- Rental depreciation calculator: building basis and a full year of 27.5-year depreciation.
- Prorated rent calculator: partial-month rent for a move-in or move-out.
- Rent affordability calculator: the rent-to-income ratio and the income a rent calls for.
- Security deposit calculator: a deposit checked against your state's cap.
- Late fee calculator: a late rent fee checked against your state's rule.
- AI lease auditor: clauses worth reviewing in a lease PDF.
- Rent estimate report: an estimated rent range for an address when local data is available.
- Rent receipt form: a receipt for any rent payment.
- All landlord tools: every free calculator, form and guide in one place.