The Feast

Home cooking recipes for everyday dinners and easy entertaining

Unpasteurized Cheese Safety When Cooked

· 6 min read · Dinners

Yes, unpasteurized cheese is generally safe if cooked to proper internal temperatures that kill harmful bacteria such as Listeria monocytogenes, Salmonella, and E. coli. Cooking alone doesn’t neutralize all risks automatically—safety depends on reaching and maintaining a high enough temperature throughout the cheese, using safe handling practices before and after cooking, and understanding which cheeses are more likely to carry pathogens.

Background on Unpasteurized Cheese

Unpasteurized (or raw) milk cheese is made from milk that has not been heated to kill potentially harmful microorganisms. While many countries produce and consume raw milk cheeses—especially in Europe—regulatory agencies like the U.S. Food and Drug Administration (FDA) and the U.S. Department of Agriculture (USDA) caution against their consumption due to food safety risks. In the United States, raw milk cheeses must be aged for at least 60 days before sale, a rule based on the assumption that aging reduces pathogen levels. However, aging does not guarantee safety, as some bacteria can survive for months in cheese.

Cheeses made from unpasteurized milk may carry bacteria introduced during milking, processing, or aging, especially if hygiene standards are not strictly followed. Soft and semi-soft raw milk cheeses—like Brie, Camembert, and fresh goat cheese—are considered higher risk than hard aged varieties such as raw milk Cheddar or Gruyère, because their higher moisture content supports bacterial growth.

How Cooking Affects Pathogens in Cheese

Cooking can effectively destroy harmful bacteria in cheese, but only if proper temperature and time guidelines are followed. Pathogens like Listeria are killed at temperatures above 165°F (74°C). The USDA recommends that leftovers and ready-to-eat foods—especially those containing dairy—be reheated to this temperature to ensure safety.

When using unpasteurized cheese in cooking, it’s critical that the cheese reaches this internal temperature and that the heat is evenly distributed. Melting alone is not sufficient; cheese can appear fully melted at temperatures well below 165°F. For example, mozzarella melts around 130–140°F, but that does not mean it’s safe to consume if made from raw milk and underheated.

Common cooking methods like baking, grilling, or simmering can achieve safe temperatures if monitored correctly. For instance, baked dishes such as casseroles or gratins that reach an internal temperature of 165°F throughout are generally safe, even if they contain raw milk cheese.

Safety Considerations and High-Risk Groups

Certain populations are more vulnerable to foodborne illness and should exercise extra caution. The CDC advises that pregnant individuals, older adults, young children, and people with weakened immune systems avoid unpasteurized dairy products entirely—even when cooked—due to the higher risk of severe complications from Listeria and other pathogens.

For these groups, the margin for error is smaller. Even if cheese is cooked, cross-contamination during preparation (e.g., using the same knife or cutting board for raw and cooked items) can reintroduce bacteria. Additionally, if the dish cools slowly or is left at room temperature for more than two hours, surviving spores or recontaminated bacteria can multiply.

Safe handling includes:

  • Using separate utensils and surfaces for raw and cooked ingredients
  • Refrigerating cheese promptly (below 40°F)
  • Reheating leftovers to 165°F, measured with a food thermometer
  • Discarding perishable food left out over two hours (or one hour above 90°F)

How to Choose and Use Unpasteurized Cheese Safely

If you choose to use unpasteurized cheese, consider the following factors to reduce risk:

  1. Check the label: Look for “made from raw milk” or “unpasteurized milk” on packaging. In the U.S., this information is required.
  2. Prefer hard, aged cheeses: These have lower moisture and higher acidity, making them less hospitable to pathogens. Examples include Parmigiano-Reggiano (if made traditionally with raw milk), aged raw Cheddar, and Beaufort.
  3. Buy from reputable sources: Artisan producers with strong food safety practices are more likely to minimize contamination risks.
  4. Inspect appearance and smell: Discard any cheese with off odors, unusual textures, or visible mold not typical for the variety.
  5. Cook thoroughly: Use a food thermometer to verify that the dish reaches 165°F at its thickest point.

