Yarn calculator

How much yarn a blanket, scarf or any flat rectangle needs, worked out from a swatch you weigh.

Units
1. Your swatch
2. The finished piece
3. One ball or skein (optional)

Fill in the swatch and the finished size to see the result.

How to use it

  1. Make a swatch in the yarn, needles or hook, and stitch you plan to use. Bigger is better; a small swatch makes any weighing error larger.
  2. Measure its width and height, and weigh it on a kitchen scale that reads in grams.
  3. Enter the size you want the finished piece to be.
  4. To get the number of balls, add the weight and length printed on the yarn label.

The formula

The calculator assumes the whole piece uses yarn at the same rate as your swatch.

yarn (g) = (finished width × finished length) ÷ (swatch width × swatch height) × swatch weight × (1 + extra ÷ 100) balls = yarn (g) ÷ ball weight, rounded up length = yarn (g) ÷ ball weight × ball length

What it does not cover

The 10% extra is a starting figure you can change. It is there because your tension can shift over a large piece and because running short is worse than having some left.

No swatch yet?

This calculator does not guess from yarn weight alone, because the answer swings widely with the stitch and how tightly you work. If you only need a rough figure to shop with, the yardage listed on a pattern for a similar piece in a similar yarn is a better guide than a general table.

Common questions

How much yarn do I need for a blanket?

It depends on the yarn, the stitch and how tightly you work, so this calculator starts from a swatch you weigh. For example, if a 6 by 6 inch swatch weighs 12 g, a 40 by 60 inch blanket needs (40 × 60) ÷ (6 × 6) × 12 = 800 g, or 880 g with 10% extra. In 100 g balls that is 9 balls.

How do I work out how many balls or skeins to buy?

Divide the grams you need by the weight of one ball and round up. Enter the weight printed on the yarn label and the calculator does this for you.

Does it work for crochet as well as knitting?

Yes. The sum only uses the size and weight of the swatch, so it works for either craft, as long as the swatch is in the yarn and stitch you will use.

Can I use it for a sweater or a hat?

No. It works for flat rectangles such as blankets and scarves. For shaped pieces, use the yardage given in the pattern.