when it comes to baking, coconut oil makes a wonderful substitute for butter and other oils, like olive oil, canola oil, and vegetable oil. regardless of the type of fat used in a recipe, you can swap in an equal amount of coconut oil.