# Selling a Rental Property: Your Complete Guide to Taxes, Tenants, and Timing

By Opendoor Editorial Team | 2022-05-26


> When you bought your rental property, you likely had plans in mind for your investment. It might make sense to offload it at some point, though, maybe due to rising property taxes or a change in strategy. There are some considerations to make when selling a rental property no matter the reason.


## Key Takeaways



**Disclaimer:***This article is for informational purposes only and does not constitute tax, legal, or financial advice. Tax laws change frequently, and individual circumstances vary. Consult a qualified tax professional or CPA before making decisions about selling a rental property.*

When you sell a rental property, the IRS taxes your profit at two levels: capital gains tax on the appreciation and depreciation recapture tax on the deductions you claimed (or could have claimed) during ownership. Depending on your income and how long you held the property, these combined taxes can consume 25–35% or more of your net proceeds. Understanding exactly how these taxes work — and the legal strategies to reduce them — is the difference between a profitable exit and a costly surprise.

This guide covers every step of selling a rental property, from calculating your tax liability to navigating tenant relationships and choosing the right time to list.

[Get your offer](#)

## How capital gains tax works on rental property

Capital gains tax applies to the profit you earn when you sell an asset for more than your **adjusted cost basis** — the original purchase price plus capital improvements, minus accumulated depreciation. Rental property gains are classified as either short-term or long-term depending on how long you owned the property.

**Short-term capital gains** apply to properties held for one year or less and are taxed at your ordinary income tax rate (10–37% for 2025). **Long-term capital gains** apply to properties held for more than one year and benefit from reduced tax rates.

### 2025 capital gains tax rates

*Source: \[IRS Revenue Procedure 2024-40\](https://www.irs.gov/newsroom/irs-provides-tax-inflation-adjustments-for-tax-year-2025)*

There's an additional layer: the **Net Investment Income Tax (NIIT)** adds 3.8% on capital gains for single filers with modified adjusted gross income above $200,000 ($250,000 for married filing jointly). This surtax applies to the lesser of your net investment income or the amount by which your MAGI exceeds those thresholds.

For a deeper breakdown of how capital gains taxes apply to real estate, see our guide on [capital gains tax on home sales](https://www.opendoor.com/articles/what-to-know-about-the-capital-gains-tax-on-home-sales).

### How to calculate your adjusted cost basis

Your adjusted cost basis is not simply what you paid for the property. Here's the formula:

**Adjusted cost basis = Purchase price + Capital improvements + Buying costs − Accumulated depreciation**

- **Purchase price:** The amount you originally paid.
- **Capital improvements:** Major upgrades that add value or extend the property's useful life (new roof, HVAC system, kitchen remodel) — not routine repairs.
- **Buying costs:** Title fees, attorney costs, and transfer taxes paid at purchase.
- **Accumulated depreciation:** The total depreciation you've claimed (or were entitled to claim) over the years of ownership.

Your **taxable gain** equals the sale price minus selling costs (agent commissions, closing costs, transfer taxes) minus your adjusted cost basis. Our breakdown of [how much it costs to sell a house](https://www.opendoor.com/articles/how-much-does-it-cost-to-sell-a-house) covers the selling costs you can deduct.

## Depreciation recapture explained

Depreciation is one of the biggest tax advantages of owning rental property — and one of the biggest tax surprises when you sell. The IRS allows you to depreciate the cost of a residential rental structure over **27.5 years** (the land is not depreciable). This annual deduction reduces your taxable rental income while you own the property.

When you sell, the IRS "recaptures" those deductions. Depreciation recapture is taxed at a **maximum rate of 25%**, regardless of your income bracket. This tax applies to the total depreciation you claimed — or *were allowed to claim*, even if you didn't take the deduction.

*Source: \[IRS Publication 527 – Residential Rental Property\](https://www.irs.gov/publications/p527)*

### Real-world scenario: Calculating your total tax bill

**Maria** bought a rental property in 2015 for $300,000 ($250,000 structure, $50,000 land). She invested $30,000 in capital improvements over the years. In 2025, she sells for $450,000 with $35,000 in selling costs. She's a single filer with $100,000 in other taxable income.

Maria's gain breaks into two taxable buckets:

Maria could also owe state income tax and potentially the 3.8% NIIT depending on her total MAGI. Without planning, her total tax bill could approach $40,000 or more.

## Five strategies to reduce capital gains tax when selling rental property

### 1. Use a 1031 exchange to defer taxes entirely

A **1031 exchange** (named after [IRS Section 1031](https://www.irs.gov/pub/irs-drop/rr-02-83.pdf)) lets you defer all capital gains and depreciation recapture taxes by reinvesting your sale proceeds into a "like-kind" replacement property. For real estate, like-kind is broadly defined — you can exchange a single-family rental for an apartment building, commercial space, or even raw land.

**Critical deadlines:**

- **45 days** from closing to identify up to three potential replacement properties in writing.
- **180 days** from closing to complete the purchase of the replacement property.

The exchange must be facilitated by a **Qualified Intermediary (QI)** — you cannot touch the sale proceeds at any point. Both the relinquished and replacement properties must be held for investment or business use; personal residences don't qualify.

A 1031 exchange doesn't eliminate taxes — it defers them. But investors can perform sequential 1031 exchanges throughout their lifetime, and under current law, heirs receive a stepped-up cost basis at death, potentially erasing the deferred gain entirely.

If you're buying and selling investment properties simultaneously, our guide on [how to sell and buy a house at the same time](https://www.opendoor.com/articles/how-to-sell-and-buy-a-house-at-the-same-time) covers the logistics of coordinating closings.

### 2. Convert the rental to your primary residence

The **Section 121 exclusion** allows homeowners to exclude up to **$250,000 in gains** ($500,000 for married filing jointly) when selling a primary residence — if you've lived in the home for at least two of the five years before the sale.

You can apply this to a former rental property by moving into it and making it your primary residence. However, there's a catch: gains attributable to **periods of non-qualified use** (time the property was used as a rental after January 1, 2009) are not eligible for the exclusion. And depreciation recapture still applies regardless of the Section 121 exclusion.

**Example:** If you rented a home for 8 years, then lived in it for 2 years, 80% of your gain (8 out of 10 years) would be allocated to non-qualified use and would not qualify for the exclusion. The remaining 20% (up to $250K/$500K) could be excluded.

This strategy requires planning years in advance but can significantly reduce — though rarely eliminate — your tax bill.

### 3. Sell during a low-income year

Since long-term capital gains rates are tied to your taxable income, selling during a year when your other income is unusually low — due to retirement, a sabbatical, or a business loss — could push your gains into a lower bracket. Single filers with total taxable income under $48,350 in 2025 pay **0% on long-term capital gains**.

This strategy is especially relevant for investors approaching retirement who can time their exit to bridge the gap between employment income and Social Security or pension distributions.

### 4. Use an installment sale

An **installment sale** spreads the gain across multiple tax years by allowing the buyer to pay you over time. Instead of recognizing the entire gain in the year of sale, you report a proportional amount of gain with each payment received. This can keep you in a lower tax bracket each year and reduce your exposure to the NIIT.

Installment sales work well for higher-value properties where a single-year tax hit would be substantial. However, depreciation recapture must be reported in full in the year of sale, even on an installment sale — so this strategy helps with capital gains tax, not depreciation recapture.

### 5. Invest in a Qualified Opportunity Zone

The **Qualified Opportunity Zone (QOZ)** program allows you to defer and partially reduce capital gains by investing proceeds into designated economically distressed communities. If you hold the QOZ investment for at least 10 years, any appreciation on the new investment is tax-free.

While the original deferral benefits for investments made before December 31, 2026, are more limited than when the program launched, the 10-year exclusion on new gains remains a powerful incentive for long-term investors. Consult a tax advisor to determine current eligibility and benefit levels.

## Selling a rental property with tenants

Selling an occupied rental property adds legal complexity but doesn't have to derail your sale. Your approach depends on the type of lease and your state's tenant protection laws.

### Know your tenant's lease type

**Fixed-term lease (e.g., 12-month lease):** The lease survives the sale. The new owner inherits the tenant, the lease terms, and the security deposit. You generally cannot force a tenant to vacate before the lease expires simply because you're selling. In most states, you must transfer the security deposit to the buyer at closing.

**Month-to-month lease:** You can typically terminate with written notice. Most states require **30 to 60 days' notice**, though some jurisdictions — particularly those with rent control or "just cause" eviction laws — impose longer timelines or restrict the reasons you can terminate.

Check your local and state landlord-tenant statutes before issuing any notice. Some cities (e.g., San Francisco, Los Angeles, New York City, Portland) have additional protections that may limit your ability to terminate even a month-to-month tenancy for a sale.

### Options for handling occupied properties

**Sell with the tenant in place.** This is the simplest path and is often attractive to investor-buyers who want immediate rental income. You may sell for a slightly lower price than a vacant property but avoid vacancy costs, turnover expenses, and the risk of a delayed sale.

**Negotiate a "cash for keys" agreement.** This is a voluntary agreement where you pay the tenant to vacate early. Typical payments range from **$500 to $5,000** depending on the market, remaining lease term, and local rental rates. Get the agreement in writing, including a specific move-out date, and confirm the tenant has surrendered keys before releasing payment.

**Wait for the lease to expire.** If the lease ends within a few months, it may be worth waiting to sell the property vacant. Vacant properties are generally easier to [stage](https://www.opendoor.com/articles/home-staging-what-it-is-and-how-to-know-if-its-right-for-you), show, and sell to the broadest buyer pool.

**Coordinate showings with tenants.** If you sell while occupied, most states require you to give tenants at least 24 hours' written notice before entering the unit for showings. Maintain a respectful relationship — a cooperative tenant makes the selling process far smoother.

Understanding tenant rights and your obligations is critical for avoiding legal liability. If you're unsure about your local requirements, consult a real estate attorney before listing.

## Timing considerations: When to sell your rental property

Choosing the right time to sell involves balancing market conditions, tax planning, and your personal financial goals.

### Market conditions

Selling during a seller's market — characterized by low inventory, high demand, and rising prices — typically maximizes your sale price. Track local inventory levels, days on market, and price trends. Our guide to the [best time to sell a house](https://www.opendoor.com/articles/best-time-to-sell-a-house) breaks down seasonal and market factors.

Rental properties also compete for investor-buyers, who evaluate deals based on cap rate and cash flow. Rising interest rates can shrink the investor buyer pool and compress prices, making timing more important for investment property than a typical primary residence.

### Tax year planning

The date your sale closes determines which tax year the gain falls into. If your income is unusually high this year, pushing the closing into January of the following year could reduce your overall tax burden — or give you time to arrange a 1031 exchange.

If you're considering a 1031 exchange, work backward from the 45-day identification and 180-day closing deadlines to ensure you have enough time to find and close on a replacement property.

### Holding period

Make sure you've held the property for **more than one year** before selling to qualify for long-term capital gains rates. Selling even one day early converts your entire gain to short-term, taxed at up to 37%. If you're close to the one-year mark, waiting a few extra weeks can save thousands.

### Depreciation and ongoing costs

If the property is generating negative cash flow, requires expensive repairs, or is appreciating slowly, the carrying costs may outweigh the tax benefits of continued ownership. Run the numbers: compare your annual net operating income and appreciation against what your equity could earn if deployed elsewhere.

Before listing, assess whether any [repairs or improvements](https://www.opendoor.com/articles/things-to-repair-before-selling-a-house) could increase your sale price enough to justify the investment.

## How to sell a rental property: Step-by-step

### Step 1: Run the numbers

Calculate your adjusted cost basis, estimated gain, depreciation recapture, and projected tax bill before committing to a sale. This analysis tells you your true net proceeds and helps you decide whether tax-reduction strategies (like a 1031 exchange) are worth pursuing.

### Step 2: Consult a tax professional

A CPA or tax advisor who specializes in real estate can model your specific scenario, identify deductions you may have missed, and confirm whether a 1031 exchange, installment sale, or other strategy is viable.

### Step 3: Review tenant leases and local laws

Determine your tenant's lease status, review your notice obligations, and decide whether to sell occupied or vacant. If you plan to ask the tenant to leave, start this process early — it often takes 30–90 days depending on your jurisdiction.

### Step 4: Prepare the property

Even for investor-buyers, presentation matters. Address deferred maintenance, clean common areas, and compile documentation that buyers will want: rent rolls, lease agreements, maintenance records, utility costs, insurance policies, and income/expense statements. Learn more about [how to prepare your house for sale](https://www.opendoor.com/articles/how-to-prepare-your-house-for-sale).

### Step 5: Price it correctly

Rental properties can be priced based on comparable sales or income-based valuation (cap rate). An experienced real estate agent or [appraiser](https://www.opendoor.com/articles/home-appraisal-process) familiar with investment properties can help you set the right price. Overpricing extends your days on market and increases carrying costs. Our guide on [factors that influence home value](https://www.opendoor.com/articles/factors-that-influence-home-value) covers the key pricing variables.

### Step 6: Choose your selling method

You have several options:

- **List with an agent:** Best for maximum market exposure. Review [questions to ask a realtor when selling](https://www.opendoor.com/articles/questions-to-ask-a-realtor-when-selling-your-home) to find the right fit.
- **Sell to an iBuyer or direct buyer:** Platforms like [Opendoor](https://www.opendoor.com/articles/how-selling-to-opendoor-compares-to-a-traditional-home-sale) offer speed, certainty, and fewer showings — especially useful when tenants are still in the property.
- **Sell FSBO:** Saves on listing commission but requires more work. Read our guide on [selling without a real estate agent](https://www.opendoor.com/articles/how-to-sell-your-house-without-a-real-estate-agent).

### Step 7: Navigate closing

Rental property closings include a few extra steps: prorating rent, transferring security deposits, assigning leases to the buyer, and coordinating with a Qualified Intermediary if you're doing a 1031 exchange. Our overview of the [house closing process](https://www.opendoor.com/articles/house-closing-process-for-seller) covers what to expect.

### Step 8: Report the sale on your taxes

Report the sale on **IRS Form 4797** (for depreciation recapture) and **Schedule D** (for capital gains). If you completed a 1031 exchange, you'll file **IRS Form 8824**. Your tax professional should handle these filings to ensure accuracy.

[Get your offer](#)

## Frequently asked questions

### How much tax will I pay when I sell my rental property?

It depends on your gain, income level, and holding period. Most sellers owe long-term capital gains tax (0%, 15%, or 20%), depreciation recapture tax (up to 25%), and potentially the 3.8% Net Investment Income Tax. State income taxes may also apply. A CPA can model your specific liability.

### Can I avoid paying capital gains tax on a rental property?

You can **defer** capital gains tax through a 1031 exchange or installment sale. You may **reduce** it by converting the property to a primary residence (Section 121 exclusion, with limitations), selling during a low-income year, or investing in a Qualified Opportunity Zone. Completely avoiding all taxes is difficult without a deferral strategy.

### What is depreciation recapture, and can I avoid it?

Depreciation recapture is the tax the IRS charges on the depreciation deductions you took (or were allowed to take) during ownership. It's taxed at a maximum 25% rate. You cannot avoid it when selling outright, but you can defer it through a 1031 exchange.

### How does a 1031 exchange work?

You sell your rental property and reinvest the proceeds into a like-kind replacement property through a Qualified Intermediary. You must identify the replacement property within 45 days of closing and complete the purchase within 180 days. Both properties must be held for investment or business use.

### Can I sell a rental property with tenants still living in it?

Yes. If the tenant has a fixed-term lease, the lease transfers to the new owner. For month-to-month tenants, you can typically give 30–60 days' notice depending on state law. You can also negotiate a cash-for-keys agreement or sell the property occupied to an investor-buyer.

### Do I have to give my tenant notice before selling?

You must follow your state's notice requirements to terminate a tenancy. You are not always required to notify tenants that you're *listing* the property for sale, but you must provide proper notice before showings (typically 24 hours) and before terminating a lease.

### What is "cash for keys"?

Cash for keys is a voluntary agreement where the landlord pays the tenant a negotiated sum — typically $500 to $5,000 — in exchange for vacating the property by an agreed-upon date. It's faster and less adversarial than eviction and gives the tenant moving funds.

### Should I sell my rental property vacant or occupied?

Vacant properties generally appeal to a broader buyer pool (owner-occupants and investors) and are easier to show, stage, and inspect. Occupied properties may attract investor-buyers who value immediate rental income. If your tenant is cooperative and the property shows well, selling occupied can save you months of vacancy costs.

### How do I calculate my cost basis on a rental property?

Start with the original purchase price. Add capital improvements and acquisition costs (title fees, attorney costs). Subtract the total depreciation claimed or allowable over the ownership period. The result is your adjusted cost basis.

### What are the tax differences between selling a rental property and a primary residence?

Primary residence sellers can exclude up to $250,000 ($500,000 MFJ) in gains under the Section 121 exclusion if they've lived in the home for two of the last five years. Rental property sellers don't qualify for this exclusion (unless they convert the property first), and they owe depreciation recapture tax in addition to capital gains tax. For more detail, see our article on [capital gains tax on home sales](https://www.opendoor.com/articles/what-to-know-about-the-capital-gains-tax-on-home-sales).

### When should I sell my rental property?

Consider selling when: the property has appreciated significantly and you want to lock in gains, your cash flow is declining, major repairs are looming, you're entering a low-income year (for tax savings), or the local market favors sellers. If you're unsure, our guide on [whether you should sell your house](https://www.opendoor.com/articles/should-i-sell-my-house) can help you evaluate the decision.

### What closing costs should I expect when selling a rental property?

Expect to pay agent commissions, title insurance, transfer taxes, escrow fees, and potentially prorated property taxes and HOA dues. Closing costs for sellers typically run 6–10% of the sale price. See our [seller closing costs breakdown](https://www.opendoor.com/articles/how-much-are-closing-costs-for-seller) for a detailed estimate.

*This article is meant for informational purposes only and is not intended to be construed as financial, tax, legal, or insurance advice. Opendoor always encourages you to reach out to an advisor regarding your own situation.*

*Written by the Opendoor Team. Our articles draw on research, industry expertise, and data analysis to bring you actionable insights on buying and selling residential real estate.*

*Last updated: March 2026*

---
*Originally published at [https://www.opendoor.com/articles/selling-a-rental-property-three-tips-on-taxes-tenants-and-timing](https://www.opendoor.com/articles/selling-a-rental-property-three-tips-on-taxes-tenants-and-timing)*

<!-- structured-data
{
  "@context": "https://schema.org",
  "@type": "Article",
  "@id": "https://www.opendoor.com/articles/selling-a-rental-property-three-tips-on-taxes-tenants-and-timing",
  "mainEntityOfPage": "https://www.opendoor.com/articles/selling-a-rental-property-three-tips-on-taxes-tenants-and-timing",
  "dateModified": "2026-03-13T07:42:54.735Z",
  "datePublished": "2022-05-26T00:00:00.000Z",
  "image": [
    "https://images.ctfassets.net/bjlp9d7o6h1o/OkQxo2fYIxwGvNd4AeBny/acc71c92905a48d61c5ba734cb61d309/Bankrate_Feb_SellingRentalProperty.jpg",
    "https://images.opendoor.com/source/s3/imgdrop-production/1afd9b4404c54cd5bd4d3737eec0d70d.jpg?preset=square-2048"
  ],
  "inLanguage": "en-US",
  "headline": "Selling a Rental Property: Your Complete Guide to Taxes, Tenants, and Timing",
  "description": "Disclaimer: This article is for informational purposes only and does not constitute tax, legal, or financial advice. Tax laws change frequently, and individual ",
  "author": [
    {
      "@type": "Person",
      "name": "Opendoor Editorial Team"
    }
  ]
}
-->