Is Raw Cookie Dough Safe to Eat? Raw Flour, Eggs and Heat-Treating

Raw cookie dough is not safe to eat because raw flour and raw eggs can carry germs. See the risks and how to heat-treat flour for edible dough.

Top view of three colorful bowls filled with various ice cream flavors and toppings.
Photo: RDNE Stock project / Pexels

Raw cookie dough is not safe to eat. Both the raw flour and the raw eggs in a typical recipe can carry germs, including E. coli and Salmonella, and neither is treated to kill them. The FDA and CDC advise against eating or tasting any raw dough or batter.

You can make a version that is safe to eat raw by heat-treating the flour and leaving out the eggs. The steps and the reasoning are below.

Why is raw cookie dough risky?

Flour is a raw agricultural product. It comes from wheat grown in fields, and it is milled without a step that kills germs. Bacteria such as E. coli can be present in the grain or enter during harvest and milling. Baking kills them, which is why baked cookies are safe.

Eggs are the second risk. Raw eggs can carry Salmonella. Both the FDA and the CDC say not to eat raw dough or batter, and the CDC has linked outbreaks of illness to raw flour. For more detail on the flour side, see this explainer on whether raw flour is safe to eat, and for eggs, raw eggs in baking and safe temperatures.

Some people are more at risk of severe illness, including young children, pregnant people, older adults and people with weakened immune systems.

Does a small taste of dough matter?

Yes, a small taste can matter, because the risk depends on whether the dough carries germs and not on how much you eat. Even a spoonful carries risk, and there is no way to see or smell contamination.

Handwashing matters too. Wash hands, bowls, spoons and counters after handling raw dough, and do not let children play with raw dough that they might put in their mouths.

How do you heat-treat flour at home?

You heat flour to an internal temperature that kills germs. The FDA and CDC guidance is to bring flour to 165°F (74°C), which is the temperature commonly used for this purpose. Two methods work, and both need a food thermometer.

In the oven

  1. Heat the oven to 350°F (175°C).
  2. Spread the flour in a thin, even layer on a rimmed baking sheet.
  3. Bake for about 5 to 10 minutes, stirring once or twice, until a thermometer reads 165°F (74°C) in several spots.
  4. Cool completely and sift out any lumps before using.

In the microwave

  1. Put 1 cup (about 120 g) of flour in a microwave-safe bowl.
  2. Heat in 30-second bursts, stirring well each time, until it reads 165°F (74°C) in several places.
  3. Cool and sift before measuring.

Heat-treated flour can be slightly drier or behave a little differently in baking, and it keeps like regular flour once cool. For measuring by weight, a cups to grams converter helps when a recipe lists cups.

What about the eggs?

Skip them or replace them. Edible cookie dough recipes usually omit eggs entirely, since there is nothing to bake them into. The usual options are:

  • Leave eggs out and add a small amount of milk or water for moisture.
  • Use pasteurized liquid eggs, though many edible-dough recipes simply skip eggs.
  • Use shell eggs that are labeled pasteurized, which have been heat-treated in the shell.

Pasteurized eggs lower the risk, but dough made with them still uses flour, so heat-treat the flour as well.

How do you make edible cookie dough?

An edible dough usually has these parts: heat-treated flour, butter, sugar, brown sugar, vanilla, a pinch of salt, a splash of milk, and chocolate chips. It has no eggs and no leavening such as baking soda or baking powder, since it will not be baked.

Keep it in a covered container in the refrigerator and eat it within a few days. Note that this dough is a different thing from the dough you bake, which needs eggs and leavening. If you want to bake cookies, the troubleshooting guides on dry and crumbly cookies help.

Quick answers

Is store-bought cookie dough safe to eat raw?

Only if the label says it is meant to be eaten raw. Ordinary refrigerated dough that is made to be baked should be baked.

Does cookie dough ice cream have the same risk?

Commercial products use heat-treated flour and pasteurized or egg-free dough pieces, which is why they are made to be eaten without baking.

Does sugar or butter kill germs in dough?

No. Sugar, butter and chocolate do not make raw flour or raw eggs safe. Only heat does.

What should I do if I got sick after eating raw dough?

Contact a doctor, especially if symptoms are severe or last more than a few days, or if the person is a child, pregnant or has a weak immune system.