Is there a reliable capital gains on sale of rental property calculator I can use before filing?

Sold a rental house I owned for 11 years. Trying to figure out what I actually owe before my return is due. I've been searching for a capital gains on sale of rental property calculator online but everything I find either ignores depreciation recapture or asks for numbers I don't know how to find. Here's where I am: I bought for $210k, put maybe $30k into improvements over the years, and sold for $395k. I've been depreciating it since I bought it. My broker sent a 1099-S. I know depreciation recapture is taxed differently than the regular long-term gain but I don't understand how to split that out on Form 8949 and Schedule D. Do I need to calculate the recaptured depreciation separately before I can even fill out those forms? And does the net investment income surtax come into play here? I'm filing jointly if that matters.

42 comments

Did you keep records of the total depreciation you claimed each year? That number is the foundation of everything here. Without it, you can't split the gain correctly between the section 1250 recapture piece and the long-term capital gain piece.

Tara N.

Author

I have the Schedule E from each year so I can add up the depreciation deductions. I just didn't realize that total was going to be so central to the whole calculation. Good to know where to start.

The way the split works: your adjusted basis is purchase price plus improvements minus total depreciation taken (or allowed, whichever is larger). Gain above that adjusted basis is your total realized gain. The portion up to total depreciation claimed is unrecaptured section 1250 gain. The rest is long-term capital gain. They land in different rows on Schedule D.

Tara N.

Author

So the recapture piece doesn't go on Form 8949 at all? It stays on Schedule D as a separate line?

The sale itself goes on Form 4797 and the gain flows to Schedule D. The unrecaptured 1250 gain is figured on the Unrecaptured Section 1250 Gain Worksheet, goes on Schedule D line 19 and feeds into the Schedule D Tax Worksheet. It affects your rate, not your total gain number.

Are you using any software or doing this by hand? I uploaded my closing disclosure and all my Schedule E pages to taxr.ai last year when I sold a rental and it pulled the cumulative depreciation from each year's form, calculated the adjusted basis line by line, and drafted the Form 4797 entry with the correct proceeds and basis. Saved me from a subtraction error I'd made going back to 2019. Worth trying before you finalize anything.

Tara N.

Author

I hadn't thought about uploading the Schedule E pages directly. Did it also flag the recapture piece separately or did you have to tell it what you were looking for?

It separated them without me asking. It listed the unrecaptured 1250 amount, the remaining long-term gain, and noted that each part gets a different rate treatment. I still had a CPA review the final return but the worksheet it built was what I handed her.

What year did you place it in service? Residential rental property depreciates over 27.5 years using straight-line, so the annual amount is predictable, but if you ever did a cost segregation study or took bonus depreciation on any components, your total allowed depreciation could be higher than the straight-line total and that changes the recapture number.

Tara N.

Author

No cost segregation, straight depreciation the whole time. So I should be safe just adding up the Schedule E line 18 amounts for each year?

Line 18 on Schedule E is the right place to pull from for each year. Cross-check the total against Form 4562 if you have it, particularly the MACRS section, since the 4562 sometimes shows prior depreciation that didn't make it to the E cleanly.

The net investment income question you asked is real and people skip it. If your modified AGI is above the threshold for joint filers (the instructions for Form 8960 have the current number), the net investment income tax can apply to the gain from a rental sale. Passive rental income usually qualifies as net investment income. When I sold a condo two years ago I ran my numbers through Taxr — I gave it my prior year return and the sale summary and it built a Form 8960 estimate showing which part of the gain would be subject to it and which wouldn't based on my participation level.

Tara N.

Author

I was definitely passive on this, never did anything close to material participation. So the whole gain likely falls in scope for 8960. I'll check the threshold in those instructions.

Passive is the typical situation for most landlords. The Form 8960 instructions also walk through how the gain from Form 4797 or Schedule D flows into the net investment income calculation, so that's the right place to trace it.

Did you ever use the property as a personal residence? Even for part of a year? Because that changes which exclusion rules you can look at and how basis allocation works for the period it was a rental versus personal use.

Tara N.

Author

Purely rental from day one, never lived there. So I don't think any of the home sale exclusion rules apply to me at all.

Correct, the section 121 exclusion is only for a main home and the ownership and use tests both have to be met. Since it was always a rental you work entirely through Form 4797, Schedule D, and the unrecaptured 1250 gain worksheet.

Worth noting: the 1099-S your broker sent shows gross proceeds. That's what goes on the gross sales price line (line 20) of Form 4797. You don't reduce it by commissions there — commissions are added to your basis on line 21, which is cost or other basis plus expense of sale. Either way the gross sales price line on 4797 reflects what's on the 1099-S.

Tara N.

Author

So selling costs like agent commissions reduce amount realized rather than increasing basis? I had been thinking of them as a basis adjustment which I think gives the same math but good to know the right frame.

