Baking or cooking flour to an internal temperature of at least 165°F (74°C) is the most reliable way to kill harmful bacteria like E. coli and Salmonella. However, reaching that temperature evenly throughout loose flour is harder than it sounds, and both the FDA and food safety researchers warn that home heat treatments come with real limitations.
Why Raw Flour Carries Bacteria
Most flour sold in stores has never been treated to kill pathogens. Grain can pick up E. coli and Salmonella while still growing in the field, and processing steps like grinding and bleaching do nothing to eliminate them. The CDC has investigated outbreaks linked to raw flour or cake mix in 2016, 2019, 2021, and 2023.
In one notable 2023 case, the FDA traced a multistate Salmonella outbreak to Gold Medal flour, leading General Mills to recall millions of bags. Fourteen people fell ill across 13 states, and three were hospitalized. The strain found in a retained flour sample matched the one making people sick. These bacteria aren’t rare contamination events; they’re a known, recurring risk in an everyday pantry staple.
What makes flour particularly tricky is that bacteria survive in it for a long time. A study published in Applied and Environmental Microbiology found that dangerous strains of E. coli remained alive in wheat flour for at least nine months at room temperature. Flour’s low moisture doesn’t kill bacteria. It just puts them in a dormant state until they encounter warmth and water, like in your gut.
The Oven Method and Its Limits
The most popular home approach is spreading flour on a baking sheet and heating it in the oven. Recipes typically call for baking at 350°F for about 5 to 10 minutes, with the goal of getting the flour’s internal temperature to 165°F. An instant-read thermometer inserted into the center of the flour layer is essential for checking this, since oven air temperature and flour temperature are very different things.
The problem is that flour is a poor conductor of heat. Even spread thinly on a sheet pan, the flour closest to the surface heats much faster than flour in the middle or bottom of the layer. A food scientist at Purdue University has warned that the type of container, how the flour is mounded, and other factors all affect heat transfer and can leave some bacteria alive. The FDA puts it more bluntly: “DO NOT try to heat treat flour in your own home. Home treatments of flour may not effectively kill all bacteria and do not make it safe to eat raw.”
If you choose to do it anyway, spreading the flour as thinly as possible (no more than a quarter inch), stirring it partway through, and verifying the temperature in multiple spots with a thermometer will improve your odds. But understand that this is a risk-reduction step, not a guarantee.
The Microwave Method
Microwaving flour is faster but even less consistent. Microwaves heat food unevenly, creating hot and cold spots. You’d need to microwave the flour in short intervals of about 15 to 30 seconds, stirring thoroughly between each round, and check the temperature in several places. The same FDA warning applies here: home microwave treatments haven’t been validated as safe. The uneven heating actually makes cold pockets more likely than in an oven, which means surviving bacteria are a real possibility.
Why 165°F Isn’t a Magic Number
The 165°F target comes from general food safety guidelines for killing pathogens instantly. But in flour, the relationship between temperature, time, and bacterial death is more complicated than in moist foods like meat. Flour’s extremely low moisture actually protects bacteria from heat. Research has shown that bacteria on wheat flour are most heat-resistant at water activity levels between 0.30 and 0.50, which is right in flour’s natural range.
Lab data reinforces how stubborn these organisms are. When researchers heated flour to 158°F (70°C) for a full 60 minutes, they achieved roughly a 10,000-fold reduction in E. coli counts. That sounds impressive, but it’s not complete elimination, and it required holding that temperature steadily for an hour. At lower temperatures the reduction dropped sharply: 60 minutes at 140°F (60°C) only cut bacterial counts by about 200-fold. Quick passes through a hot oven simply don’t replicate these conditions.
What Heat Does to Flour’s Baking Properties
Heat treatment changes flour in ways that matter if you plan to bake with it afterward. The proteins that form gluten begin to denature, clumping together into tight aggregates that don’t hydrate or stretch the same way when you add water. This means heat-treated flour produces dough that’s firmer, less stretchy, and less elastic. For cookie dough you plan to eat raw, that texture shift is mostly irrelevant. But if you’re hoping to heat-treat flour and then use it in bread, cake, or pasta, expect a denser, less cohesive result. The higher the treatment temperature, the more pronounced these changes become.
Commercially Treated Flour
Some companies sell flour that has been heat-treated at scale using industrial equipment designed to reach and hold precise temperatures throughout the product. These commercial processes are far more consistent than anything achievable in a home kitchen, because industrial equipment controls temperature, airflow, and exposure time simultaneously across the entire batch. If you’re making edible cookie dough or other no-bake recipes and want the safest option, look for flour specifically labeled as heat-treated or “safe to eat raw.” Several brands now market flour this way, often in the baking aisle near specialty flours.
Practical Tips for Reducing Risk
- Use the flour in baked goods. Normal baking (cookies, cakes, bread) reaches internal temperatures well above 165°F and holds them long enough to kill bacteria reliably. This remains the simplest and safest approach.
- Buy commercially heat-treated flour for any recipe where the flour won’t be fully cooked, like edible cookie dough, cake batter truffles, or homemade playdough for young children.
- If you heat-treat at home, spread flour thin, stir it, and check the temperature in multiple spots. Recognize you’re reducing risk, not eliminating it.
- Don’t taste raw dough or batter. This is the most common exposure route in real outbreaks. Even a small lick of cake batter combines two high-risk raw ingredients: flour and eggs.
- Store flour in a sealed container. While this won’t kill existing bacteria, it prevents additional contamination from pests or moisture that could allow dormant bacteria to multiply.

