# Knitting gauge calculator > How many stitches should I cast on? Gauge from your swatch, stitches and rows for the size you want, and any pattern rescaled to your tension. Work out your knitting gauge from a swatch, how many stitches to cast on and rows to knit for a size, and adjust a pattern written for another gauge. - Page: https://how.box/knitting-gauge/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/knitting-gauge/?m={m}&ss={ss}&sr={sr}&sw={sw}&sh={sh}&tw={tw}&tl={tl}&mu={mu}&pl={pl}&pgs={pgs}&pgr={pgr}&gs={gs}&ps={ps}&pr={pr}&u={u} - `m` (make or adjust): make (cast-on and rows for a size) or adjust (rescale a pattern to your gauge). Example: `make`. - `ss` (whole number 1 to 2000): Stitches counted across the swatch. Example: `22`. - `sr` (whole number 1 to 5000): Rows counted over the swatch height. Example: `30`. - `sw` (number 0.02 to 1): Width of the counted swatch in metres. Example: `0.1`. - `sh` (number 0.02 to 1): Height of the counted swatch in metres. Example: `0.1`. - `tw` (number 0.02 to 5): Width to knit in metres (make). Example: `0.5`. - `tl` (number 0.02 to 5): Length to knit in metres (make). Example: `0.6`. - `mu` (whole number 1 to 100): Round the cast-on to a multiple of this many stitches (make). Example: `4`. - `pl` (whole number 0 to 100): Edge stitches added after the multiple (make). Example: `2`. - `pgs` (number 1 to 100): The pattern gauge in stitches over the span (adjust). Example: `20`. - `pgr` (number 1 to 100): The pattern gauge in rows over the span (adjust). Example: `28`. - `gs` (cm10 or in4): What the pattern gauge is measured over: cm10 or in4. Example: `cm10`. - `ps` (whole number 1 to 2000): A stitch count from the pattern (adjust). Example: `100`. - `pr` (whole number 1 to 5000): A row count from the pattern (adjust). Example: `150`. - `u` (cm or in): Length unit shown: cm or in. Example: `cm`. Example answer: https://how.box/knitting-gauge/?m=make&ss=22&sr=30&sw=0.1&sh=0.1&tw=0.5&tl=0.6&mu=4&pl=2&pgs=20&pgr=28&gs=cm10&ps=100&pr=150&u=cm A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `knitting_gauge_calculate`: Knitting gauge from a swatch, and what it means for a project. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"knitting_gauge_calculate","arguments":{"mode":"make","swatch_stitches":22,"swatch_rows":30,"swatch_width":0.1,"swatch_height":0.1,"target_width":0.5,"target_length":0.6,"multiple":4,"plus":2,"pattern_gauge_stitches":20,"pattern_gauge_rows":28,"gauge_span":"cm10","pattern_stitches":100,"pattern_rows":150,"unit":"cm"}}}` - GET: https://how.box/mcp/run/knitting_gauge_calculate?mode=make&swatch_stitches=22&swatch_rows=30&swatch_width=0.1&swatch_height=0.1&target_width=0.5&target_length=0.6&multiple=4&plus=2&pattern_gauge_stitches=20&pattern_gauge_rows=28&gauge_span=cm10&pattern_stitches=100&pattern_rows=150&unit=cm ## How it works Gauge (tension) is how many stitches and rows fit in a stretch of fabric. Everyone knits a little tighter or looser, so the same pattern and yarn give a different size for each knitter. Measuring a swatch tells you your own gauge, and with it you can work out how many stitches make the width you want. The arithmetic is proportion. Gauge over 10 cm is stitches counted × 10 ÷ width in cm; the cast-on is width in cm × gauge ÷ 10, rounded to a whole stitch, or to a multiple of a pattern repeat plus edge stitches; rows work the same way from the row gauge. To rescale a pattern, multiply its count by your gauge ÷ the pattern's gauge. Example: 22 stitches over 10 cm and a 50 cm width give 50 × 22 ÷ 10 = 110 stitches. US patterns state gauge over 4 in (10.16 cm); the tool shows both. The yarn category and needle range come from the Craft Yarn Council's yarn weight standard and are guidelines only: the gauge a pattern states always wins. Swatches in knit-and-purl or lace can relax a lot when washed, and a swatch smaller than 10 cm is less accurate. ## FAQ **How do I measure my knitting gauge?** Knit a swatch at least 10 cm (4 in) square in the pattern stitch, wash and block it as you will the finished piece, lay it flat and count the stitches and rows over a measured width and height, away from the edges. Enter the counts and sizes in the calculator. **What if my gauge does not match the pattern?** Try a different needle size: larger needles give fewer stitches per 10 cm, smaller needles more. If you cannot match it, use Adjust a pattern to rescale the counts, keeping any stitch pattern repeats whole. **How many stitches should I cast on?** Multiply the width you want in centimetres by your stitches per 10 cm and divide by 10. If the stitch pattern repeats, round to a multiple of the repeat and add any edge stitches; the calculator does this for you. **Is gauge over 10 cm or 4 inches?** European patterns usually give it over 10 cm, US patterns over 4 inches (10.16 cm). The calculator shows both so you can compare either with your swatch. **Does the swatch need to be washed first?** Yes, if the project will be washed. Many yarns grow, shrink or relax in water, and measuring the swatch after washing and blocking shows the size the finished piece will keep. **Do I need row gauge too?** Row gauge sets lengths, such as a sleeve or body length in rows. If you knit to a measurement instead of counting rows, only the stitch gauge matters. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)