The recommended cooling time for cupcakes before frosting is 1 to 2 hours. Applying frosting on a warm cupcake will melt your topping, likely causing it to slide off.