Cast-on and foundation chain calculator

Turn your gauge swatch into a stitch count for any width, rounded to fit your stitch pattern's repeat, plus rows for any length.

Your craft
Measure in
Measure the middle of a washed and blocked swatch.
Use a minus number, like -2, for negative ease (a snug hat or socks).
Stitch pattern repeat (optional)
For "a multiple of 4 plus 2", enter 4 and 2.
Rows for a length (optional)

Cast on 100 stitches

100 stitches ≈ 20 in

Exact count for 20 in: 100 stitches.

How to use it

  • Choose your craft and your unit. In centimeters, the gauge boxes ask for stitches and rows in 10 cm instead of 4 in.
  • Enter your stitch gauge and the width the piece should measure. For something worn, you can add ease, explained below.
  • If your stitch pattern repeats, enter the repeat: flat 2×2 rib that starts and ends with k2 is a multiple of 4 plus 2. When the exact count doesn't fit the repeat, a table shows the counts that fit either side and the width each one gives.
  • For a row count, fill in your row gauge and the length. Leave both empty if you'd rather measure as you go.

How it works

Your gauge tells you how many stitches fit into 4 inches (or 10 cm). Divide to get stitches per inch, then multiply by the width you want:

stitches = (width + ease) × (gauge stitches ÷ 4)

Example: a 20 in width with no ease, at 20 stitches in 4 in, is 20 × (20 ÷ 4) = 100 stitches.

If your stitch pattern repeats over a set number of stitches, the count has to fit that repeat. The calculator gives the nearest counts either side and the width each one will actually knit or crochet up to, so you can pick the one closest to your plan.

Measuring gauge

  • Make a swatch at least 6 in (15 cm) square in the stitch pattern you'll use, with the needles or hook you'll use.
  • Wash and block it the way you'll treat the finished piece, then let it dry.
  • Count stitches over 4 in (10 cm) in the middle, away from the edges. Include half stitches: they add up across a whole piece.

Ease in a nutshell

Ease is the difference between the finished piece and the body it fits. Positive ease makes a relaxed fit, like a roomy sweater. Negative ease makes a piece that stretches to fit, like a hat or socks. Leave it at 0 for things like scarves and blankets.

For crochet

The result is the number of stitches in your first row. For the foundation chain, chain that many plus your turning chain. Patterns often use 1 extra chain for single crochet, 2 for half double and 3 for double crochet, but follow your pattern if it says otherwise.

Last updated 2026-10-12. How these calculators are made.