# Yarn amount calculator > How much yarn do I need? Weigh the yarn a swatch used and scale it to a blanket, scarf or garment, with a margin and the number of balls. Estimate how much yarn a knitting or crochet project needs from a swatch: the yarn per area, a margin for ends, and the number of whole balls to buy. - Page: https://how.box/yarn-amount/ - 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/yarn-amount/?sw={sw}&sh={sh}&sy={sy}&yu={yu}&sp={sp}&w={w}&l={l}&a={a}&ws={ws}&k={k}&u={u}&au={au} - `sw` (number 0.02 to 1): Swatch width in metres. Example: `0.1`. - `sh` (number 0.02 to 1): Swatch height in metres. Example: `0.1`. - `sy` (number 0.01 to 100000): Yarn the swatch used, in the yarn unit. Example: `5`. - `yu` (g, oz, m or yd): Yarn unit: g, oz, m or yd. Example: `g`. - `sp` (rectangle or area): rectangle (width × length) or area (a garment area). Example: `rectangle`. - `w` (number 0.05 to 20): Rectangle width in metres. Example: `1`. - `l` (number 0.05 to 20): Rectangle length in metres. Example: `1.5`. - `a` (number 0.005 to 400): Fabric area in square metres (shape area). Example: `1.5`. - `ws` (number 0 to 100): Extra yarn in percent for ends and mistakes. Example: `10`. - `k` (number 1 to 100000): What one skein holds, in the yarn unit. Example: `100`. - `u` (cm or in): Length unit shown: cm or in. Example: `cm`. - `au` (m2, cm2, ft2 or in2): Area unit shown: m2, cm2, ft2 or in2. Example: `m2`. Example answer: https://how.box/yarn-amount/?sw=0.1&sh=0.1&sy=5&yu=g&sp=rectangle&w=1&l=1.5&a=1.5&ws=10&k=100&u=cm&au=m2 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `yarn_amount_calculate`: Yarn for a project from a swatch (the swatch method). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"yarn_amount_calculate","arguments":{"swatch_width":0.1,"swatch_height":0.1,"swatch_yarn":5,"yarn_unit":"g","shape":"rectangle","width":1,"length":1.5,"area":1.5,"waste":10,"skein":100,"unit":"cm","area_unit":"m2"}}}` - GET: https://how.box/mcp/run/yarn_amount_calculate?swatch_width=0.1&swatch_height=0.1&swatch_yarn=5&yarn_unit=g&shape=rectangle&width=1&length=1.5&area=1.5&waste=10&skein=100&unit=cm&area_unit=m2 ## How it works A swatch is a small sample of the fabric you will make, so it tells you how much yarn each square of fabric takes. If a swatch uses a known amount of yarn, a project with a hundred times the area takes about a hundred times as much. The result depends on the stitch, the yarn and your tension matching between swatch and project. The estimate is yarn used by the swatch ÷ swatch area × project area × (1 + extra), and the number of balls is that amount ÷ what one ball holds, rounded up to a whole ball. Example: a 10 × 10 cm swatch that used 5 g is 0.05 g per cm². A 100 × 150 cm blanket is 15,000 cm², so 750 g, and with 10% extra 825 g, which is 9 balls of 100 g. Measure the swatch yarn in the same unit as the ball: grams or ounces by weight, metres or yards by length. Allow more for textured stitches, cables and borders, which use more yarn than the plain fabric of the swatch, and buy all the balls in one go from the same dye lot. A swatch smaller than 10 cm is less accurate, and a very large project can drift from the sample. ## FAQ **How much yarn do I need for a blanket?** Knit a swatch, weigh the yarn it used and enter its size. The calculator scales that to the blanket's width and length. As a rough guide, a 100 × 150 cm worsted blanket in plain stitches takes about 800 g, but your swatch gives a better answer. **How do I find how much yarn my swatch used?** Weigh the finished swatch on a kitchen scale, or weigh the ball before and after knitting it. In metres or yards, measure the yarn you unravel from the swatch or use the length printed on the label for the part of the ball used. **How much extra yarn should I buy?** 10% covers ends and small mistakes for most projects; take 15–20% for complicated stitches or if the swatch was small. Buying one ball more than you need is cheaper than running short. **Can I use this for a sweater?** Yes: choose Area and enter the total area of the pieces, which is the front, back and both sleeves added together. Garments with shaping and ribbing use more yarn than flat area suggests, so use a larger extra percentage. **Do I use weight or length of yarn?** Either, as long as the swatch, the ball and the result all use the same one. Balls are labelled with both a weight and a length. **Does it work for crochet?** Yes. Crochet fabric is often denser than knitting, so a swatch is especially useful: it counts the yarn your own stitch and tension really use. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)