top of page

How Taxes Work When You Sell a Rental Property

Writer: Florence Tax LLC
Florence Tax LLC
Sep 17
15 min read

Updated: Sep 25

Tax planning materials on patio with house photo: Property Sale report, Florence Tax LLC mug, calculator, and checklist notebook.

An owner purchased a rental property years ago for $300,000. Since then, they have claimed depreciation, replaced the roof, remodeled the kitchen, purchased appliances, and accumulated suspended rental losses. The property's value has increased, and a buyer now offers $500,000.

The owner assumes: “I made $200,000, so I’ll just pay 15% capital gains tax on $200,000.”

That conclusion may be understandable, but almost every part of it requires additional analysis. Taxes when selling rental property can depend on the property's adjusted basis, selling costs, depreciation, improvements, separately depreciated assets, holding period, gain classification, passive losses, income level, and state tax rules.

The central point is simple: the tax on selling a rental property is not one tax rate applied to one profit number.

Taxes When Selling Rental Property: The Short Answer

A taxable sale of rental property can potentially involve several tax components, including:

  • Tax on long-term or short-term gain

  • Depreciation-related treatment, including unrecaptured Section 1250 gain

  • Section 1245 or Section 1250 recapture where applicable

  • Section 1231 treatment

  • Net Investment Income Tax

  • State income tax

A sale can also potentially affect suspended passive losses under applicable rules.

As a result, four different numbers may be involved:

  1. The cash received from the transaction

  2. The economic profit on the investment

  3. The taxable gain reported for tax purposes

  4. The final tax bill

Those numbers may be very different. A useful planning framework is:

Sale price and selling costs → amount realized → adjusted tax basis → total gain or loss → asset classification → character of gain → federal tax rates → other federal taxes → passive-loss consequences → state taxes → estimated total tax exposure

How Do You Calculate Gain When Selling a Rental Property?

At a high level:

Amount realized − adjusted basis = realized gain or loss

This is a starting framework, not a complete tax-return calculation.

The amount realized generally relates to what the seller receives in the transaction, with applicable adjustments. Adjusted basis is the property's tax basis after increases and decreases during ownership. The resulting gain or loss must then be classified under the applicable tax rules.

That classification matters because a single sale may include several categories of gain that do not all receive the same treatment.

What Is the Amount Realized on a Rental Property Sale?

The amount realized generally includes the money received plus the fair market value of other property received and, where applicable, liabilities assumed by the buyer or from which the seller is relieved, subject to the rules governing the transaction. Depending on the facts, it can involve:

  • Cash received

  • Debt assumed or relieved in the transaction, where applicable

  • Other property received

  • Qualifying selling expenses that affect the gain calculation

Amount realized does not necessarily equal the amount deposited into the seller's bank account. The closing statement, loan payoff, commissions, and other transaction details should be reviewed together.

Do Selling Costs Reduce Capital Gain on a Rental Property?

Certain costs attributable to selling the property can generally affect the amount realized or otherwise reduce the gain under applicable rules. Potential examples may include real-estate commissions, certain legal fees, transfer-related costs, and other qualifying selling expenses.

Not every closing cost automatically reduces taxable gain. The nature and purpose of each cost matter. Sellers should retain the final closing or settlement statement and supporting invoices so the tax treatment can be evaluated accurately.

What Is Adjusted Basis?

Original purchase price is not necessarily the number used to calculate gain years later. A simplified framework is:

Starting basis + applicable increases − applicable decreases = adjusted basis

Adjusted basis may reflect:

  • Original tax basis

  • Certain acquisition costs

  • Qualifying capital improvements

  • Depreciation allowed or allowable

  • Casualty-related adjustments, where applicable

  • Other basis adjustments required by the tax rules

Depreciation generally decreases basis, while qualifying capital improvements generally increase basis. An owner who forgets legitimate basis increases can potentially overstate taxable gain. Conversely, treating an ordinary repair as a capital improvement can distort the calculation.

