The short answer is yes — coconut oil works beautifully in brownies, and in some ways it is the best butter substitute there is for them. The ratio is simple: use about ¾ cup of coconut oil for every 1 cup of butter the recipe calls for, or measure the coconut oil melted and use the same amount, minus a tablespoon. Coconut oil is 100% fat, while butter is only about 80% fat and 16% water, so a straight cup-for-cup swap gives you more fat than the recipe expects and a greasier brownie. Cut it back by a quarter, and the brownies come out fudgy, moist and rich, with a slightly firmer set when they cool. Refined coconut oil tastes of nothing, so the brownies taste exactly like brownies. Unrefined coconut oil adds a gentle coconut flavour, which suits chocolate well.
It is a swap that comes up for all sorts of reasons. Sometimes the butter has run out, and the jar of coconut oil is sitting right there in the cupboard. Sometimes someone at the table cannot eat dairy, and the brownies need to be dairy-free without tasting like a compromise. Sometimes a baker has heard that coconut oil makes brownies fudgier, and wants to know whether that is true. It is true, and this guide explains why: the fat content, the melting point, the way coconut oil sets firm as it cools, and what all of that means for the texture of the finished brownie. There is also a full fudgy brownie recipe at the bottom, written around the swap from the start, so you can see the ratio working in a real bake rather than just reading about it.
At a Glance: The Quick Fixes
- Use the ¾ rule. About ¾ cup of coconut oil for every 1 cup of butter — or the same amount, minus a tablespoon, if you prefer to keep it simple.
- Measure the oil melted. Coconut oil is solid below about 76°F (24°C) and liquid above it. Melt it gently, then measure it as a liquid, the same way you would measure vegetable oil.
- Refined coconut oil tastes of nothing. Use it when you want the brownies to taste exactly like ordinary brownies, with no coconut flavour at all.
- Unrefined (virgin) coconut oil tastes of coconut. Use it when you want a gentle coconut note alongside the chocolate — it suits brownies well.
- Expect fudgier brownies. Coconut oil has no water in it, so the batter is richer and the crumb is denser and more fudgy than a butter brownie.
- Expect a firmer set when cool. Coconut oil solidifies as it cools, so the brownies firm up more than butter brownies do. Serve them at room temperature, not from the fridge.
- Do not chill the batter. A brownie batter made with coconut oil will start to set if it sits in a cool kitchen. Get it into the pan and into the oven promptly.
- The swap makes the brownies dairy-free. Coconut oil contains no milk at all, which is the whole point for many bakers — but check the chocolate and the cocoa too.
- Do not swap in browned-butter brownies. If the recipe's flavour comes from browning the butter, coconut oil cannot replace that nutty, toasty taste.
- Line the pan and cool the brownies fully. Coconut-oil brownies are at their fudgiest when completely cool, and they cut most cleanly after an hour at room temperature.
The Ratio: How Much Coconut Oil Replaces Butter
The ratio is the first thing to get right, because it is the one place where this swap differs from most other butter substitutes. With most swaps — oil for butter, margarine for butter — the ratio is one-to-one, or close to it. With coconut oil, it is not quite one-to-one, and the reason is the fat content. Butter is not pure fat. It is about 80% fat, about 16% water, and a few percent milk solids. Coconut oil is 100% fat. That means a cup of coconut oil contains a quarter more fat than a cup of butter, and a quarter more fat in a brownie batter changes the texture: the brownies come out greasier, with an oily sheen on top and a heavy, almost wet crumb. Cutting the oil back by a quarter corrects for the difference and gives you a brownie with the same richness the recipe intended.
Why Less Oil Than Butter: 100% Fat vs. 80% Fat
The maths is simple, and it is worth understanding rather than just memorising, because once you understand it you can apply it to any recipe in any amount. A cup of butter — 227 g, two sticks — contains about 182 g of fat and about 36 g of water. A cup of coconut oil — about 218 g — contains about 218 g of fat and no water at all. So a cup-for-cup swap adds about 36 g of extra fat to the batter, which is roughly two and a half tablespoons of pure fat that the recipe never asked for. In a brownie, that extra fat coats the flour and stops the gluten from forming properly, which makes the crumb fall apart, and it leaves the brownies sitting in a thin layer of oil. Cutting the oil back to three-quarters of the butter amount brings the fat back to roughly the level the recipe was written for, and the brownies bake up the way they should.
The Quick Conversion Table
Here is the ratio in table form, for the amounts you will actually see in brownie recipes. Keep it on your phone or stick it inside a cupboard door, and you will never have to work it out mid-bake. The table gives the coconut oil amount in cups, tablespoons and grams, so you can use whichever measurement you have to hand. The grams are the most reliable, because coconut oil changes volume as it melts and solidifies, and a cup of solid oil is not the same amount as a cup of melted oil — the measuring section below explains that in detail.
Butter called for → coconut oil to use: ¼ cup (4 tablespoons, 57 g) → 3 tablespoons (45 ml, about 41 g); ½ cup (1 stick, 113 g) → 6 tablespoons (90 ml, about 82 g); ¾ cup (1½ sticks, 170 g) → 9 tablespoons (135 ml, about 122 g); 1 cup (2 sticks, 227 g) → ¾ cup (12 tablespoons, 180 ml, about 163 g); 1¼ cups (283 g) → 1 cup minus 1 tablespoon (about 204 g); 1½ cups (340 g) → 1 cup plus 2 tablespoons (about 245 g). In grams, the rule is even simpler: multiply the butter weight by 0.8 to get the coconut oil weight, then round to a number you can measure easily.
Refined vs. Unrefined: Which Coconut Oil to Use
Coconut oil comes in two kinds, and choosing between them is the second most important decision in this swap, after the ratio. Refined coconut oil and unrefined coconut oil are made from the same coconuts, but they are processed differently, and they taste completely different. Refined coconut oil is neutral: it has no coconut flavour and no coconut smell, and it disappears into a brownie the way vegetable oil does. Unrefined coconut oil — also called virgin coconut oil — keeps the flavour and the smell of fresh coconut, and it brings that flavour into the brownie. Neither one is better than the other in general. The right choice depends on what you want the brownies to taste like, and on what is already in your cupboard.
Refined Coconut Oil: Neutral and Invisible
Refined coconut oil is made from dried coconut meat, called copra, which is pressed to extract the oil and then refined — steamed, filtered and deodorised — to remove the coconut flavour and smell. What is left is a clean, neutral fat that behaves exactly like coconut oil in every way except taste: it melts at the same temperature, it solidifies at the same temperature, it has the same fat content, and it gives brownies the same fudgy texture. The only difference is that it tastes of nothing. That makes refined coconut oil the safe choice for this swap. If you want brownies that taste like brownies — chocolate, sugar, butter richness, nothing else — refined coconut oil gives you that, with no surprises. It is also usually cheaper than unrefined oil. If you are baking for people who do not like coconut, or for children who will notice a flavour they did not expect, refined coconut oil is the right jar to reach for.
Unrefined (Virgin) Coconut Oil: Coconut Flavour on Purpose
Unrefined coconut oil — sold as virgin or extra-virgin coconut oil — is made from fresh coconut meat, pressed without heat or with very gentle heat, and not refined afterwards. It keeps the flavour and the fragrance of fresh coconut, and that flavour survives baking. A brownie made with unrefined coconut oil has a gentle coconut note running through the chocolate: not overpowering, not like a coconut sweet, but a warm, tropical background flavour that most people find pleasant. Chocolate and coconut are a classic pairing — think of a chocolate-coated coconut bar — and the combination works in a brownie for the same reason it works in a sweet: the coconut softens the bitterness of the cocoa, and the chocolate gives the coconut something rich to sit against. The flavour is strongest when the brownies are warm and fades slightly as they cool.
How to Choose for Your Brownies
The choice comes down to three questions. First, who is eating the brownies? If anyone at the table dislikes coconut, or has a coconut allergy, use refined oil — and if there is a coconut allergy in the house, do not use coconut oil at all, refined or unrefined, because refined oil can still carry traces of coconut protein. Second, what else is in the brownies? If the recipe already has coconut in it — shredded coconut, coconut milk, a coconut topping — unrefined oil fits naturally and deepens the flavour. Third, what do you have? If the jar in your cupboard is unrefined and the shops are shut, use it. The brownies will taste faintly of coconut, and that is a feature, not a flaw.
Measuring Coconut Oil Correctly
Coconut oil is the only common baking fat that changes state in the kitchen. Butter is solid in the fridge and soft on the counter. Vegetable oil is liquid all the time. Coconut oil is solid in a cool kitchen and liquid in a warm one, and the line between the two is about 76°F (24°C) — which is right in the middle of normal kitchen temperatures. That means the same jar of coconut oil can be a hard white solid in the morning and a clear liquid by the afternoon, and that makes measuring it tricky. A cup of solid coconut oil, scooped out of the jar and packed into a measuring cup, is not the same amount as a cup of melted coconut oil poured into the same cup. The difference is about 10 to 15 percent, which is enough to change a brownie. The fix is simple: always melt the oil first, then measure it as a liquid.
Solid or Liquid? Always Melt It First
The rule is to melt the coconut oil before you measure it, every time, without exception. Scoop the amount you need — roughly — into a small saucepan or a microwave-safe jug, warm it gently until it is completely liquid and clear, then pour it into a measuring jug and measure the liquid. Melted coconut oil measures the same way as any other liquid oil: pour it into a glass measuring jug, set the jug on a flat surface, and read the level at eye level. Do not measure solid coconut oil by packing it into a cup measure. Solid coconut oil does not pack evenly — it leaves air gaps, it breaks into chunks, and two people measuring the same amount will get different results.
The 76°F Rule: Coconut Oil's Melting Point
Coconut oil melts at about 76°F (24°C), which is unusually low for a cooking fat. Butter melts at about 90°F (32°C). Coconut oil's low melting point is why it feels so strange in the kitchen: in a cool house in winter, it is a hard, waxy solid that needs a spoon to dig out. In a warm house in summer, it is a clear, thin liquid that pours like water. In spring and autumn, it is often half solid and half liquid in the same jar, with a layer of clear oil on top of a white solid base. That half-and-half state is the hardest to measure, because the liquid and the solid have different densities, and a spoonful from the top of the jar is not the same amount as a spoonful from the bottom. Melting the whole amount you need solves the problem, because once it is all liquid, it is all the same. And the melting point matters after baking too: it is why coconut-oil brownies are soft and fudgy at room temperature in a warm kitchen, and firmer in a cool one.
Weigh It If You Can
The most reliable way to measure coconut oil is to weigh it. A kitchen scale does not care whether the oil is solid or liquid, and it does not care about air gaps or packing. Put the bowl on the scale, tare it to zero, and add coconut oil — solid scoops or melted liquid, it makes no difference — until the scale reads the weight you need. The conversion table above gives the weights, and the recipe card at the bottom of this article gives the oil in grams as well as in cups, for exactly this reason.
What Changes When You Swap
The ratio and the measuring are the mechanics of the swap. What matters just as much is what the swap does to the finished brownie, because coconut oil is not just butter with a different name — it is a different fat, with a different melting point, a different water content and a different flavour, and all of those differences show up in the bake. The good news is that almost all of them show up as improvements, at least for brownies. Brownies are one of the few bakes where coconut oil's quirks — its firm set, its lack of water, its clean fat — work in the baker's favour rather than against it. The sections below go through each change in turn, so you know what to expect before the brownies come out of the oven.
Fudginess: Fudgier, Not Cakier
The first change, and the one most bakers care about, is fudginess. Coconut-oil brownies are fudgier than butter brownies, and the reason is the water — or rather, the lack of it. Butter is about 16% water, and that water dissolves some of the sugar and turns to steam in the oven, which lifts the crumb slightly and makes it lighter. Coconut oil has no water at all, so none of that happens. The batter is richer and denser, and the crumb sets into a dense, moist, fudgy texture with almost no lift. If you like your brownies fudgy — dense, moist, almost like chocolate fudge with a crust — coconut oil is an upgrade, not a compromise. If you like your brownies cakey — light, fluffy, more like a chocolate cake — coconut oil will push them in the wrong direction, and you may be better off keeping the butter. For the full guide to what makes a brownie fudgy or cakey, and how to control it, see Why Are My Brownies Cakey? Fudgy vs. Cakey Brownies, Explained (With a Fudgy Recipe).
Flavour: Neutral or Coconut, Your Choice
The second change is flavour, and it depends entirely on which oil you use. Refined coconut oil adds no flavour at all. A brownie made with refined oil tastes like a brownie made with any neutral fat: the chocolate is the star, the sugar provides the sweetness, and there is no background flavour to distract from either. Some tasters say a refined-oil brownie tastes slightly cleaner and less rich than a butter brownie, because butter brings its own creamy flavour and coconut oil does not. Unrefined coconut oil, by contrast, adds a distinct coconut flavour, which is either a bonus or a distraction depending on your taste. It pairs beautifully with chocolate, as the refined-versus-unrefined section above explains, but it does change the brownie from a plain chocolate brownie into a chocolate-and-coconut brownie.
Texture and Setting: Firmer When Cool
The third change is the one that surprises people most: coconut-oil brownies set firmer than butter brownies as they cool, and the difference is noticeable. Butter is soft at room temperature — it yields to a knife and stays pliable. Coconut oil is solid at room temperature in most kitchens, because its melting point of 76°F (24°C) is below or around normal room temperature. That means the fat inside a cooled coconut-oil brownie is solid, not soft, and the brownie itself is firmer, denser and more solid than a butter brownie at the same temperature. Fresh from the oven, the two are almost identical: warm, soft, gooey. After an hour on the counter, the butter brownie is still soft and yielding, and the coconut-oil brownie has firmed up into a dense, sliceable bar. That firmness is a genuine advantage when it comes to cutting: coconut-oil brownies cut into clean, sharp squares with almost no crumbling. It is only a problem if you serve them straight from the fridge, where the oil is fully solid and the brownies can feel hard. The fix is simple: serve coconut-oil brownies at room temperature, and if they have been in the fridge, give them thirty minutes on the counter before serving.
Browning and Crust: A Little Less Colour, a Thinner Crust
The fourth change is browning, and it is the subtlest of the four. Butter browns in the oven because it contains milk solids — proteins and sugars that brown readily through the Maillard reaction. Those milk solids are what give a butter brownie its golden, slightly crackly top crust. Coconut oil contains no milk solids at all, so it does not contribute anything to browning. A coconut-oil brownie still browns, because the sugar in the batter caramelises and the cocoa darkens, but the top crust is thinner, paler and less crackly than a butter brownie's. The difference is small — a brownie is a dark bake, and a slightly paler top is not easy to spot. There are two ways to get some of it back. The first is to beat the eggs and sugar together for an extra minute before adding the oil and chocolate, which dissolves more of the sugar and gives a shinier, thinner crust. The second is to bake the brownies for two or three minutes longer than the recipe says, which deepens the colour of the top without drying out the centre.
The Dairy-Free Bonus (and Who It Helps)
For many bakers, the dairy-free angle is the whole reason for this swap, and it deserves a section of its own, because it is not as simple as swapping the butter and calling the brownies dairy-free. Coconut oil is dairy-free — it comes from a coconut, not a cow, and it contains no milk, no lactose and no casein. Swapping it for butter removes the biggest source of dairy in a brownie recipe, and for many people that is enough. But a brownie has other ingredients, and some of them contain dairy too, so a truly dairy-free brownie needs a little more attention than just the fat.
Dairy-Free Brownies That Actually Taste Good
The reason coconut oil is such a good dairy-free swap for brownies — better than margarine, better than vegetable oil, better than most dairy-free butter alternatives — is that it behaves like a solid fat. Dairy-free baking often fails on texture: the substitute fat is too soft, too oily, or too watery, and the bake comes out greasy or crumbly. Coconut oil is solid at room temperature, it melts cleanly, it sets firmly, and it gives a brownie the same dense, fudgy structure that butter does. A dairy-free brownie made with coconut oil does not taste like a compromise. It tastes like a brownie. If you are baking for someone with a milk allergy or lactose intolerance, coconut oil is the most reliable way to make brownies they can eat without feeling left out. Use refined oil if they are not expecting a coconut flavour, and remember the chocolate needs checking too — most chocolate chips contain milk, so use chocolate labelled dairy-free, or a cocoa-based recipe like the one at the bottom of this article.
Where the Swap Fails
The swap is not universal, and an honest guide says so. Coconut oil works in most brownie recipes, and it works well, but there are recipes where it is the wrong choice, and knowing where the line is matters as much as knowing the ratio. The pattern is consistent: the swap fails where the butter is doing a job that coconut oil cannot do — providing a specific flavour, providing water, or providing a texture that depends on butter's particular properties. None of these failures is a disaster — the brownies will still be edible — but the result will be noticeably worse than it should be, and in these cases it is worth using butter if you have it, or choosing a different recipe.
Browned-Butter Brownies: The Flavour Is the Point
The clearest failure is a brownie recipe built around browned butter. Browning butter — cooking it gently until the milk solids turn golden brown and the butter smells nutty and toasty — creates a flavour that is the whole point of the recipe. A browned-butter brownie tastes nutty, caramelised and rich in a way that no other brownie does, and that flavour comes entirely from the milk solids in the butter. Coconut oil has no milk solids. It cannot be browned. Heated gently, it just melts. Heated further, it smokes. There is no nutty, toasty flavour to be had from it, and a browned-butter brownie made with coconut oil is not a browned-butter brownie at all — it is an ordinary brownie that happens to have been made with coconut oil. If the recipe says "brown the butter", the butter is not interchangeable. Use butter, or pick a different brownie recipe. The same applies to any recipe where the butter is the star flavour: a butter-forward blondie, a shortbread brownie, or a brownie with a butter-based caramel swirl.
Recipes Where Butter's Water Matters
The second failure is a recipe where butter's water is doing real work. Butter is 16% water, and in most brownie recipes that water is incidental — it steams off in the oven and nobody misses it. But in some recipes, the water matters. A brownie recipe that uses the water in the butter to dissolve the sugar and create a shiny, crackly top will not get the same top with coconut oil, because there is no water to dissolve the sugar. A brownie recipe that relies on steam for lift — a cakey brownie, or a brownie with very little leavener — will be denser and flatter with coconut oil, because there is no steam to lift it. And a brownie recipe that uses butter and water together as the liquid in the batter — a one-bowl brownie where the butter is melted with water or coffee — will be short of liquid if the butter is swapped for oil without adjusting the water. In that case, the fix is to add back the missing water: for every cup of butter replaced, add two tablespoons of water, milk or coffee to the batter. That restores the liquid the recipe expects, and the brownies will bake up the way they should.
Frosting and Ganache Toppings
The third failure is not the brownie itself, but what goes on top of it. A brownie with a buttercream frosting, a cream cheese frosting, or a butter ganache topping needs butter in the topping, and coconut oil does not behave the same way in a frosting. Buttercream made with coconut oil is the main problem: coconut oil is solid at cool room temperature and liquid at warm room temperature, so a coconut-oil buttercream is either too hard to spread or too soft to hold its shape, depending on the temperature of the kitchen. It also lacks the creamy, milky flavour that makes buttercream taste like buttercream. A ganache made with coconut oil instead of butter has the same problem in reverse: it sets rock hard in the fridge and melts into a puddle in a warm room. The fix is simple: use coconut oil in the brownie, and butter in the frosting. The swap does not have to be all or nothing. A dairy-free brownie with a butter frosting is not dairy-free, of course, but if the goal is a good brownie rather than a dairy-free brownie, mixing the fats — coconut oil in the base, butter on top — gives you the best of both.
Storing Coconut-Oil Brownies
Coconut-oil brownies store well — better than butter brownies, in some ways — but they store differently, and the difference comes back to the melting point. Butter is soft at room temperature and firm in the fridge. Coconut oil is solid at room temperature in a cool kitchen and liquid in a warm one. That means the storage rules for coconut-oil brownies depend on the temperature of the room they are stored in, more than butter brownies do. The sections below cover the three storage options — counter, fridge and freezer — and the one mistake to avoid with each.
Room Temperature Is Best
The best place for coconut-oil brownies is an airtight container on the counter, at room temperature, where they will keep for three to four days. At room temperature, the coconut oil is soft enough to keep the brownies moist and fudgy, and firm enough to hold their shape when you pick one up. Cut the brownies only when they are completely cool — at least an hour after they come out of the oven — and store them in a single layer if you can, or in layers separated by baking paper, so they do not stick together. If your kitchen is warm — above 76°F (24°C) — the oil will be liquid, and the brownies will be softer and more delicate than usual. That is not a problem, but handle them gently, and do not stack them, because the weight of the top layer will squash the bottom one. If your kitchen is cool, the brownies will be firmer and easier to handle, and they will keep a day longer.
Fridge Storage and the Firm-Set Problem
The fridge is the one place where coconut-oil brownies behave badly, and it is worth knowing why before you put them there. In the fridge, at about 40°F (4°C), coconut oil is fully solid — hard, white and waxy — and a brownie stored in the fridge sets just as hard. A coconut-oil brownie straight from the fridge is dense, firm and almost crunchy, and it does not taste like the brownie you baked. It is not ruined — the flavour is still there — but the texture is wrong, and it is the most common complaint about coconut-oil brownies. The fix is to bring the brownies back to room temperature before serving: take them out of the fridge thirty minutes ahead, and they will soften back to their proper fudgy texture. If you need to store brownies for more than four days, the fridge is still the right choice — they will keep for a week — but always serve them at room temperature, never cold.
Freezing Coconut-Oil Brownies
Coconut-oil brownies freeze exceptionally well — better than butter brownies, because the oil's firm set means they hold their shape in the freezer and thaw without going soggy. Cut the cooled brownies into squares, wrap each square individually in cling film, and put the wrapped squares in a freezer bag with the air pressed out. They will keep for up to three months. To thaw, unwrap a square and leave it on the counter for an hour, or microwave it for fifteen to twenty seconds if you want it warm. Do not refreeze thawed brownies, and do not freeze brownies with a frosting or a topping that does not freeze well — freeze the plain brownies, and frost them after thawing.
Coconut Oil vs. Other Oil Swaps
Coconut oil is not the only oil that can replace butter in brownies, and it is worth knowing how it compares with the alternatives, because the choice of oil changes the brownie in different ways. The two most common alternatives are vegetable oil and olive oil, and each one has its own strengths. Vegetable oil is the simplest swap: it is neutral, it is liquid, it is cheap, and it gives a moist, fudgy brownie. Olive oil is the most flavourful swap: it adds a fruity, slightly peppery note that suits dark chocolate, and it makes a brownie that tastes more grown-up and less sweet. Coconut oil sits between the two: it is solid like butter, which gives it a structural advantage, and it can be neutral or flavoured depending on whether you choose refined or unrefined oil. If you have already tried an oil swap in brownies and liked it, coconut oil is the natural next one to try.
How Coconut Oil Compares With Olive Oil in Brownies
Olive oil and coconut oil are the two most interesting butter substitutes for brownies, and they give quite different results. Olive oil is liquid at room temperature, so an olive-oil brownie stays soft and moist even when cool, with a tender, almost cake-like crumb. Coconut oil is solid at room temperature, so a coconut-oil brownie sets firmer and denser, with a fudgier crumb. Olive oil adds a distinct flavour — fruity, grassy, slightly bitter — that works well with dark chocolate but is noticeable in every bite. Refined coconut oil adds no flavour at all. Olive oil brownies are at their best warm, when the oil is fluid and the crumb is tender. Coconut-oil brownies are at their best at room temperature, when the oil has set just enough to give a clean bite. Neither is better in general. If you want a soft, tender brownie with a Mediterranean flavour, use olive oil. If you want a dense, fudgy brownie that cuts cleanly and keeps well, use coconut oil. For the full guide to the olive-oil version of this swap, see Olive Oil in Brownies Instead of Vegetable Oil (My Fudgy Secret!) — a different swap, olive oil for vegetable oil, but the same fudgy goal.
The Swap Checklist: Every Rule in One Place
Here is the whole guide condensed into a checklist to run through before you swap. Keep it on your phone, and glance at it while the ingredients are still on the counter.
- Use the ¾ rule. About ¾ cup of coconut oil for every 1 cup of butter, or the same amount minus a tablespoon for a quick swap.
- Melt the oil, then measure it. Never measure solid coconut oil by packing it into a cup. Melt it gently, pour it into a measuring jug, and read it at eye level — or weigh it.
- Choose refined for neutral, unrefined for coconut flavour. Refined oil tastes of nothing. Unrefined oil adds a gentle coconut note that suits chocolate.
- Check for coconut allergy first. If anyone eating the brownies has a coconut allergy, do not use coconut oil at all — refined oil can still carry traces.
- Get the batter into the oven promptly. Coconut-oil batter starts to set in a cool kitchen. Mix it, pour it, bake it — do not let it sit.
- Expect fudgier brownies. No water in the oil means a denser, more fudgy crumb. That is the point of the swap, not a side effect.
- Expect a firmer set when cool. Serve at room temperature. If the brownies have been in the fridge, give them thirty minutes on the counter first.
- Do not swap in browned-butter recipes. Coconut oil cannot be browned, and it has no milk solids to give that nutty flavour.
- Check the chocolate for dairy. If the brownies need to be dairy-free, the chocolate and cocoa must be dairy-free too — the oil alone is not enough.
- Cool fully before cutting. At least an hour at room temperature. Coconut-oil brownies cut most cleanly when completely cool, with a sharp knife wiped clean between cuts.
Frequently Asked Questions
Can I use coconut oil instead of butter in a brownie mix?
Yes, and a boxed brownie mix is one of the easiest places to make the swap, because the mix already contains everything else — flour, sugar, cocoa, leavener — and the fat is the only thing you add. Most brownie mixes call for vegetable oil or melted butter, and coconut oil replaces either one at the same ¾ ratio. Melt the oil, measure it, and stir it in exactly as the box directs. The brownies will be fudgier and firmer than the box version, and they will cut more cleanly. The one thing to watch is the eggs: follow the box instructions for the eggs exactly, and if the box gives a choice between a fudgy version and a cakey version, choose the fudgy version, because coconut oil pushes the texture in that direction anyway.
Will my brownies taste like coconut?
It depends on the oil. Refined coconut oil has no coconut flavour at all, and brownies made with it taste exactly like ordinary brownies — nobody will know the butter was swapped unless you tell them. Unrefined coconut oil does add a coconut flavour: a gentle, warm coconut note underneath the chocolate, strongest when the brownies are warm and fading slightly as they cool. Whether that is a good thing is a matter of taste. Most people who like coconut enjoy it, and chocolate and coconut are a classic pairing. If you are baking for a mixed group and you are not sure, use refined oil.
Why did my coconut-oil brownies turn out greasy?
Almost always because too much oil went in. The most common cause is measuring the oil solid instead of melted: a cup of solid coconut oil, packed into a measuring cup, contains more oil than a cup of melted oil, because the solid packs down and the air gaps disappear as it melts. The second most common cause is using a one-to-one swap in a recipe that was already rich — a double-chocolate brownie, or a recipe with a full cup of butter — where the extra fat from the 100%-fat oil pushes the batter over the edge. The fix for the next batch is to melt the oil before measuring it, and to use the ¾ ratio rather than a straight swap.
Can I use coconut oil in other baking, not just brownies?
Yes, and the same rules apply: the ¾ ratio, melt before measuring, refined for neutral and unrefined for coconut flavour. Coconut oil works well in any bake where the fat is melted rather than creamed — quick breads, muffins, tray bakes, and cookies made with melted fat. It works less well in bakes where the butter is creamed with sugar to trap air, like a layer cake or a shortbread, because coconut oil does not cream the same way butter does: it is either too hard to cream or too soft to hold air, depending on the temperature. And it does not work in pastry, where cold, solid butter in pea-sized pieces is what creates the flaky layers. Brownies are the ideal home for coconut oil precisely because the fat is melted, the crumb is meant to be dense, and the firm set is a feature rather than a flaw.
The Last Word
Coconut oil is one of the most reliable butter substitutes for brownies, and it is the only one that makes the brownies fudgier rather than just different. The ratio is easy to remember — three-quarters of the butter, measured melted — and the choice between refined and unrefined oil is a matter of flavour, not of success or failure. Refined oil gives you brownies that taste like brownies. Unrefined oil gives you brownies that taste like brownies with a whisper of coconut. Either way, the brownies will be dense, moist, fudgy and clean-cutting, and they will keep well for days.
The two things to respect are the amount and the temperature. Measure the oil melted, not solid, and use the ¾ ratio rather than a straight swap, because coconut oil is pure fat and butter is not. And serve the brownies at room temperature, not from the fridge, because coconut oil sets firm when it is cold. Get those two things right, and the swap is as simple as it sounds. The recipe below is written around the swap from the start, with the oil already adjusted — so if you want to see the ¾ rule in action, start there, and keep a jar of coconut oil in the cupboard, because it is the ingredient that saves the day when the butter runs out.
A quick note before you bake: this recipe was not kitchen-tested in a test kitchen for this article. It is written with standard home-baking ratios as a starting point, so use the temperatures, timings and checks in the guide above, and adjust for your own kitchen and oven.
Fudgy Coconut-Oil Brownies (Dairy-Free)
Makes: 16 squares | Prep: 15 minutes | Bake: 22 to 26 minutes | Cool: 1 hour before cutting | Total: about 1 hour 45 minutes
Ingredients
- 120 ml (½ cup) coconut oil, melted and measured as a liquid — refined for neutral flavour, unrefined for a coconut note
- 200 g (1 cup) granulated sugar
- 2 large eggs, at room temperature
- 1 teaspoon vanilla extract
- 65 g (⅔ cup) unsweetened cocoa powder, sifted
- 95 g (¾ cup) plain flour
- ½ teaspoon fine salt
- ¼ teaspoon baking powder
- 100 g (about ⅔ cup) dairy-free dark chocolate chips (optional, for extra fudginess)
- 60 g (½ cup) chopped walnuts or pecans (optional)
Steps
- Heat the oven to 350°F (175°C), with the rack in the middle. Line an 8-inch square baking pan with baking paper, leaving a little overhang on two sides, and grease the paper lightly.
- Melt the coconut oil gently in a small saucepan over low heat, or in a microwave-safe jug in 20-second bursts, until it is completely liquid and clear. Pour it into a measuring jug and check the amount — 120 ml, or ½ cup.
- Pour the melted oil into a large bowl and whisk in the sugar until well combined. The mixture will look grainy and wet, like wet sand — that is normal.
- Beat in the eggs one at a time, whisking well after each, then beat in the vanilla extract. The batter should look smooth, glossy and slightly thick.
- Sift the cocoa powder, flour, salt and baking powder together into the bowl, and fold gently with a spatula just until no dry streaks remain — about 20 to 25 folds. Do not overmix: overmixing makes cakey brownies.
- Fold in the chocolate chips and nuts, if using, with two or three more folds. The batter will be thick, dark and glossy.
- Scrape the batter into the lined pan and spread it evenly into the corners with the spatula. Bake for 22 to 26 minutes, until the top is set and slightly crackly and a toothpick pushed into the centre comes out with a few moist crumbs clinging to it, not wet batter.
- Cool in the pan on a wire rack for at least 1 hour before lifting the brownies out on the paper and cutting them into 16 squares with a sharp knife, wiping the blade clean between cuts.
Baker's Tip: The hardest part of this recipe is knowing when the brownies are done, because coconut-oil brownies set firmer as they cool than they feel in the oven. Take them out when the toothpick shows moist crumbs, not when it comes out clean — a clean toothpick means the brownies are already overbaked, and they will be dry once cool. If you are unsure, err on the side of underbaking by a minute: the brownies will firm up as they cool, and a slightly gooey centre is better than a dry one.
Storage: Once completely cool, keep the brownies in an airtight container at room temperature for up to 4 days, in a single layer or in layers separated by baking paper. For longer storage, wrap individual squares in cling film and freeze for up to 3 months; thaw on the counter for an hour before serving. Do not store them in the fridge unless the kitchen is very warm — cold coconut-oil brownies set hard.
Food safety and allergy note: These brownies contain wheat (gluten), egg and coconut, and walnuts or pecans if used. They are dairy-free, but they are not suitable for anyone with coeliac disease or a wheat, egg, coconut or tree nut allergy. Always bake until the centre is set, and do not eat raw brownie batter, because raw flour and raw egg can carry harmful bacteria.