Most cakes with standard buttercream frosting can be left out for 24 hours, as long as your home temperature is well regulated (around 72° F). However, cakes with other types of frosting, such as cream cheese frosting, can be left out for a short period of time but should be refrigerated beyond that.