How to Make Royal Icing Safe to Eat
In this article
The most common way royal icing goes wrong is using raw egg whites straight from the shell, which carries a risk of salmonella. The fix is simple: use pasteurized egg whites or dried egg white powder, or heat the egg whites gently with the sugar to 160°F (71°C). That single swap makes royal icing safe for decorated cookies that everyone can eat.
Choose Your Egg Base Before You Mix
Royal icing is traditionally made with raw egg whites, but raw eggs can carry bacteria. Pasteurized egg whites in a carton are the easiest safe option and behave almost exactly like fresh whites. Dried egg white powder, sometimes sold as meringue powder, is another reliable choice and gives a more stable icing that dries hard. If you want to use fresh eggs, you must heat-treat them, which is covered in the steps below.
For anyone who avoids eggs entirely, a corn syrup and water base works, though it dries softer and is better for flooding than for piping fine details.
Heat-Treat Fresh Egg Whites to 160°F (71°C)
If you are using fresh egg whites, combine them with the sugar and heat gently over a water bath, whisking constantly, until the mixture reaches 160°F (71°C) on an instant-read thermometer. This pasteurizes the eggs and makes the icing safe. Do not let the mixture scramble; keep the heat low and stir without stopping. Once it hits temperature, move the bowl to your stand mixer and whip as usual.
This method works because the sugar protects the egg proteins from coagulating at that temperature. If you see any solid bits, strain them out before whipping.
Mix Royal Icing That Holds Its Shape
The ratio that works for most decorating is 3 cups (360 g) powdered sugar to 2 large egg whites (about 60 g) or 2 tablespoons (15 g) meringue powder plus 1/4 cup (60 ml) water. Add 1/2 teaspoon (2.5 ml) lemon juice or clear vanilla to cut sweetness, and a pinch of salt. Beat on low until combined, then on medium-high for 4-5 minutes, until the icing is glossy and forms soft peaks.
For piping borders and writing, keep it stiff. For flooding, thin with water a teaspoon (5 ml) at a time until it ribbons off the beaters and settles in about 10 seconds.
Royal Icing Ratios and Consistency Table
| Use | Powdered Sugar | Egg White or Meringue Powder | Water (if using powder) | Consistency Test |
|---|---|---|---|---|
| Stiff piping (borders, flowers) | 3 cups (360 g) | 2 large whites or 2 tbsp (15 g) powder | 1/4 cup (60 ml) | Holds a sharp peak |
| Medium piping (outlines, writing) | 3 cups (360 g) | 2 large whites or 2 tbsp (15 g) powder | 1/4 cup plus 1 tsp (65 ml) | Peak curls slightly |
| Flood consistency | 3 cups (360 g) | 2 large whites or 2 tbsp (15 g) powder | 1/4 cup plus 1 tbsp (75 ml) | Ribbon disappears in 10 seconds |
Work Clean and Keep It Covered
Royal icing dries out fast, so keep the bowl covered with a damp cloth or plastic wrap while you work. Use a clean, grease-free bowl and beaters; any trace of fat will stop the whites from whipping. If you are decorating with children, have an adult handle the hot water bath and the mixer, and keep small tips and sprinkles away from children under 3 because they are a choking hazard.
Store unused icing in an airtight container in the refrigerator for up to 3 days. Bring it to room temperature and stir before using. Do not leave royal icing at room temperature for more than 2 hours.
Fix Icing That Is Too Thin, Too Thick or Grainy
If the icing is too thin, beat in more powdered sugar a tablespoon (8 g) at a time. If it is too thick, add water a teaspoon (5 ml) at a time. Grainy icing usually means the sugar was not sifted or the mixture was not beaten long enough; sift the sugar and beat for another 2-3 minutes. If the icing separates, whisk in a teaspoon of meringue powder or a few drops of lemon juice and re-beat.
For a safe finish, let decorated cookies dry uncovered at room temperature for 8-12 hours, until the icing is hard to the touch. Then store in an airtight container for up to 2 weeks.
Know When Royal Icing Is Not Safe
Royal icing made with raw, untreated egg whites is not safe for pregnant people, young children, older adults or anyone with a weakened immune system. If you use the heat-treated method or pasteurized egg whites, the icing is safe for everyone. Never taste raw icing made with untreated eggs, and do not use raw egg whites as a glue for gingerbread houses if the house will be eaten.
If you are unsure whether your egg whites are pasteurized, check the carton label. Carton egg whites are usually pasteurized, but the label will say so.