How to calculate taxable gain selling rental property with depreciation recapture and adjusted cost basis — New Jersey

Sold a rental property I owned for 11 years in New Jersey. I know the basic idea: sale price minus adjusted cost basis equals gain. But I'm tangled on the depreciation recapture piece. I took depreciation every year, and I know I have to recapture it, but I'm not sure exactly how it interacts with the adjusted basis and whether NJ calculates it differently than federal. My 1099-S showed up and I'm staring at Form 4797. I tried reading the Schedule D instructions but the interplay between ordinary income recapture on 4797 Part III and the remaining long-term gain on Schedule D is confusing me. Do I subtract total accumulated depreciation from my original basis first, then calculate the gain? And does New Jersey follow the same depreciation recapture rules, or does it have its own treatment?

33 comments

The federal side works like this: your adjusted cost basis is your original purchase price plus any capital improvements, minus all accumulated depreciation you were allowed or allowable to take. So yes, depreciation comes out of your basis directly. The gain is sale proceeds minus that adjusted basis. Then that gain splits, but residential rental (Section 1250 property) placed in service after 1986 and depreciated straight-line has no ordinary income recapture on Form 4797 Part III. The portion equal to your accumulated depreciation is unrecaptured Section 1250 gain, taxed at a maximum 25% rate. The whole gain, including that portion, flows to Schedule D as long-term Section 1231 gain.

Maya G.

Author

So the total depreciation I claimed reduces my basis dollar for dollar, and then when I sell, that same amount comes back as unrecaptured Section 1250 gain taxed at up to 25%, not as ordinary income on 4797. That part is clicking now.

Worth noting on the "allowable" language: the IRS recaptures the depreciation you were allowed to take even if you didn't actually claim it. So if you skipped depreciation in some years, your basis is still reduced by those amounts and you still owe recapture. That catches a lot of people off guard.

Maya G.

Author

I definitely claimed it every year so I should be fine there, but good to flag for others.

Yes, the allowed-or-allowable rule is specifically in Publication 551 and the Form 4797 instructions. It's not optional and the IRS doesn't forgive missed depreciation on audit.

I had taxr.ai read through my closing disclosure, depreciation schedules and the draft 4797 all together. It listed every component that feeds into adjusted basis, flagged where my cost segregation depreciation split across two asset classes, and showed me what landed in 4797 Part III versus what went to Schedule D. Really helped me see the structure before I handed it to my CPA. For NJ specifically my CPA confirmed the state starts from federal gain but makes its own adjustments, so keep both sets of numbers.

Maya G.

Author

The asset class split is exactly what I was worried about. Did yours have both residential and personal property components?

New Jersey does not conform to federal depreciation rules automatically. NJ uses its own depreciation method and historically didn't follow bonus depreciation or Section 179 the way federal does. So your NJ adjusted basis can be different from your federal adjusted basis, meaning your NJ gain on the sale can differ from your federal gain. You'll report on NJ Schedule NJK-1 if it flowed through an entity, or directly on the NJ-1040 if you owned it individually.

Maya G.

Author

I owned it individually so NJ-1040 applies. I had no idea NJ depreciation could diverge — I need to track down what I actually used for state purposes all those years.

On the federal Form 4797 mechanics: residential rental is Section 1250 property. For property placed in service after 1986 using straight-line, the unrecaptured Section 1250 gain (the part equal to accumulated depreciation) is taxed at a maximum federal rate. That rate isn't the same as ordinary income for most people — it's the 25% unrecaptured 1250 gain bucket on Schedule D. The "ordinary income" label on 4797 Part III for residential rental under straight-line actually flows differently than true ordinary income for 1250 property.

This is an important distinction. For 1245 property (personal property), recapture is fully ordinary income. For 1250 residential rental under straight-line, the recaptured amount is unrecaptured Section 1250 gain taxed at a max federal rate — not at your top ordinary rate. The Schedule D instructions and the Unrecaptured Section 1250 Gain Worksheet walk through this.

Maya G.

Author

So I shouldn't assume everything on 4797 Part III is taxed at my ordinary income bracket — the worksheet on Schedule D sorts out the 25% bucket. Got it.

Don't forget selling costs in your adjusted basis calculation. Real estate commissions, transfer taxes, legal fees directly related to the sale reduce your proceeds, which effectively reduces the gain. Keep all the closing disclosure line items — some belong to the basis of what you bought years ago if they were acquisition costs, and some offset proceeds now.

Maya G.

Author

