Homemade Margarine Recipe (Dairy-Free and Vegan)

lucop/Getty Images
Ratings (13)
  • Total: 10 mins
  • Prep: 5 mins
  • Cook: 5 mins
  • Yield: Makes about 4 cups (64 servings)
Nutritional Guidelines (per serving)
113 Calories
12g Fat
0g Carbs
0g Protein
(Nutrition information is calculated using an ingredient database and should be considered an estimate.)

This margarine recipe is so easy to make, and it's a delicious substitute for store-bought dairy-free margarine. Use homemade margarine as a spread on toast or use it in stir-fries, baking, or grilling.


  • 16 oz solidified coconut oil
  • 2/3 cups sunflower oil
  • 2/3 cups canola oil
  • 1 cup full-fat coconut milk
  • 1 1/2 tbsp Dijon mustard
  • 1 tbsp ground turmeric
  • 2 tsp salt​

Steps to Make It

Fill a medium-large heatproof dish with cold water and ice cubes for an ice water bath. Set aside.

In a double boiler or a heatproof dish, combine the coconut oil, sunflower oil, and canola oil over several inches of hot water over medium heat. Once the coconut oil has liquefied, add the remaining ingredients, stirring to combine.

After about 1 to 2 minutes or once the mixture has reached 120F to 130F, transfer the bowl to the ice water bath, setting the bowl in the cold water gently, and continue to stir until the mixture firms up.

Once the margarine is firm, transfer to a container with a tight-fitting lid and refrigerate. Homemade margarine will keep in the refrigerator for up to 2 weeks.​​​​​