If your pattern calls for 5 skeins of 220 yd yarn and your substitute has 200 yd per skein, buy 7 skeins with a 10% safety margin: 1,100 yd × 1.10 = 1,210 yd, divided by 200 and rounded up. Match total length, not skein count or grams.
Using the calculator
- Under Pattern gives, choose a skein count or a total length, then set Pattern unit.
- For your size and one color, enter Skeins in pattern and Pattern yarn: length per skein, or just Total length in pattern.
- Set New yarn unit, copy New yarn: length per skein from the ball band, add the price, and set the Safety margin (10% to start).
Worked examples
Sweater with a shorter substitute skein
The pattern lists 6 skeins at 220 yd each, but yours hold 200 yd. With a 10% margin you need 1,452 yd, so buy 8 skeins at $9 each, $72.00 in all. Buying the pattern's own skein count wouldn't even cover the sweater before margin.
Metric pattern, yarn labeled in yards
For a 400 m pattern and 220 yd skeins, the target with margin is 481 yd. Buy 3 skeins at $14 each, $42.00 in all. Two skeins only just cover the bare pattern, so the third is your margin. Buy it with the others, wind it last, and return it unused if the shop allows.
Can I substitute yarn by weight in grams?
Not safely. Say a pattern uses 5 skeins, each 100 g and 220 yd: that's 500 g and 1,100 yd. If your substitute has 200 yd per 100 g, buying the same 500 g gets you only 1,000 yd, so you're 100 yd short before any margin.
If your pattern lists only grams or a number of balls, look up the original yarn's length per skein on an old ball band, the maker's site or a yarn database, including for discontinued yarns.
How do I know a substitute yarn will work with my pattern?
Start with the same yarn weight category (fingering, DK, worsted and so on). Within a similar fiber and construction, length per 100 g should be close too. A cotton usually has fewer yards per 100 g than a wool of the same thickness, and a brushed or blown yarn has more.
Before buying the full amount, swatch one skein in the pattern's stitch. Wash and dry it as you will the finished piece, then measure stitches and rows away from the edges, changing needle or hook size if needed. If you only get gauge with a stiff or sloppy fabric, pick another yarn. Working at a different gauge changes the yardage, so this length-for-length math no longer holds.
Cotton, linen, silk and alpaca have less bounce than most wool and can drape or stretch more, which shows in sweaters and ribbing. Fuzzy or very dark yarns can hide cables and lace.
How much extra yarn should I buy?
A 10–15% margin is a common allowance for swatching, seaming and small gauge differences. If you're lengthening the body or sleeves, add that yardage to the pattern amount first; the margin isn't meant to cover it. With a skein count, add it as a fraction of a skein, rounded up to the next half.
Rounding up to whole skeins can add nearly a full skein of cushion or almost none. Left over if you use the pattern amount shows what you'd have. It counts your margin, so don't treat the margin as extra on top.
Buy everything at once, from one dye lot if the label shows one. Hand-dyed skeins can differ even within one batch, so compare them side by side and alternate two every couple of rows or rounds to blend them. For several colors, run each separately: extra blue can't cover missing gray.
How it’s calculated
Total pattern length (skeins × length per skein, or the total given), plus your margin, divided by one substitute skein and rounded up. Lengths are converted to meters first, so yards and meters can be mixed.
Show the exact math
- Convert a length to meters: if its unit is "yd", multiply by m_per_yd (0.9144); if "m", use it as is. Pattern lengths use pattern_unit; new_skein_length uses new_unit.
- base_m = pattern_skeins × pattern_skein_length (converted to meters) when pattern_mode = "skeins"; base_m = pattern_total_length (converted to meters) when pattern_mode = "length".
- new_skein_m = new_skein_length in meters. If new_skein_length is 0, return an error asking for the new yarn's length per skein.
- needed_m = base_m × (1 + margin_pct ÷ 100).
- ratio = needed_m ÷ new_skein_m, rounded to 6 decimal places (so exact divisions such as 1100 ÷ 220 are not pushed up by floating-point noise). skeins_to_buy = ceiling(ratio); this is 0 when base_m = 0.
- Express results in the new yarn's unit: f = m_per_yd if new_unit = "yd", else 1. needed_new = needed_m ÷ f. leftover_new = skeins_to_buy × new_skein_length − base_m ÷ f; if that is below 0 (floating-point noise), use 0. The leftover includes the unused margin.
- length_needed (from needed_new) and leftover (from leftover_new) are text: round to the nearest whole number (halves round up), write it with comma thousands separators, then a space and new_unit ("yd" or "m"). Example: 1210 → "1,210 yd".
- total_cost = skeins_to_buy × price_per_skein.
Values used: Meters in one international yard (exact by definition). Used to put pattern and substitute lengths in the same unit. (0.9144, NIST Guide to the SI, Appendix B.9: Factors for units listed by kind of quantity (Length), checked Nov 29, 2026)
Questions people ask
How many 200 yd skeins do I need for 1,000 yards?
You need 5 skeins with no margin. With a 10% margin the target is 1,100 yd, so buy 6.
How do I convert meters to yards for yarn?
Divide meters by 0.9144, so 100 m is about 109.4 yd. To go from yards to meters, multiply by 0.9144.
How much yarn do I need if I hold two strands together?
If two strands of your substitute replace one pattern strand, enter half its length per skein. Skeins and cost come out right, and you have twice the leftover shown in single strand. With an odd number of skeins, wind the last into two equal balls by weight, or use both ends of a center-pull ball.
Does this work for crochet as well as knitting?
Yes. Just start from a crochet pattern's yardage: a knitting pattern's figure won't hold for a crocheted version.