It's best to let your cupcakes cool completely before frosting them. This usually takes about 1 to 2 hours. If you frost them while they are still warm, the frosting may melt and slide off.