I get the pattern first so there is little waste. Sometimes I find a beautiful fabric that I want to use in a project and I'll buy 3-5 yards of it and later find a pattern to use it in. This fabric usually gets "petted" for months before I find a suitable pattern.