Same net gain either way, you're right. On Form 4797 the convention is to add selling expenses to basis on line 21 rather than reduce the gross sales price. Publication 551 has the basis rules and Publication 550 covers how to figure gain or loss from a sale if you want to see how the IRS frames it.

How are you handling any suspended passive losses from prior years? If you had losses that were limited because of the passive activity rules, the full disposition in a taxable sale releases them and they offset the gain in the year of sale.

Tara N.

Author

I actually did have some suspended losses from a couple of years where the rental ran at a loss. I didn't realize a full sale releases them. How does that flow on the return?

Released suspended losses from Form 8582 flow to Schedule E as a loss in the year of sale. They're ordinary losses that offset your income generally, but they don't reduce the gain that goes to Schedule D. It can materially reduce your taxable income so definitely don't leave that on the table.

The improvements piece catches people off guard. Any capital improvement you made — roof, HVAC, addition — adds to your basis. Routine repairs don't. If some of your $30k was repairs rather than improvements, your adjusted basis is lower and your gain is higher than you might think.

Tara N.

Author

I know at least $8k of that was definitely capital — a new roof. Some of the rest might be more gray area. I guess I need to go through those receipts more carefully.

Have you pulled up Publication 544 on the IRS site? It covers sales of business and rental property in detail including how to figure gain or loss and how the section 1250 rules apply. It's dense but it's the authoritative source for exactly this situation.

Tara N.

Author

I'll look at that. I've mostly been using Publication 550 so far which has some of this but maybe 544 is more directly on point for rental property.

Are you planning to use a CPA or file on your own? This combination — depreciation recapture, possible 8960 exposure, suspended passive losses, and a 1099-S — is a lot of moving pieces. An enrolled agent or CPA who handles real estate would catch interactions between these that software sometimes misses.

Tara N.

Author

Leaning toward a CPA for the final return exactly because of all these interactions. But I wanted to understand the mechanics myself first so I'm not going in blind.

That's exactly the right way to approach it. Coming in with your adjusted basis already calculated, your depreciation total pulled from the Schedule E history, and your suspended losses from 8582 makes the conversation much more efficient.

The Form 4797 question: some people report the rental property sale on Form 4797 instead of or in addition to Form 8949. For residential rental property held more than a year where there's both ordinary recapture income and capital gain, the interaction between 4797 and Schedule D is what determines how the gain is taxed. Worth confirming with your preparer which form carries the sale.

Tara N.

Author

I keep seeing Form 4797 mentioned and wasn't sure if it replaced Form 8949 or ran alongside it. So the two can interact for the same sale?

For section 1250 property like residential rental, the ordinary income portion (if any) goes through 4797 Part III and the remaining gain goes to Schedule D as long-term. The 1099-S proceeds still anchor the total. Your preparer will know which lines to use given your specific depreciation history.

Did you refinance the property at any point? A cash-out refinance doesn't affect your basis or your gain, but sometimes people mix up loan payoff amounts with the tax calculation. The gain is based on what you received for the property versus your adjusted basis, not on what you netted after paying off the mortgage.

Tara N.

Author

Yes, I refinanced once. Good catch — I was mentally subtracting the payoff from my proceeds when thinking about the "gain" informally. For tax purposes none of that matters, it's just sale price minus adjusted basis.

State taxes are a separate calculation entirely and some states don't follow federal rules on depreciation recapture rates. If you're in a state with an income tax, run the state numbers separately — your federal Schedule D result won't translate directly.

Tara N.

Author

Hadn't thought about the state side at all. My state does have income tax so I'll need to look at that separately. I assume the state will also want to see the full gain without the federal rate distinctions.

The IRS topic page on capital gains (Topic no. 409) and the instructions for Form 4797 at irs.gov are the two documents I'd keep open while doing this manually. Topic 409 lays out the holding period rule and the rate structure; the 4797 instructions tell you exactly which part and which lines to fill for a rental property that came with a 1099-S.

Tara N.

Author

I found the 4797 instructions pretty dense but the logic did make more sense once I read it carefully. The fact that a rental sold with a 1099-S goes on Form 4797 rather than Form 8949 is clearer in the instructions than in any summary I found online.

Form 4797 is right for a long-term gain on a rental property that generated a 1099-S. The instructions for Form 4797 spell out which part applies and it's worth reading that section word for word rather than relying on a summary.

To add one correction to something upthread: someone said commissions are always on the proceeds side. Technically you're figuring your amount realized, which is selling price minus selling expenses including commissions. That's the number that goes into the gain calculation. Form 4797 line 20 holds the 1099-S gross sales price, and you add selling expenses to basis on line 21. Publication 550 at irs.gov has the amount realized definition if you want the exact language.

Fair correction. Adding them to basis on line 21 of Form 4797 is the right mechanism when selling expenses aren't already baked into the proceeds figure on the 1099-S. The instructions for Form 4797 describe when and how to use that line.