Understanding Capital Gains on a Rental Property Sale

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.
By Ryan Colquhoun • February 12, 2025
Why should you hire a property management service? This blog explores the top five benefits of working with property management professionals.