Use coconut oil in place of butter at a 1:1 ratio by weight or volume, melted and cooled to room temperature before it goes into the batter. The swap works in most brownie recipes, but the brownies come out slightly fudgier and a little less rich, and the coconut flavor carries through unless you buy refined oil. The detail most people get wrong is temperature: coconut oil turns solid below about 76°F (24°C), so cold batter or a cold bowl can leave hard flecks that never blend in.
Match the Coconut Oil to the Butter the Recipe Calls For
Most brownie recipes call for either melted butter or softened butter, and the state of the butter changes how you handle the coconut oil.
If the recipe says melted butter, melt the coconut oil the same way and let it cool to room temperature, about 5-10 minutes, before mixing. Hot oil can start cooking the eggs and can make the sugar seize. If the recipe says softened butter creamed with sugar, use coconut oil that is soft but not liquid: scoop it out and let it sit at room temperature, or warm the jar briefly in a bowl of warm water. Do not microwave it into a puddle, because liquid oil will not cream with sugar the way softened butter does, and the brownies will be denser and greasier.
Refined coconut oil is the safer choice when you want the chocolate to lead. It is neutral in flavor and behaves the same as unrefined in baking. Unrefined (virgin) coconut oil brings a distinct coconut taste that reads well with dark chocolate and less well with a plain cocoa brownie. Neither one changes the structure of the batter the way a liquid oil such as canola would, because coconut oil is solid at room temperature and sets the brownies as they cool.
Work Out the Amount With Real Numbers
The 1:1 rule holds by weight and by volume for butter and coconut oil, since both are close to the same density. A standard stick of butter is 1/2 cup (113 g), and 1/2 cup (113 g) of coconut oil measures the same in a dry cup.
| Butter in the recipe | Coconut oil to use | What changes |
|---|---|---|
| 1/4 cup (57 g) | 1/4 cup (57 g) | Barely noticeable in a small batch |
| 1/2 cup (113 g) | 1/2 cup (113 g) | Slightly fudgier center, less buttery aroma |
| 2/3 cup (151 g) | 2/3 cup (151 g) | Noticeably softer crumb at room temperature |
| 1 cup (227 g) | 1 cup (227 g) | Dense, almost truffle-like texture; chill before cutting |
Weigh the oil if you can. Coconut oil packs into a cup differently depending on whether it is solid or partly melted, and a scale removes the guesswork. If you only have a liquid measure, melt the oil first, pour to the line, then cool it.
For a 9×13-inch (23×33 cm) pan of brownies using 1 cup (227 g) of butter, the full cup of coconut oil is a lot of fat for the flour to carry. Expect a very soft, gooey brownie that needs a full cool-down in the pan, at least 2 hours, before it will cut cleanly.
Adjust the Mix for a Fudgier, Softer Brownie
Coconut oil contains no water, while butter is roughly 15-20% water. That missing water means less steam in the oven, so the brownies rise a little less and set softer. Two small changes fix most of it.
First, add 1 tablespoon (15 ml) of milk or water per 1/2 cup (113 g) of coconut oil if the batter looks stiff or dry after mixing. Second, if the recipe relies on creaming butter and sugar for lift, add 1/4 teaspoon of baking powder per cup (125 g) of flour, or accept a denser result. Do not add both fixes at once without tasting the batter’s consistency; a brownie batter should ribbon off the spoon and hold a soft mound for a second or two.
Chilling the batter for 20-30 minutes before baking helps the coconut oil firm up and keeps the brownies from spreading too thin at the edges. Bake at the temperature the recipe gives, typically 350°F (175°C) for 25-35 minutes, until the center is just set and a toothpick inserted 2 inches from the edge comes out with moist crumbs. The center should still look slightly underdone; it firms as it cools.
Know When Coconut Oil Fails the Job
Coconut oil is a poor swap in a few brownie situations. Recipes that depend on browned butter for flavor lose that nutty note entirely, because coconut oil cannot brown the same way milk solids do. Frostings and glazes made with butter also suffer: a buttercream made with coconut oil turns grainy and separates at cool room temperature. Use butter for the frosting and coconut oil only in the brownie itself.
Recipes that call for cold, cubed butter cut into flour, such as a brownie with a shortbread base, need the butter’s solid structure. Coconut oil chilled hard can work, but it softens faster than butter at room temperature, so work quickly and chill the dough between steps.
If the brownies taste flat, the cause is usually the missing salt and water in butter. Add a pinch more salt, about 1/8 teaspoon per 1/2 cup (113 g) of oil, and taste the batter before it goes in the pan.
Store and Cut Brownies Made With Coconut Oil
Coconut oil brownies soften faster than butter brownies at room temperature. Keep them in a covered container at room temperature for up to 2 days, or refrigerate for up to 4 days. Refrigeration makes the oil firm, so let the pan sit at room temperature for 20-30 minutes before cutting or serving.
For freezing, wrap cooled squares individually and freeze for up to 3 months; thaw at room temperature for about 1 hour. Cut with a warm, dry knife, wiping it between passes, and expect a slightly tackier crumb than a butter version. If the brownies crumble at the edges, they were overbaked rather than underfatted; pull the next batch 3-5 minutes earlier and check the center.
Related
- What Can Substitute Butter in Baking?
- Substitute for Oil in Zucchini Bread
- Substitute for Olive Oil in Vinaigrette
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).