I have the original closing disclosure from purchase. Some of those acquisition costs I added to basis at the time, but I'll double-check I didn't miss anything.

Capital improvements are easy to undercount. Things like a new roof, HVAC replacement, or addition to the structure added to your basis over the years. If you have receipts going back 11 years, go through them. Each dollar of basis you can support reduces the gain dollar for dollar.

For NJ you'll also want to look at whether NJ allows the same capital improvement additions you used federally. Generally NJ does allow capital improvements to increase basis but check that any improvement you're adding wasn't already expensed under a state-specific rule you may have used. The NJ Division of Taxation has guidance on property basis adjustments.

Yes, and NJ does not have a capital gains preference rate the way federal does. In NJ, gain on a rental sale is taxed as ordinary income at your NJ income tax rate, not at a preferential rate. That's another reason your NJ and federal tax bills can diverge substantially.

I dealt with almost the same situation two years ago. I uploaded my depreciation schedule, the closing disclosure, and all my improvement receipts to Taxr and it built out the adjusted basis calculation step by step — original purchase price, closing costs added to basis, improvements year by year, then accumulated depreciation subtracted out. It also flagged that one improvement I'd expensed on a prior return shouldn't be in my basis, which my preparer then confirmed. Saved me from overstating basis.

Maya G.

Author

Overstating basis is exactly the kind of mistake I'd make going through 11 years of records manually. I'll try building the same schedule.

Yes, if something was already deducted as a repair or expensed under Section 179, it can't also increase your basis. Those two treatments are mutually exclusive.

The 1099-S shows gross proceeds. That number goes into Form 4797 (or 8949 if applicable) as your sale price. Don't net out selling costs before entering proceeds — you'll make a separate adjustment for those costs in the basis/expense line on the form. Mixing those up throws off everything downstream.

Maya G.

Author

Good catch — I was about to net the commission out of the proceeds number.

If your rental had a year or two with a passive activity loss you couldn't use, the sale triggers release of any suspended passive losses. Those come through on Form 8582 and can offset the gain. Worth checking if you have prior-year Schedule E carryovers sitting in Form 8582.

Yes, that's specifically the disposition rule for passive activities. When you dispose of your entire interest in a passive activity in a fully taxable transaction, all suspended losses from that activity become deductible. Form 8582 instructions walk through the calculation.

I ran into the NJ versus federal depreciation divergence exactly as described above and it was a real headache tracing back years of different state and federal schedules. I had Taxr read both sets of depreciation schedules side by side and it flagged every year where the NJ and federal numbers split, then produced a summary table I gave my accountant. Took her about half the time to reconcile because it was organized. That NJ basis difference mattered a lot when calculating the state gain.

Maya G.

Author

That side-by-side comparison is what I need. I'm not even sure I filed separate NJ depreciation schedules every year — I may need to reconstruct.

If you don't have records of your NJ depreciation separately, you may need to reconstruct using NJ's rules retroactively. The NJ Division of Taxation publishes its own depreciation guidance. Your tax preparer for prior years should have the state return details if you don't have copies. Publication 551 from the IRS covers federal basis rules at irs.gov/publications/p551 but for NJ you'll need the state equivalent.

Worth clarifying one thing that confuses people: on federal Form 4797, residential rental property goes through Part III for the unrecaptured depreciation calculation, then any remaining gain transfers to Part I, and from there it may flow to Schedule D as long-term gain. The whole gain doesn't stay on 4797 — the form is just the sorting mechanism.

Correct. Part I of 4797 is where the net Section 1231 gain or loss ends up, and that flows to Schedule D line 11. If you have a net 1231 loss it's ordinary, but a net 1231 gain is long-term capital gain, subject to the lookback rule if you had 1231 losses in the prior five years.

Maya G.

Author

The Part III to Part I to Schedule D chain was exactly what I was missing. That explains why my software kept generating a Schedule D entry I couldn't trace back to anything I entered.

The five-year 1231 lookback: if you had any net Section 1231 losses in the five preceding tax years that you haven't already recharacterized, your current 1231 gain is treated as ordinary income to the extent of those prior losses. Something to check on old returns.

Given the NJ conformity issues, the multi-year depreciation schedules, the 4797 mechanics, and passive loss carryovers all in play here, this is genuinely a situation where a CPA or enrolled agent familiar with NJ property transactions is worth the cost. The moving parts interact and one wrong number ripples through several forms.

Maya G.

Author

Agreed. I wanted to understand the structure myself before sitting down with one so I don't waste the billable hour on basics. This thread got me there.