KnitFolio app icon KnitFolio

How many stitches do I cast on for this width?

The count is the width in centimetres, divided by 10, times the stitches in 10 cm, then rounded to a whole stitch. Inches become centimetres at 2.54 cm per inch. A gauge printed per 4 inches is divided by 4 * 2.54 / 10 before that step, because 4 inches is 10.16 cm, not 10 cm.

The worked example is 52 cm at 20 stitches per 10 cm: 104 stitches exactly, rounded to 104. Those 104 stitches measure 52 cm.

Cast-on and the width it measures

104 stitches exactly, rounded to 104. 104 stitches measure 52 cm (20.4724 in). The target width is 52 cm.

Exact stitches
104
Rounded cast-on
104
Width of that cast-on
52 cm
That width in inches
20.4724 in
Stitches per 10 cm
20
Stitches per 4 inches
20.32

What the rounding does

round follows Math.round. When the fractional part is exactly 0.5, the result moves toward positive infinity. A positive count on that tie rounds up.

widthCm = widthIn * 2.54; stitchesPer10cm = stitchesPer4In / (4 * 2.54 / 10); exactStitches = widthCm / 10 * stitchesPer10cm; castOn = round(exactStitches).

22 stitches exactly, rounded to 22. 22 stitches measure 10.16 cm (4 in). The target width is 10.16 cm.

21.6535 stitches exactly, rounded to 22. 22 stitches measure 10.16 cm (4 in). The target width is 10 cm.

Width from a cast-on

The reverse does not round. It is the width those stitches actually measure at the same gauge. 104 stitches at this gauge measure 52 cm (20.4724 in).

stitchesPer10cm = stitchesPer4In / (4 * 2.54 / 10); widthCm = castOn * 10 / stitchesPer10cm; widthIn = widthCm / 2.54. This width is exact for the stitch count you pass. It is not rounded.

Sources

The inch in this formula is the international inch. NIST: the international inch is exactly 25.4 mm records the 1959 definition: the inch is exactly 25.4 mm, which is 2.54 cm.

A gauge per 4 inches uses the span on the stockinette ranges. Craft Yarn Council Standard Yarn Weight System publishes those ranges over 4 inches. This page does not assign a yarn class.

One gauge and one width. This does not compare your swatch with a pattern gauge. Compare pattern gauge with your swatch, count rows for a length, convert stitches per inch to 10 cm, or move that count onto a pattern multiple. The forward formula, with one worked width, is also on the reference page.

iOS App (Coming to the App Store · Pre-Launch): Compare Pro PlansSupport