Knitting Gauge Calculator

Enter your swatch gauge and the size you want to knit. Get the cast-on count, adjusted to your stitch pattern's multiple, and the rows needed, or check what happens when your gauge doesn't match the pattern.

in
Usually 4 in or 10 cm.
sts
rows
in
in
sts
sts
Use multiple 1, plus 0 for plain stockinette or garter.

Your results

Stitches to cast on—
Exact for your width—
Actual finished width—
Rows to knit—
Stitches per inch—
Rows per inch—

How knitting gauge turns into stitch counts

Gauge is the number of stitches and rows in a set width of knitted fabric, usually 4 inches or 10 cm. It depends on your yarn, your needles and your hands, so two knitters following the same pattern can get noticeably different sizes. Once you know your gauge, every measurement becomes simple arithmetic: stitches per inch times the width you want gives the cast-on, and rows per inch times the length gives the rows to knit.

Most stitch patterns only work with certain stitch counts. A pattern written as "a multiple of 4 + 2" repeats every 4 stitches and needs 2 extra to balance the edges, so the cast-on must be 4 × something + 2. The calculator rounds your exact target to the nearest valid count and shows the next count up and down so you can choose.

The formulas

stitches per inch = gauge stitches ÷ gauge width
target stitches = finished width × stitches per inch
cast on = multiple × round((target − plus) ÷ multiple) + plus
rows = round(finished length × rows per inch)
your width = pattern width × pattern gauge ÷ your gauge

Example: a 21 inch wide piece in a 4 + 2 pattern

Your blocked swatch measures 20 stitches and 28 rows over 4 inches. You want a piece 21 inches wide and 24 inches long in a rib that needs a multiple of 4 + 2 stitches.

StepWorkingResult
Stitches per inch20 ÷ 45
Exact stitches21 × 5105
Round to 4 + 24 × round(103 ÷ 4) + 2106 sts
Actual width106 ÷ 521.2 in
Rows per inch28 ÷ 47
Rows to knit24 × 7168 rows

The other nearby option is 102 stitches, which gives 20.4 inches. For a scarf either is fine; for a fitted garment, pick whichever is closer to the ease you want.

When your gauge doesn't match the pattern

Switch to "Compare to pattern gauge" to see the consequences. A pattern's stitch counts are fixed, so if you knit them at a different gauge the whole piece scales. Say a sweater is written for 20 stitches and 28 rows per 4 inches with a 40 inch chest, and you get 22 stitches and 30 rows:

MeasurementPatternYours
Stitches around chest200200
Chest width40 in36.36 in (−9.1%)
Length if knit by row count24 in22.4 in

That is 3.64 inches too small, enough to turn a relaxed fit into a snug one. To fix it, go up a needle size and swatch again, or follow the stitch counts for a larger size. At your gauge a 40 inch chest needs 220 stitches.

Tips for an accurate swatch

  • Swatch bigger than you think. At least 6 × 6 inches (15 × 15 cm), so you can measure the middle and ignore the edges.
  • Block it first. Wash and dry it the way you'll treat the finished item. Wool relaxes and cotton can grow.
  • Use the right stitch and method. Knit in the pattern stitch, and in the round if the project is in the round, because many knitters purl looser than they knit.
  • Count partial stitches. Half a stitch over 4 inches changes a 40 inch garment by about an inch.

Frequently asked questions

How do I calculate how many stitches to cast on?

Divide the stitches in your gauge by the width they were measured over to get stitches per inch, then multiply by the finished width you want. At 20 stitches per 4 inches, that is 5 stitches per inch, so a 21 inch wide piece needs 105 stitches. Round to the nearest number that fits your stitch pattern.

What does a multiple of 4 plus 2 mean?

The stitch pattern repeats every 4 stitches, and it needs 2 extra stitches to balance the edges. Valid cast-on counts are 4 times any whole number plus 2, such as 98, 102 or 106. The calculator rounds your target to the closest valid count.

What happens if my gauge is off from the pattern?

Your finished piece changes size in proportion. The pattern's stitch count stays the same, so if you get 22 stitches per 4 inches instead of the pattern's 20, each stitch is narrower and a 40 inch sweater comes out about 36.4 inches. Half a stitch per inch can mean several inches around a body.

Should I measure gauge before or after blocking?

After. Wash and block your swatch the same way you will treat the finished piece, let it dry, then measure. Many yarns, especially wool, superwash and plant fibers, grow or relax when wet, and a swatch measured on the needles can be misleading.

How big should a gauge swatch be?

Knit at least 6 by 6 inches, or about 15 by 15 cm, so you can measure 4 inches or 10 cm in the middle, away from the edges. Measure in a few places and average. Knit the swatch in the stitch pattern the instructions specify.

Do I need to match row gauge?

Stitch gauge matters most because it sets the width. Row gauge matters when a pattern gives lengths in rows, and for shaping like raglan decreases or sock heels. If you can match only one, match stitch gauge and knit lengths to measurement.

This calculator gives estimates for planning. Check current rates and product labels before you buy, list or file.