Buying fabric is a balancing act: too little and your project stalls, too much and you waste money on material that may sell out or go unused. The fabric yardage calculator removes the guesswork by turning the width of a roll, the size of one piece, and the number of pieces into the smallest length you need to buy. This article walks through exactly how that calculation works.
To calculate fabric yardage, divide the roll width by the width of one piece to get pieces across (rounding down), divide the number of pieces by that figure to get rows down (rounding up), then multiply rows down by the piece length. The result is the smallest length of fabric you need, first in inches and then converted to yards.
What formulas does the fabric calculator use?
The yardage method has three steps, and the calculator applies them in order. First it finds how many whole pieces fit across the roll, rounding down because you cannot use half or quarter pieces. Then it works out how many rows are needed, rounding up so you always have enough. Finally it multiplies those rows by the length of a single piece.
The asymmetry in the rounding is deliberate: pieces across is floored so you never count a partial piece, while rows down is ceilinged so the last, partially filled row is still cut.
How does the fabric yardage calculator work?
The calculator accepts the width of the fabric you are working with, plus the width, the length, and the number of pieces you need to cut. In return it gives you the smallest amount of fabric you can buy for the project, along with two helpful layout figures: how many pieces fit across the roll and how many rows you must cut down its length. This type of calculator is designed for home improvement projects built from geometric shapes rather than for clothing, and it works well as a tablecloth or quilt fabric calculator whenever you need several identical pieces from a standard-width roll.
| Calculator field | Label | Role |
|---|---|---|
| fabricWidth | Fabric width | Input: width of the roll |
| widthOfFabricBeingCut | Width | Input: width of one piece |
| lengthOfPieceYouWishToCut | Length | Input: length of one piece |
| noOfPieces | Number of pieces | Input: how many pieces to cut |
| noOfPiecesAcross | Number of pieces across | Output |
| noOfPiecesDown | Number of rows down | Output |
| Length | Length of material you'll need | Output |
How do I calculate fabric yardage by hand?
Worked example: 12 squares from a 60-inch roll. Suppose you want twelve 12-by-12-inch squares and your roll is 60 inches wide. Pieces across is the floor of 60 divided by 12, which is exactly 5. Rows down is the ceiling of 12 divided by 5, which is the ceiling of 2.4, so 3 rows. Multiplying the 12-inch piece length by those 3 rows gives 36 inches, or 1 yard. Buying one yard of the 60-inch-wide roll is therefore enough for all twelve squares.
How do I calculate fabric for 120 napkins?
The same method scales up. Divide the width of your fabric by the width of one napkin, round down to the nearest whole number, divide 120 by that result, and multiply by the length of each napkin. The final figure is the smallest amount of fabric you can buy for the whole batch.
Frequently Asked Questions
What does the fabric yardage calculator actually return?
It returns the smallest length of material you need to buy, together with the number of pieces across and the number of rows down, so you can see how the pieces lay out on the roll.
Is this calculator meant for sewing clothes?
Not primarily. It is best for home improvement projects that use geometric shapes, such as tablecloths or quilts made from repeated pieces of a standard measurement.
Why round pieces across down but rows down up?
Rounding pieces across down avoids counting half or quarter pieces that cannot be cut. Rounding rows up makes sure a partially filled final row still has enough fabric.
References
- Omni Calculator, Fabric Calculator — yardage formulas, field labels and worked examples used in this article.
- Standard measurement conversion tables (1 yard = 36 inches = 3 feet).
- General sewing and craft references on cutting repeated geometric pieces from a roll.