Craft Math Calculators

A Free Calculator · Rectangular Pieces · Updated 2026

How much fabric do you need to cut N pieces?

Yardage math trips up even experienced sewists when the numbers don't divide cleanly. Enter your piece count, piece dimensions, and fabric width — the calculator tells you exactly how many pieces fit per row, how many rows to cut, the total length in inches, and the yards to buy. Every formula is shown, and nothing is hidden.

Pieces per row & rows needed · Inches and yards to buy · Non-directional fabric (see note)
Non-directional fabric assumed This calculator assumes non-directional fabric — prints that look the same regardless of orientation, such as solids, textures, and allover prints. For directional fabric (stripes, one-way florals, novelty prints) or pattern-matching, add one full pattern repeat per row to the calculated length. When in doubt, buy a quarter to half yard more than the result suggests.

The calculator

Fabric yardage for rectangular cut pieces

Enter your piece count, the cut dimensions of each piece, and your fabric's usable width. Results update as you type.

Total pieces to cut, all the same size.

Choosing a preset fills the usable-width field; you can still edit it directly.

in

The dimension that runs across the fabric width (selvage to selvage).

in

The dimension that runs down the bolt length — this determines how many inches of yardage each row consumes.

in

Measured after trimming selvages. Most quilting cotton runs ~42–44 in usable.

The formulas, in full

Nothing here is a black box. These are the exact calculations the tool runs — the same arithmetic you could do on paper or a phone calculator. The only judgment calls are the inputs you supply.

How each number is derived

1 — Pieces per row (how many pieces fit across the fabric width)
pieces_per_row = Math.floor(fabric_usable_width ÷ piece_width)
2 — Rows needed (how many full cuts down the bolt)
rows = Math.ceil(piece_count ÷ pieces_per_row)
3 — Total length in inches
length_inches = rows × piece_length
4 — Yards (exact calculation)
yards_exact = length_inches ÷ 36
5 — Suggested purchase amount (rounds up to nearest ¼ yd)
QUARTER_YARD_INCHES = 9 length_rounded = Math.ceil(length_inches ÷ QUARTER_YARD_INCHES) × QUARTER_YARD_INCHES yards_suggest = length_rounded ÷ 36

Common fabric widths — and what to enter

The width on a bolt label is the full width including selvages. For the calculator, enter the usable width — what you can actually cut from, after trimming or avoiding the selvage edges. The table below gives typical bolt widths, typical usable widths after selvage removal, and common use cases.

Bolt width Typical usable width Common fabric types Notes
44 / 45 in ~42–43 in Quilting cotton, muslin, broadcloth, shirting The most common retail quilting fabric. Selvages are roughly ½ in each side. Most quilters use 42 in as a conservative usable width when planning blocks.
54 in ~52–53 in Home décor, canvas, medium-weight apparel, upholstery lining Heavier fabrics often have a wider, stiffer selvage. Measure before assuming usable width matches the bolt label minus 1 in.
60 in ~58–59 in Apparel knits, fleece, velvet, flannel, some wovens Wide enough that a single row of large pieces often fits without waste. Knit selvages can curl; allow extra trim margin.
108 in ~104–106 in Quilt backing fabric, wide muslin, sheeting Designed to back full quilts without a center seam. Substantially reduces the row count for large projects. Selvage is typically 1–2 in on each side.

Usable widths are approximate. Always measure your own fabric after washing and selvage removal before cutting. Widths can vary between manufacturers even for the same labeled size.

Directional prints and pattern matching

The calculator gives the minimum yardage for non-directional fabric. Any fabric with a repeat or a defined "up" direction requires extra. Here is how to think through each case.

Solids, textures, and allover prints require no adjustment

If the fabric looks identical no matter how you rotate it — solids, small random textures, confetti dots, allover geometric weaves — the calculator's result is the right amount to buy. There is no "up" to the print, so every cut can be oriented however the math requires.

One-way prints add at least one repeat per row

Florals, novelty prints, and stripe directions that only look correct one way require each row to start at the same point in the repeat. Find the repeat length printed on the bolt (or measure it). Add that many inches — one repeat multiplied by the number of rows — to the calculator's length before converting to yards. Example: 7 rows, 6-inch repeat → add 42 inches → add 1.17 yards.

Stripes and plaids require matching at seam lines

Stripes and plaids must align across seams in the finished project. The standard allowance is to add one full pattern repeat per piece, not per row, because each piece must be cut at a matching point in the stripe or plaid. This can double the yardage on large repeats. Plan your layout on a diagram before buying — trial-and-error at the cutting table is expensive when fabric is priced by the yard.

