Capital Gains Tax When You Sell a Rental
Find your adjusted basis, split the gain into parts, and report the sale on Form 4797.
How we made this guide: AI agents drafted it from our own tests and the sources listed at the end. Taras Kornichuk checked every claim and edited the text.
Contents
- Short answer
- How Do I Find My Adjusted Basis?
- What Is the Difference Between Short-Term and Long-Term Gain?
- What Is Unrecaptured Section 1250 Gain?
- Which Selling Costs Reduce the Gain?
- Can You Show the Whole Calculation on One Rental?
- Which IRS Forms Report the Sale?
- What About a Former Home That Is Now a Rental?
- What Should You Do Before You List?
- Questions
- Sources
Most owners guess their tax on a rental sale from the sale price. That guess is often wrong in both directions. The tax depends on four numbers: what you paid, what you added, how much depreciation you took, and what you got at closing.
This guide walks through each number, then puts them together in one worked example.
This is general information, not tax advice. Check the current law or ask a tax professional.
How Do I Find My Adjusted Basis?
Your adjusted basis is your starting basis, plus improvements, minus depreciation. IRS Publication 527 says the basis of property you buy is usually its cost. That cost includes some settlement fees and closing costs from the purchase.
Use this checklist to build the number:
- Start with the purchase price. Add the purchase closing costs that the IRS lets you add to basis.
- Add capital improvements. Publication 527 says you must capitalize an expense that is a betterment, a restoration or an adaptation. A new roof is an example. A repair of a leak is not.
- Subtract depreciation. Subtract every dollar of depreciation you took, or could have taken.
- Check for a converted home. If you lived in the home first, Publication 527 says the basis for depreciation is the lesser of fair market value or adjusted basis on the date you changed it to rental use.
The phrase “could have taken” matters. Publication 544 uses the term “allowed or allowable”. If you skipped depreciation, the IRS can still reduce your basis as if you took it. Ask a tax professional how to fix missed depreciation before you sell.
What Is the Difference Between Short-Term and Long-Term Gain?
The holding period sets the tax rate. IRS Topic 409 says that if you hold an asset for more than one year, your gain is long-term. If you hold it one year or less, the gain is short-term.
| Holding period | How the IRS taxes the gain (Topic 409) |
|---|---|
| 1 year or less | Short-term. Taxed as ordinary income at your normal rates |
| More than 1 year | Long-term. 0%, 15% or 20% based on taxable income |
| Depreciation part, any long-term sale | Unrecaptured section 1250 gain, maximum 25% rate |
For tax years that start in 2025, Topic 409 gives these limits for the 0% rate on long-term gains:
| Filing status | 0% rate if taxable income is at or below | 15% rate up to |
|---|---|---|
| Single | $48,350 | $533,400 |
| Married filing jointly | $96,700 | $600,050 |
| Head of household | $64,750 | $566,700 |
| Married filing separately | $48,350 | $300,000 |
Above the 15% limit, the 20% rate applies. The IRS updates these limits each year, so check Topic 409 for the year of your sale.
What Is Unrecaptured Section 1250 Gain?
Unrecaptured section 1250 gain is the part of a long-term gain on real property that comes from depreciation. Publication 544 gives this definition. Topic 409 says this part is taxed at a maximum 25% rate.
The rule makes sense once you see the logic. Depreciation lowered your taxable rental income each year. When you sell, the IRS taxes that benefit back at a rate of up to 25%. The rest of the gain gets the normal long-term rates.
The Form 4797 instructions say section 1250 recapture, taxed as ordinary income, applies when you used an accelerated method or a special depreciation allowance. Residential rentals use straight-line depreciation over 27.5 years, per Publication 527. So for most single-family rentals, the depreciation part of the gain is unrecaptured section 1250 gain, not ordinary recapture.
Which Selling Costs Reduce the Gain?
Selling costs reduce the amount you realize. Publication 544 says the amount realized is all the money you receive plus the fair market value of property or services you receive. It also includes any of your debts the buyer takes on.
Costs that owners often subtract at sale:
- Broker commission. This is often the largest single cost.
- Seller-paid closing costs. These can include title charges, transfer taxes and legal fees, as your closing statement shows.
- Seller credits to the buyer. A credit for repairs lowers what you receive.
Keep the final closing statement from the title company. It lists each cost in one place. Your tax preparer will ask for it.
Can You Show the Whole Calculation on One Rental?
Yes. Here is an example with invented numbers for one single-family rental held for 8 years.
| Step | Item | Amount |
|---|---|---|
| 1 | Sale price | $400,000 |
| 2 | Minus selling costs (commission, closing) | −$24,000 |
| 3 | Amount realized | $376,000 |
| 4 | Purchase price plus purchase closing costs | $260,000 |
| 5 | Plus new roof (capital improvement) | +$15,000 |
| 6 | Minus depreciation taken over 8 years | −$62,000 |
| 7 | Adjusted basis (4 + 5 + 6) | $213,000 |
| 8 | Total gain (3 − 7) | $163,000 |
| 9 | Unrecaptured section 1250 gain (up to 25%) | $62,000 |
| 10 | Remaining long-term gain (0%, 15% or 20%) | $101,000 |
The total gain is $163,000. Of that, $62,000 is the depreciation part. It can be taxed at up to 25%. The other $101,000 is taxed at the long-term rate that fits your taxable income.
Two more items may apply. IRS Topic 559 says the 3.8% net investment income tax applies above $200,000 of modified adjusted gross income for single filers and $250,000 for married filing jointly. Your state may also tax the gain.
Which IRS Forms Report the Sale?
Form 4797 reports the sale of a rental. The Form 4797 instructions say you use it for the sale of real property used in your trade or business. The gain then moves to Schedule D, where the capital gains rates apply.
| Form | What it does for a rental sale |
|---|---|
| Form 4797 | Reports the sale and splits the gain by type |
| Schedule D (Form 1040) | Applies capital gains rates; holds the Unrecaptured Section 1250 Gain Worksheet |
| Form 8582 | Releases suspended passive losses in the year you sell your entire interest |
| Form 8960 | Figures the 3.8% net investment income tax, if it applies |
Suspended passive losses are good news at sale. IRS Publication 925 says passive losses that were not allowed are generally allowed in full in the year you dispose of your entire interest. The buyer must not be related to you.
What About a Former Home That Is Now a Rental?
A former home can still qualify for the home sale exclusion in some cases. IRS Publication 523 says you may exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly. You must meet the ownership and use tests, such as 24 months of ownership in the 5 years before the sale.
The exclusion never covers the depreciation. Publication 523 says you can’t exclude gain equal to depreciation allowed or allowable after May 6, 1997. That part is taxed under section 1250. Ask a tax professional how the nonqualified use rules apply to your dates.
What Should You Do Before You List?
Pull three documents first: your purchase closing statement, your list of improvements with receipts, and your depreciation schedules from past returns. Then run the table above with your own numbers. If you plan to keep other rentals, compare what management costs with the property management fee calculator. For more owner guides, see /guides.
Questions
Is the gain on a rental sale taxed as ordinary income?
Usually not, if you held the rental for more than one year. The depreciation part is taxed at a maximum 25% rate, and the rest of a long-term gain is taxed at 0%, 15% or 20% under IRS Topic 409.
Do selling costs reduce my taxable gain?
Yes. Selling costs such as the broker commission reduce the amount you realize, so the gain is smaller. Keep the closing statement.
What if I held the rental for one year or less?
The IRS treats the gain as short-term. Net short-term capital gains are taxed as ordinary income at your normal rates.
Which form do I use to report the sale of a rental?
Form 4797 reports the sale of real property used in a trade or business, which includes rental property. The gain then flows to Schedule D.
Can the 3.8% net investment income tax apply to a rental sale?
It can. IRS Topic 559 says the 3.8% tax applies when modified adjusted gross income is above $200,000 for single filers or $250,000 for married filing jointly.