top of page

Capital Gains Tax on a Rental Property Sale — What York County Landlords Should Know

  • Writer: Ed Lane
    Ed Lane
  • Apr 14
  • 5 min read

Updated: May 20

Capital Gains Tax on a Rental Property Sale — What York County Landlords Should Know
Capital Gains Tax on a Rental Property Sale — What York County Landlords Should Know

For a York County landlord considering selling a 2-4 unit rental, "what about the taxes" is one of the first concerns that comes up. The fear of a large IRS bill is one of the most common reasons landlords delay decisions about selling — sometimes for years.

The honest answer: the tax bill on a rental property sale is real, but it's usually less catastrophic than people fear, and there are several legitimate strategies that meaningfully reduce or defer what you owe. This piece walks through how the tax actually calculates, what depreciation recapture is and why it matters, and the four most common strategies experienced landlords use.

Standard disclaimer up front: I'm not a CPA. The numbers and frameworks below are general; your specific situation needs review by a tax professional before any sale decision. That said, knowing the structure of the math helps you ask your CPA the right questions.


How capital gains tax calculates on a rental property


Two types of tax show up on a rental sale: capital gains tax on the appreciation, and depreciation recapture on the depreciation you claimed during ownership.

Capital gains: the difference between your sale price (less selling costs) and your adjusted basis in the property. Adjusted basis = original purchase price + capital improvements - accumulated depreciation.

For a 2-4 unit held more than a year, the gain is taxed at the long-term capital gains rate: typically 15% federal, sometimes 20% for high earners, plus a 3.8% Net Investment Income Tax for some earners. Pennsylvania state tax on the gain is 3.07%. So the total federal+state rate on long-term capital gains for a typical York County landlord runs 18-23%.

Depreciation recapture: the IRS lets you claim depreciation on a rental building over 27.5 years. When you sell, the IRS recaptures that depreciation — taxing it at up to 25% federal (a special "Section 1250" rate). This is the tax that surprises landlords most often, because they think of it as "phantom" income — tax on something they never actually received as cash.

For a property held 15-20 years, accumulated depreciation often runs $40,000-$80,000 (depending on the original basis). Recapture tax on that amount: $10,000-$20,000.


A worked example


A York County duplex bought in 2005 for $80,000. Improvements over the years: $25,000. Depreciation claimed: $50,000. Sale price in 2026: $200,000. Selling costs: $5,000.

  • Adjusted basis = $80,000 + $25,000 - $50,000 = $55,000

  • Total gain = $200,000 - $5,000 - $55,000 = $140,000

  • Of that gain, $50,000 is depreciation recapture (taxed at up to 25% = ~$12,500)

  • Remaining $90,000 is capital gain (taxed at ~20% combined federal+state for typical earner = ~$18,000)

  • Total estimated tax bill: ~$30,500 on a sale netting $195,000

So roughly 15-20% of the net sale proceeds, depending on the seller's specific income bracket. Real money, but not the 40-50% that some landlords fear.


Four strategies that reduce or defer the bill


1. 1031 Exchange. Defer the entire capital gain (and recapture) by reinvesting the proceeds into another investment property of equal or greater value within strict timelines (45 days to identify, 180 days to close). The new property inherits the old basis, so the gain is deferred — not eliminated — until you eventually sell without exchanging. Common path for landlords who want to roll a small property into a larger one, or shift from active management into passive (DST) ownership.

Tradeoff: the property you exchange into has to be like-kind investment property; you can't 1031 into a personal residence. And the timeline rules are unforgiving — miss the 45-day identification deadline by a day and the entire deferral evaporates.

2. Installment Sale (seller financing). When the seller carries a mortgage for the buyer (see Seller Financing a Rental Property Sale), the gain is recognized proportionally over the years of the note rather than all at once. This often keeps the seller in a lower marginal tax bracket and reduces the total tax bill significantly. Doesn't help with depreciation recapture (that gets recognized in year 1 of the sale), but it reduces the capital gain hit.

3. Timing the sale around your income year. Capital gains rates step at specific income thresholds. A landlord in a high-income year (still working) might pay 20% federal on long-term gain; the same landlord in a retirement year might pay 15% or even 0%. For sellers with flexibility on timing, holding the sale until a lower-income tax year can save several percentage points on the gain.

4. Cost basis adjustments. Many landlords haven't tracked their capital improvements carefully — and capital improvements add to basis, reducing the gain. Going through 15-20 years of records to find roof replacements, HVAC installations, kitchen remodels, and other capital additions can meaningfully reduce the taxable gain. Worth a careful pass before any sale.


Stepped-up basis (inheritance angle)


For an inherited rental property, the taxable gain is calculated from the fair market value at the date of death, not the original owner's purchase price. This effectively wipes out most or all of the prior owner's accumulated gain (and depreciation recapture, in many cases).

This is why selling a recently-inherited rental often has minimal tax consequences — the stepped-up basis resets the math. See Inherited a Rental Property in York County: What to Do Next for the full inheritance angle.


What this means practically


For a York County landlord with a 15-20 year hold weighing whether to sell:

  • The tax bill on a typical sale is 15-20% of the net proceeds

  • A 1031 exchange defers it entirely (with strict rules)

  • An installment sale spreads the capital-gains portion over years (reducing the rate, not eliminating the tax)

  • Timing around your retirement year can save meaningful percentages

  • Inheritance situations often have surprisingly low tax exposure due to stepped-up basis

The right answer depends on the specific property, the seller's other income, and what they want to do with the proceeds. A 30-minute conversation with a CPA who understands real estate before any sale decision is the standard advice — and worth the few hundred dollars in fees.


A direct option in York County


I'm Ed Lane, a local buyer in York County actively buying 2-4 unit rental properties directly from owners. The conversations I have with sellers usually include a section on how their tax situation looks — including whether a 1031 exchange or installment sale might fit their situation. I'm not a tax advisor, but I can flag the structures that often help and connect sellers with CPAs who run the actual math.

For a plain-language framework on what a direct-to-buyer sale on a 2-4 unit looks like — including how the sale structure affects your tax outcome — visit yellowhousebuyers.com/free-guide.

If you'd like to talk through your specific situation, reach me through the site or call 717-347-6770.

This piece is general information about capital gains and depreciation recapture on rental property sales, not tax or legal advice. For specific tax questions about your situation, talk to a CPA before making any sale decision.




Related Reading



Want to talk about your specific situation?


I'm Ed Lane at Yellow House Buyers, LLC. I'm actively looking to buy 2-4 unit rental properties in York County directly from owners. I buy to hold long-term — not to flip, not to wholesale. If you want a no-pressure conversation about your property, here's how to reach me.



Or download the free 2026 York County Landlord's Strategy Guide — it walks all six selling scenarios with the actual math.

Comments


bottom of page