The primary way a recipe management system controls costs is by giving you the visibility of ingredients and production processes.
With complete visibility of which ingredients are added and when, you can understand where to control costs. For example, you might see that adding individual ingredients to make a portion of your product could be swapped for something pre-made saving you the cost of buying each individual ingredient and the time it takes to mix them.