Knitting Row Calculator
Gauge is the bridge between a pattern's measurements and the rows and stitches you actually knit. Row gauge tells you how many rows make up a measured length, and stitch gauge tells you how many stitches make up a measured width. Once you know your own gauge from a swatch, turning a target length into a row count is just a ratio. Enter your row gauge and the swatch length it was measured over, your target length, and optionally a stitch gauge and target width, and this calculator returns the rows to knit and the stitches to cast on.
Knitting gauge formula
Rows per inch = rows in swatch / swatch length
Exact rows = rows per inch * target length
Rows to knit = round(exact rows)
Stitches per inch = stitches in swatch / swatch width
Cast-on stitches = round(stitches per inch * target width)
The ratio of rows to length in your swatch is assumed to hold across the whole piece. Keep the swatch and target in the same unit, whether inches or centimeters.
Knitting gauge notes
- Always knit and block a swatch of at least 4 by 4 inches before trusting any gauge number.
- Row gauge and stitch gauge are usually different; most patterns quote both over 4 inches or 10 cm.
- Changing needle size is the usual way to adjust gauge: larger needles give fewer stitches and rows per inch.
- For length-critical pieces, round the row count up so the finished piece is never short.
- Washing and blocking can change gauge, so measure your swatch the way you will treat the finished item.
Knitting row calculator: frequently asked questions
How do I calculate knitting rows from gauge?
Row gauge is the number of rows in a measured swatch, usually quoted per 4 inches (10 cm). Divide your row gauge by the swatch width to get rows per inch, then multiply by the length you want. For example, 28 rows over 4 inches is 7 rows per inch, so a 12 inch piece needs 7 times 12, which is 84 rows.
Why should I always knit a gauge swatch?
Every knitter, yarn, and needle combination produces a slightly different gauge. A pattern's stated gauge is only a starting point. Knitting a swatch of at least 4 by 4 inches and measuring your own rows and stitches per inch is the only reliable way to make a finished piece come out the intended size.
How do I find the cast-on stitch count?
Stitch gauge works the same way as row gauge but across the width. Divide your stitches per swatch by the swatch width to get stitches per inch, then multiply by the target width. The calculator does this for you when you enter a stitch gauge and a target width.
Should I round rows up or down?
Rounding to a whole number of rows is necessary because you cannot knit a partial row. This calculator shows both the exact figure and the value rounded to the nearest whole row. For length-critical pieces, round up so the piece is at least as long as you need, then adjust during finishing.
Does this work for both metric and imperial gauge?
Yes, as long as you keep your units consistent. If your swatch is measured over 10 cm, enter the gauge over 10 and your target length in centimeters. If it is measured over 4 inches, enter 4 and use inches. The ratio is what matters, not the unit.
Official sources
- NIST: Unit conversion (inches and centimeters).
- U.S. Census Bureau: Textile and craft industry statistics.
Reviewed by the CalculatorHub team, edited by James Graham, 16 June 2026. See our methodology.