You can use coconut oil instead of vegetable oil at a ratio of 1:1, melted — one cup of melted coconut oil for one cup of vegetable oil, one tablespoon for one tablespoon. That is because the two oils are almost identical in density — vegetable oil weighs 218 grams per cup, melted coconut oil weighs 218 grams per cup — and they behave the same way as a liquid fat in a batter. The difference is what happens when they cool: vegetable oil stays liquid at room temperature, while coconut oil solidifies below about 24°C. That single difference changes the texture of the finished bake, and this page explains when that change is welcome and when it is not.
Coconut oil instead of vegetable oil is the swap to use when you want a dairy-free bake with a firmer texture, or when you want a hint of coconut flavour. A chocolate cake made with coconut oil instead of vegetable oil has a slightly denser, more fudgy crumb and a faint coconut note. A granola made with coconut oil clusters better and stays crisp longer, because the oil solidifies as it cools and binds the oats together. A stir-fry made with coconut oil has a subtle tropical flavour that suits Thai and Indian dishes. The swap is simple — equal amounts, melted — but the result is different enough to be worth understanding.
The ratio, in a table
The table below converts vegetable oil to coconut oil for the amounts you are most likely to meet. The rule is always the same: equal amounts, with the coconut oil melted first. Measure the coconut oil after melting, because a cup of solid coconut oil and a cup of melted coconut oil weigh slightly differently — solid packs at about 227 grams per cup, melted at 218 grams.
| Vegetable oil called for | Coconut oil to use (melted) | Notes |
|---|---|---|
| 1 tablespoon | 1 tablespoon | |
| 2 tablespoons | 2 tablespoons | |
| 1/4 cup | 1/4 cup | 60 ml |
| 1/3 cup | 1/3 cup | |
| 1/2 cup | 1/2 cup | 120 ml |
| 2/3 cup | 2/3 cup | |
| 3/4 cup | 3/4 cup | 180 ml |
| 1 cup | 1 cup | 240 ml |
| 1 1/2 cups | 1 1/2 cups | |
| 2 cups | 2 cups |
By weight, one cup of vegetable oil is 218 grams and one cup of melted coconut oil is 218 grams — exactly the same, so you can swap them gram for gram without any adjustment. That is a rare convenience: most substitutions require a conversion, but this one is a straight exchange by volume and by weight.
Worked examples
Example 1: A chocolate cake with a fudgier crumb
A chocolate cake recipe calls for 1/2 cup of vegetable oil. Replace it with 1/2 cup of melted coconut oil, cooled slightly. The cake will have a slightly denser, more fudgy crumb than the vegetable oil version, because the coconut oil solidifies as the cake cools and firms up the crumb. It will also have a very faint coconut note behind the chocolate. Use refined coconut oil if you do not want the coconut flavour, or unrefined if you do. Serve the cake at room temperature, not from the fridge, because a coconut oil cake firms up more when cold.
Example 2: Granola that clusters and stays crisp
A granola recipe calls for 1/3 cup of vegetable oil to coat the oats before baking. Replace it with 1/3 cup of melted coconut oil. The granola will bake the same way, but as it cools, the coconut oil will solidify and bind the oats into clusters that stay crisp in the jar for weeks. A granola made with vegetable oil stays loose and goes soft faster, because the oil never sets. This is the recipe where the swap is a genuine improvement, not just a substitution — the solidifying property of coconut oil is exactly what granola needs.
Example 3: A Thai-style stir-fry
A stir-fry recipe calls for 2 tablespoons of vegetable oil to fry the aromatics. Replace it with 2 tablespoons of coconut oil, melted in the pan. The coconut oil's flavour suits the lemongrass, chilli and lime in the dish, and its high smoke point (about 230°C for refined coconut oil) means it will not smoke at stir-fry temperatures. This is the savoury application where the swap is most obviously right: coconut oil belongs in Southeast Asian cooking, and vegetable oil was merely a neutral stand-in.
What changes in the result
Two things change when you swap coconut oil for vegetable oil. First, the flavour: unrefined coconut oil adds a distinct coconut taste, while refined coconut oil is neutral. Choose unrefined when the coconut flavour is welcome (chocolate, tropical fruit, curry) and refined when it is not (vanilla cake, a neutral muffin). Second, the texture: coconut oil solidifies as it cools, so baked goods made with it are firmer when cold and softer when warm. A cake made with coconut oil will be firmer from the fridge than a cake made with vegetable oil, and a granola made with coconut oil will cluster better. Everything else — the moisture, the baking time, the keeping quality at room temperature — stays the same.
The practical consequence is that coconut oil is a good substitute for vegetable oil in most baking, with a texture change that is usually a benefit (firmer crumb, better clustering) and a flavour change that depends on whether you choose refined or unrefined. It is less suited to recipes where the oil must stay liquid when cold — a salad dressing, for example, where coconut oil would solidify in the fridge and turn the dressing into a paste.
When not to substitute
Do not use coconut oil instead of vegetable oil in a salad dressing or any recipe where the oil must stay liquid when cold — coconut oil solidifies below 24°C and will turn a dressing cloudy and thick in the fridge. Do not use unrefined coconut oil in a delicate vanilla or white cake, where its flavour will be intrusive — use refined instead. Do not use it in a recipe where the oil is needed for high-heat frying above 230°C, though refined coconut oil's smoke point is high enough for most frying. And do not use it if anyone eating the food has a coconut allergy. The swap is otherwise straightforward: equal amounts, melted, in any recipe where a liquid oil is called for.
One more caution: coconut oil is very high in saturated fat — about 82 percent, higher than butter. If you are swapping for health reasons, coconut oil is not the right choice; olive oil is better. The reasons to use coconut oil are its solidifying property, its flavour, and dairy-free baking, not health.
Frequently asked questions
How much coconut oil do I use instead of 1 cup of vegetable oil?
Use 1 cup of melted coconut oil for 1 cup of vegetable oil — a 1:1 ratio, by volume or by weight. Both weigh 218 grams per cup when the coconut oil is melted. Measure the coconut oil after melting, because a cup of solid coconut oil weighs about 227 grams.
Should I use refined or unrefined coconut oil?
Use refined coconut oil when you do not want a coconut flavour — in vanilla cakes, neutral muffins and most baking. Use unrefined (virgin) coconut oil when the coconut flavour is welcome — in chocolate cake, tropical bakes, granola and curries. Both swap 1:1 for vegetable oil, and both behave the same way in the oven; the only difference is flavour and a slightly higher smoke point for refined oil.
Can I use coconut oil instead of vegetable oil in a salad dressing?
Not if the dressing will be refrigerated. Coconut oil solidifies below about 24°C, so a dressing made with it will turn cloudy and thick in the fridge. For a dressing that will be served immediately at room temperature, it works, but it will still be thicker than a vegetable oil dressing. For dressings, olive oil or vegetable oil is the better choice.
Does coconut oil make cakes firmer?
Yes, when cold. Coconut oil solidifies as it cools, so a cake made with coconut oil will be firmer from the fridge than a cake made with vegetable oil. At room temperature the difference is small. Serve coconut oil cakes at room temperature, not cold, for the best texture. This firming property is an advantage in granola, where it helps the clusters hold together.
Is coconut oil healthier than vegetable oil?
Not in terms of saturated fat — coconut oil is about 82 percent saturated fat, while most vegetable oils are much lower. Coconut oil contains medium-chain triglycerides, which some people value, but it is still a calorie-dense saturated fat. The reasons to use it are its solidifying property, its flavour and dairy-free baking, not health. If health is the goal, olive oil is a better swap.
Can I use coconut oil for frying instead of vegetable oil?
Yes, for most frying. Refined coconut oil has a smoke point of about 230°C, which is high enough for sautéing, stir-frying and shallow frying. Unrefined coconut oil has a lower smoke point, about 175°C, so it is better for baking and gentle cooking than for high-heat frying. For deep-frying, vegetable oil or refined coconut oil is the safer choice.
Related links
- Olive oil instead of vegetable oil — the 1:1 swap with a fruity flavour.
- Coconut oil instead of butter — the 1:1 swap for butter recipes.
- Butter instead of vegetable oil — the reverse direction, for a richer flavour.
- Liquid volume converter — convert between cups, millilitres and fluid ounces.
- Cups to grams for coconut oil — coconut oil weighs 218 g per cup melted.
- Cups to grams for vegetable oil — vegetable oil weighs 218 g per cup.
- Browse all substitutions — every butter, egg, milk and oil swap.
- Recipe scaler — scale the whole recipe after the swap.