For a closer look at how basis, land allocation, depreciation, improvements, and other adjustments develop during the ownership period, see Rental Property Depreciation: How It Works and What Property Owners Need to Know.

Why Capital Improvements Matter When You Sell

Investors should reconstruct their improvement history before selling. Potential examples include:

  • Roof replacement

  • Major kitchen or bathroom remodeling

  • HVAC replacement

  • Structural improvements

  • Additions

The tax treatment depends on the facts and applicable capitalization rules. Not every expenditure is a capital improvement, and not every repair should be added to basis. The distinction can materially affect both deductions during ownership and adjusted basis when the property is eventually sold. For a closer look at this classification, see Rental Property Repairs vs. Improvements.

Good records can include invoices, contracts, permits, closing documents, and descriptions of the work performed. These records may matter both when depreciation is claimed and when the property is sold.

Why Depreciation Matters When You Sell

Depreciation allowed or allowable generally reduces adjusted basis. That means prior depreciation can increase the gain calculated on sale, even though the owner may have received tax deductions during earlier years.

The depreciation-related portion of gain does not automatically mean “all depreciation multiplied by 25%.” For a closer look at how depreciation-related gain can be characterized when rental property is sold, see Depreciation Recapture on Rental Property: What Happens When You Sell? Rental-property sales may involve Section 1245, Section 1250, unrecaptured Section 1250 gain, and other rules depending on the property and assets involved.

Separately depreciated appliances, equipment, furniture, and cost-segregation components may require their own analysis. Depreciation should be reviewed from the full tax history, including amounts that were allowable even if the owner did not claim every deduction.

Example: Calculating Gain on the Sale of a Rental Property

Assume the following hypothetical facts:

  • Original purchase price: $300,000

  • Land allocation: $60,000

  • Qualifying capital improvements: $40,000

  • Cumulative depreciation: $70,000

  • Sale price: $500,000

  • Selling expenses: $30,000

A simplified conceptual calculation might look like this:

  1. Establish the original tax basis.

  2. Add applicable improvements and other allowable basis increases.

  3. Subtract depreciation allowed or allowable.

  4. Determine adjusted basis.

  5. Determine the amount realized after applicable selling costs.

  6. Calculate the total realized gain.

  7. Classify the gain before applying tax rates.

Using only the figures above, and assuming for illustration that the property's original total tax basis is $300,000—including the $60,000 allocated to nondepreciable land—the adjusted total basis before other potential adjustments would be approximately $270,000:

  • $300,000 original basis

  • Plus $40,000 improvements

  • Less $70,000 depreciation

  • Equals $270,000 adjusted basis

The amount realized might be approximately $470,000 after $30,000 of qualifying selling expenses. The conceptual gain would therefore be approximately $200,000.

That does not mean the owner simply applies a 15% rate to $200,000. The gain still needs to be divided and analyzed under the applicable depreciation, Section 1231, capital-gain, passive-loss, Net Investment Income Tax, and state rules. The example also omits land-basis details, separately depreciated assets, acquisition costs, and other possible adjustments.

Calculating the amount of gain is only the first half of the tax calculation. The next question is what type of gain it is.

Is Rental Property Gain a Capital Gain?

Rental real estate held for business or investment purposes can be Section 1231 property rather than simply an ordinary capital asset. Under the Section 1231 netting rules, qualifying net gains may ultimately receive long-term capital-gain treatment, while qualifying net losses may receive ordinary-loss treatment, subject to the applicable rules and the Section 1231 lookback provisions.

Depreciation-related provisions are generally considered before determining the remaining Section 1231 gain. The taxpayer's other Section 1231 transactions and prior nonrecaptured Section 1231 losses may also matter.

What Is Section 1231 Gain?

Section 1231 generally applies to qualifying depreciable property and real property used in a trade or business and held for more than one year. Depending on the taxpayer's overall Section 1231 transactions, net gain can potentially receive long-term capital-gain treatment.

