Whole milk is interchangeable 1:1 with 2% milk; skim gives thinner sauces. For dairy-free, unsweetened oat or soy milk are the closest 1:1 swaps in sauces and baking (soy has the most protein, so it thickens and browns best); almond milk is thinner. Oat milk is gluten-free only when labeled so. Half-and-half mixed with an equal amount of water stands in for whole milk. For a béchamel without dairy, use oat milk with a neutral oil or plant butter roux.
Heavy cream is about 36% fat, which is why it does not curdle when boiled. In a sauce or soup, use full-fat coconut milk 1:1 (adds coconut flavor), or 3/4 cup whole milk plus 1/4 cup melted butter per cup. Half-and-half works but may break if boiled hard; add it off the heat. Nothing but cream (or chilled coconut cream) whips.
For each cup of buttermilk, stir 1 tablespoon lemon juice or white vinegar into a scant cup of milk and let it stand 5 minutes, or thin 3/4 cup plain yogurt with 1/4 cup milk. The acid is what reacts with baking soda, so keep it acidic.
Sour cream, full-fat Greek yogurt and crème fraîche swap 1:1 in dips, dressings and baking. Crème fraîche can be boiled; yogurt and sour cream curdle when boiled, so stir them in off the heat. Thin Greek yogurt with a little milk to replace regular yogurt. Dairy-free: unsweetened coconut or soy yogurt, 1:1.
Swap within a family: hard grating cheeses (Parmesan, Pecorino Romano, Grana Padano; Pecorino is saltier, so cut added salt), good melters (Cheddar, Gruyère, fontina, Monterey Jack, mozzarella), and soft fresh cheeses (ricotta, cottage cheese, fresh goat cheese). Pre-shredded cheese has anti-caking starch and melts less smoothly. For dairy-free, nutritional yeast gives a savory, cheesy note but does not melt.