Move appreciated real estate out of S corp to partnership without triggering section 1239 gain
Trying to figure out if there's a clean way to move appreciated real estate out of S corp to partnership without triggering section 1239 gain. The property has been in the S corp about 11 years, low basis, significant appreciation. The plan was to contribute it to a partnership where the same shareholders would hold interests, then do a 1031 exchange at the partnership level eventually. Attorney flagged section 1239 but wasn't specific about how bad the exposure is. I know 1239 recharacterizes gain as ordinary income when depreciable property is sold between related parties, but does a contribution to a partnership actually count as a sale or exchange triggering it? Or is this a section 721 nonrecognition situation? Have tried reading the regs but they're dense. Would really appreciate any clarity on what the exposure actually looks like here.