Skip to content
Tools for Fibers

Search Tools for Fibers

Search tools, crafts, guides, and reference charts.

Stitch calculator

Work out how many stitches to cast on and how many rows to work for a target size, rounded to your stitch pattern repeat.

Updated 2026-11-22

Your gauge and size

sts
rows
in
in
sts

Use 1 if the pattern has no multiple.

sts

Edge or balancing stitches.

Result

Cast on
50 stitches
Rows to work
84 rows
Repeats
12
Actual width
10 in

The cast-on is rounded to the nearest full repeat, so the actual width can differ slightly from your target.


How to use the stitch calculator

Enter your swatch gauge as stitches and rows over 4 inches or 10 cm. Add the finished width and height you want. If your stitch pattern repeats over a set number of stitches, enter that multiple and any extra stitches the pattern adds. The calculator returns the cast-on and the number of rows.

How the calculation works

The raw stitch count is the target width divided by the reference length, times your stitch gauge. The calculator subtracts the extra stitches, rounds to the nearest whole repeat, and adds the extras back. Rows are the target height divided by the reference length, times the row gauge, rounded to a whole row.

Worked example

A gauge of 20 stitches over 4 inches and a width of 10 inches gives 50 stitches. With a pattern worked over a multiple of 4 plus 2, that is 12 repeats of 4 plus 2, which is 50 stitches. A height of 12 inches at 28 rows per 4 inches gives 84 rows.

Check the result

Rounding to a repeat can add or remove a few stitches. If the actual width is too far from your target, adjust the target and check again. Blocking and stitch pattern change the finished size, so measure as you knit.

Frequently asked questions

Related guides

Knitting

How do you knit a scarf?

A first-scarf workflow, from cast-on count and stitch choice to yarn amount and finishing, for a confident first knitting project.

Knitting gauge calculator

Turn a swatch into stitches and rows per 10 cm or 4 inches.

Knittingcalculator

Yarn yardage calculator

Estimate how much yarn a project needs, in yards and meters.

Knittingestimator

Crochet gauge calculator

Turn a crochet swatch into stitches and rows per 10 cm or 4 inches.

Crochetcalculator