Your gain is the sale price, minus selling costs, minus your adjusted basis. Basis starts with what you paid. Every year of depreciation lowers it, which makes the gain bigger. That's why a rental that didn't rise much in value can still show a taxable gain.
Updated December 2026.
The layers of tax on a rental sale
| Layer | Rate | Source |
|---|---|---|
| Gain from past depreciation (unrecaptured section 1250 gain). | Up to 25% federal. | IRS Topic 409. |
| Other long-term gain, held more than one year. | 0%, 15%, or 20% federal, by income. | IRS Topic 409. |
| Short-term gain, held one year or less. | Ordinary income rates. | IRS Topic 409. |
| Net investment income tax. | 3.8% above $200,000 single or $250,000 joint MAGI. | IRS Topic 559. |
| Utah income tax. | 4.45% flat for 2026. | Utah Code 59-10-104. |
How to figure your gain
Illustrative example, not a real case. The sale price matches Davis County's Q1 2026 single-family median of $548,000 (Gardner Policy Institute).
| Step | Example |
|---|---|
| Sale price. | $548,000. |
| Minus selling costs. | −$28,000. |
| Amount you realize. | $520,000. |
| What you paid, plus improvements. | $250,000. |
| Minus depreciation taken. | −$60,000. |
| Adjusted basis. | $190,000. |
| Total gain. | $330,000. |
| Part taxed at up to 25% (the depreciation). | $60,000. |
| Part taxed at 0%, 15%, or 20%. | $270,000. |
Rentals are depreciated over 27.5 years, and depreciation lowers your basis for figuring gain on a sale (IRS Pub. 527).
Ways people lower or delay the tax
- 1031 exchange. Trade into other investment real estate and put off the tax. It needs a qualified intermediary and strict deadlines. See our 1031 guide.
- Spread sales over years. Gain rates step up with income, so timing can change your rate (IRS Topic 409).
- Move back in. If you meet the home sale rules, some gain may be excluded. But depreciation after May 6, 1997 is still taxed, and time as a rental after 2008 can limit the exclusion (IRS Pub. 523).
Who can help?
For the tax side of a rental sale, each person has a role:
- CPA or tax pro. Figures your basis, depreciation, and total tax before you list. Find one in the IRS preparer directory.
- Qualified intermediary. Holds the money in a 1031 exchange. The IRS says you can't hold the cash yourself (IRS Form 8824 instructions).
- Real estate agent. Gives a price estimate, so your CPA can run real numbers. Check a license with the Division of Real Estate search.
- Attorney. Helps when the deed, an estate, or co-owners affect the sale. Look one up with the Utah State Bar's Find a Lawyer.
- Buyer. Any buyer; the tax doesn't depend on who buys.
FAQ about tax on a rental sale
How is the sale of a rental property taxed?
Gain on a rental held more than one year is long-term. The part tied to past depreciation is taxed at up to 25%, and the rest at 0%, 15%, or 20% based on income (IRS Topic 409). Utah adds its 4.45% income tax.
What is depreciation recapture when I sell a rental?
It's tax on the gain that comes from depreciation you took. Depreciation lowers your basis, so it raises your gain (IRS Pub. 527). For a rental building, that part is called unrecaptured section 1250 gain.
What tax rate applies to depreciation recapture on a rental sale?
Up to 25% federal. The IRS says unrecaptured section 1250 gain from selling real property is taxed at a maximum 25% rate (IRS Topic 409). Utah then taxes your income, including the gain, at 4.45% for 2026.
What Utah tax applies when I sell a rental?
Utah's individual income tax, at a flat 4.45% for 2026 (Utah Code 59-10-104). Utah has no separate capital gains rate in that section. A CPA can show how the gain flows into your Utah return.
How can I avoid capital gains tax when I sell a rental property?
You can't always avoid it, but you may delay or lower it. A 1031 exchange puts it off. Spreading sales over years can lower your rate. Moving back in may help, with limits (IRS Pub. 523).
Is there a simple trick for avoiding capital gains tax?
No. The IRS rules for rentals have real limits and deadlines. A 1031 exchange, for example, has a 45-day and a 180-day deadline and needs a qualified intermediary (IRS Form 8824 instructions). Ask a CPA before you sign.
If I convert my rental to my primary residence before selling, can I avoid the tax?
Only partly, at most. You must meet the home sale tests, gain from depreciation after May 6, 1997 is still taxed, and rental time after 2008 can limit the exclusion (IRS Pub. 523).
I moved out and rented my old house. Should I move back in and sell, or sell it as a rental?
Compare both with a CPA. Generally, you need to have owned and lived in a home for 2 of the 5 years before the sale to exclude up to $250,000 of gain, or $500,000 for many joint filers (IRS Pub. 523).
Who should I talk to about the tax on selling my rental?
Talk to a CPA or enrolled agent before you list, so you know the tax first. If you plan a 1031 exchange, line up a qualified intermediary before closing. The IRS links a preparer directory.
Sources
- Utah Code 59-10-104: Individual income tax rate
- IRS Topic 409: Capital gains and losses
- IRS Topic 559: Net investment income tax
- IRS Publication 527: Residential Rental Property
- IRS Publication 523: Selling Your Home
- IRS Instructions for Form 8824
- Gardner Policy Institute: State of the State's Housing Market, September 2026
- Utah Division of Real Estate: license search
- Utah State Bar: Find a Lawyer
- IRS: Directory of Federal Tax Return Preparers
Last checked December 4, 2026.