Cubes of butter stacked on a stone board beside a small dish of melted butter
Baking School · Lesson 3

Fats and Oils

What fat really does in a bake, which one to reach for, and how to swap butter and oil without wrecking the recipe.

Jump to the charts ↓
The short answer
  • Fat is structure, not only flavor. It coats the flour so the crumb stays tender, and it slows staling.
  • The melting point controls spread. A fat that melts early gives a flat, wide cookie. One that melts late gives a tall one.
  • Butter is not all fat. Oil is. To swap oil in for butter, use 80% of the weight and add the rest back as liquid.
  • Every kind of bake has a fat range. Bread 0 to 5% of the flour. Muffins 25 to 40%. Cookies 40 to 60%.
  • When you add it matters. Hydrate the flour first and add the oil after, unless you want it short and crumbly.

Most bakers treat fat as a flavor choice. Butter or oil, whatever's in the kitchen. But fat is doing structural work. It decides how tender your crumb is, how far your cookie spreads, and whether the bake is still worth eating on day two.

At my bakery, the fat in every formula is weighed against the flour, and I can tell you what happens when it's off by a little. This lesson shows you the numbers. Start with the swap calculator, because swapping butter and oil one for one is the mistake I see most.

What do you bake?

Fat works the same way for everyone. Which fats you have to choose from changes. Pick yours.

For any baker: butter, oil and shortening are all in the charts, with what each one does to spread, height and crumb.
If you bake vegan: vegan butter is not dairy butter. It carries more water, softens in about half the time and spreads faster in the oven. Buy the block or the stick, never the tub. And don't cut the fat back. Fat is flavor.
If you bake gluten-free: you usually want a little more fat than the wheat version of the same bake. Rice and sorghum flours feel sandy on the tongue, and fat smooths that out. Hydrate the flour before the oil goes in.
If you bake vegan and gluten-free: that's my bakery. We use hi-oleic sunflower oil and coconut oil in nearly everything, and vegan butter where a bake needs to be creamed. Flour and liquid first, then the oil.
Try it

Swap butter and oil

160 goil to use instead
35 gextra liquid to add

Butter is part water. Oil is all fat. Use less oil and put the water back with milk, plant milk or water.

What fat does in a bake

Fat doesn't mix with water. Wherever it coats a bit of flour, water can't get in as easily. Both of fat's big jobs come from that.

  • It keeps the crumb tender. Fat coats the flour and starch so they can't bond too tightly. A tight network is a tough, rubbery bake. Less bonding means more tenderness. That's where the word shortening comes from. It shortens the bonds.
  • It slows staling. Stale doesn't mean dried out. It means the starch is tightening up and pushing its water out. Fat sits between the starch and slows that down.
  • It carries flavor and makes a bake taste rich.
  • Solid fat holds air. When you cream butter with sugar you beat in tiny air cells, and those grow in the oven. Oil can't do that. So choosing a fat is also choosing some of your rise.

Gluten-free bakes lean on fat harder. With no gluten to hold water, they firm up in a day where a wheat bake takes three. Fat is one of the few tools you have against it.

Every baking fat on one chart

The number that matters most is where a fat melts. Until that temperature it holds its shape. After it, everything softens and moves. The lower the number, the more a bake spreads before the crumb sets.

FatHow much is fatMelts atWhat it doesBest in
Liquid oils100%Already liquidThe most spread, no air, the softest and moistest crumb. Stays soft when cold.Muffins, quick breads, oil cakes
Coconut oil100%76°F / 24°CMelts on a warm counter, so it spreads early. Sets firm again when it cools.Bars, crusts, cookies you want crisp
ButterAbout 80%90–95°F / 32–35°CFlavor. Creams well and browns. The rest is water and milk solids.Cookies, cakes, pastry
Cocoa butter100%93°F / 34°CHolds firm right up until it melts, then goes all at once.Chocolate work
Vegan butter, block or stick70–80%95–105°F / 35–40°CModerate spread, good height. Creams like butter but softens faster.Cookies, cakes, frosting
Shortening and palm100%110–120°F / 43–49°CThe least spread and the most height. No flavor of its own.Pie crust, tall cookies, frosting

Swap coconut oil for vegan butter in a cookie at the same weight and you get a different cookie, even if nothing else changes. Wider, flatter, crisper at the edge.

Vegan butter varies a lot by brand. Blocks and sticks sit near the top of that fat range. Tubs sit at the bottom and carry even more water, so never bake with the tub.

How much fat each bake needs

These are baker's percentages. Your flour and starch together are 100%, and the fat is measured against that. If your flour weighs 1,000 g and you're making muffins at 30%, that's 300 g of fat.

