Question: how to calculate fabric for piping?
Answer: Measure the width of the fabric minus the unusable selvage edges. ... 
Divide the total length of the fabric strip needed by the usable width of the fabric. ... 
To determine the amount of fabric yardage needed divide the number of strips needed by the strip width measurement.