TheCalculatorsHub
Muhammad Shahbaz Siddiqui

Founder & Editor, TheCalculatorsHub

Fabric Calculator

The Fabric Calculator works out how much fabric to buy for a sewing, quilting, or home-decor project. It nests your pieces across the usable fabric width, adds seam allowance, rounds each piece up to the pattern repeat, and applies shrinkage and waste to recommend a purchase rounded to the nearest quarter yard, in yards and metres. It flags pieces too wide for the fabric, estimates cost from a price per yard, and includes a width converter for when a pattern calls for one fabric width but you have another.

Loading Calculator...

Formula Reference

This calculator uses standard mathematical axioms and verified algorithms to ensure result integrity.

PrecisionUp to 10 decimal places

Related Concepts

Algebraic Logic
Calculus Principles
Numerical Analysis

Pro Tip

Always verify input units. Mathematical consistency depends on unit uniformity across all variables.

Results are rounded for readability. For high-precision scientific work, consider the raw output.

Related Expert Tools

More precision tools in the same niche.

View All

Fabric Calculator Logic

cut=finished+2seamusablewidth=boltwidthselvagepiecesperwidth=floor(usable/cutwidth)rows=ceil(pieces/perwidth)length=rowscutlengthcut = finished + 2*seam | usable width = bolt width - selvage | pieces per width = floor(usable / cut width) | rows = ceil(pieces / per width) | length = rows * cut length
Disclaimer: Results are estimates only. Always verify important calculations with a qualified professional before making decisions. Learn about our methodology.

What Is the Fabric Calculator?

The Fabric Calculator works out exactly how much fabric to buy for a sewing, quilting, or home-decor project, accounting for the details that trip up a quick area estimate. Enter the finished size of your pieces, how many you need, and the width of your fabric, and it nests the pieces across the usable width, adds your seam and pattern allowances, and recommends a purchase rounded up to the nearest quarter yard. As the OnlineFabricStore yardage guide emphasises, the right amount depends on how pieces fit across the bolt, not simply on total area, which is why a proper calculator matters.

What makes this tool more reliable than a back-of-envelope sum is that it models how fabric is actually cut. Given that pieces come in whole widths and selvages are unusable, the calculator counts how many pieces fit side by side, works out the number of rows, and rounds each piece up to the next pattern repeat where alignment matters. On top of that, it adds separate shrinkage and waste allowances, flags when a piece is too wide for your fabric, and includes a width converter for when a pattern calls for one fabric width but you have found another. The result is a number you can take to the shop with confidence.

How Fabric Yardage Is Calculated

The calculation begins with a single piece. Your finished width and length each gain twice the seam allowance, because the allowance applies to both sides, so an 18 by 18 inch cushion panel with a half-inch seam becomes a 19 by 19 inch cut piece. The fabric's usable width is the bolt width minus about an inch for the selvage edges, which cannot be sewn into the project. Dividing the usable width by the cut width, and rounding down, gives how many pieces fit across one row.

From there the length follows directly. The total number of pieces divided by the pieces per width, rounded up, gives the number of rows, and the rows multiplied by the cut length give the exact fabric length required. This nesting approach is what the Canvas ETC fabric guide describes as the professional method, and it is far more accurate than dividing area by width. If you are also planning the garment those pieces belong to, our dress size calculator helps translate body measurements into the finished dimensions you would enter here.

Pattern Repeat, Shrinkage, and Waste

Three allowances separate an exact length from the amount you should actually buy. The pattern repeat is the vertical distance before a print starts over, and when pieces must match, each one is rounded up to the next full repeat so the design lines up across seams. The larger the repeat, the more fabric is sacrificed to alignment, which is why a bold floral or a wide plaid needs noticeably more than a plain fabric. The calculator reports exactly how much extra the repeat adds across all your pieces.

Shrinkage and waste cover the rest. Natural fibres can shrink five to ten percent on the first wash, so unless you pre-wash, you should add a shrinkage allowance so the finished piece survives laundering at full size. A waste allowance, commonly ten to fifteen percent, absorbs cutting errors, fabric flaws, and the trimming needed to square up the grain. The table below shows how these allowances stack onto a base requirement.

StageExample LengthNotes
Exact fabric needed1.06 ydRows times cut length
Plus 10% waste1.16 ydCutting and flaws
Rounded to buy1.25 ydNearest quarter yard

Fabric Width and the Width Converter