The five-year Section 1231 lookback rule can affect the character of current-year gain when the taxpayer had certain nonrecaptured Section 1231 losses in prior years. This is one reason a simple property-level calculator may miss important taxpayer-level interactions.

What Is the Capital Gains Tax Rate on Rental Property?

There is no single “rental property capital gains tax rate.” Different portions of a sale may receive different treatment, including:

  • Section 1245 ordinary-income recapture

  • Section 1250 treatment where applicable

  • Unrecaptured Section 1250 gain subject to a maximum federal rate of 25%

  • Remaining long-term gain potentially subject to the applicable long-term capital-gain rate structure

The actual rate can depend on filing status, taxable income, the character of the gain, and current-year law. Federal long-term capital-gain thresholds and other limits should be verified for the year of sale rather than copied from an older article or calculator.

Short-Term vs. Long-Term Rental Property Gain

Holding period matters. Property held for one year or less can receive different treatment from qualifying property held for more than one year. However, rental-property taxation cannot be reduced to “under one year equals ordinary income; over one year equals capital gains.” Section 1231 and depreciation rules can still affect the result.

Is Depreciation Recapture a Separate Tax?

People often describe “capital gains tax” and “depreciation recapture tax” as though they are always two entirely separate taxes. A more accurate framework is that recognized gain may be divided into different character and rate categories under applicable rules.

Unrecaptured Section 1250 gain generally refers to the portion of gain attributable to depreciation on Section 1250 real property that is not otherwise recaptured as ordinary income. It is generally subject to a maximum federal rate of 25%, but the maximum rate does not mean every taxpayer automatically pays 25%.

Separately depreciated personal property and certain assets identified through cost segregation can receive different treatment, including potential Section 1245 ordinary-income recapture. For a deeper discussion of Section 1245, Section 1250, unrecaptured Section 1250 gain, and the often-misunderstood 25% maximum federal rate, see Depreciation Recapture on Rental Property: What Happens When You Sell?

Can You Owe Tax if You Sell for Less Than You Paid?

Yes, potentially.

Assume:

  • Original purchase price: $300,000

  • Adjusted basis after depreciation: $230,000

  • Sale price before applicable selling costs: $280,000

Although the owner sold for $20,000 less than the original purchase price, the sale may still produce taxable gain relative to the $230,000 adjusted basis.

The same issue can arise when a property sells for approximately the original purchase price. Depreciation may have reduced the adjusted basis enough that the sale still produces gain.

What Happens to Suspended Passive Losses When You Sell?

Under the passive-activity rules, previously suspended losses generally become allowable when the taxpayer disposes of the entire interest in the passive activity in a fully taxable transaction to an unrelated person. Whether a particular property sale satisfies that requirement can depend on how the activity is defined, including applicable grouping rules.

The result is not automatic in every sale. Activity definitions, grouping elections, partial dispositions, related-party transactions, and the particular source of the suspended losses can matter. Selling one property does not necessarily release every suspended loss from every rental activity.

For example, an owner may estimate $80,000 of gain but also have $35,000 of suspended passive losses associated with the disposed activity. It would be incorrect to assume automatically that the tax is simply calculated on $45,000. The interaction depends on the passive-activity rules and the character of the income and losses.

A sale projection should review the entire tax history of the rental activity—not only the closing statement. IRS Publication 925 and the applicable Form 8582 instructions should be reviewed for the current year.

Does the Net Investment Income Tax Apply?

The 3.8% Net Investment Income Tax may apply depending on the taxpayer's income, filing status, and circumstances. Rental income and gain from the disposition of rental property can potentially be included in net investment income, although exceptions and trade-or-business considerations may matter.

Not every rental-property seller owes this tax. Form 8960 and the current instructions should be reviewed as part of the projection.

Does Arizona Tax the Sale of Rental Property?

Arizona tax treatment should be analyzed separately from federal tax character. If the property is in Arizona or the taxpayer is an Arizona resident, state tax consequences may apply. Arizona does not simply apply the federal 0%, 15%, 20%, or 25% categories to the sale.

