How to calculate knitting gauge
Gauge is the link between a pattern's numbers and the fabric coming off your needles. Get it right and your sweater fits. Get it wrong by even half a stitch per inch and a 40-inch chest becomes a 43-inch tent — or a 37-inch squeeze.
What gauge means
Knitting gauge is the number of stitches per inch (horizontally) and rows per inch (vertically) produced by a particular combination of yarn, needle size, and knitter tension. Patterns state gauge over a standard 4-inch (10 cm) square because measuring over a larger area averages out variation and gives a more reliable number than trying to count fractions of a stitch over one inch.
A gauge of 20 sts / 4 inches means 20 stitches span a 4-inch width, which works out to exactly 5 stitches per inch. That conversion — divide by 4 — is the only arithmetic you need to go from the pattern's 4-inch gauge to a per-inch rate you can apply to any finished width.
Swatching: the one step most knitters skip
A gauge swatch is a small test piece, typically cast on enough stitches for a 6-inch width (to give you a full 4-inch measurement area away from distorted edge stitches), worked in the same stitch pattern, yarn, and needle size you plan to use for the project.
Cast-on width of 6 inches at the pattern gauge — say, 20 sts/4 in — means casting on
(20 ÷ 4) × 6 = 30 stitches. Work at least 6 inches of length so you have a
comparable measurement in the row direction too.
Why you must block the swatch first
Blocking — wetting the swatch, gently squeezing out water, pinning it to its finished dimensions, and letting it dry — is not optional for gauge accuracy. Wool and natural fibers relax substantially when wet. A swatch that measures 4.5 inches dry may bloom to the full 4 inches you needed after blocking, or it may do the opposite. If you measure before blocking and your finished object will be washed, your gauge reading is wrong.
The rule: swatch in the round if you're knitting in the round (tension differs between knit and purl rows for most people), and block before measuring. Both conditions must be met before you trust the number.
How to measure your swatch
Lay the blocked swatch flat on a hard surface (not your lap — fabric drapes). Place a ruler or tape measure horizontally across the center of the swatch, away from the cast-on, bind-off, and side edges. Count the number of stitches (each V-shaped loop is one stitch) that span exactly 4 inches, including half-stitches. Repeat the measurement in two or three places and average the results.
Perform the same measurement vertically for row gauge: count the rows (horizontal ridges) spanning 4 inches.
Convert each measurement to a per-inch rate by dividing by 4. These are your actual gauge numbers — the ones to plug into all subsequent math for this project.
Converting gauge to a cast-on count
Once you have your stitches-per-inch rate, converting to a cast-on is multiplication:
cast-on stitches = desired finished width (inches) × stitches per inch
Round to a whole number, adjusting to a multiple of the stitch pattern repeat if necessary. For ribbing (K2, P2), the cast-on must be a multiple of 4. For a 2×2 rib, round to the nearest multiple of 4.
Worked example: 40-inch sweater back at 20 sts / 4 inches
You're knitting the back of a sweater with a 40-inch finished width. Your blocked swatch measures exactly 20 stitches over 4 inches. Here's the full calculation:
- Stitches per inch: 20 ÷ 4 = 5 sts/inch.
- Cast-on: 40 inches × 5 sts/inch = 200 stitches.
If that same swatch had measured 22 stitches over 4 inches instead (5.5 sts/inch) — a difference of just 2 stitches in your swatch — the cast-on for the same pattern would be 40 × 5.5 = 220 stitches, and knitting those 200 stitches at your personal gauge would produce a back that is only 200 ÷ 5.5 = 36.4 inches wide. That is a meaningful size difference from one extra stitch per 2 inches of gauge.
When your gauge doesn't match the pattern
If your swatch is tighter than the pattern gauge (more stitches per inch), your fabric is smaller than intended — try going up one needle size and swatching again. If your swatch is looser (fewer stitches per inch), try going down one needle size.
Needle size is a starting point. It is absolutely normal to be two or three sizes away from the needle on the ball band — the band gauge is measured by an average knitter, and you may knit much tighter or looser. The needle size does not matter; matching the gauge does.
For non-fitted items — hats, dishcloths, blankets — you can sometimes calculate your way around a gauge mismatch instead of re-swatching. Use the formula above with your actual gauge to find the cast-on count that will produce your target width at your tension, rather than the pattern's.
Row gauge and vertical measurements
Row gauge governs the height of a piece. Many patterns give vertical instructions in rows rather than inches, so if your row gauge differs from the pattern's, you'll need to adjust. The conversion is the same: measure rows per inch on your blocked swatch, then multiply by the desired length in inches to find how many rows to knit.
For shaped pieces — armholes, necklines, sleeve caps — pattern row counts are tied to specific angles and proportions. When row gauge is significantly off, it's usually better to work the shaping by measuring in inches rather than blindly following the row counts.