Updated 29 July 2026 · Written by Sofia Romano
No, traditional raw cookie dough is not safe to eat. It contains two risks: raw eggs, which can carry salmonella, and raw flour, which is not treated to kill bacteria like E. coli. To enjoy it safely, make edible cookie dough with heat-treated flour and no eggs.
Raw cookie dough is not safe: raw eggs (salmonella) and raw flour (E. coli) are both risks. Use heat-treated flour and skip the eggs for edible dough.
Two Hidden Risks
- Raw eggs can carry salmonella bacteria, causing food poisoning.
- Raw flour is a raw agricultural product and has been linked to E. coli outbreaks; it is not treated to kill bacteria until cooked.
- Both risks remain even in small tastes of the dough or batter.
How to Make Edible Cookie Dough
Safe edible cookie dough leaves out the eggs and uses heat-treated flour. To heat-treat flour, spread it on a tray and bake at 350 F until it reaches 165 F, or microwave it in short bursts, stirring, until hot. Then cool it before mixing. If you are baking real cookies and they will not spread, see why cookies do not spread. A stand mixer makes quick work of the dough.
Frequently Asked Questions
Why is raw flour dangerous?
Flour is a raw ingredient that has not been cooked or treated to kill bacteria. It has been linked to E. coli outbreaks, so it should always be cooked or heat-treated before eating.
How do you heat-treat flour?
Bake it on a tray at 350 F until it reaches 165 F on a thermometer, or microwave it in short bursts while stirring. Let it cool before using in no-bake recipes.