The formula
Stitches per inch (or cm) = swatch stitches ÷ swatch width; rows per inch = swatch rows ÷ swatch height
Cast-on stitches = finished width × stitches per inch
Rows = finished length × rows per inch
Yarn ≈ total stitches × yarn per stitch for the weight × 1.1 allowance
Worked example
- A swatch of 20 stitches and 28 rows over 4 in gives 5 sts and 7 rows per inch.
- For a 20 × 24 in piece, cast on 20 × 5 = 100 stitches and knit 24 × 7 = 168 rows.
- In worsted yarn that's about 16,800 stitches × 0.045 yd × 1.1 ≈ 832 yd, or 4 skeins of 220 yd.
- Compared with a pattern gauge of 18 sts per 4 in, your piece would be 22.2 in wide, so try a larger needle.
Why gauge matters
Gauge, or tension in UK terms, is the number of stitches and rows in a given width and height of knitted or crocheted fabric, usually 4 inches or 10 cm. It determines the size of everything you make. Patterns are written for a specific gauge, and being off by even half a stitch per inch can change a sweater's size by several inches. Knitting a swatch before starting a project lets you check your gauge with your chosen yarn and needles, and the calculator turns that swatch into stitch and row counts for any size.
Knitting and measuring a swatch
Knit or crochet a square at least 6 inches (15 cm) across in the stitch pattern the project uses, then wash and block it the way you'll treat the finished item, since many yarns relax or bloom after washing. Lay it flat without stretching and count the stitches and rows across 4 inches or 10 cm in the middle, away from the edges. Enter those counts and the size you measured. Measuring several places and averaging gives the most accurate gauge.
Matching a pattern's gauge
If you have more stitches per 4 inches than the pattern, your stitches are smaller and the item will come out too small; try larger needles or a hook. If you have fewer, your stitches are larger and the item will be too big; go down a needle size. Stitch gauge usually matters more than row gauge, because length can often be adjusted by knitting more or fewer rows. Enter the pattern's stitch gauge to see how wide your version would be and which way to change needles.
Designing your own pieces
For scarves, blankets, cushion covers and simple garments, you can design from gauge alone: multiply the width you want by stitches per inch to get the cast-on, and the length by rows per inch to get the number of rows. Adjust the cast-on to fit any stitch pattern repeat, such as a multiple of 4 plus 2 for a rib. For shaping, such as decreases at a sleeve cap, use the row gauge to space the shaping evenly over the length.
Estimating yarn
Yarn use depends on the weight of the yarn, stitch pattern, needle size and your tension. The calculator estimates yardage from the total number of stitches and a typical length of yarn per stitch for each yarn weight, plus 10%. Textured stitches, cables and colourwork use considerably more, and crochet typically uses about a third more yarn than knitting for the same area. Buy all the yarn for a project from the same dye lot, and an extra skein is cheap insurance against running out.
Yarn weights
Yarn weights follow standard categories, from lace and fingering (4-ply) through sport, DK (8-ply), worsted and aran (10-ply) to bulky (chunky) and super bulky. Worsted typically knits at about 16–20 stitches per 4 inches on 4.5–5.5 mm needles, DK at 21–24 and fingering at 27–32. Yarn labels show the recommended needle size and gauge. To compare yarns by length per weight, our unit price calculator compares cost per yard or per 100 g.
Related crafting tools
For sewing projects, the fabric yardage calculator and quilt backing calculator work out fabric amounts, and the circle skirt calculator drafts skirts. Our ratio calculator helps scale stitch counts when resizing a pattern.