butter or oil for frying eggs? you can cook an egg in either butter or oil; it's entirely up to your taste preference. if you like the taste of butter, then go for it. olive oil is a healthy choice and also delicious, especially when you are topping a savory dish, such a ratatouille or pasta with an egg.