How to get the most accurate yardage estimate

Three inputs drive the result. Getting the usable width right is the one most often entered incorrectly — and the one with the most consequence when you are cutting close to the fabric edge.

Measure usable width after prewashing

If you prewash (and you should for anything that will be laundered), wash and dry your fabric before measuring. Cotton can shrink 2–5% in width and length; what was 44 inches off the bolt may measure 42 inches after laundering. Use that post-wash, post-selvage-trim width as your input.

Use cut dimensions, not finished dimensions

Seam allowances live in the cut piece, not the finished piece. A 12-inch finished quilt square requires a 12½-inch cut piece (for a ¼-inch seam allowance on each side). Enter the cut size — what you physically cut — not the finished size you want to see in the project.

Add a buffer for cutting realities

The calculator gives the mathematical minimum. Rotary cutters drift slightly; pressing can distort; a mis-cut piece needs to be recut. A buffer of one extra row's worth of fabric — add one "piece length" to the total length before buying — is enough insurance for most projects. For expensive or hard-to-find fabric, buy an extra quarter yard beyond the calculated amount.

Check whether grain line changes the orientation

This calculator puts piece width across the fabric and piece length down the bolt. If your grain-line requirements mean the longer dimension must go across the fabric, swap the piece width and piece length values when entering them. The formula is symmetric — the math doesn't care which you call width and which you call length.

Buy the suggested amount, not the exact minimum

The "yards to buy" suggestion rounds up to the nearest eighth-yard increment — the smallest unit most retailers sell. The exact calculated yardage is shown separately so you can see the minimum, but always buy the rounded-up amount or more. Running short by a sliver is one of the most avoidable frustrations in sewing.

Sewing and fabric terms glossary

The vocabulary you'll encounter on fabric bolts, patterns, and cutting instructions — defined plainly.

Yard
The standard unit for purchasing fabric in the United States. One yard equals 36 inches. Fabric is typically sold in increments as small as one-eighth yard (4.5 inches) at retail, though some shops require quarter-yard minimums.
Selvage
The tightly woven finished edge that runs along both sides of the fabric length. Selvages do not fray, but they are denser and often tighter than the rest of the fabric — which can cause puckering if sewn into a seam. Most sewists trim or avoid the selvage, reducing the effective cutting width by about ½–1 inch per side. Selvages sometimes carry the manufacturer's name and color registration dots.
Bolt
The roll of fabric as sold at retail. The label on the end of the bolt states the width, fiber content, and sometimes the price per yard. "Down the bolt" means in the lengthwise direction — the direction the fabric unrolls.
Grain line
The direction of the threads in a woven fabric. Lengthwise grain (warp) runs parallel to the selvage and has the least stretch. Crosswise grain (weft) runs perpendicular to the selvage and has slight give. Bias is the 45-degree diagonal and stretches the most. Cutting pieces on the correct grain prevents distortion in the finished project.
Pattern repeat
The length of one complete motif cycle in a printed or woven design before it begins again. A fabric with a 6-inch floral repeat means the exact same flower arrangement appears every 6 inches down the bolt. Pattern repeats matter for directional cutting and pattern matching because each piece must start at a consistent point in the repeat.
Non-directional fabric
A fabric whose print or texture looks the same regardless of which way it is oriented. Solids, random textures, and small allover prints are non-directional. Pieces cut from non-directional fabric can be laid out in any direction, which is what this calculator assumes when computing the minimum yardage.
Seam allowance
The margin of fabric between the cut edge and the sewn seam line. Standard seam allowance for quilting is ¼ inch; garment sewing commonly uses ⅝ inch. Always use cut dimensions (which include the seam allowance) when entering piece size into this calculator, not finished dimensions.
Preshrinking
Washing and drying fabric before cutting to remove the sizing applied during manufacturing and to pre-empt shrinkage in the finished project. Cotton typically shrinks 2–5% in the first wash. Preshrinking is strongly recommended for anything that will be laundered after construction; it affects both width and length and should be done before you measure usable width for the calculator.

Frequently asked

