How Do I Calculate Profit When Selling a Rental Property?

August 17, 2023

How to Calculate Gain on Sale of Rental Property

Calculating gain or loss on a rental property sale is relatively simple. However, maximizing your return on investment can also mean paying more in capital gains taxes. Selling a rental property yields a much higher tax bill than selling a primary residence. The Internal Revenue Service (IRS) classifies rental properties as a business venture, so some benefits you enjoy from your investment need to return to them.


Adjusting the basis of the property to account for improvements can help minimize rental property capital gains taxes for a successful property sale.



Compulsory Taxes for Rental Property Investors

Real estate owners can enjoy a few tax benefits from their investment property, and numerous laws intend to support investors. Some tax deductions investors can take include depreciation, loan interest and maintenance expenses. While you can take advantage of the depreciation deduction, the IRS claims part of the depreciation amount when you sell your rental property.


The tax you pay after selling a rental property depends on your profit. The IRS taxes this profit in two ways. The first is through a capital gains tax, which could amount to 0%, 15% or 20%, depending on your taxable income and filing status. The second way comes down to a maximum depreciation recapture tax rate of 25%. Calculate your tax on the sale of a rental property after you estimate your capital gains, which must account for selling and property improvement costs. 


  • Determine final selling costs: Calculate selling costs by adding the final commission price to the closing costs.
  • Calculate the adjusted cost basis: Add the purchase price "depreciation" to the cost of improvements to calculate the adjusted cost basis.
  • Calculate the gain or loss on sale: Subtract the selling costs and adjusted cost basis from the sale price. A positive number indicates gains, while a negative number indicates a loss.
  • The amount taxed as capital gains: Subtract the depreciation from any gains to see the taxable sum.



Adjusting the Basis of a Rental Property

The original basis, the price you paid for the investment property and the cost of improvements are part of the base amount, which determines the tax payable when you sell. The original basis is a number that fluctuates during your time as owner, increasing and decreasing due to socio-economic circumstances. This basis, or cost basis, factors into your gain or loss on a property for tax purposes.


When the basis of your rental property increases, the amount of taxable capital gains reduces. An increase in basis comes from going above standard property maintenance requirements and making significant improvements, including:


  • Additions
  • Restorations that make the property habitable
  • Extending utilities
  • Assessments levied by the city


A decrease in basis can lead to an increase in capital gains tax. Variables include income received for granting property easement, insurance payments received as reimbursement and a Section 179 deduction. Escrow fees, legal fees and closing costs can also figure into your adjusted basis.


Adjusting the basis is a calculation that gathers all expenses eligible to adjust the basis up or down. Here is an example:

  • Purchase price + Closing costs + Improvements = Adjusted basis
  • Property sale price - Closing costs = Sale proceeds
  • Sale proceeds - Adjusted basis = Capital gains



Minimizing Investment Property Taxes in a Sale

Rental properties get taxed on Form 1040, Schedule E, which lists revenue, expenses and property value depreciation. With the proper knowledge, you can leverage this information to lower the tax bill coming your way. You can also claim a few deductions when you sell your rental property investment. Remember to include transaction costs, title fees and advertising fees relating to the sale. Minimizing your taxes is a long-term operation, so it is best to start implementing tax reduction strategies before listing your rental property for sale.


  • Deduct business expenses: Deduct average business operation expenses like travel and office equipment from your taxes.
  • Mortgage interest expenses: Reduce your gross operating income by deducting mortgage interest expenses.
  • Depreciation expenses: Minimize your taxable income by claiming non-cash depreciation expenses on your rental income property.

 


Reducing Capital Gains Taxes

Your real estate investment can generate two income streams — recurring rental income and capital gains, which come into play when you sell your rental property. Strategies to minimize investment property taxes after a sale all relate to reducing or deferring your capital gain taxes.


Real estate capital gains can occur due to inflation or value-adding initiatives like property expansion or other improvements. You can estimate your taxes depending on how long ago you started investing in the property. When you own the property for a year or less, you get the same tax deduction as regular income because these are short-term capital gains. If you hold the property for more than one year, you will receive lower tax rates because capital gains are long-term.


Here are some options you can use to reduce or defer capital gains taxes during the sales process:


  • Installment sale: Mortgage-free properties can sell using an installment sale, seller carryback or seller-financial loan. The tax is still payable but spread out over an extended period as the new owner makes payments.
  • Tax-loss harvesting: This tax reduction strategy involves offsetting your gain from one transaction with the loss of another.
  • Leverage Section 121: If you convert a rental property to your primary residence, you can exclude up to $250,000 in profits from the sale.
  • 1031 tax-deferred exchange: Section 1031 allows you to replace one income property with another and, in doing so, defer the payment of your capital gains. The properties must be like-kind for this exchange to apply.
  • Purchase using your retirement account: You can purchase property using a retirement account like an IRA, Roth IRA or 401(k). Using these accounts lets you accumulate capital gains without paying taxes right away. You will only pay taxes once you start withdrawing.


Set Yourself up for Renting Success

