How to Make Edible Cookie Dough With Heat-Treated Flour

By the Pan AI team · Updated · 4 min read

Quick answer

To make edible cookie dough, leave out the eggs and use flour sold as heat-treated, which the label says is meant to be eaten raw. Beat ½ cup soft butter with ½ cup brown sugar, 2 tablespoons milk, 1 teaspoon vanilla and a pinch of salt, then stir in 1 cup of that flour and ½ cup mini chocolate chips. The FDA advises against heat-treating flour at home.

How to Make Edible Cookie Dough With Heat-Treated Flour

Handy for this: Cups to tablespoons · Grams to cups

At a glance

  1. Buy flour labeled heat-treated, or a dough mix made to eat raw.
  2. Soften ½ cup butter at room temperature.
  3. Beat the butter with ½ cup brown sugar until fluffy.
  4. Beat in 2 tablespoons milk, 1 teaspoon vanilla and a pinch of salt.
  5. Stir in 1 cup heat-treated flour until smooth.
  6. Fold in ½ cup mini chocolate chips.
  7. Eat right away, or refrigerate it covered.

The short version

Regular cookie dough isn't safe to eat raw for two reasons: raw eggs and raw flour. The eggs are easy to leave out. Flour is the part most people miss. The FDA explains that turning grain into flour doesn't kill harmful bacteria, and only baking or cooking does. Edible cookie dough works by skipping the eggs and starting with flour that has already been heat-treated by the maker.

What Pan would say

“Brown butter version? It smells nutty and the bits are golden. Take it off the heat now.”

Why not heat-treat flour at home?

Many recipes tell you to bake or microwave flour until it's hot. The FDA specifically advises against heat-treating flour at home, because home methods may not kill all the bacteria evenly. The CDC has investigated outbreaks tied to raw flour or cake mix in 2016, 2019, 2021 and 2023. The safer route is flour that says heat-treated on the package, or a store-bought dough labeled ready to eat raw.

FlavorChange to the base
Chocolate chip½ cup mini chocolate chips
Sugar cookieWhite sugar instead of brown; sprinkles instead of chips
Peanut butterReplace 2 tablespoons butter with ¼ cup peanut butter
Double chocolateSwap 3 tablespoons of the flour for cocoa powder
Brown butterBrown the butter on the stove first, then cool it until soft

Getting the texture right

  • Too stiff? Add milk a teaspoon at a time.
  • Too soft? Add 1–2 tablespoons more heat-treated flour, or chill it 15 minutes.
  • Gritty? Beat the butter and sugar longer before adding the flour.

Measuring by weight helps: use our grams to cups converter for flour and sugar.

A worked example

You leave ½ cup butter on the counter for an hour, then beat it with ½ cup brown sugar until pale. In go 2 tablespoons milk, a teaspoon of vanilla and a pinch of salt. You stir in 1 cup of flour from a bag marked heat-treated, fold in mini chips, and scoop it into four small bowls. No eggs, no raw flour, no oven.

How to store it

Keep edible cookie dough covered in the refrigerator for up to about a week, or freeze small scoops for longer. Let it soften a few minutes before eating. The CDC adds a simple rule for store-bought dough: follow the label, and only eat raw the kinds made to be eaten raw.

Common mistakes

  • Using regular flour. It's a raw ingredient; the FDA says only baking or cooking makes it safe.
  • Adding raw eggs. They aren't needed; milk gives the moisture.
  • Melted butter. It makes greasy dough. Use soft butter, or cool browned butter until it firms.
  • Putting homemade raw dough in ice cream. The CDC notes store-bought cookie dough ice cream uses treated dough.

Keep going

Next up: How to Make Fudge, How to Make Hot Chocolate on the Stove, Rich and Smooth and How to Make Pancakes From Scratch.

Short on brown sugar? Make your own. Want a baked treat instead? Try how to make meringue.

Butter still cold? See how to soften butter in 15–30 minutes, or in the microwave.

Baking eggless cookies instead? See the best egg substitute for baking.

Pan watches it for you

Pan watches the brown butter for you

Making the brown butter version? Pan watches the pan through your phone camera and tells you out loud when it's golden, before it burns.

  • Butter soft: beat with sugar
  • Pale and fluffy: add milk and vanilla
  • Flour stirred in: fold in chips
  • Scoopable: serve or chill

Pan AI is on iPhone • Android.

Common questions

Is edible cookie dough safe to eat?

It is when it has no raw eggs and uses flour that was heat-treated by the maker, or a store-bought dough labeled to eat raw.

Can you heat-treat flour in the microwave or oven at home?

The FDA advises against it, because home heating may not kill all bacteria evenly.

What can I use instead of eggs in edible cookie dough?

Milk. About 2 tablespoons gives the right moisture for 1 cup of flour.

Can you bake edible cookie dough?

Without eggs it won't bake into normal cookies. For cookies, use a regular recipe and bake it.

How do you make edible cookie dough without brown sugar?

Use white sugar instead, which makes it taste like sugar cookie dough. Add a teaspoon of molasses or maple syrup for a caramel note.

How long does edible cookie dough last?

About 1 week covered in the fridge, or 2–3 months frozen. Let it soften a few minutes before eating.

Why is regular raw cookie dough unsafe?

Raw eggs can carry Salmonella and raw flour can carry E. coli. Edible dough leaves out the eggs and uses flour sold as heat-treated.

How do you make a single serving of edible cookie dough?

Beat 1 tablespoon butter with 1 tablespoon brown sugar, a splash of milk and vanilla, then stir in 3 tablespoons heat-treated flour and some chocolate chips.

Sources

Reviewed against USDA FSIS, FoodSafety.gov and FDA guidance. How we choose sources and fix mistakes: editorial policy.

Keep cooking