Before the first row, before picking a cast-on method, before anything else, you need a number. That number comes from gauge, not from the yarn label, not from what worked on your last project, and definitely not from a hopeful guess.

To calculate the cast-on count, multiply your gauge (stitches per inch) by the desired width in inches, then adjust for pattern repeats and edge stitches. The arithmetic is short. Getting the right inputs is the part that actually matters, and so is choosing a cast-on method that suits what comes next.

The core calculation

Stitches per inch from your gauge swatch, multiplied by the width you want. That’s the base cast-on count.

Gauge of 5 stitches per inch and a target width of 10 inches → cast on 50 stitches.

If the gauge is measured over 4 inches, divide first. 20 stitches over 4 inches gives 5 stitches per inch.

KnitTools’ Cast On Calculator calculates the base count and rounds to the nearest even number (an odd whole number rounds up). Enter stitches per 10 cm with a width in cm, or select inches and enter stitches per 4 inches with a width in inches. Switching units does not convert the inputs. The usual “10 cm / 4 in” gauge notation is approximate: 4 inches is exactly 10.16 cm. You must allow for ease, repeats, balancing stitches, borders and seams yourself; the calculator does not resize a pattern.

Measure your gauge correctly

The cast-on number is only as good as the swatch behind it. Two mistakes cause problems over and over again.

Use your project’s yarn, needles and stitch pattern, and swatch flat or in the round to match the construction. Stockinette gauge does not predict the width of ribbing, lace or cables.

Measuring at the edge of the swatch. Edge stitches aren’t reliable. Measure in the center, away from the cast-on, bind-off, and side edges.

Using the wrong measurement state. Follow the pattern’s gauge instructions, including unblocked gauge if specified. Otherwise, measure the swatch after treating it like the finished project, within the yarn’s care instructions, and letting it dry and relax.

No swatch yet? Measuring gauge covers the full process.

A worked example

Take a simple stockinette scarf, 8 inches wide, gauge of 4.5 stitches per inch.

8 × 4.5 = 36 stitches. In the calculator, select inches and enter 18 stitches per 4 inches and a width of 8: the result is 36.

For a different stitch pattern, measure a new swatch. If that pattern also measures 4.5 stitches per inch and needs a pure multiple of 4 or 6, 36 works. For a pure multiple of 8, choose between 32 and 40: about 7.1 or 8.9 inches wide. Check the complete pattern setup before choosing.

If 8 inches describes only the central area, 36 central stitches plus one separately required selvage at each side gives 38 total. At the same gauge throughout, that is about 8.4 inches before seaming. If 8 inches includes those two edges and the center requires a multiple of 8, use the full formula 8n + 2 (n = number of repeats): (36 − 2) ÷ 8 = 4.25 repeats. Four or five repeats give 34 or 42 total stitches, about 7.6 or 9.3 inches. Do not round 36 to a repeat multiple and add edges afterward. Different border gauges or stitches lost in seams require a separate width allowance.

Adjusting for pattern repeats

The base multiplication is a first draft, not the final number.

Most stitch patterns repeat over a fixed number of stitches, and the cast-on count has to fit that repeat. Landing on any number and hoping the pattern works out isn’t a strategy.

For example, 5 stitches per inch × 19.4 inches gives 97 stitches. With a pure 6-stitch repeat, the neighboring counts are 96 and 102, giving 19.2 and 20.4 inches. If the full requirement is 6n + 2 instead, subtract the two extra stitches first: (97 − 2) ÷ 6 ≈ 15.83. Choose 15 or 16 repeats, then add the two stitches once: 92 or 98 total, giving 18.4 or 19.6 inches at that gauge.

Some patterns also need edge or balancing stitches outside the repeat. If the instructions say something like k2, *p2, k2; rep from *, those extra stitches are part of the required setup. Not optional decoration. Skip them and the pattern won’t balance across the row.

When working with a pattern repeat of 8 stitches plus 2 balancing stitches, the target is not “a multiple of 8.” It’s “a multiple of 8, plus 2.” Common formats and what they produce:

  • “Multiple of 4” → 32, 36, 40, 44, 48
  • “Multiple of 6 + 1” → 31, 37, 43, 49, 55
  • “Multiple of 8 + 2” → 34, 42, 50, 58, 66
  • “Multiple of 12 + 3” → 27, 39, 51, 63, 75

Check the resulting width, not just divisibility. At 5 stitches per inch, four stitches change the width by 0.8 inch, whatever the project’s total width. Whether that is acceptable depends on the intended fit.

Edge stitches and selvage

For flat pieces that will be seamed, follow the pattern’s edge treatment and seam allowance. Check whether the stated count already includes those stitches; do not automatically add two more.

For exposed edges, choose the intended border or selvage and include its width in the plan. A border in another stitch pattern may need its own gauge. The seam consumes some of the knitted width, so distinguish the unseamed width from the finished visible width.

Ordinary seamless circular knitting has no side selvages. Extra joining stitches or steek stitches are separate, pattern-specific instructions.

Width at the cast-on vs in the body

The cast-on edge and the body don’t always behave the same way. Some cast-ons run tighter. Some stretch more. Some flare.

Choose and swatch a cast-on that suits the edge. A larger needle makes larger loops, but does not by itself make a long-tail cast-on stretchier: the yarn between stitches must also have room to spread. Test the edge with the fabric and opening it needs to fit.

When the cast-on is part of the finished fit (sock cuffs, hat brims), tension at the edge matters just as much as the stitch count.

Casting on for ribbing

Measure ribbing in the state specified by the pattern; do not substitute stockinette gauge. Follow the instructed transition, including any evenly spaced increases.

