b2KIT

Knitting Gauge Calculator

Calculate stitch and row counts from gauge swatches to resize knitting patterns.

Tested tool guide Tested browser tools Checked August 16, 2026

What Knitting Gauge Calculator does, with a checked example

A knitting gauge states how many stitches and rows fit in a 4-inch (10 cm) square, and every number in a pattern derives from that ratio. This calculator takes the pattern's gauge and the gauge you actually produce, then rescales the pattern's stitch and row counts so the finished piece keeps the designer's width and length in your hands. The same calculation handles cast-on counts, panel widths, and target lengths. The surprise for most knitters is direction: a tighter gauge needs more stitches, a looser one needs fewer, and rows follow the same rule vertically.

Worked example

A concrete input and expected output from the current implementation.

Input

Pattern gauge: 20 sts, 24 rows per 4 in. Your gauge: 22 sts, 26 rows per 4 in. Pattern cast-on: 100 sts. Pattern rows to length: 40.

Expected output

Cast on 110 stitches (100 x 22/20 = 110). Work 43 rows (40 x 26/24 = 43.3, rounded to 43).

Each pattern count is scaled by your gauge divided by the pattern gauge. Your stitch gauge is denser (22 vs 20 per 4 in), so the same width needs 10% more stitches; your row gauge is denser too (26 vs 24), so the same height needs about 8% more rows.

How the result is produced

1

Ratio scaling

Both gauges are reduced to one unit (stitches per 4 in or per 10 cm), then each pattern count is multiplied by your gauge divided by the pattern gauge. Stitch counts scale the width, row counts scale the height, and the two are computed independently. The result is a proportional count, usually a decimal, that you round in the direction that suits the pattern's repeats and shaping.

2

Target-size conversion

Given a desired width or length and your measured gauge, the tool works the other way: it multiplies the target measurement by your stitches (or rows) per inch to return a cast-on or row count from scratch. This is the route for projects with no pattern gauge to match, such as a blanket sized to a bed or a scarf of a specific length.

Good uses

  • Substituting a yarn whose gauge differs from the designer's, so the sweater or hat still comes out at the pattern's measurements.
  • Knitting to an exact size from your own gauge, like a blanket for a specific bed or a shawl with a set wingspan.
  • Mid-project correction when tension drifts: recompute the remaining stitch and row counts from a fresh swatch instead of guessing.

Limits and checks

  • Gauge must come from a washed and blocked swatch, measured across the middle rather than the edges, which curl and distort. It also changes with stitch pattern: the calculator's single gauge cannot cover sections like cables or ribbing that knit up at their own density.
  • The ratio assumes both gauges use the same unit. A per-4-inch number and a per-10-cm number are within a couple percent of each other (10 cm is 3.94 in), but if one entry is mislabeled, the scale factor is silently wrong. Carry decimals through the calculation instead of rounding each input early.
  • Scaled counts usually land on decimals that break pattern repeats, edge symmetry, and increase/decrease rhythm. The calculator returns a proportion, not a finished instruction: expect to nudge the result to the nearest multiple of your stitch repeat and rework shaping schedules that assume specific counts.

Common questions

Do I have to wash and block my swatch before measuring gauge?

Yes, if you want the numbers to hold. Unwashed yarn lies differently, and washing can relax, shrink, or grow the fabric, so the swatch should be laundered the same way the finished garment will be and measured dry afterward. Measure a 4-inch (10 cm) square in the middle of a larger swatch. Skipping this step is the most common reason a carefully calculated piece comes out the wrong size.

If my swatch is looser than the pattern gauge, do I cast on more stitches or fewer?

Fewer. Looser means fewer stitches per inch, so each stitch spans more width and a smaller number reaches the same measurement. The calculator multiplies the pattern's counts by your gauge divided by the pattern gauge, which gives a factor below 1. Row counts behave the same way for heights. Reversing the ratio - a common slip - inflates or shrinks the piece by a surprising amount.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools