Pantamo logoPantamo

A Beginner's Guide to Substituting Ingredients

Missing an ingredient? This guide explains how to swap dairy, eggs, flour, and more — without ruining the dish.

9 min readUpdated 14 August 2026

Why substitutions matter more than you think

You are halfway through a recipe and realise you are out of eggs. Or the recipe calls for buttermilk and the nearest shop is a twenty-minute drive. This moment — the moment most people abandon the recipe and order takeaway — is actually an opportunity. Learning to substitute ingredients confidently is the skill that turns you from a recipe-follower into an actual cook.

Substitutions are not about making a lesser version of the dish. They are about understanding what each ingredient does — structurally, chemically, and flavour-wise — and finding something else that does the same job. Once you understand the role, the swap is often surprisingly simple.

The golden rule: ask what the ingredient does

Before you swap anything, pause and ask: is this ingredient providing structure, moisture, fat, leavening, flavour, or binding? The answer tells you what to replace it with.

An egg in a cake, for example, is doing two things: binding the batter together and trapping air for lift. A mashed banana does the binding but not the lift. A "flax egg" (ground flaxseed mixed with water) does both reasonably well. Knowing the job means you pick the right substitute instead of guessing.

Dairy substitutions

Milk

Milk in most recipes provides liquid and a little fat. You can swap it one-for-one with:

  • Oat milk — the closest in body and behaviour to whole milk. It froths, bakes, and makes sauces without splitting.
  • Soy milk — slightly beany in flavour but high in protein, so it behaves well in custards and batters.
  • Water plus a tablespoon of butter — if you have no milk at all, this mimics the fat and liquid content.
  • Avoid coconut milk as a straight swap for dairy milk in savoury dishes unless the coconut flavour works (it will in a curry; it will not in a white sauce).

    Butter

    Butter provides fat, flavour, and sometimes structure (in pastry, cold butter creates flaky layers). Your swap depends on the context:

  • Olive oil or neutral oil — works in cakes, muffins, and sautéing. Use about 80% of the butter quantity (100g butter → 80ml oil) since butter is roughly 20% water.
  • Coconut oil — solid at room temperature like butter, so it works in pastry and biscuits. Adds a slight coconut note.
  • Margarine — a like-for-like swap in baking.
  • For finishing (melted butter over vegetables, or butter stirred into pasta), there is nothing quite like the real thing. But a drizzle of good olive oil or a spoon of tahini can fill the richness gap.

    Cream

  • Full-fat coconut milk (from a tin, not the carton) — whips, thickens, and works in curries, soups, and desserts.
  • Cashew cream — blend soaked raw cashews with water until smooth. Neutral in flavour, silky in texture.
  • Crème fraîche or Greek yoghurt — swap for double cream in sauces, but stir in off the heat to prevent curdling.
  • Cheese

    This is the hardest dairy to replicate because cheese provides fat, salt, umami, and melt. Nutritional yeast gives a cheesy, nutty flavour to sauces and popcorn. For melting, there is no perfect non-dairy swap — but a cashew-based sauce with miso and lemon juice gets remarkably close in a pasta or gratin.

    Egg substitutions

    Eggs do different jobs depending on the recipe:

    RoleBest substitute
    **Binding** (burgers, meatballs)1 tbsp ground flaxseed + 3 tbsp water, left for 5 minutes
    **Leavening** (cakes, pancakes)1 tsp baking powder + 1 tbsp vinegar
    **Moisture** (brownies, muffins)60g unsweetened apple sauce or half a mashed banana
    **Richness** (custard, quiche)60g silken tofu blended smooth

    For anything where egg is the star — a fried egg, an omelette, meringue — there is no real substitute. But for baking and binding, these swaps work reliably.

    Flour substitutions

    Gluten-free baking

    Plain wheat flour gives structure through gluten. Replacing it one-for-one with a single gluten-free flour usually does not work because each alternative behaves differently:

  • Rice flour — light and gritty. Good for shortbread and coating.
  • Oat flour — slightly sweet and dense. Works in pancakes and muffins.
  • Almond flour — moist and rich. Excellent in cakes but does not rise the same way.
  • A pre-mixed GF blend — the most reliable option for general baking because the manufacturer has balanced the starches and gums for you.
  • For thickening sauces, cornflour (cornstarch) is naturally gluten-free and works just as well as wheat flour — mix it with cold water first to avoid lumps.

    Self-raising flour

    Do not have self-raising flour? Add 1.5 teaspoons of baking powder per 150g of plain flour. Sift them together twice so the leavening is evenly distributed.

    Sugar substitutions

    Sugar provides sweetness, moisture, browning, and structure. The type of swap depends on what matters most:

  • Honey — sweeter than sugar, so use about 75% as much. Adds moisture, so reduce another liquid slightly. Works well in dressings, marinades, and some cakes.
  • Maple syrup — similar to honey in behaviour. Adds a distinctive flavour that is wonderful in baking and breakfast dishes.
  • Coconut sugar — a one-for-one swap for brown sugar. Lower glycaemic index and a caramel-like flavour.
  • Dates — blended into a paste, they replace sugar in energy balls, brownies, and smoothies.
  • For savoury cooking, a pinch of sugar balances acidity in tomato sauces. You can use the same amount of honey or a splash of balsamic vinegar instead.

    Common pantry swaps

    These are the quick fixes for the most common "I do not have that" moments:

  • Buttermilk — stir 1 tablespoon of lemon juice or white vinegar into 240ml of milk. Wait 5 minutes. Done.
  • Stock — dissolve half a stock cube or a teaspoon of miso paste in hot water.
  • Wine (in cooking) — use stock with a splash of vinegar for acidity. Not identical, but it works.
  • Fresh garlic — half a teaspoon of garlic powder replaces one clove. Add it earlier in the cooking process since it can burn quickly.
  • Fresh herbs — use one-third the quantity of dried herbs. Dried herbs need time in heat to release flavour, so add them early.
  • Tomato passata — dilute tomato paste with water (1 tablespoon paste + 3 tablespoons water ≈ 60ml passata).
  • Breadcrumbs — crush crackers, croutons, or blitz oats in a food processor.
  • Sour cream — Greek yoghurt is a near-perfect swap in dips, toppings, and baking.
  • When not to substitute

    Some ingredients are doing something so specific that no swap will work:

  • Yeast in bread — baking powder is not the same thing. You will get a quick bread, not a yeasted loaf.
  • Gelatine in set desserts — agar agar works, but the ratio and method are different. Follow a specific agar recipe rather than just swapping the quantity.
  • Chocolate in ganache — cocoa powder cannot replace real chocolate here. The cocoa butter is what gives ganache its texture.
  • When in doubt, search for a recipe that was designed around the ingredient you actually have, rather than forcing a substitution into a recipe that depends on the original.

    Building confidence

    Substitution is a skill you build by doing. Start small — swap the milk in your pancakes, replace an egg in a muffin recipe, use lime instead of lemon. Each time it works, your confidence grows. Each time it does not, you learn something useful about what that ingredient was actually doing.

    The goal is not to memorise a chart. It is to develop the instinct to ask "what job does this ingredient do?" and then look around your kitchen for something that does the same job. That is what cooking really is.

    Put this into practice

    Enter the ingredients you have and Pantamo will generate a unique recipe with step-by-step instructions and smart substitutions.

    Try Pantamo