You can leave this frosting out on top of cake, cookies or cupcakes for up to 8 hours. After that, it is recommended that you refrigerate it.