Yarn calculator
How much yarn a blanket, scarf or any flat rectangle needs, worked out from a swatch you weigh.
How to use it
- 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.
- Measure its width and height, and weigh it on a kitchen scale that reads in grams.
- Enter the size you want the finished piece to be.
- 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
- Shaped pieces. Sweaters, hats and anything that is not a rectangle. Use the yardage in the pattern for those.
- Borders, fringe and seams. These use extra yarn. Raise the "extra to allow" figure, or swatch the border and work it out as its own strip.
- A different stitch. Stitches use yarn at different rates, so the swatch has to be in the stitch you will use.
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.