If you are shopping in a yarn store, chances are that they have a chart with estimated yarn requirements. They can look up the project and the yarn weight and tell you an approximate yardage for what you want to make.
There are several charts available. This is one
is another. You can also purchase this