BakeFat, as a share of the flourFor 300 g of flour
Lean bread, sourdough0–5%0 to 15 g
Enriched dough, brioche, donuts8–15%24 to 45 g
Pancakes, waffles10–20%30 to 60 g
Muffins, quick breads25–40%75 to 120 g
Layer cakes35–50%105 to 150 g
Scones, biscuits40–50%120 to 150 g
Cookies40–60%120 to 180 g
Brownies50–70%150 to 210 g
Shortbread, pie crust50–70%150 to 210 g

Read it top to bottom and you're reading from structure to tenderness. Bread needs its starch to set firm and hold gas, so it gets very little fat. Shortbread is meant to snap and crumble, so it gets a lot.

Too little fat and a bake is sandy and stale fast. Too much and it's greasy, flat and dense. Gluten-free formulas usually sit at the higher end of each range.

The recipe builder Where does your fat land? This is the tool I built to run my bakery. Type in a recipe and it shows the fat as a percentage of your flour, right next to the range for that kind of bake. Try it free →

How to swap butter and oil

Butter is about 80% fat. The rest is mostly water. Oil is 100% fat. Swap them one for one and you've added fat and taken out liquid in the same move. The result is greasy and dry in the same bite.

  • Oil in place of butter: use about 80% of the weight, and add the difference back as liquid. Replacing 200 g of butter? Use 160 g of oil and about 35 g of milk, plant milk or water.
  • Butter in place of oil: go the other way. Replacing 160 g of oil? Use 200 g of butter and take about 35 g of liquid out.
  • Coconut oil counts as oil. It's all fat, so the same 80% rule applies. Have your other ingredients at room temperature or it sets into lumps.
  • If the recipe creams the butter, oil can't hold that air. The bake will be softer and a little denser.
  • Oil is a fat, not a liquid. Count it as liquid and the recipe looks wet on paper and bakes dry in the pan.

Which oil to reach for

For baking you want an oil that's neutral and stable. These are the two I use in nearly every recipe, and when I'd use the others.

OilFlavorUse it for
Hi-oleic sunflower oilNeutralMy everyday baking oil. It holds up to heat and keeps bakes fresh longer. Hi-oleic safflower works the same way.
Coconut oilMild coconut if unrefined, none if refinedBaking, and anywhere you want a fat that sets firm.
Avocado oilNeutralBaking, roasting and frying. It takes high heat.
Extra-virgin olive oilStrong and fruityOlive oil cake, focaccia and savory bakes. It can take over a sweet one.
Canola and other neutral oilsNeutralThey work the same way in a recipe.
Flax, walnut and hemp oilNuttyNot for baking. Heat breaks them down. Use them raw.

My own preference is to skip soybean, corn, cottonseed and grapeseed oil and anything sold as a vegetable oil blend. I go into why in choosing the right oils.

Cold, soft or melted

The same fat gives three different bakes depending on its temperature when it goes in.

The fat isWhat happensUse it for
Cold and solidIt stays in pieces. Those melt in the oven and leave flaky layers.Pie crust, biscuits, scones
Soft, room temperatureIt creams with sugar and traps air.Cakes, cookies, frosting
Melted, or oilIt coats everything evenly. No air, so the crumb is dense and moist.Brownies, muffins, chewy cookies

Vegan butter reaches room temperature in about half the time dairy butter does. Don't leave it out too long before you cream it. More in the creaming method.

When to add it

You choose which of fat's jobs wins by when you add it.

  • For structure and shelf life, hydrate first and add fat after. Mix the flour, binder and liquid. Let it rest. Then stream in the oil. Gluten-free flours take up water slowly, and psyllium needs free water to gel. Oil that goes in with the flour coats it before it can drink.
  • For short and crumbly, fat goes first. Pie crust, shortbread, scones and biscuits. You cut the fat into the dry flour to block the water on purpose.
  • For creamed cakes and cookies, fat and sugar get creamed first and the flour goes in last. You're trading some hydration for lift.

What fat doesn't do

Fat does not hold water. It repels it. Your starch and your binder hold water. Fat only slows the loss. So if a bake comes out dry, more fat is the wrong first move. Check the liquid and the binder first. A dry dough with extra oil is greasy and dry at once, which is the worst of both.

More in what fat does.

What to buy, and what to spend

$6 to $12 a bottleHi-oleic sunflower oil

The label has to say high oleic or hi-oleic. Regular sunflower oil is a different oil. It's neutral, so it works in everything from muffins to brownies.

Start here
$5 to $8Butter or vegan butter, in a block or stick

For vegan butter, check the label and pick the one with the most fat. Skip anything in a tub. It's made to spread, not to bake.

$6 to $10 a jarRefined coconut oil

Refined has no coconut taste. Unrefined, or virgin, tastes like coconut. Buy the one that fits what you bake.

You don't need all three. One neutral oil and one solid fat cover almost every recipe. Not sure which fat a recipe wants? Ask me below.

What went wrong? Tap your problem

Fat explains a lot of texture problems, but not all of them. For each one, here's the fat answer and what else to check.

