Substitutions

What can I use instead of coconut oil?

Fat pressed from coconut flesh, about 90% saturated, which is why it sits solid below roughly 76°F (24°C) and melts to a thin clear liquid above it.

What it does in a recipe: A plant fat that behaves like a solid shortening at room temperature — it gives snap to chocolate coatings and structure to vegan pastry. Pick the swap that covers that job — the ratios below are written so you can act on them without doing any arithmetic.

Also called: Virgin coconut oil, Refined coconut oil, Copha

4substitutes
1close matches
Fats & oilscategory

Quick answer

Shortening

1 cup coconut oil = 1 cup shortening

All substitutes, best first

4 ways to replace coconut oil

Shortening

Closest match
1 cup coconut oil = 1 cup shortening

Both are close to 100% fat and solid at room temperature, so they cut into flour and set up in a coating on the same terms.

Trade-offShortening stays soft over a wider temperature range, so a chocolate shell made with it will not snap the way a coconut oil one does. Flavour is completely neutral.

BakingFryingVeganVegetarianGluten-freeDairy-freeEgg-freeNut-freeAlcohol-free

Allergen checkThis is the usual swap when coconut has to come out, which under US labelling rules counts as a tree nut. Most shortenings are palm and soybean based, so check the panel if soy is also a concern, and confirm a severe allergy with the manufacturer.

Butter

Reliable
1 cup coconut oil = 1 1/4 cups butter

Coconut oil is pure fat while butter is only about 80-85% fat, so it takes roughly a quarter more butter to match it.

Trade-offThe extra water changes the texture — pastry is flakier but softer, and a chocolate coating will not set hard. Adds dairy flavour and browning. Not vegan or dairy-free.

BakingCookingVegetarianGluten-freeEgg-freeNut-freeSoy-freeAlcohol-free

Allergen checkButter is dairy. Coconut oil is very often chosen precisely to avoid it, so this swap only makes sense when dairy was never the reason. Where a milk allergy is in play, use a plant-based block instead and read its label.

Neutral oil

Reliable
1 cup melted coconut oil = 1 cup canola or sunflower oil

Both are 100% fat, so where the recipe uses coconut oil melted the exchange is direct.

MethodOnly swap in liquid oil where the recipe melts the coconut oil first. Anything that relies on it being solid — a raw slice, a magic shell, a cut-in pastry — will simply not set.

Trade-offBakes stay softer at room temperature because a liquid oil never firms up. Flavour is cleaner if you were using virgin coconut oil.

BakingCookingFryingVeganVegetarianGluten-freeDairy-freeEgg-freeAlcohol-free

Vegan butter block

Reliable
1 cup coconut oil = 1 1/4 cups vegan butter block

Vegan blocks are formulated near butter's fat content rather than pure fat, so a little more is needed to match coconut oil's 100%.

Trade-offBrings a salted, butter-like flavour and softer set. Doughs are easier to handle but hold their shape less well in a hot oven.

BakingCookingVeganVegetarianGluten-freeDairy-freeEgg-freeAlcohol-free

Allergen checkMany vegan blocks list coconut oil among their first ingredients, so they are not automatically a solution if coconut is the reason for the swap. Read the ingredient list, and check a specific product with the manufacturer where an allergy is diagnosed.

Worth knowing

Coconut is botanically a drupe rather than a true tree nut, but US labelling rules classify it as a tree nut, so packs may carry that warning and some allergy plans exclude it. Do not treat coconut oil as nut-free without checking with the person who has to eat it.

Related

More fats & oils

Cooking around an allergy? Diet tags here describe the ingredient itself, not any particular brand. Processed products change formulation without notice and shared production lines are common, so read the label on everything you use. A severe allergy is a medical matter — confirm with the manufacturer or your clinician rather than relying on a substitution chart.