YarnPath

Home › Tools › Gauge calculator

Knitting & crochet · Free calculator

Gauge calculator: how many stitches to cast on

Stitches to cast on = width × stitches per 4 in ÷ 4 (or width in cm × stitches per 10 cm ÷ 10). At 18 stitches per 4 in, a 20 in wide piece needs 90 stitches. If your gauge differs from the pattern's, multiply the pattern's count by your gauge and divide by its gauge to keep the same size.

Measuring in

Your swatch

The piece you want

Following a pattern? optional

The formulas

  • Stitches for a width: width × stitch gauge ÷ 4 (inches) or ÷ 10 (centimetres).
  • Rows for a length: length × row gauge ÷ 4 (or ÷ 10).
  • A pattern at your gauge: pattern stitches × your gauge ÷ pattern gauge.
  • The size you would get unchanged: pattern stitches × 4 ÷ your gauge.

Worked example. A hat pattern casts on 96 stitches at 20 stitches per 4 in, for a 19.2 in circumference. Your swatch gives 18 per 4 in. Following the pattern unchanged gives 96 × 4 ÷ 18 = 21.3 in, 11% bigger. To keep 19.2 in, cast on 96 × 18 ÷ 20 = 86.4, rounded to 88 for a 2×2 rib (a multiple of 4).

Measuring your swatch

Work a swatch at least 6 in (15 cm) square, wash and dry it, lay it flat without stretching, and count the stitches across 4 in in the middle. Count half stitches too: half a stitch over 4 in is about an inch on a 40 in sweater. The gauge swatch guide walks through it.

Common questions

What is gauge in knitting and crochet?

Gauge (tension in the UK) is how many stitches and rows fit in 4 in or 10 cm of your fabric. It depends on the yarn, the needle or hook and your hands, and it is what turns a stitch count into a size.

What if my gauge does not match the pattern?

More stitches per 4 in than the pattern means your fabric comes out smaller: go up a needle or hook size. Fewer means bigger: go down. If you like the fabric as it is, keep it and recalculate the stitch counts here instead.

How much bigger will my project be if my gauge is off by one stitch?

At a pattern gauge of 20 stitches per 4 in, working 19 makes the piece about 5% wider: 2 in on a 40 in sweater. Enter the pattern's count and gauge to see the exact size you would get.

Should I measure gauge before or after washing?

After. Wash and dry the swatch the way you will treat the finished piece, because many yarns relax or grow when wet. Measure in the middle, away from the edges.

Updated 8 November 2026. The calculator runs in your browser; nothing you type is sent anywhere.