For a rental property located in another state, the property's location may create source-income filing obligations there. An Arizona resident may also have reporting obligations on the Arizona return, with credits or other mechanisms potentially available under state law. A dollar-for-dollar result should not be assumed.

This issue is particularly important for investors with properties in multiple states. Florence Tax LLC serves clients in Prescott and Yavapai County as well as qualifying clients nationwide, and a multi-state review may be appropriate when the property and owner's residence are in different states.

What if the Rental Property Used to Be Your Primary Residence?

A former home converted to rental use can involve both Section 121 principal-residence rules and rental-property depreciation rules. Potential issues include:

  • Ownership and use tests

  • Nonqualified-use rules

  • The conversion-date basis

  • Periods of rental use

  • Depreciation claimed after May 6, 1997

Depreciation attributable to the rental period after May 6, 1997 generally cannot be excluded under Section 121. Moving into a rental before selling does not automatically erase prior rental tax consequences, and a decision to move should not be made solely as a presumed tax strategy.

The analysis should consider the full ownership and use history and the applicable version of IRS Publication 523 and statutory rules.

What if You Inherited or Received the Rental as a Gift?

Inherited property generally involves special basis rules that can differ substantially from purchased property. The heir's basis is not automatically the decedent's original purchase price. Date-of-death value, community-property rules, post-death depreciation, later improvements, and estate or trust ownership may need review.

Gifted-property basis rules can also differ from inherited-property rules. Fair market value does not automatically become the recipient's basis. Acquisition records should be reviewed before estimating gain.

What if You Sell on an Installment Agreement?

An installment sale can potentially spread recognition of certain gain over time when the applicable requirements are satisfied. However, depreciation recapture treated as ordinary income generally must be recognized in the year of sale, even if the seller has not yet received all of the sale proceeds. Other portions of the gain may potentially qualify for installment reporting under the applicable rules.

Seller financing and installment reporting should be evaluated with current IRS guidance, including Publication 537. This is a tax analysis, not a recommendation to use seller financing.

Can a 1031 Exchange Defer Taxes on the Sale?

Section 1031 can potentially allow qualifying real property held for investment or productive use in a trade or business to be exchanged for qualifying like-kind real property, with recognition of some gain deferred.

In a typical deferred exchange, replacement property generally must be identified within 45 days after transfer of the relinquished property and received within 180 days or by the applicable tax-return due date, including extensions, whichever is earlier.

Important points include:

  • Section 1031 is generally a deferral mechanism, not permanent tax elimination.

  • Modern Section 1031 treatment generally applies to real property.

  • Personal property generally does not qualify under the current rules.

  • Cash or other nonqualifying property received may create recognized gain.

  • Basis generally carries into the replacement-property calculation under applicable rules.

  • Strict timing and procedural requirements apply.

Do not wait until after the sale closes to decide that you wanted a 1031 exchange. A potential exchange must be evaluated before the transaction becomes irreversible, usually with coordination among the tax professional, qualified intermediary, attorney, broker, and other appropriate professionals.

Florence Tax LLC's real estate investor tax planning guidance can help owners identify the tax questions that should be reviewed before a transaction is finalized. Florence Tax LLC does not act as a qualified intermediary, broker, attorney, or investment advisor.

What Can Affect the Tax Due When Selling a Rental Property?

Depending on the facts, tax may potentially be affected by:

  • Accurate basis records

  • Qualifying selling costs

  • Applicable suspended or other allowable losses

  • A qualifying 1031 exchange

  • Section 121 in a qualifying former-residence situation

  • A qualifying installment transaction

No strategy universally eliminates tax. The first objective should be calculating the tax correctly before evaluating planning alternatives.

Rental Property Sale Tax Calculator: What Information Do You Actually Need?