When in doubt, opt for pasteurized cheese, which has already undergone heat treatment to eliminate pathogens and poses significantly lower risk, even when eaten raw.

Common Problems and Misconceptions

One common misconception is that all fermented or aged foods are inherently safe. While aging can reduce some bacteria, it does not eliminate all pathogens—especially hardy ones like Listeria. Another myth is that European raw milk cheeses are safer due to tradition; while many are produced under strict standards, recalls do occur, and safety is not guaranteed by origin.

Another issue is assuming that melting equals sterilizing. As noted, cheese can melt at temperatures far below those needed to kill bacteria. Additionally, some dishes—like fondue or queso dip—may not reach uniform temperatures throughout, especially if stirred infrequently or served in a warm pot that doesn’t maintain 165°F.

Cross-contamination is another overlooked risk. Using the same spoon to taste a sauce before and after adding raw milk cheese can transfer bacteria. Always use clean utensils after adding any raw ingredient.

Alternatives and Comparisons

Pasteurized cheese is a direct, safer alternative to unpasteurized varieties. Most supermarket cheeses in the U.S. are pasteurized, including many high-quality artisan options. Some pasteurized cheeses closely mimic the flavor and texture of raw milk versions—for example, pasteurized Aged Gouda or Cambozola.

Compared to unpasteurized cheese, pasteurized cheese:

  • Has a significantly lower risk of carrying harmful bacteria
  • Is approved for consumption by all population groups, including pregnant individuals
  • May have slightly different flavor profiles due to heat treatment affecting enzymes and microbes
  • Is more widely available and often less expensive

For cooking, pasteurized cheese performs identically in terms of melting, browning, and flavor development. The safety benefits make it the recommended choice, especially in households with vulnerable individuals.

Frequently Asked Questions

Can you eat raw milk cheese if it's cooked in a casserole?

Yes, if the casserole reaches a safe internal temperature of 165°F throughout and is handled properly before and after cooking. Use a food thermometer to verify the temperature in multiple spots, especially where cheese is concentrated.

Does baking destroy bacteria in raw cheese?

Baking can destroy harmful bacteria, but only if the cheese reaches and holds a temperature of at least 165°F for a sufficient time. Simply melting the cheese or browning the top is not enough. Ensure even heating and use a thermometer to confirm safety.

Is cooked feta safe if it's unpasteurized?

Cooked unpasteurized feta is safer than eating it raw, but only if heated to 165°F. Feta is a brined cheese with moderate moisture, which can support bacterial growth. Always check labels and cook thoroughly if using raw milk feta.

Can pregnant women eat cooked unpasteurized cheese?

No. The CDC and FDA recommend that pregnant individuals avoid all unpasteurized dairy products, even when cooked, due to the risk of Listeria, which can cause miscarriage, stillbirth, or severe illness in newborns.

Does boiling cheese kill all bacteria?

Boiling (212°F at sea level) will kill most bacteria, including Listeria and Salmonella, but the cheese must reach that temperature throughout. However, boiling can curdle or ruin the texture. Reaching 165°F is sufficient for safety and more practical in cooking.

Is it safe to cook with imported raw milk cheese?

Imported raw milk cheese must meet U.S. entry requirements, including the 60-day aging rule. While many are safe, they still carry risk. Cooking to 165°F reduces that risk, but vulnerable individuals should avoid them altogether.

In this article
  1. Background on Unpasteurized Cheese
  2. How Cooking Affects Pathogens in Cheese
  3. Safety Considerations and High-Risk Groups
  4. How to Choose and Use Unpasteurized Cheese Safely
  5. Common Problems and Misconceptions
  6. Alternatives and Comparisons
  7. Frequently Asked Questions