Say you want to make the corn tortillas you remember from a market lunch. The shelf offers white cornmeal, yellow cornmeal and something called masa harina. Buying by colour won’t settle it. The question is what happened to the corn before it went into the bag.

For a thin tortilla: masa harina

Fresh masa is dough. Masa harina is the flour you buy to make that dough with water. Its corn has undergone nixtamalization: treatment with an alkaline solution, traditionally water and slaked lime. The lime here is mineral, not citrus. “Finely ground” on another bag tells you the size of the particles; it doesn’t tell you the corn has had that treatment.

For Pati Jinich’s corn tortillas, the dough has to press thinly enough to lift from its liner and go onto a hot pan in one piece. Jinich specifies masa harina for that job. If the shop has only ordinary cornmeal, save the tortillas for another day. Grinding the meal finer won’t turn it into masa harina.

For hand-shaped arepas: look for pre-cooked cornmeal

If your Colombian or Venezuelan arepa recipe calls for masarepa, look for those words or harina de maíz precocida. Goya’s masarepa comes in both white and yellow. Two bags of different colours can therefore be closer substitutes for this particular recipe than two white bags from different shelves.

What you do with the meal is a useful second clue. In Goya’s cheese arepas, the hydrated mixture rests before it’s shaped with wet hands and browned on a griddle. Buy the pre-cooked meal if you want to make the dough yourself. A pack of already-shaped arepas, like those in our Colombian supermarket photograph, saves you a different step.

For cornbread: keep the meal the recipe asks for

Cornbread often calls for cornmeal precisely because you want some grain in the crumb. But the name of the dish alone isn’t a shopping list. In King Arthur’s triple cornbread loaf, both masa harina and cornmeal go into the batter. The first helps hold liquid; the second supplies a little crunch. A recipe that lists the two separately has already answered the substitution question.

If you’re bringing cornbread to breakfast, choose the cornmeal for the loaf before you choose a maple syrup for the table. At the shelf, a photo of the ingredient line is more useful than a photo of the finished dish: masa harina, pre-cooked cornmeal and cornmeal are three different instructions.