How to Calculate Capital Gain on a Rental Property
The landlords I’ve worked through capital gains math with almost always come in off by the same thing: depreciation recapture didn’t make it into the estimate. I’ve seen this on deals across the hold spectrum, but it runs deepest on properties held long enough that the annual deductions have pulled the adjusted basis well below the original purchase price.
I’ve seen the gap show up when the CPA’s draft return comes back: on the deals I’ve been on, the recapture piece came back on a different schedule than the long-term gain and landed higher than what the seller had been expecting.
The Numbers That Go Into the Calculation
I’ve had sellers come in with an adjusted basis estimate they’d worked up on their own, and on most of those deals, the number they had was higher than what the formal calculation came back with once depreciation was fully accounted for. The ones who’d also added capital improvements and original closing costs back into the basis had usually gotten closer, but not many of them had gone through that exercise before we talked.
I’ve worked with landlords who’ve held 15 years or more, and pulling those records together can take real work. On several of those deals, the improvements the seller remembered doing were the hardest part to pin down, and I’ve watched the CPA conversation get complicated fast when the only documentation going back that far was a bank statement and a general contractor’s invoice from 12 years ago.
I’ve had sellers come in with a gain estimate that was off because they were working from the gross sale price without backing out commissions, title, and escrow fees. On several of those deals, pulling those costs out moved the final number more than the seller expected.
I’ve watched the estimate shift when a CPA builds the actual return: on the deals where both pieces were modeled separately, the number that came back was different enough from what the seller had been carrying that it changed how they were thinking about the offer they’d received.
How Depreciation Lowers Your Adjusted Basis
I’ve walked sellers through depreciation math on enough deals to know where the confusion usually starts. Most came in thinking they could use the full purchase price as the basis, and the first correction was that the land component doesn’t go in.
On the deals I’ve appraised and worked through, the land ran somewhere between 15 and 25 percent of what was paid, which put the starting depreciation basis meaningfully below the purchase price. That building portion runs through a 27.5-year straight-line schedule, and each year’s deduction comes off at roughly the same amount.
On longer holds, I’ve put together the compounding side of those deductions often enough to see how far the basis moves. A property with a $160,000 depreciable basis held for 20 years accumulates roughly $116,000 in total depreciation on that component alone, and I’ve had sellers looking at a basis number well below what they paid before any improvements went back in.
I spent seven years as a certified residential appraiser starting in 2003, and landlords underestimating their basis on longer holds showed up consistently. On the deals where the math surprised them most, a property bought for $200,000 had an adjusted basis under $100,000 by the time of the sale, which put the taxable gain on a $450,000 sale closer to $350,000 than the $250,000 the seller had been expecting.
Sellers who want to work through the mechanics before the CPA meeting have found IRS Publication 527 useful for the depreciable basis and land exclusion piece, and I’ve pointed landlords there when they want to understand how the land value split gets treated before we get into the offer conversation.
On those conversations, the assessed land value came up most often as the starting point, though the CPAs I’ve worked alongside sometimes used a different methodology depending on the property type and location.
Depreciation Recapture: The Part That Changes the Bill
I’ve talked to enough landlords who came off a primary residence sale and assumed the long-term rate applies to a rental sale the same way to know what lands differently.
On those deals, the piece I’ve watched come as the biggest surprise is the unrecaptured Section 1250 gain, where the IRS separates out the portion corresponding to claimed depreciation and taxes it at a maximum of 25 percent. I’ve had landlords see that rate on the draft return for the first time and call their CPA asking what it was doing there.
On the federal side, I’ve had sellers come in thinking the long-term rate would apply to the full gain, and the conversation shifts once I’ve laid out that the rate tops out at 20 percent and what lands depends on the full taxable income picture for the year. On the deals I’ve worked through, 20 years of deductions had built a recapture piece that came back as a number the seller hadn’t been accounting for.
The §121 exclusion conversation comes up regularly. Landlords who’ve watched a primary residence sale close at a lower tax cost often assume the same exclusion applies to their rental. To use it, the seller has to have used the property as a primary residence for two of the last five years before the sale, and a straight rental that was never occupied that way is outside it regardless of how long the seller held it.
I’ve worked through this calculation with sellers who converted a primary residence to a rental before selling, and those have a more complicated version than a straight rental. The partial § 121 exclusion is available when the property was once a primary residence, but the non-qualified use rules added under the Housing Assistance Tax Act of 2008 limit what portion of the gain qualifies.
Periods of rental use after the conversion are non-qualified use, and the gain attributable to those periods isn’t eligible for the exclusion even when the seller eventually meets the two-of-five-year use test. The exclusion applies only to the gain that built up during the time the property was actually used as a primary residence.
I’ve run through this math on deals where the seller lived in the property four years and then rented it three, which works out to roughly 43 percent non-qualified use, and that fraction of the gain is excluded from the § 121 calculation. It’s the piece most sellers who converted a primary residence to a rental haven’t worked through, and the gap between the exclusion they expected and the one they get tends to come up for the first time on the draft return.
In the transactions we’ve worked through, the rate on the long-term piece has come out differently depending on what else was in the seller’s return for that year, and for some sellers the bigger income driver in the calendar year of the sale wasn’t the property at all. Sellers who want to follow the rate math before the accountant meeting can find a lot of the framing in IRS Topic 409.
California’s Additional Layer
I’ve had sellers who’d been running the federal calculation assume the California number would be in a similar range. California taxes the gain at the ordinary income rate, whatever bracket the seller is in, and at the upper end that rate reaches 13.3 percent on the same gain already in the federal calculation.
In most of the planning conversations we’ve had with sellers, the California piece wasn’t in the estimate they came in with, and the California Franchise Tax Board covers the state treatment on their site for sellers who want to work through it before the CPA meeting.
A lot of those sellers had been working from general write-ups on capital gains, and the California state piece was the part of the calculation they hadn’t seen laid out yet.
I’ve also had sellers dealing with the net investment income tax surcharge, where those with income already elevated from other sources in the year of the sale, a 3.8 percent NIIT surcharge may apply once modified adjusted gross income crosses certain thresholds.
The IRS covers the NIIT rules in Topic 559, and a lot of the sellers we talk to hadn’t been factoring that surcharge into their planning because they hadn’t run the income projection for the year of the sale yet.
I’ve watched the timing conversation shift once the combined federal and state picture is on paper. Most sellers come in having run the federal piece without modeling the California number, and the conversation goes in a different direction once both sides are laid out.
Running the Capital Gains Calculation on a Typical Sale
What I see with sellers who’ve already tried to run this calculation is they’re usually close on the gross number but running both pieces of the gain through the same rate. That’s where the CPA’s return tends to come back different from what they carried in.
A property bought for $280,000 where roughly 25 percent is land value leaves around $210,000 in depreciable basis, and on a 27.5-year straight-line schedule that runs about $7,600 per year in deductions.
Across 18 years of holding and renting, those deductions accumulate to around $136,000, pulling the adjusted basis to roughly $179,000 after adding $35,000 in capital improvements back into the calculation.
On a $550,000 sale, after backing out the $179,000 adjusted basis and roughly $33,000 in selling costs, the total gain lands around $338,000.
That $338,000 doesn’t all move through at the same rate: the accumulated depreciation piece, about $136,000, runs through at the 25 percent recapture rate, and the remaining $202,000 moves as long-term capital gain at the applicable federal rate.
On the federal side alone, the combined recapture and long-term gain comes to roughly $74,000 in this example before any NIIT surcharge. The state’s ordinary income tax on the full $338,000 adds roughly $45,000 more for a seller at the 13.3 percent bracket.
That combined tax picture, somewhere around $119,000 in this example, is usually quite a bit higher than what sellers carry in when they’ve run only the federal long-term rate against the sale price without working through the depreciation recapture piece. The sellers who come into the offer conversation with that full number already modeled tend to move more directly on timing and structure.
What This Looked Like on a Deal We Closed in Temecula
Corte Almeria, Temecula
We closed on a property on Corte Almeria in Temecula in December 2023 for $475,000. This was about as long a hold as I see, the seller had bought it back in 1999 for $167,500 and had been renting it out since then.
His adjusted basis had come down significantly from that original purchase price after 24 years of claiming those deductions.
He was retiring and had already bought a house in Ohio, and the transaction had to line up with his departure date. His CPA had already been reconstructing the basis, and by the time they’d worked through 24 years of Schedule E, the adjusted basis was well below where he started.
After a hold that long, the recapture piece had accumulated significantly, and his CPA had worked through what that looked like before we got to the offer conversation. He needed to know what he’d net after taxes before committing to any close date, and he already had a working number for that by the time we were talking.
Form 4797 and Form 8949 on a Rental Sale Return
Sellers already in their CPA’s queue often ask us about which form handles a rental sale, usually ones who’ve done their own returns and are expecting a single Schedule D line. Form 4797 is the one that handles the recapture piece on a rental property sale, and a lot of sellers see it on the draft return for the first time and ask their CPA what it’s doing there.
I’ve talked to sellers who had securities sales in the same year and expected everything to land on Form 8949, but that form handles capital asset categories like investment accounts rather than depreciated rental property. On a rental sale, the long-term gain portion feeds into Schedule D from the 4797 calculation, not from an 8949 entry.
Sellers I’ve talked to working through the filing after close often come in with questions about those two separate Schedule D lines that trace back to the same transaction. The 4797 and Schedule D combination is where the gain lands, and once the CPA has the draft return on the screen most sellers get a clear picture of how the forms split what started as a single deal.
How the Rental Sale Shows Up on the Return
What I walk sellers through on the mechanics is that the rental sale runs through Form 4797 before it reaches Schedule D. Part III of that form is where the recapture calculation gets built, using the accumulated depreciation total against the gain to determine what gets treated as ordinary income.
I’ve walked sellers through the Part III output for the first time and it usually makes more sense once they see the two pieces: the ordinary income portion corresponding to accumulated depreciation, and the remaining Section 1231 gain. The ordinary income stays on Form 4797 at the recapture rate, and the Section 1231 gain carries through to Schedule D as long-term capital gain.
I’ve seen suspended passive losses offset a meaningful piece of the tax on deals where the seller had been generating losses that were disallowed in prior years under the passive activity rules. That’s the piece Form 4797 brings into the picture that a lot of sellers haven’t been tracking: those disallowed losses become fully deductible in the year of the sale, and they can offset part of what’s coming through on the return.
I’ve talked to sellers going through this for the first time who were surprised to see two Schedule D lines that trace back to the same transaction. The way the forms split the gain isn’t obvious until the CPA has the draft return on the screen.
Options to Consider Before You Close
1031 exchange
I’ve worked with landlords who want to keep working in real estate rather than absorbing the full tax in one year, and the 1031 exchange lets them roll the proceeds into a replacement property and defer both the gain and the recapture.
The exchange has to be set up before the original property closes, and from that close date the identification window for the replacement runs 45 days, with 180 days to complete the acquisition.
We’ve seen the 1031 exchange come up regularly on our buy side: landlords managing multiple properties who want to consolidate into a single larger asset without absorbing the full tax hit in one year. A qualified intermediary holds the funds between closings, which is the structure that keeps the seller from receiving the proceeds directly and triggering the disqualification.
Installment sale
I’ve worked through installment sales on deals where the buyer wasn’t paying all cash and the seller had flexibility on payment structure, and the arrangement lets the seller recognize the gain gradually across multiple tax years rather than all at once.
The tradeoff is that the seller is carrying the note and depending on the buyer to make payments, which introduces credit risk and ongoing interest income that flows back through the return each year.
I’ve found that sellers working through the tax question are usually also dealing with the tenant situation and property condition decisions at the same time. The guide to selling a rental property in Southern California covers the operational side of how those deals move to close, including what the tenant and condition pieces typically look like in escrow.
I’ve also worked through sales where the property dropped below the adjusted basis, and those run through a different set of rules. The guide to selling a rental property at a loss covers how the IRS handles that situation, including where the limitations show up on the return.
Talk to a CPA Before You Commit to Any Timeline
What I say to sellers who’ve been running these numbers themselves is that the framework here is accurate at the conceptual level, but what you’ll owe depends on your complete return for the year, not just the property sale in isolation.
The rate that applies to each piece of the gain is specific to your income level, filing status, and depreciation history, and a general estimate from an article won’t get close enough to drive a real decision.
Andrea and I have both sat across from sellers who made the decision to list or accept an offer before their CPA had modeled the tax outcome, and the net-of-tax number came back different enough from the estimate that it changed how they thought about the options on the table. Getting that full picture before locking in any price or close date is the step that tends to shift the conversation.
Sellers who’ve already closed and are working through the filing have found that pulling together the depreciation schedule and the closing statement before the CPA meeting is the right first step. The Form 4797 calculation builds from those figures, and anything related to suspended passive losses from prior years will need to be in that conversation too.
I’ve also worked through sales to family members where the price was below market, and those run through different IRS rules. The breakdown of tax implications when selling below market value covers where the IRS rules diverge from a standard sale.
I’m Doug Van Soest, and my wife Andrea Van Soest, CA DRE #01505854 and I have been buying rental properties directly from landlords across Southern California since 2008.
We buy for cash, I’ll say that now, and that shapes which part of the calculation I end up spending the most time on with sellers.
Together, Andrea and I have closed over 400 transactions across Southern California, including rental properties in Riverside, Orange County, San Diego, Los Angeles, and San Bernardino counties. If you want a written offer and a net sheet to take to your CPA as a starting point for the comparison, reach us at (951) 331-3844 or through the cash offer page.