Greasy

If it's the fat

Too much fat for the flour. Or oil was swapped for butter one for one, so there's more fat and less water.

The fix: Check the fat against the range for that bake. When you swap oil for butter, use 80% and add liquid.

It might not be the fat
  • The fat was too warm, so it leaked out before the bake set.
  • It was underbaked.
  • Almond flour or nut butter added fat you did not count.

Dry and sandy

If it's the fat

Too little fat. Nothing is coating the flour, so it reads as grit and stales fast.

The fix: Bring the fat up toward the middle of its range, 10% at a time.

It might not be the fat
  • Not enough liquid. Check this first.
  • Not enough binder.
  • Coarse rice flour, or a batter that did not rest.

Cookies spread flat

If it's the fat

The fat melted before the dough could set. Coconut oil, warm butter, or dough that went in warm.

The fix: Use a fat that melts later, chill the dough, and bake it from cold or frozen.

It might not be the fat
  • Too much white sugar.
  • Too little flour, from measuring by the cup.
  • An oven that is too cool.

Cookies won't spread

If it's the fat

The fat melts too late or there isn't enough of it. Shortening and cold dough both hold a cookie up.

The fix: Swap part of the shortening for butter or oil, or press the dough balls down a little before baking.

It might not be the fat
  • Too much flour.
  • Too much powdered sugar.
  • An oven that is too hot, so the outside sets first.

Tough or rubbery

If it's the fat

Not enough fat to keep the flour from bonding tightly.

The fix: Bring the fat up, or cut it into the flour first for scones and crusts.

It might not be the fat
  • A wheat dough that was worked too long.
  • Too much binder.
  • It was overbaked.

Stale by day two

If it's the fat

Too little fat to slow the starch down. Or the oil went in before the flour had its water.

The fix: Check the fat range, and hydrate the flour before you add the oil.

It might not be the fat
  • Not enough sugar.
  • It was stored in the fridge.
  • It was overbaked.

Tastes off, like paint

If it's the fat

The oil or butter has gone rancid.

The fix: Smell your fat before it goes in. Keep oil cool, dark and capped, and wrap butter tight.

It might not be the fat
  • A nut flour or whole-grain flour that turned.
  • Butter that soaked up a fridge smell.
The recipe builder Swapping the fat in a recipe? Change it, save it as a new version, and compare the two side by side. It's how we test at the bakery. Try it free →

Quick questions

Can I substitute oil for butter in baking?

Yes. Use about 80% of the butter weight in oil and add the difference back as liquid. For 200 g of butter, that is 160 g of oil and about 35 g of milk, plant milk or water.

Is butter or oil better for cake?

Oil gives a softer, moister cake that stays soft longer. Butter gives more flavor and, when it is creamed, more lift. Many cakes use some of each.

What is the best oil for baking?

A neutral oil that holds up to heat. I use hi-oleic sunflower oil. Avocado, canola and refined coconut oil also work.

Can I use coconut oil instead of butter?

Yes, but treat it as an oil. It is all fat, so use about 80% of the butter weight and add liquid. Expect more spread, because coconut oil melts at 76°F.

Why did my cookies spread so much?

The fat melted before the dough set. Chill the dough, bake it from cold or frozen, and use a fat that melts later, like butter or shortening in place of coconut oil.

Is vegan butter the same as butter in baking?

Close, but not the same. It usually carries more water, softens faster and spreads faster in the oven. Buy a block or stick with the most fat you can find, never a tub.

Does oil count as a liquid in a recipe?

No. Oil is a fat. It does not hydrate flour. Count it with the fat, not with the milk or water.

Check yourself

Ten quick ones before you go

Get 7 right and the lesson is done.

What are fat's two big jobs in a bake?

It coats the flour for tenderness, and it slows the starch from going stale.

What decides how far a cookie spreads?

The melting point. A fat that melts early spreads more.

Which fat gives the tallest cookie with the least spread?

Shortening melts last, so the cookie sets before it can spread.

About how much of butter is fat?

About 80%. The rest is mostly water.

You are replacing 200 g of butter with oil. How much oil?

80% of the weight in oil, and the rest goes back in as liquid.

How much fat does a muffin want?

25 to 40%. Bread is 0 to 5%. Cookies are 40 to 60%.

Can oil be creamed with sugar to trap air?

No. Only a solid fat holds air.

In a gluten-free muffin batter, when does the oil go in?

Hydrate first, fat after. Oil added early coats the flour before it can drink.

Your bake came out dry. What do you check first?

Fat does not hold water. Check the liquid and the binder before you add fat.

Which vegan butter do you bake with?

The block or stick. Tubs carry more water.
Questions and answers

Ask me about fats and oils

Not sure which fat to use, or how to swap one? Ask here. I read every question, and your answer helps the next baker too.

    Ask a question

    ← Back to Baking School