Fabric width is the single biggest lever on how much length you buy, because a wider bolt lets more pieces sit side by side. Quilting cotton is usually 44 to 45 inches, home-decor fabric around 54 inches, apparel fabric and knits 58 to 60 inches, and quilt backing up to 108 inches. Switching from a narrow to a wide fabric can cut the length you need substantially, which the calculator captures automatically when you change the width.

This is also why a pattern's recommended yardage only applies to the width it assumes. If a pattern calls for fabric at one width but your shop only stocks another, the built-in converter applies the rule that new yardage equals the pattern yardage times the pattern width divided by your width. So 3 yards of 45-inch fabric becomes 2.25 yards of 60-inch fabric. As the Sew4Home width conversion chart shows, ignoring this can leave you buying far too much or too little. Once you have your pieces planned, the same careful measuring pays off across projects, including pairing a finished garment with the right fit from our bra size calculator.

Accuracy and Limitations

The calculator applies the standard nesting arithmetic exactly, so for rectangular pieces cut on the straight grain it gives a dependable estimate. The pieces-per-width, rows, and length calculations match how a cutting table actually works, and the shrinkage, waste, and pattern-repeat allowances reflect common professional practice. For the great majority of quilting, curtain, cushion, and bag projects, the recommended purchase is the amount to buy.

That said, the tool assumes simple rectangular pieces laid out in a regular grid on the straight grain. It does not plan around irregular pattern shapes, bias-cut pieces, one-way napped fabrics like velvet and corduroy, or efficient interlocking layouts that a skilled cutter might use to save fabric, so for complex garments a paper layout of the actual pattern pieces remains the gold standard. It also estimates pattern-repeat loss conservatively and treats all pieces as identical. Use the result as a confident shopping figure for grid-based projects, and supplement it with a pattern layout for tailored garments with many differently shaped pieces.

The Most Common Fabric Buying Mistake: Trusting the Area Shortcut

In my experience the error that leaves people short at the cutting table is estimating fabric from area alone, total square inches divided by fabric width, and ignoring how the pieces actually nest. That shortcut quietly fails on wide pieces: a 50-inch curtain panel will not share a width with a second panel even though the arithmetic suggests there is room, so you need twice the length the area implied. With that in mind, always think in whole widths, subtract the selvage, and round each piece up rather than down. Then add waste and a little for shrinkage, because the cost of a quarter yard too much is trivial next to the cost of running out and chasing a matching dye lot. Buy by the layout, not by the area, and you will not be caught short.

Frequently Asked Questions

Founder's Real-World Experience
Muhammad Shahbaz Siddiqui

Muhammad Shahbaz Siddiqui

Founder, TheCalculatorsHub

How piece nesting cut my curtain fabric order from a guess to an exact 5.25 yards

In March 2026 I was making two lined curtain panels for a bay window, each finished at 50 inches wide and 84 inches long, from a home-decor fabric sold at 54 inches on the bolt. My instinct was to multiply the area and divide by the fabric width, which is exactly the trap most fabric calculators fall into. That napkin math ignored the most important fact: a 50-inch finished panel plus seam allowance becomes 51 inches wide, which barely fits inside the roughly 53 inches of usable width once the selvages are gone, so only one panel can be cut across the width, not two.

Running the real numbers through this calculator made the layout obvious. With a half-inch seam allowance the cut size came to 51 by 85 inches, one piece per width, two rows stacked down the length, for an exact 4.72 yards. After a ten percent waste allowance and rounding up to the nearest quarter yard, it recommended 5.25 yards. The OnlineFabricStore yardage guide stresses exactly this point, that you must work from how pieces nest across the usable width rather than from raw area, or you will badly under-buy on wide pieces.

The fabric also had a 12-inch floral repeat, so I used the pattern-repeat field, which rounded each panel up to the next full repeat and added roughly half a yard to keep the two panels matching across the window. I bought 5.75 yards to be safe, and both panels matched at the seam line with only a few inches left over. As the Canvas ETC fabric guide notes, a large repeat on long drops is where yardage quietly balloons, and seeing that half-yard penalty in advance saved a second trip to the store and a dye-lot mismatch.

Two 50x84 in panels on 54 in fabric: only 1 fits per width once selvage is removed, not 2 as area math impliesExact 4.72 yd, recommended 5.25 yd after waste, versus a naive area estimate that fell short12 in pattern repeat added about half a yard for matching, flagged before buying to avoid a dye-lot mismatch