Some patterns keep the same count through ribbing and body; others change it. When designing your own piece, swatch both sections and their transition. A count change alone does not guarantee a particular shape or a smooth join.

Casting on for circular knitting

Use stitches per inch × desired finished circumference, with gauge measured for circular knitting. A tube’s circumference is not its laid-flat width. Decide the ease before calculating: finished circumference equals body circumference plus positive ease, or minus the chosen negative ease. The amount depends on the pattern, fabric and intended fit; there is no universal reduction for hats or socks.

Before joining, lay out the cast-on and check that the lower edge runs around without spiraling. If the joined fabric is twisted, undo enough work to correct it before continuing.

If your chosen joining method uses an extra stitch, remove that stitch as instructed at the join so the working count returns to the planned total. It is not an extra stitch to keep in every circular project.

For toe-up socks, Judy’s magic cast-on creates two sets of live stitches with no seam at the toe; the toe shaping determines the starting count. For cuff-down socks, calculate and check the cuff separately, including whether its cast-on stretches over the heel.

Cast-on methods, briefly compared

The right method depends on what the edge needs to do.

Long-tail. A general-purpose cast-on using the working yarn and a reserved tail. Its stretch depends on how it is worked. Estimate the tail before starting; see the FAQ below.

Knitted cast-on. Makes new stitches by knitting into an existing loop. Useful for learning to cast on and for adding stitches during a project.

Cable cast-on. Makes new stitches between the previous two stitches. It gives a relatively firm edge with limited stretch, useful for buttonholes and firm edges.

German twisted (old Norwegian). A long-tail variation with extra stretch built in. Excellent for sock cuffs and ribbed hems where the edge needs to stretch over a foot or a head.

Tubular cast-on. Creates a rounded edge for ribbing with the appropriate foundation rows. Follow a setup specifically for 1x1 or 2x2 ribbing; a 1x1 setup does not automatically become 2x2 without rearranging the stitches.

Provisional cast-on. Holds live stitches that can be picked up and worked in the other direction later. Used in top-down shawls, hems that fold under, and any time the cast-on edge will be reworked.

Judy’s magic cast-on. Toe-up sock cast-on that produces two parallel rows of stitches with no seam at the toe.

Cast-on tension

A tight cast-on can restrict an otherwise correctly sized piece; a loose one can flare. Test the cast-on with several rows or rounds of the intended fabric.

For long-tail cast-on, leave room between stitches rather than pulling each new stitch tightly against the previous one. A larger needle or two needles held together enlarge the loops but do not guarantee enough yarn between them. If the edge still lacks the required stretch, try a suitable alternative, such as German twisted, and test again.

If the edge flares, adjust the tension or needle size for that method and repeat the sample. A fixed change of one or two needle sizes is not a universal solution.

Common cast-on counts for standard projects

There is no standard cast-on count for a dishcloth, scarf, cowl, hat or pair of socks based on yarn category alone. Choose the finished width or circumference, account for ease where needed, then use the relevant measured gauge and the complete pattern formula.

The Cast On Calculator provides the base estimate once these inputs are known. Its even-number rounding does not check ribbing, crown decreases, heel construction or garment shaping.

Top-down vs bottom-up sweaters

For a sweater worked from the bottom up, use the actual hem or individual panel dimensions, not automatically the chest circumference. For one worked from the top down, use the neckline setup specified by the construction.

A straight body worked in the round with a finished hem circumference of 40 inches and a hem gauge of 5 stitches per inch gives 5 × 40 = 200 stitches before any pattern-specific adjustment; 200 ÷ 5 = 40 inches. This assumes the hem uses that gauge and count. It does not determine a neckline count or the count for a separate front or back.

Changing only the cast-on does not resize a sweater. Shaping, row gauge, lengths, sleeves and neckline all need checking.

FAQ

Should I cast on an odd or even number of stitches? For ordinary circular 1x1 ribbing, use a multiple of 2; for circular 2x2 ribbing, a multiple of 4. Flat ribbing depends on its edges: starting and ending with one knit stitch needs 2n + 1 for 1x1; starting and ending with two knit stitches needs 4n + 2 for 2x2. Add separate selvages only if the instructions require them and they are not already counted.

What if my pattern gives a cast-on number but my gauge doesn’t match? The stated count will produce a different width. Match the pattern gauge, or assess the whole adaptation, including row gauge and shaping. A new cast-on count alone is not a complete resizing method.

Do I count the slip knot as a stitch? In the conventional long-tail, knitted and cable cast-ons that begin with a slip knot, the knot left on the needle counts as the first stitch. Other setups may omit it or use a temporary knot that is removed. Follow the specific method.

How long should the tail be for long-tail cast-on? A width multiplier is only an estimate. For the long-tail method, Purl Soho suggests about 3.5 times the planned width: 40 × 3.5 = 140 inches. Allow additional yarn for weaving in or seaming. Yarn, tension and technique affect the amount; the 200-stitch example is not a guaranteed tail-length rule.

Can I use the cable cast-on for a stretchy edge like a sock cuff? A standard cable cast-on has limited stretch. For a cuff that must pass over the heel, test the opening; a correctly spaced long-tail or German twisted cast-on, or a suitable tubular setup, is an alternative. A larger needle alone does not guarantee stretch.

How do I cast on for knitting in the round? Use the finished circumference and circular gauge, adjust for the pattern, and check for a twist before joining. Ordinary seamless work needs no side selvages. Add and remove an extra joining stitch only if your joining method calls for it.

My pattern says “cast on X stitches loosely.” How loose is loose? Loose enough for the opening and fabric the pattern requires, without an unwanted flare. Test the method and stitch spacing; changing needle size is a trial, not a guaranteed fix.