Convert the yarn you actually have
Load length example: 250 grams of 400-yard/100-gram yarn.
A label stating 400 yards per 100 grams gives 4 yards per gram. A net 250 grams of that same yarn estimates 1,000 yards. A different yarn labeled 200 yards per 100 grams gives only 500 yards from the same mass. There is no universal conversion from grams, DK, worsted or another yarn category to an exact length.
Available length = net available mass × label length ÷ label mass. Required mass reverses that relationship: required length × label mass ÷ label length. Both label quantities must describe the same material and the same full skein or sample. The result is a proportional estimate, not a guarantee that nominal labels or every leftover ball are identical.
Buy whole skeins after subtracting stock
A 1,000-yard requirement and 400-yard skeins have a fractional equivalent of 2.5 skeins, but a purchase requires three whole skeins. Those skeins contain 1,200 yards, leaving 200 yards above the requirement. If you already have 250 grams of the same 100-gram, 400-yard yarn, the estimated usable stock is already 1,000 yards and the additional purchase is zero.
Target = required length × (1 + extra reserve/100). New fractional skeins = max(0, target − usable existing length) ÷ length per full new skein. Only then is the number rounded upward to a whole skein. The tool uses exact entered-decimal arithmetic for that final ceiling; it does not round the fractional result first. For 800 yards and 400-yard skeins, an extra reserve of 0.000001% makes the target slightly greater than 800, so the mathematical purchase becomes three, even if a rounded target appears close to 800.
Keep the measurement basis consistent
Use net yarn mass after removing a cone, cardboard core, ball band or container. Exclude unusable scraps from stock. Moisture, measurement precision, irregular leftovers and label tolerances can change the estimate. When a new yarn or stitch pattern is proposed, check the actual pattern and gauge; a matching length does not establish fit, drape, color or dye-lot compatibility.
Inputs are plain nonnegative decimals with at most six decimal places and at most one billion in the selected units; reference label length and mass must be positive. A purchase above one billion skeins is rejected so an incorrect unit can be fixed. Use grams or avoirdupois ounces and yards or meters. One yard is exactly 0.9144 meters. Extra reserve is an explicit addition to the requirement, not a percentage of purchased material.
For named textile linear-density systems rather than a ball label, use the Yarn Count Converter. The Craft Yarn Council label and gauge explanation distinguishes package amount from yarn weight classification.