Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Can You Use Oil Instead of Butter in a Cake?

Yes, oil can be used instead of butter in a cake, and in many recipes it works very well—often producing a moister, softer crumb that stays tender for longer. The swap is not a one-to-one, every-recipe-perfect substitute: oil is 100% fat while butter contains roughly 15–20% water and some milk solids, so you usually need a little less oil, the texture and flavour change, and some recipes (especially those that rely on butter for creaming air or for structure) will behave differently.

Why Oil and Butter Are Not Interchangeable by Weight Alone

Butter is an emulsion of butterfat, water and milk proteins. Standard European-style butter is around 82% fat; many American-style butters are closer to 80%. The rest is mostly water, plus a small amount of milk solids. When you melt butter and use it in a cake, that water counts as liquid in the batter, and those milk solids brown and add flavour.

Oil—whether sunflower, rapeseed, corn or a neutral vegetable oil—is essentially pure fat. That difference has two consequences:

  • You need slightly less oil. Replacing 100 g of butter with 100 g of oil adds more fat and removes water, which can make a batter greasier and denser. A working rule is to use about 80–85 g of oil for every 100 g of butter, and to add back roughly 15–20 g of liquid (milk, water or buttermilk) to compensate for the water the butter would have provided.
  • Oil does not cream. Butter traps air when beaten with sugar, and that trapped air helps a cake rise and gives it a lighter, cakier structure. Oil cannot hold air this way, so recipes built on the creaming method lose some lift. Chemical leaveners (baking powder, baking soda) still work, but the crumb will be finer and slightly denser unless the recipe is designed around oil.

How the Swap Changes Texture and Flavour

The most noticeable change is moisture. Oil coats the flour proteins and starch granules more thoroughly than solid fat, which limits gluten development and slows staling. Cakes made with oil are typically tender and stay soft for several days, which is why carrot cake, chocolate cake, banana bread and many loaf cakes are traditionally oil-based. Butter cakes, by contrast, can be firmer when cold and dry out faster, though they have a richer flavour and a more open crumb.

Flavour is the second difference. Butter brings a distinct dairy, slightly nutty note, especially when browned or when it is a high-fat cultured butter. Neutral oils add essentially nothing. That is fine for chocolate, spice or fruit cakes where other flavours dominate, but a plain vanilla butter cake made with neutral oil can taste flat. In those cases, a mild olive oil or a flavourful nut oil can work, though assertive olive oil will read as a savoury note in a delicate cake.

Colour changes too: butter contributes a golden tint and, if browned, a deeper one. Oil-based cakes are paler unless the recipe includes brown sugar, cocoa or other coloured ingredients.

How to Choose the Right Oil

Not every oil suits cake. The goal is a fat that is liquid at room temperature, tastes clean and does not smoke or turn bitter in a moderate oven.

  • Neutral oils—sunflower, rapeseed (canola), corn, grapeseed, light olive oil—are the safest default for most cakes.
  • Flavourful oils—extra virgin olive oil, walnut, hazelnut, almond—work in recipes written for them, or in robust cakes like chocolate, citrus or spice cakes where the flavour has somewhere to go.
  • Coconut oil is solid below about 24 °C. It can substitute for butter, but it behaves more like a solid fat and adds a coconut flavour, so it is best matched to recipes that can carry it.
  • Avoid strongly flavoured, cold-pressed oils in delicate cakes, and avoid oils with a low smoke point for high-temperature baking.

Common Problems and How to Fix Them

Substituting oil is simple in principle, but a few things commonly go wrong.

  • The cake is greasy or heavy. Too much oil was used. Reduce the oil to roughly 80–85% of the butter weight and add back a little liquid.
  • The cake is flat or dense. The recipe relied on creaming for lift. Either use a recipe designed for oil, or beat the eggs and sugar well and make sure the leaveners are fresh.
  • The cake tastes bland. The butter's dairy flavour is missing. Add a pinch of salt, use brown sugar or a flavourful oil, or finish with a butter-based frosting.
  • The crust is pale and soft. Butter browns; oil does not. A slightly higher oven temperature or a milk or egg wash on top helps, though most oil cakes are meant to have a soft crust.
  • The cake sticks to the tin. Oil-based batters can be more liquid and may seep into corners. Grease and line the tin properly.

When Butter Is Still the Better Choice

Some cakes genuinely need butter. Recipes that depend on creaming—Victoria sponge, pound cake, many shortcakes and butter cookies—rely on the air beaten into the butter for their light structure. Butter also matters when its flavour is the point, such as in a plain butter cake or a financier. And where butter is used melted and browned, as in brown butter cakes, the flavour compounds are central to the result. In those cases, replacing butter with oil gives a recognisably different cake, not just a slightly different one.

A practical approach is to match the fat to the recipe's origin. Carrot, banana, chocolate, applesauce and many loaf cakes were developed with oil in mind, so use oil freely. Sponge and pound cakes were built around butter, so keep the butter unless you are willing to adjust the method and accept a change in texture.

Measuring and Mixing Tips

If you are converting a butter recipe, weigh rather than scoop where possible. Butter is easy to measure by weight; oil is too, and a kitchen scale removes the guesswork caused by different cup sizes and oil densities. Use the 80–85% rule for the fat and add liquid for the missing water, then adjust after the first bake. Mix oil into the wet ingredients before the flour goes in, so the fat can coat the flour evenly. If a recipe calls for creaming butter and sugar, you can still make it with oil by whisking the oil with the sugar and eggs until emulsified, but expect a slightly denser crumb.

Frequently Asked Questions

Can I replace butter with oil in any cake recipe?

In most recipes you can, but the result will differ. Cakes that rely on creaming butter for structure will be denser, and butter-flavoured cakes will taste less rich. Use about 80–85% of the butter weight in oil and add a little liquid to replace the water in butter.

How much oil do I use instead of 100 g of butter?

Use roughly 80–85 g of oil and add about 15–20 g of milk, water or buttermilk. This accounts for the water in butter and keeps the batter from becoming too rich.

Does oil make a cake moister than butter?

Yes, generally. Oil stays liquid at room temperature and coats flour more thoroughly, which keeps the crumb tender and slows staling. Butter cakes tend to dry out faster, though they have a richer flavour.

Can I use olive oil in a cake?

Yes, especially in chocolate, citrus, spice or nut cakes. Light olive oil is fairly neutral; extra virgin olive oil adds a distinct savoury note, so it works best where the recipe is designed around it.

Why is my oil-based cake greasy?

Most often because too much oil was used or the oil was measured by volume inaccurately. Reduce the oil slightly, weigh your ingredients, and make sure the batter is fully mixed so the fat is evenly distributed.

Can I eat raw cake batter made with oil?

No. Raw flour can carry harmful bacteria, and raw eggs carry a risk of Salmonella. Unless the flour has been heat-treated and the eggs are pasteurised, do not eat raw dough or batter. Bake cakes until a skewer inserted in the centre comes out clean.

Read next