Both butter and oil work well in carrot cake, but they do yield different results. Butter adds rich flavor, while oil adds moisture and has a neutral flavor. I used oil because I wanted to keep this cake vegan, plus I didn’t want the butter to overpower the other flavors of the cake and a neutral oil works better for that.