The Madison Square Park office building being sold by Goldman Sachs’ Whitehall Funds and Joseph Moinian is in contract to Joseph Sitt’s Thor Equities and, drum roll please, Joseph Moinian.

The sale price for the 305,000 square foot building at 245 Fifth Ave. on the southeast corner of 28th Street is about $162 million, sources told The Post.

That’s about $530 a square foot.

The building was purchased at the height of the market in 2007 for $190 million, or $620 a square foot.

As The Post first reported, Douglas Harmon and Adam Spies of Eastdil Secured marketed the building, which has tenants including Universal Music and Beth Israel.

The 1927-era Art Deco building has 26 floors which are 93-percent occupied and it has 13,000 feet of retail.

None of the parties returned calls prior to press time.