The core math: divide your fabric's usable width by your piece width to get pieces per row (floor division, since partial pieces don't count). Then divide your total piece count by pieces per row and round up to get the number of rows needed. Multiply rows by piece length to get total length in inches, then divide by 36 to convert to yards. For example: 20 pieces that are 12×12 inches on 44-inch fabric → floor(44÷12) = 3 pieces per row → ceil(20÷3) = 7 rows → 7×12 = 84 inches → 84÷36 = 2.33 yards. The calculator above does this for any values you enter.
Pieces per row uses floor (round down) because you can only fit whole pieces across the width — a partial column gives you nothing usable. Rows needed uses ceiling (round up) because any partially-filled row still requires that full length of fabric to be cut. If you need 20 pieces and fit 3 per row, the 19th and 20th pieces land in a 7th row even though that row isn't full — you still need to buy the fabric for that entire row length.
This calculator assumes non-directional fabric. For directional fabric or pattern matching, add one full pattern repeat per row. Measure the repeat length on the bolt, multiply by the number of rows from the calculator, and add that to your total yardage. For simple stripes you might add 10–15%; for large scenic or novelty prints, 20–25% extra is conservative. When in doubt, buy a quarter to half yard more than the calculator says — fabric remnants are far less frustrating than running short.
The width on the bolt includes the selvage edges — the tightly woven finished edges that run along both sides of the fabric. Selvages typically measure about ½ inch on each side and should not be included in cut pieces because they have a different weave density. Most quilters use 42 inches as a conservative usable width for standard quilting cotton labeled 44/45 inches. Enter your measured usable width (after selvage removal and preferably after prewashing) for the most accurate result.
The calculated yardage is the mathematical minimum for non-directional fabric with no cutting errors. In practice, fabric is sold in fractions of a yard and cutting always introduces small inaccuracies. The calculator rounds up to the next quarter-yard increment — a clean, commonly sold retail unit — to ensure you can actually purchase the right amount. If you prewash, cotton shrinkage of 2–5% can reduce usable width and length enough to affect layout, so buying a buffer is almost always worthwhile.
Yes, for any rectangular cut piece where you are cutting multiples of the same dimension from yardage. Quilt squares and rectangles are the most common use case. For garment sewing, it works well for rectangular pieces like waistbands, straps, facings, or pockets. For shaped pattern pieces — curves, darts, angled hems — pieces cannot always be nested across the width the way squares can, and a layout diagram is the definitive method. The calculator is a starting point; always verify against an actual layout for shaped garment work.
Common retail fabric widths: quilting cotton is almost universally 44 or 45 inches wide; apparel-weight fabrics including shirting, challis, and voile commonly run 54 to 60 inches; home-décor fabrics and canvas are often 54 inches; knit fabrics vary from 58 to 72 inches. Quilt backing fabric and wide muslin are available in 108-inch widths for backing large quilts without a center seam. Always measure or check the bolt label — manufacturers vary, and fabric called "44 inch" often measures 43.5 inches off the bolt. Enter your measured usable width (minus selvages) for the most accurate result.
Prewashing is strongly recommended before cutting — fabric that shrinks after assembly can pucker seams and distort finished dimensions. Cotton quilting fabric typically shrinks 2–5% in both width and length in the first wash. If you plan to prewash, add 5–8% to the calculator's yardage result as a shrinkage buffer before buying. For a project requiring 2.33 yards, that means buying at least 2.5 yards to be safe. The calculator does not include a shrinkage factor because shrinkage varies by fiber content, weave, and washing method — you know your fabric better than any formula does.

Common mistakes with this calculator

These are the inputs that most often produce a result that looks right but sends you to the fabric store short.

Entering bolt width instead of usable width

The bolt label says 44 or 45 inches; the actual cutting width after trimming both selvages is typically 42–43 inches. If you enter 44 and your pieces fill the fabric width closely, you will plan a layout that cannot physically fit on the fabric you have. Use the usable width — measured after selvage removal, and after prewashing if you prewash.

Using finished dimensions instead of cut dimensions

A 12-inch finished quilt square is cut at 12½ inches to leave a standard ¼-inch seam allowance on each side. Entering the finished size understates piece width and length, which reduces the number of pieces the calculator fits per row and underestimates yardage. Always enter the cut dimensions — the size you physically cut from the fabric.

Ignoring directional prints and nap

This calculator assumes non-directional fabric. If your fabric has a one-way print, a nap (velvet, corduroy, flannel), or a large pattern repeat that must be matched, pieces cannot be freely rotated. Each row must start at the same point in the repeat, which adds at least one full pattern repeat per row to the total yardage. For napped fabric, expect roughly 15–25% more than the calculator shows.

Skipping the prewash shrinkage buffer

Quilting cotton typically shrinks 2–5% in the first wash. If you plan to prewash before cutting — which is the right call for anything that will be laundered — buy the calculator's result plus 5–8% to account for shrinkage. Alternatively, wash and dry the fabric first, measure the actual usable width, then enter that reduced figure before calculating your yardage.