Quote from @Michael Plaks:
@Jason V.
Crucial details are missing. My answer assumes that it used to be your residence for at least 2 years after which you rented it for 2 years and never moved back in before selling it. And you took depreciation. And your capital gain on the property, including depreciation recapture, is under the limit of $250k for singles or $500k for married couples. And you have not sold another residence within 2 years of selling this one.
With these assumptions, it's full exclusion and you do not need Form 8949. You do need Form 4797 to calculate and report depreciation recapture and pay tax on this portion.
If what I wrote is not clear to you or if some of my assumptions are wrong, then stop your DIY attempt and hire a tax professional.
I am in the same boat but I see it the other way around; I should use Form 8949 vs 4797 for almost this exact scenario: owned home almost 2 years, then rented 14 months, then sold.
I moved after not quite 2 years due to military orders and qualify for a partial exclusion.
I received 1099-S which p523 states "You received a Form 1099-S. If so, you must report the sale on Form 8949 even if you have no taxable
gain to report".
8949 reflects the depreciation which transfers to Schedule D.
In this situation, I do not believe there is a need for Form 4797. I hope that's true because Block-head software instructions for 4797 is nuts.
IRS: "If you used the home for business, you may have to
use Form 4797 to report the sale of the business part". I do not report the business part because none of my ownership is non-qualified use.
Please let me know what you think. I hope I did not post this twice.