Is it okay to eat a little undercooked pasta? Pasta that is a little firm in the center is often a matter of taste. The clearer food safety advice is about raw flour, not about pasta that has been boiled. So the simple answer is to cook pasta through, and never eat raw dry pasta or raw dough.
Why pasta is made from raw flour
Pasta is made from wheat flour or semolina and water, sometimes with eggs. Flour is a raw ingredient, and it is meant to be cooked before anyone eats it. Food safety guidance lists boiling among the cooking methods that kill bacteria that may be present in raw flour. That is why cooking pasta fully matters.
What the risk is
Raw flour has been linked to E. coli outbreaks, including ones in the United States and Canada in 2015 to 2017. The risk comes mainly from foods that contain raw flour and are not fully cooked, such as raw dough and batter. Symptoms, such as stomach cramps and diarrhea, can start one to ten days after exposure.
Who should take extra care
UK food safety advice says children under 5, older adults and people with weakened immune systems should not taste or eat raw dough or batter. If you cook for anyone in those groups, cook the pasta through rather than serving it firm in the middle.
What counts as raw
Dry pasta is flour and water pressed into shape, and it is not meant to be eaten uncooked, so don’t snack on it. Homemade pasta follows the same rule. If you make it at home with basic fresh pasta dough, the scraps are raw dough too, so cook them rather than tasting them.
Firm pasta on the plate
Fully cooked pasta is likely low risk. Food safety advice focuses on raw dough, and it does not settle how safe partly cooked pasta is, so when you are unsure, cook it a little longer. For timing, see the question “How long does pasta take until al dente?”
If you feel unwell
If you feel sick after eating raw dough or uncooked pasta, especially with stomach cramps, diarrhea or bloody diarrhea, contact a doctor or another health care provider.
The practical answer
Cook the pasta until it is tender all the way through, with at most a little bite. Taste a piece before you drain it. If you like it firmer, that is a texture choice, but make sure the center is hot and fully cooked.