Rental properties can be a rewarding investment when under proper management. The maintenance and improvements you bring to a property can determine how much you gain in your return on investment when it is time to sell and find a new asset. Knowing what taxes apply to your property and how to adjust the basis of the rental property can ensure you minimize taxes when you sell.



Rely on Harrisburg Property Management Group to support you in your next rental property investment. From tenant screening to property maintenance, we offer comprehensive property management services to help your next venture thrive.


By Ryan Colquhoun • October 25, 2026
Whether you are selling your rental property to reinvest in another rental or put the money away in a retirement fund, you are likely hoping to walk away with capital gains. Capital gains are the profit resulting from the sale of an asset, particularly your investment property. In this article, we explain the types of capital gains, their tax implications and strategies for effectively managing them. For Harrisburg and Central Pennsylvania landlords, understanding capital gains on the sale of their rental property is critical to ensuring a profitable sale. The Two Types of Capital Gains There are two types of capital gains calculated on rental properties. Short-term capital gains apply to assets held for a year or less, and they are often taxed at the standard income tax rate. Long-term capital gains, on the other hand, apply to properties owned for more than a year and enjoy a preferential federal tax rate of up to 20%, depending on your taxable income. The longer you hold your property, the higher the chances of paying a lower capital gains tax. Calculating Your Rental Property's Gain To calculate the gain on your rental property, the first consideration should be the original cost basis. This is the initial cost of acquiring the property, including the purchase price, closing costs and any non-deductible expenses incurred during purchase. With the original cost basis, you can then calculate the adjusted basis. The adjusted basis is the original basis plus the cost of major improvements to the property that enhance its value or extend its useful life. If there are any reductions to the basis, factor them into the adjusted basis. The reductions could include casualty losses, easements granted and any depreciation allowable or taken. For example, if you bought a property for $250,000 and incurred acquisition costs of $5,000, your initial cost basis is $255,000. If during your ownership, you replaced the roof, added a deck and renovated the kitchen for a total of $45,000, these would be your capital improvements. For the sake of our calculations, let us consider a $30,000 depreciation taken. Step 1: Calculate the Net Sales Price Calculate the net sales price by subtracting your selling expenses from the gross sales price. If you are selling the property for $380,000 and incurred selling expenses of $20,000, then your net sales price would be $380,000 - $20,000 = $360,000. Step 2: Calculate the Adjusted Basis The adjusted basis will include your capital improvement and the original basis minus the depreciation claimed. According to our example, the adjusted basis is $255,000 + $45,000 - $30,000 = $270,000. Step 3: Calculate the Capital Gain For the capital gain, you will need to subtract the adjusted basis from the net sales price: $360,000 - $270,000 = $90,000. Decoding Depreciation Recapture Depreciation is the amount the IRS allows you to deduct each year for normal wear and tear, while recapture is the portion of that amount you must repay. If you sell your rental property for more than your adjusted basis, then the government will want to recapture the tax break it gave you during your ownership. Tax recapture applies even to depreciation allowable, not just taken. This tax is often subject to a special federal rate of up to 25% , but not more than your income tax rate. In our example, your total depreciation is $30,000. We will multiply it by the 25% to get the total recapture tax of $7,500 that the government will recoup. Federal vs. Pennsylvania Capital Gains Tax The federal government taxes capital gains at rates of either 0%, 15% or 20% . Your total taxable rate depends on your income bracket. For high-income earners, the government may also include an additional 3.8% net investment income tax. However, Pennsylvania has a different approach to taxes. Rather than taxing long- or short-term gains at different rates, the state applies a single standard rate to all net gains. The state doesn't charge a separate depreciation recapture, nor are there preferential rates. The state's 3.07% income rate applies to capital gains. Now, to calculate the total capital gains subject to tax, we don't start with the $90,000 because we have already calculated the $30,000 recapture. We start with the $60,000, which is the remaining capital gain. If you are in the 15% bracket, your tax would be $60,000 x 15% = $9,000. Add that to the depreciation recapture, and the total federal tax would be $9,000 + $7,500 = $16,500. For the Pennsylvania state tax, calculate the tax on the total gains. So, $90,000 x 3.07% = $2,763. Strategies to Minimize Capital Gains Tax While a capital gains tax is often mandatory, there are several strategies you can apply to minimize the total amount you have to pay. Timing your sale: Hold on to the property for at least a year. After a year, you are eligible for more favorable long-term capital gains. You can also align your sale with the year when you have a lower income to be in a lower federal tax bracket. 1031 exchange: If you reinvest the proceeds into a similar investment property, you can qualify for a federal deferment. This Section 1031 option allows you to defer both the capital gains and depreciation recapture taxes. You have 45 days to identify the replacement property and exactly 180 days to close. Convert to a primary residence: For two to five years before selling the rental, you may be able to convert it to a primary residence, allowing you to exclude up to $250,000 of the gain if single or $500,000 if married. However, do note that there are limitations, and you cannot exclude the depreciation recapture. Installment sale: You can also opt for the buyer to repay you in installments. This process enables you to spread the tax liability across those years, potentially keeping you in a lower tax bracket. Since the depreciation recapture is calculated in the year of sale, it will still apply. Avoid Common Pitfalls There are several pitfalls to watch for when working with capital gains: Ignoring state-specific rules: While federal laws apply nationwide, each state has its own unique laws that may affect capital gains or even exchange rules. Beyond federal laws, also investigate state-specific rules that apply to you. Inadequate record-keeping: Having accurate records is the best way to track expenses and improvements, making it easier to prove a higher adjusted basis. Poor timing: Selling without considering the impact on your tax bracket or market conditions may result in higher capital gains tax. Lack of professional advice: Whether federal or state-specific, tax laws are complex. Navigating them without professional help may make it easier to file the wrong form or even miss a due date. Partner With Harrisburg Property Management Group for a Smooth Sale Understanding capital gains on the sale of a rental property can help you navigate both federal and state-specific taxes. At Harrisburg Property Management Group, we are a comprehensive solution for landlords looking to sell a rental property in Central Pennsylvania and the surrounding areas. Our experience as a licensed real estate brokerage and property management company means we are there for you when you are leasing your property and when you need to sell it. We can help you conduct accurate property assessments that consider rental income potential and local market trends while streamlining the selling process. Contact our team and let us help you maximize the sale of your rental property. 
By Ryan Colquhoun • August 21, 2026
Selling an investment property with tenants in PA involves lease transfers, notice rules and more. Learn the process and your options today.
By Ryan Colquhoun • July 27, 2026
Learn when to sell your Harrisburg rental property with insights on cash flow, maintenance costs, vacancy rates and market trends. Contact us today.
By Ryan Colquhoun • July 27, 2026
When you rent without professional property management, you could face costly legal issues, difficult tenants and long vacancy periods. You'll likely also spend a significant amount of time on paperwork and deal with delayed property maintenance. These issues can reduce your cash flow, increase stress and create compliance problems. 1. Tenant Screening Mistakes When you screen tenants yourself, you may overlook details that put you at risk of late rent, property damage and high turnover. Unreliable renters can also lead to costly evictions. Professional property managers implement meticulous screening and have the resources to run thorough background checks, assessing applicants: Credit scores Income Rental history References This helps you find quality tenants who pay on time and take care of your property, while saving you time and effort. 2. Legal Missteps and Noncompliance You must abide by your state's landlord-tenant laws. For example, landlords in Pennsylvania are required to follow the Fair Housing Act and provide a 10-day eviction notice for non-payment of rent. Noncompliance risks fines, disputes and legal delays. Professional property managers understand these regulations. They help you avoid violations and ensure proper documentation, protecting you from costly legal missteps and keeping your rental business compliant. 3. Delayed or Improper Maintenance When repairs are delayed or done incorrectly, you could face greater damage and unhappy tenants. Partnering with a property management company provides access to vetted contractors who perform preventive maintenance and repairs while staying within your budget. This ensures your property meets habitability standards, protects your return and maintains your reputation. Plus, they handle 24/7 tenant emergencies, so you don't have to. 4. Vacancy and Pricing Errors Undercharging means that you're losing out on income, whereas charging too much can lead to extended vacancies. Poor marketing and subpar listing photos can also negatively impact your rental's profitability. A property manager helps you set competitive rent using market data. They also use effective online and offline advertising to attract new tenants quickly, helping you reduce vacancy rates and increase rental income. 5. Time-Consuming Administrative Tasks Dealing with tenants, inspections, bookkeeping, and vendors can consume your time and increase the risk of errors. With property management, you can outsource tasks such as bill payment, rent collection and tax filings. Their expert systems protect cash flow, reduce stress and provide tax-ready records. This frees your time to focus on other things while enjoying your rental returns. Reduce Risk With Harrisburg Property Management Group For over a decade, Harrisburg Property Management Group has managed more than 2,000 rentals in Central Pennsylvania. We'll help you reduce risk with our marketing and leasing , tenant relations , property maintenance , and accounting and financial services . Contact us today to save your time and stress, while maximizing your rental's profitability.
April 21, 2026
Maximize rental income with expert property management. Set optimal rent, find quality tenants, and reduce costs for a profitable investment.
April 21, 2026
Hiring a property manager for one rental is worthwhile if your time is limited, you live far away or you're concerned about legal compliance risks.
April 21, 2026
Learn how property managers handle emergency maintenance calls, including response steps, timelines, and what qualifies as a true rental emergency.
By Paula Bauder • June 5, 2025
Property management services can help you not only save time, but also save money and energy. Learn more about the benefits of property management.
If you're considering working with a property management company, we can help you get started. Learn
By Paula Bauder • June 5, 2025
If you're considering working with a property management company, we can help you get started. Learn how to find a reliable property manager in your area.
By Ryan Colquhoun • May 27, 2025
Prepare your property for tenants with a focus on inspections, cleaning, safety measures, competitive pricing, and effective advertising.