About this site

Who runs this site

Yarn Quantity Calculator is built and maintained by Guido Zockoll.

Questions or corrections: contact@yarnquantity.com.

Two friends knitting together at a kitchen table with mugs, balls of yarn and a pattern
AI-generated image.

How the calculation works

Last checked:

Project

Yarn needed = overhead × 5.5 × stitches per cm × fabric area

The value is for one assumed size of the project. Another size needs another amount: use the pattern or swatch mode.

Assumed sizes

Hat
52 cm round × 22 cm
Scarf
20 × 152 cm
Pair of socks
20 cm round, 15 cm leg, 24 cm foot
Shawl (triangle)
140 × 50 cm
Adult sweater
chest 104 cm, body 64 cm, sleeves 46 cm
Baby blanket
76 × 91 cm
Afghan
127 × 152 cm
Derivation and sources

Stitches per cm come from the Craft Yarn Council stockinette gauge of the yarn weight: the lower value of the range uses the fewest stitches of the weight, the upper value the most.

The factor 5.5 is the yarn per area of relaxed plain stockinette (Munden, 1959).

The overhead is the median of the yards that at least three free patterns per project type state, divided by the same formula at the midpoint gauge of the pattern's yarn weight; it covers looser hand knitting, stitch patterns and finishing.

Values round to 25 yd. For weights 6 and 7 of scarf, shawl and socks, no pattern exists at that gauge, so the table follows the gauge rule only.

Hat form

The hat value is for a snug beanie. The calculator adds the following to the yarn needed, then adds the margin.

Folded brim
+30 %
Slouchy shape
+25 %
Both together
+55 %
Pompom
+10 to 30 yd
Derivation and sources

Folded brim: median of 7 pattern pairs on Ravelry, each written by one designer in one yarn and size, with and without folded brim; range 20 to 52 %.

Slouchy shape: Yarn Country: "about a quarter more"; 5-7.5 cm more height on 22 cm according to yarnandrow.com and completecalculators.com.

Pompom: Mary Maxim.

Pattern

Yarn needed = the total length that your pattern gives for your size

Swatch

Grams needed = swatch weight ÷ (swatch width × swatch height) × area of all pieces

Area of a piece = width × length × quantity

Yarn needed = grams needed ÷ skein weight × length per skein

This is the swatch weight method by Lori Gayle (Interweave Knits, Spring 2003).

Derivation and sources

A piece measured as a rectangle includes some area with no knitting, which adds a small reserve.

Yarn to buy

Yarn to buy = yarn needed × (1 + safety margin ÷ 100)

The default margin is 10%.

Derivation and sources

Lori Gayle recommends 10% to cover small errors in weighing or measuring and changes to the design while you knit.

Skeins

Skeins to buy = yarn to buy ÷ length per skein, rounded up to the next whole skein

For a range, the calculator does this for the lower and the upper value.

Needle sizes

The needle sizes shown for each yarn weight are the Craft Yarn Council ranges for knitting needles. The Craft Yarn Council calls them guidelines only; the label of your yarn has priority.

Yards and meters

1 yard = 0.9144 m exactly

Lengths show as whole yards and meters.

Sources: Craft Yarn Council: Standard Yarn Weight System, D. L. Munden: The Geometry and Dimensional Properties of Plain-Knit Fabrics (1959), Lori Gayle: How Much Yarn Do I Need? A Mathematical Approach.

Calculated yards per project and yarn weight (Craft Yarn Council category 1 to 7)

Project 1234567
Hat 225-250175-200175-200125-15095-12555-9030-50
Scarf 550-650475-525425-475325-400250-300150-22580-125
Socks (pair) 325-400275-325250-300200-250150-17585-12550-75
Shawl 550-650475-525425-475325-400250-300150-22580-125
Adult sweater 1,825-2,1751,550-1,7751,425-1,6251,075-1,350825-1,025475-750275-400
Baby blanket 1,300-1,5501,125-1,2751,025-1,175775-975575-725350-525200-300
Afghan (throw) 3,600-4,2753,075-3,4752,800-3,2002,125-2,6751,600-2,000925-1,475525-800

Source: Craft Yarn Council's www.YarnStandards.com