Knitting & Sewing
Knitting Cast-On Calculator for Gauge and Pattern Repeats
Calculate how many stitches to cast on from your gauge swatch, target width, stitch multiple and edge stitches.
Your result
For the example values
- Cast-on stitches
- Estimated width
- in
Copy your content
Select the text and copy it.
How many stitches should I cast on for 20 inches with a multiple of 6 plus 2?
At a gauge of 18 stitches per 4 inches, 20 inches needs at least 90 stitches. Reserve 2 edge stitches and round the remaining count up to 15 repeats of 6. Cast on 92 stitches in total for an estimated width of 20.444 inches.
This method picks the first full repeat at or above the target width for a rectangular piece. Measure gauge in the stitch pattern you plan to knit.
Formula
Cast-on stitchesStitches per repeat × max(1, ceil((Target width × Stitches in your swatch ÷ Measured swatch width − Total edge stitches) ÷ Stitches per repeat)) + Total edge stitches
Cast-on stitches
Estimated width(Stitches per repeat × max(1, ceil((Target width × Stitches in your swatch ÷ Measured swatch width − Total edge stitches) ÷ Stitches per repeat)) + Total edge stitches) × Measured swatch width ÷ Stitches in your swatch
Estimated width at saved gauge
When to use it
- Assumes a rectangular repeat pattern, at least one complete body repeat and the entered total edge count.
- This selects the first valid repeat count at or above the requested width, not the nearest size.
- Not garment grading, shaping, a row schedule or a guarantee of finished dimensions.
- All example values are illustrative, not recommended personal settings. Confirm the rule before saving it.
Sources
CalcKeep U.S. template · Release 2, revision 1
Worked example
| Target width | 20 in |
|---|---|
| Stitches in your swatch | 18 |
| Measured swatch width | 4 in |
| Stitches per repeat | 6 |
| Total edge stitches | 2 |
| Cast-on stitches | 92 |
| Estimated width | 20.444 in |
Changed inputs
| Target width | 24 in |
|---|---|
| Stitches in your swatch | 18 |
| Measured swatch width | 4 in |
| Stitches per repeat | 6 |
| Total edge stitches | 2 |
| Cast-on stitches | 110 |
| Estimated width | 24.444 in |
Valid boundary or precision case
| Target width | 1 in |
|---|---|
| Stitches in your swatch | 20 |
| Measured swatch width | 4 in |
| Stitches per repeat | 4 |
| Total edge stitches | 2 |
| Cast-on stitches | 6 |
| Estimated width | 1.200 in |