Current home sale proceeds, closing costs

—I’m wondering about how the proceeds from the sale of my current home would be taxed

—Also can I deduct expenses for getting it ready for sale, as they are becoming substantial

—Also what portion of my closing costs on the next home purchase can I deduct? Or what about Down payment?