Yes: soybeans must be fully cooked before the soy milk is drunk, and the usual home method is to soak the dry beans first, grind them with water, then boil the raw slurry thoroughly; alternatively, the soaked beans can be boiled or steamed before grinding. The step that matters for safety is not the order of grinding and heating but that the finished milk has been brought to a full, sustained boil, because raw soybeans contain heat-labile compounds that cause digestive distress and interfere with protein digestion.

What “Cooked First” Can Mean

The question hides a real ambiguity. “Cook first” may describe three different procedures, and they are not equivalent:

1: Soak, grind raw beans with water, then boil the slurry. This is the classic Chinese household method for doujiang and the one most recipes describe. Nothing is “cooked first” in the literal sense, but the milk is cooked before drinking. 2: Soak, then boil or steam the whole beans, then grind them with hot water. This is a legitimate order and is common in some traditional and modern recipes. It shortens the final boiling stage and can make the drink taste rounder and less “beany,” but it is not required. 3: Soak, boil the beans, grind, and then heat the resulting milk again. Also legitimate, and the safest habit if you are unsure whether the beans were fully cooked.

All three can produce good soy milk. What cannot be skipped is thorough heating of the raw soybean material at some point before consumption.

Why Raw Soybeans Are a Problem

Raw soybeans contain a trypsin inhibitor and other heat-labile antinutrients, along with compounds associated with gas and bloating. The trypsin inhibitor interferes with the digestive enzyme trypsin and reduces protein digestibility; it is inactivated by adequate moist heat. Raw or undercooked soy milk has a long recorded association with nausea, cramping, bloating, and diarrhea, and public-health and food-safety guidance treats unpasteurized, inadequately heated soy milk as a risk.

The practical consequence is that “cooking” here means more than warming. Bringing soy milk just to the point where it foams and looks ready is a classic mistake, because raw soy milk foams copiously and can appear to boil at a temperature well below a true boil. The foam can rise and spill, the heat source may be turned down, and the liquid underneath may still be undercooked. The reliable approach is to let the milk come to a rolling boil, then keep it at a full boil for several minutes, stirring and watching to control the foam. Home recipes typically call for roughly five to fifteen minutes of boiling after the foam subsides; longer boiling is not harmful in itself, though it darkens flavor and can scorch.

This is why “cooked first” is not a strict requirement but “cooked thoroughly” is. If you boil whole beans before grinding, you have removed most of the heat-labile risk, and the later heating step becomes a matter of flavor and texture rather than safety. If you grind raw, the boil is the safety step and must be generous.

Why Soaking Comes Before Either Route

Dry soybeans are hard and take a long time to soften. Soaking in plenty of cool water—typically eight to twelve hours, or overnight, with a change of water if convenient—hydrates the beans, shortens grinding and cooking time, and gives a smoother milk. Some cooks add a pinch of baking soda to the soak water to soften skins and speed cooking; this is optional and affects flavor and color. Rinsing after soaking removes some of the compounds associated with beany flavor and gas.

Soybeans expand substantially, so use a bowl with room; roughly one part dry beans to three or four parts water by volume is a common soaking ratio. In hot weather, soak in the refrigerator to avoid fermentation.

Grinding and the Water Ratio

For a home batch, a common starting point is one cup of dry soybeans (about 170–200 grams), soaked, blended with three to four cups of hot or cold water, then strained and diluted to taste. The exact ratio controls richness: less water gives a creamier, more concentrated milk suitable for cooking or for diluting; more water gives a thinner drink. Many recipes blend in two stages, straining the pulp (okara) and re-blending it with fresh water to extract more solids.

A blender will never fully liquefy the fiber, so straining through a fine mesh, a nut-milk bag, or a clean cloth is standard. Squeeze the pulp well; the residual okara is edible and is used in many East Asian dishes, though it is bland on its own.

The Boil, Step by Step

Raw soy slurry scorches easily because it contains starch and protein. Use a heavy-bottomed pot, keep the heat moderate, and stir frequently, scraping the bottom. Bring it slowly to a boil while watching the foam; a large pot with headroom prevents boil-over. Once the foam collapses and the liquid is at a true rolling boil, hold it there for at least five minutes—many recipes specify ten to fifteen—stirring and lowering the heat only enough to prevent scorching while maintaining the boil. A thermometer is not necessary, but a full boil is.