A meaningful estimate requires substantially more than the purchase price and sale price. Relevant information may include:

  • Acquisition date and method

  • Original tax basis

  • Land allocation

  • Acquisition costs

  • Capital improvements

  • Depreciation allowed or allowable

  • Separately depreciated assets

  • Cost-segregation history

  • Expected sale price and selling expenses

  • Holding period

  • Suspended passive losses

  • Other Section 1231 transactions

  • Filing status and other taxable income

  • Potential Net Investment Income Tax exposure

  • State of residence and property location

  • Prior personal use

  • Potential Section 121 eligibility

  • Potential 1031 exchange structure

Online rental-property sale calculators can be useful for rough education, but they are only as accurate as their assumptions and inputs. They may omit passive losses, depreciation classification, state tax, other Section 1231 transactions, and taxpayer-level income information.

How Much Cash Will You Actually Keep After Selling?

Investors should distinguish among:

Gross sale price

Net proceeds after debt payoff and closing costs

Taxable gain

Cash remaining after estimated taxes

Debt payoff affects cash proceeds but generally does not simply reduce taxable gain dollar-for-dollar. A large mortgage can substantially reduce the check received at closing without reducing taxable gain by the same amount.

When Should You Calculate the Tax on a Rental Property Sale?

A tax projection is most useful before the transaction is finalized. Consider reviewing it:

  • Before listing, where practical

  • Before accepting or finalizing an offer

  • Before choosing between a sale and a potential exchange

  • Before setting aside or reinvesting proceeds

  • Before year-end when timing is flexible

  • Before changing the property's use

Tax considerations should be part of the decision, not the sole factor determining whether a property should be sold.

A Better Pre-Sale Tax Review

Florence Tax LLC approaches rental-property sales as planning questions, not just reporting exercises.

Step 1: Identify how the property was acquired

Determine whether it was purchased, gifted, inherited, received through an exchange, or converted from a personal residence.

Step 2: Reconstruct original basis

Use closing documents, depreciation schedules, prior returns, and other source records.

Step 3: Review improvements

Identify legitimate basis increases and distinguish them from deductible repairs.

Step 4: Review depreciation

Include allowed-or-allowable depreciation and separately depreciated assets.

Step 5: Calculate adjusted basis

Do this before estimating gain.

Step 6: Estimate sale proceeds and selling costs

Do not confuse mortgage payoff with basis.

Step 7: Calculate and classify potential gain

Review Section 1245, Section 1250, Section 1231, and other applicable categories.

Step 8: Review suspended passive losses

The property cannot always be analyzed separately from the taxpayer's broader rental activity.

Step 9: Estimate federal and state exposure

Include NIIT where applicable and distinguish state rules from federal rules.

Step 10: Review planning alternatives before closing

Potential 1031 treatment or other options must be evaluated before the transaction becomes irreversible.

Common Rental Property Sale Tax Mistakes

Common errors include:

  • Calculating taxable gain from original purchase price instead of adjusted basis

  • Confusing cash proceeds after debt payoff and closing costs with taxable gain

  • Failing to account for depreciation allowed or allowable, or assuming all depreciation-related gain is taxed at exactly 25%

  • Forgetting capital improvements

  • Treating every repair as a basis increase

  • Assuming every closing cost reduces gain

  • Applying one capital-gain rate to the entire gain

  • Ignoring Section 1231 and the lookback rule

  • Ignoring Section 1245 assets or cost-segregation consequences

  • Ignoring suspended passive losses or assuming every property sale automatically releases them

  • Forgetting NIIT or state tax

  • Assuming Section 121 automatically protects a former rental

  • Assuming a sale below original cost means no taxable gain

  • Assuming mortgage payoff reduces capital gain

  • Waiting until after closing to investigate a 1031 exchange

  • Treating an online calculator as a final tax determination

Modern white house with dark solar-panel roofs, wood accents, and large windows under a clear blue sky.

Taxes When Selling Rental Property FAQs

What taxes do you pay when selling a rental property?

Potential taxes may include different gain categories, depreciation-related treatment, NIIT, and state income tax. The result depends on the property, the owner, and the transaction.

How is capital gain calculated on a rental property?

