Yarn Calculator
Estimates how much yarn a knitting or crochet project needs. The swatch method weighs a sample worked in the project's own yarn, stitch and tension, then multiplies that weight by the project's area divided by the swatch's area. The pattern method divides a stated yarn length by the length of one ball. Both add a chosen extra and round up to whole balls. A third method converts the weight of a part-used ball into the length left on it.
Tell the calculator about a small sample of your own fabric and it scales that sample up to the whole project. A swatch that you have measured and weighed already contains everything a chart has to guess: the thickness of the yarn, the stitch pattern, the needle or hook and how tightly you work. The calculator turns it into a weight of yarn, a length and a number of balls, with a safety margin on top. Two shorter methods cover the other common questions: how many balls replace the yardage a pattern asks for, and how much yarn is left on a ball you have already used.
How the swatch method works
For one yarn, one stitch and one tension, every part of the fabric weighs the same per unit of area. Yarn weight therefore grows with area, and the ratio of two areas is all that is needed:
yarn weight = swatch weight × (project width × project length) ÷ (swatch width × swatch height)
The four sizes only appear as a ratio, so the unit cancels. Measure the swatch and the project both in centimeters or both in inches and the answer is the same. Weights are in grams; if your scale reads ounces, the weight converter turns them into grams first.
The extra is added next, and the total is divided by the weight of one ball and rounded up:
balls = round up (yarn weight × (1 + extra) ÷ ball weight)
Length follows from the label, because a yarn has a fixed weight per unit of length. One unit for that is the tex, which the NIST Guide to the SI lists under mass divided by length at 0.000001 kilograms per meter, or one gram per kilometer. The default ball, 100 g for 200 m, weighs 0.5 g per meter, or 500 tex.
yarn length = yarn weight × ball length ÷ ball weight
The length is shown in meters and in yards, converted at the exact 0.9144 meters to the yard. The pattern method skips the swatch: it adds the extra to the length the pattern asks for and divides by the length of one ball. Enter that length in the unit on your ball band; if the pattern is in yards and the label in meters, the length converter bridges the two. The leftover method runs the label backwards: the remnant's weight divided by the full ball's weight is the share of the ball that is left, and the same share of the labeled length is still on it.
The project fields describe a rectangle. For a triangular shawl, a circle or any other outline, find the area with the area calculator and enter it as the width with a length of 1.
A worked example
Take the defaults. A swatch 10 cm wide and 10 cm high weighs 4.5 g, so the fabric weighs 0.045 g per square centimeter. The project is a blanket of 100 by 150 cm, which is 15,000 square centimeters, or 150 swatches. The blanket itself needs 4.5 × 150 = 675 g. With 10% extra that becomes 742.5 g. One ball weighs 100 g, so the sum is 7.425 balls, and the answer is 8 balls. Those 8 balls hold 800 g, which leaves 57.5 g spare. At 200 m to the ball, 742.5 g is 1,485 m, or 1,624 yd.
The table repeats the sum for other margins. With no extra the blanket takes 7 balls, with 5, 10 or 15% it takes 8, and with 20% it takes 9.
Switch to the pattern method and keep the same ball. A pattern that asks for 1,200 m needs 1,320 m once the 10% is added. That is 6.6 balls of 200 m, so 7 balls, weighing 660 g of yarn in use and leaving 80 m spare. Switch to the leftover method and weigh a remnant at 45 g: it is 45% of a 100 g ball, so 90 m of the 200 m are left, which is 98.4 yd.
Why a swatch beats a chart
Charts of yarn per blanket or per sweater have to assume a yarn and a knitter. The label's weight category does not settle either. The Craft Yarn Council's Standard Yarn Weight System sorts yarn into numbered categories from 0, lace, upward, and its own table marks the gauges as guidelines only. Category 4, medium, which includes worsted, afghan and aran yarns, spans 16 to 20 stitches over 4 inches of stockinette. The Council's FAQ says the system should not be used as an interchangeability chart and that you must knit or crochet a gauge swatch to be sure.
The knitter matters as much as the yarn. The University of Kentucky's 4-H guide to increasing and decreasing explains that gauge is set by the size of the needles, the type of yarn and the tension and rhythm of the individual, and that tension and rhythm vary from person to person. Two people working the same blanket from the same ball band can therefore use different amounts. The swatch records your version.
The method is only as good as the swatch. Work it in the stitch used for most of the project, and measure it in the state the finished piece will be in, washed or blocked if the project will be. Weighing is the weak point with a small sample. On a scale that reads whole grams, a 4.5 g swatch shows as 4 g or 5 g, and those readings give 600 g or 750 g for the default blanket. A 20 by 20 cm swatch of the same fabric weighs 18 g, and a reading one gram either side of that gives 637.5 g or 712.5 g, a much narrower spread. A larger swatch or a scale that reads tenths of a gram both help.
How much extra to allow
The 10% default is this page's choice, not a rule from a standards body. The reason for a margin is that running out in the middle of a project is hard to put right. The Kentucky guide tells its readers to check that every skein carries the same dye lot number and to buy enough yarn for the whole project at once, since no two dye lots are exactly the same, adding that it is better to have a little too much yarn than not enough. A margin also covers what the swatch leaves out: cast-on and bind-off tails, seams, borders and the yarn used in joining a new ball. Once the body of a garment is planned, the knitting increase and decrease calculator spaces its shaping rows.
A short history of hand-knitting
Among the oldest pieces in the Victoria and Albert Museum's history of hand-knitting is a pair of woolen socks from Egypt, dated to between the 3rd and 5th centuries AD, which were made with a sewing needle by a looping technique closer to sewing than knitting. The earliest piece worked on two needles in its collection is a blue and white sock made in North Africa in about 1100 to 1300. Knitted goods spread across Europe from the 14th century, and by 1571 knitted wool caps mattered enough in England that the Cappers Act required most people over six to wear one on Sundays and holidays.
William Lee's stocking frame of 1589 was the first knitting machine. As it improved, factories opened and rural hand-knitting declined in Britain, and by the middle of the 19th century fancy knitting was a drawing-room pastime and a show of skill. The museum holds a baby's gown that won third prize in the hand-knitting section of the Great Exhibition of 1851. Its maker, Sarah Ann Cunliffe, was said to have worked seven hours a day for five months, using over a million stitches and 6,300 yards of cotton, which is about 5,761 meters. That is more than five kilometers of thread in one small garment.
Frequently asked questions
How much yarn do I need for a blanket?
It depends on the yarn, the stitch and how tightly you work, so measure rather than guess. With the default figures, a 10 by 10 cm swatch that weighs 4.5 g and a blanket of 100 by 150 cm, the blanket needs 675 g. Adding 10% extra makes 742.5 g, which is 8 balls of 100 g, or 1,485 m of a yarn that runs 200 m to the ball.
How do I calculate yarn from a gauge swatch?
Work a swatch in the project's yarn, needles or hook and main stitch, measure its width and height, and weigh it. Divide the project's area by the swatch's area and multiply by the swatch's weight. A 4.5 g swatch of 10 by 10 units scaled to 100 by 150 units gives 4.5 times 150, which is 675 g. The swatch and the project can be in centimeters or inches as long as both use the same unit.
How much extra yarn should I buy?
The calculator defaults to 10%, which is this page's choice rather than a standard, and its table shows 0 to 20%. The University of Kentucky's 4-H knitting guide advises buying enough yarn for the whole project at once, because no two dye lots are exactly the same, and says a little too much is better than not enough. With the default figures, 0% extra is 7 balls, 5 to 15% is 8 and 20% is 9.
How many meters are left on a part-used ball?
Weigh it and compare it with the label. A remnant of 45 g from a ball labeled 100 g and 200 m is 45% of the ball, so it holds 45% of the length: 90 m, or 98.4 yd. The same arithmetic works with a label in yards. Weigh only the yarn, without a cardboard core or the ball band if you can.
Can I estimate from the yarn weight category on the label instead?
Only roughly. The Craft Yarn Council's medium category, number 4, covers 16 to 20 stitches over 4 inches in stockinette, so the tightest fabric in that one category has a quarter more stitches across than the loosest. The Council says its system should not be used as an interchangeability chart and that you must work a gauge swatch to be sure. A weighed swatch measures your yarn and your tension directly.
Does the swatch method work for crochet?
Yes. The method does not depend on the craft, only on the fabric being the same all over: one yarn, one stitch pattern and one tension. Under those conditions every square centimeter weighs the same, so weight grows in step with area. Borders, fringe, seams and sections in a different stitch are not covered by the swatch, so allow for them in the extra or swatch them separately.
Sources
- Standard Yarn Weight System, Craft Yarn Council
- Yarn Standards FAQs, Craft Yarn Council
- Let's Learn to Knit with Increase and Decrease, Unit 2 (4JE-02PO), University of Kentucky Cooperative Extension Service, 2002
- The history of hand-knitting, Victoria and Albert Museum, 2024
- NIST Guide to the SI, Appendix B.9: Factors for units listed by kind of quantity or field of science, National Institute of Standards and Technology