After boiling, add sweetener or flavoring. Sugar added before boiling can scorch; salt or a little oil can help control foam. Vanilla, a pinch of salt, or a blend of soy milk with a milder milk are common ways to round out the flavor. The cooked milk keeps several days refrigerated and separates on standing, so shake before use.

The “Boil Whole Beans First” Route

If you prefer to cook the beans before grinding, simmer the soaked, drained beans in fresh water until very tender—often twenty to forty minutes, depending on the beans and the pot—then drain and blend with hot water. Some cooks simmer with a piece of kombu or a bay leaf for flavor; this is a culinary choice, not a safety requirement. Boiling whole beans first reduces the foaming problem dramatically, because much of the soluble protein that foams has already been cooked and partly poured off with the cooking water. The resulting milk can be simmered briefly after grinding, or used directly if the beans were thoroughly cooked and the equipment is clean, though a short final heat is still a sensible habit.

A pressure cooker shortens this substantially: soaked beans cook in roughly ten to fifteen minutes under pressure. The same principle applies—cook until a bean mashes easily between your fingers.

What You Should Not Do

Do not drink soy milk made from raw, unboiled slurry, and do not judge doneness by the first foam. Do not assume a blender’s “soup” or “hot” function has cooked the milk; blending heats unevenly and does not guarantee a sustained boil. Do not rely on pasteurization claims for homemade milk. And do not use the soaking water as the milk base if you want a cleaner flavor, though it is not itself dangerous once boiled.

There is a separate, unrelated caution about soy flour and raw soybean powder used in some recipes: those are made from heat-treated soybeans, and raw soy flour is not a safe substitute. If a recipe calls for soy flour, use a product labeled as heat-treated or toasted, or cook it according to its package directions.

Flavor, Texture, and Regional Practice

The order of operations changes flavor more than safety. Grinding raw beans and boiling the slurry gives a fresh, distinctly “beany” profile with a slightly cooked-green note; many Chinese and Taiwanese households prefer this and adjust with sugar, salt, or a blend of milks. Boiling or steaming the beans first gives a rounder, nuttier, less grassy milk, closer to some commercial styles. Neither is more authentic; they are different techniques with different results.

Commercial soy milk is typically made from cooked or heat-treated soy material and is pasteurized or ultra-high-temperature processed, so it does not carry the raw-slurry risk. That does not mean homemade milk is inferior—it means the home cook must supply the heat treatment.

Common Confusions

“It foamed, so it boiled.” Foam is not a boil. The foam can appear at a lower temperature and can hide an undercooked liquid. Wait for the foam to subside and the liquid to roll. “I boiled the beans, so the milk is safe.” If the beans were fully cooked through, yes; if they were only blanched, no. Tenderness is the test. “Cooking first is required by tradition.” Some traditions cook first, some grind raw and boil the slurry. Both are traditional; the shared requirement is full cooking somewhere. “The blender’s hot setting cooks it.” It heats, but not reliably to a sustained boil. Treat it as a convenience, not a safety step.

A Workable Home Method

Soak one cup of dry soybeans overnight in cool water, refrigerated in warm weather. Drain and rinse. Blend with three to four cups of water until as smooth as your blender allows, working in batches if needed. Strain through a fine mesh or nut-milk bag, squeezing the pulp, and rinse the pulp with a little more water to extract more solids. Pour the raw milk into a large heavy pot, bring it slowly to a boil while stirring, let the foam rise and subside, then boil at a rolling pace for at least five to ten minutes, stirring and watching the bottom. Sweeten or salt to taste off the heat. Cool, refrigerate, and shake before serving. If you prefer the cooked-bean route, simmer the soaked beans until tender, drain, blend with hot water, strain, and give the milk a brief final simmer.

Either way, the answer to the question is the same: cook the soybeans—or the milk made from them—thoroughly before drinking. The “first” is a matter of style; the cooking is a matter of necessity.