margarine is possibly the most-used butter substitute for baking cookies, cakes, doughnuts or just about anything else for that matter. margarine can be used in the equal amount of butter a recipe calls for.