Amount realized minus adjusted basis is the starting framework. The resulting gain must then be classified.

What is the capital gains tax rate on rental property?

There is no single universal rate. Different portions of the gain may receive different treatment.

Is all rental-property profit taxed at 15%?

No. Depreciation-related gain, ordinary-income recapture, Section 1231 rules, taxable income, NIIT, and state tax may all affect the result.

Does depreciation increase taxable gain?

Generally, depreciation allowed or allowable reduces adjusted basis and can therefore increase gain calculated on sale.

Is depreciation recapture always taxed at 25%?

No. The applicable treatment depends on the assets and facts. A maximum rate is not an automatic rate for every seller.

Can I deduct improvements when I sell?

Qualifying capital improvements can increase basis, which can reduce the gain calculated on sale. They are not simply a current deduction from capital gains.

Can I deduct realtor commissions when selling rental property?

Qualifying selling expenses can affect the amount realized or gain calculation. The nature of each cost should be reviewed.

What happens to passive losses when I sell my rental?

A fully taxable disposition of the entire interest in a passive activity to an unrelated person can potentially release suspended losses, but the rules are fact-specific.

Does a 1031 exchange eliminate capital gains tax?

It can potentially defer qualifying gain when the requirements are satisfied. It does not necessarily eliminate tax permanently.

Should I calculate the tax before selling?

Yes, particularly when transaction timing or structure is still flexible.

Selling the Property Is a Tax Event—Planning the Sale Happens Before It

The best time to calculate the tax consequences of selling a rental property is before the sale becomes irreversible.

Before proceeding, the owner should understand:

  • Adjusted basis

  • Estimated taxable gain

  • Depreciation consequences

  • Passive-loss consequences

  • Potential federal rates

  • State taxes

  • Expected net cash

  • Available pre-sale planning choices

Tax planning does not mean deciding whether the property is a good investment to sell. It means understanding the tax consequences of the financial decision before that decision is finalized.

Considering Selling a Rental Property?

Florence Tax LLC can help rental-property owners develop a pre-sale tax projection that considers basis, improvements, depreciation, sale assumptions, gain characterization, suspended passive losses, potential NIIT, federal tax, state tax, and potential 1031 implications.

A 1031 exchange should be coordinated with an appropriate qualified intermediary and other professionals. Florence Tax LLC does not serve as a qualified intermediary, attorney, broker, appraiser, or investment advisor.

Based in Prescott, Arizona, Florence Tax LLC provides proactive tax planning and preparation for qualifying clients in Arizona and across the United States. The most useful time to begin the conversation is before the sale closes, while choices may still be available.

Request a Real Estate Investor Consultation to discuss the tax questions surrounding a potential rental-property sale.

Disclaimer: This article is for general educational and informational purposes only and does not constitute individualized tax, legal, accounting, financial, investment, real-estate, estate-planning, or valuation advice. The tax consequences of selling rental property can depend on original and adjusted basis, depreciation allowed or allowable, capital improvements, selling costs, asset classification, holding period, Sections 1231, 1245 and 1250, passive-activity rules, Net Investment Income Tax, state taxation, prior property use, ownership structure, installment-sale rules, Section 1031 requirements, and other facts and circumstances.

Tax laws, rates, thresholds, forms, regulations, and administrative guidance may change. Section 1031 exchanges, installment sales, former-principal-residence transactions, multi-state property sales, and other transaction structures can involve additional requirements and should be reviewed with the appropriate qualified professionals before a transaction is completed. Florence Tax LLC does not serve as a qualified intermediary, attorney, financial advisor, investment advisor, appraiser, real-estate broker, or investment professional.

This article does not promise that gain will qualify for a particular tax rate, that suspended passive losses will become deductible, that a Section 1031 exchange will qualify for deferral, that a particular selling cost will reduce taxable gain, or that any particular tax result will be achieved. Reading this article or using information provided on this website does not create a professional-client relationship with Florence Tax LLC.

bottom of page