Baking With Coconut Oil Instead of Butter: Ratios and What Changes
How to bake with coconut oil instead of butter: why butter's 16–17.5% water matters, 1:1 vs ¾ swaps by bake, solid vs melted, and refined vs unrefined.
Coconut oil can replace butter cup for cup in most bakes, but it is almost pure fat while butter is roughly 80% fat and 16–17.5% water. For the closest match, use ¾ of the butter's weight in coconut oil plus ¼ in water or plant milk; use it melted where a recipe calls for melted butter, and soft-solid (around 20–24°C) where butter is creamed or cut in. Refined coconut oil tastes neutral; unrefined (virgin) tastes clearly of coconut.
Swapping butter for coconut oil is one of the easiest ways to make a bake dairy-free, and it usually works. When it doesn’t, the cookies spread or dome, the crumb is greasy or dry, or the pastry cracks. Almost every one of those problems comes back to two facts: what butter actually is, and coconut oil’s low melting point.
For quick numbers on any swap, use the Baking Swap Converter. For more dairy-free and refined-sugar-free basics, browse Healthy Baking.
Why butter’s water matters
Butter is an emulsion of fat and water, not pure fat. The University of Wisconsin’s Center for Dairy Research gives the typical composition of butter as 80–82% fat, 16–17.5% water, 1.5% salt and 1% milk solids. Coconut oil is essentially all fat: about 99 g of fat per 100 g, with no water.
In the oven, butter’s water turns to steam, which helps lift cakes and separate pastry layers, and it adds a little moisture to the dough. Swap butter for the same weight of coconut oil and you add about a fifth more fat and remove all that water. That is why straight 1:1 swaps sometimes give a slightly greasier, more tender, more crumbly result.
Here is the arithmetic for a common amount. King Arthur Baking’s ingredient weight chart lists both ½ cup of butter and ½ cup of coconut oil at 113 g. Using the Center for Dairy Research figures:
| In 113 g (½ cup) | Fat | Water |
|---|---|---|
| Butter | about 90–93 g | about 18–20 g |
| Coconut oil, 1:1 (113 g) | about 112 g | 0 g |
| Coconut oil ¾ swap (85 g) + 28 g water or plant milk | about 84 g | about 28 g |
Neither swap is exact, but the ¾ version is closer on both fat and liquid. Tasting Table recommends exactly this approach: because butter is 16 to 17% water, mix ¾ of the amount of coconut oil with the other ¼ of water or plant-based milk first. Many other sources, including The Kitchn, simply say to swap in an equal amount of coconut oil. Both work; which you choose depends on the bake.
Ratios by bake
| Bake | Butter in the recipe | Coconut oil swap | State of the oil | What changes |
|---|---|---|---|---|
| Brownies, blondies, banana bread, muffins | Melted | 1:1 by weight or volume | Melted, then cooled to just warm | Very little; you lose butter’s dairy flavour |
| Drop cookies (creamed) | Softened, creamed with sugar | 1:1, or ¾ + ¼ plant milk if they spread or turn greasy | Soft-solid, like soft butter | Cakier, more domed, less browning |
| Butter cakes (creamed) | Softened, creamed | ¾ + ¼ plant milk is the closer match | Soft-solid | Slightly less lift; tender crumb |
| Pie crust and rough pastry | Cold, cut in | 1:1 | Solid and cool, but not fridge-hard | Mealier, less flaky; dough firms fast when chilled |
| Recipes that already use liquid oil | — | 1:1 for the oil | Melted | Little change; the easiest swap of all |
To convert your own amounts in grams, cups or tablespoons, use the Baking Swap Converter.
Solid or melted: get the temperature right
Coconut oil changes state close to room temperature. Wikipedia notes that virgin and refined coconut oils melt at 24°C (75°F); The Kitchn gives 76°F. Below that it is solid, above it liquid, so the same jar can behave differently in a cool January kitchen and a warm July one.
- Where the recipe says melted butter, melt the coconut oil and let it cool slightly. America’s Test Kitchen found melted refined coconut oil performed just as well as melted butter in chocolate chip cookies, though they missed butter’s dairy flavour.
- Where the recipe says softened or creamed butter, use the oil when it is soft but solid, like butter at room temperature. The Kitchn advises using solid, room-temperature coconut oil for butter swaps. Fridge-cold coconut oil won’t cream: King Arthur Baking found that since coconut oil is rock hard when chilled, it’s impossible to cream it with sugar.
- Bring other ingredients to room temperature. Liquid coconut oil firms up in lumps when it meets cold milk or eggs; The Kitchn warns it has a tendency to seize up and coagulate. Take plant milk and eggs out of the fridge 30 minutes ahead, or warm the milk slightly.
What to expect in cookies and cakes
King Arthur Baking’s side-by-side gluten-free chocolate chip cookie test is a useful picture of what changes. With coconut oil in place of butter, the cookies were much cakier; and instead of spreading fairly flat, they had a large dome. The edges were less crisp and browned less, and the cookies crumbled more once cool. They needed 14 minutes against 11 for the butter version, and the testers recommend starting checks at the shortest time in the range when you substitute fats.
If you want a flatter, chewier cookie, press the dough balls down a little before baking. If your cookies come out greasy rather than domed, the ¾ oil + ¼ liquid swap is the fix to try first.
Pie crust and pastry
Flaky pastry depends on separate pieces of solid fat that melt and steam in the oven. Coconut oil melts at a much lower temperature than you’d want, so it tends to coat the flour instead, giving a mealy, short crust. Tasting Table suggests chilling the flour, bowl and tools first and keeping the oil solid as you work.
The opposite problem appears after mixing. America’s Test Kitchen found that coconut oil becomes hard and brittle when refrigerated, so the dough was too firm to roll without cracking. Their fix: rest the dough on the counter instead of in the fridge.
Refined or unrefined?
| Refined (RBD) | Unrefined (virgin) | |
|---|---|---|
| Made from | Usually dried coconut (copra), refined, bleached and deodorised | Fresh coconut meat, minimally processed |
| Flavour | No coconut taste or aroma | Distinct coconut flavour and smell |
| Best for | Swaps where you want the bake to taste like the original | Chocolate, banana, tropical and spiced bakes where coconut is welcome |
America’s Test Kitchen tested only refined oil for its butter swaps. Coconut oils vary in flavour, and King Arthur Baking recommends that you taste several before finding one with the flavor you like.
Quick troubleshooting
- Greasy or oily crumb: switch from a 1:1 swap to ¾ coconut oil + ¼ water or plant milk.
- Dry, crumbly cookies: add the ¼ liquid, and don’t overbake; pull them at the first sign of colour.
- Lumpy batter: your other ingredients were cold. Warm the bowl gently over hot water and stir until smooth.
- Pale bakes: coconut oil has no milk solids, so it browns less than butter. A touch more time or a brush of plant milk on top helps.
- Pastry cracks when rolled: let it warm on the counter for 10–15 minutes instead of chilling it longer.
Questions people ask
Can I replace butter with coconut oil 1:1?
Yes, in most bakes. For the closest match to butter's mix of fat and water, use ¾ of the amount in coconut oil and make up the last ¼ with water or plant milk.
Should I use melted or solid coconut oil?
Match the butter in the recipe: melted for melted butter, soft-solid (around room temperature, below about 24°C) for creamed butter, and solid but not rock-hard for pastry.
Will my bake taste of coconut?
Not if you use refined coconut oil, which has no coconut taste or aroma. Unrefined or virgin oil does taste of coconut.
Is coconut oil a healthier swap than butter?
This guide is about how the swap behaves in baking, not about health. Both are high in saturated fat; for diet questions, ask a doctor or registered dietitian.