Pattern Repeat Expander
Expand supported repeat instructions.
Pattern Repeat Expander: Quick Calculation
How Pattern Repeat Expander Works?
The Pattern Repeat Expander works by taking a Base Motif length and the stitches in the row to give the Expanded Length of the full row written out. A line like "*k2, p2; rep from * to last 2 sts, k2" becomes a stitch-by-stitch count.
Enter the base motif
Press → to set Base Motif to the stitches between the asterisks, such as 4 for k2, p2.
Enter the row length
Tap in the stitches on the needle as Expanded Length.
Subtract the fixed stitches
Take away the stitches outside the repeat, such as the last 2 stitches.
Divide
Divide what is left by the motif to get the number of repeats, then write the row out.
Pattern Repeat Expander Formula
The Pattern Repeat Expander formula is repeats = (row stitches − fixed stitches) ÷ motif length. The expanded row is the fixed stitches plus the motif written out that many times.
- Repeats
k = (S − f) ÷ mS is Expanded Length, f is fixed stitches outside the repeat and m is Base Motif.
- Expanded row
Row = start + motif × k + endWrite the motif out k times.
- Check
start + m × k + end = SThe check confirms the row fits.
Worked example: "*k2, p2; rep from * to last 2 sts, k2" on 66 stitches gives (66 − 2) ÷ 4 = 16 repeats: (k2, p2) 16 times, then k2.
Pattern Repeat Expander Conversion Table
The Pattern Repeat Expander conversion table expands 6 shorthand lines on set stitch counts.
| Shorthand | Stitches | Repeats | Written out |
|---|---|---|---|
| *k2, p2; rep from * to last 2, k2 | 66 | 16 | (k2, p2) ×16, k2 |
| *k1, p1; rep from * to end | 80 | 40 | (k1, p1) ×40 |
| k3, *yo, k2tog, k4; rep from * to last 3, k3 | 66 | 10 | k3, (yo, k2tog, k4) ×10, k3 |
| *p3, k6; rep from * to last 3, p3 | 93 | 10 | (p3, k6) ×10, p3 |
| sc, *ch 1, sk 1, sc; rep from * to end | 41 | 20 | sc, (ch 1, sk 1, sc) ×20 |
| *k4, p4; rep from * | 96 | 12 | (k4, p4) ×12 |
A remainder that is not 0 means the stitch count does not fit the repeat.
What is Pattern Repeat Expander?
A Pattern Repeat Expander is a tool that turns shorthand repeat instructions into a full count of every repeat in the row. Patterns compress rows with asterisks, brackets and "rep from" notes.
Writing the row out shows the exact number of repeats and the leftover stitches before you start. The Stitches Counter tool saves the motif and row length in your browser.
What are the uses of Pattern Repeat Expander?
There are 4 main uses of the Pattern Repeat Expander, including rib rows, lace rows and new sizes.
Rib rows
Count rib repeats across a row.
Lace rows
Write out lace repeats with edge stitches.
New sizes
Expand a row for a stitch count the pattern does not list.
Beginners
Read shorthand as plain steps.
About the Pattern Repeat Expander
Expand shorthand instructions like "*K2, P2; rep from * to last 2 sts" into full explicit stitch-by-stitch roadmaps for any cast-on count.
How to Use This Tool Efficiently
- ✓Takes the guesswork out of pattern asterisks (*) and brackets [].
- ✓Generates row-by-row stitch counts tailored to your exact cast-on total.
Browse All Stitches Counter Tools
Explore all 132 specialized counters, calculators, and trackers in our collection.