Calculating Yarn Substitutions Offline
July 2026
When selecting a substitute yarn for a knitting or crochet pattern, determining the correct quantity to purchase requires converting the pattern's total yardage requirement into the specific skein length of the new yarn. While simple division, doing this math in a yarn shop can introduce errors.
To eliminate this friction, I developed a simple Yarn Substitution Calculator. This tool accepts the total required yardage and the substitute yarn's length per skein, instantly returning the rounded-up integer of skeins required [1].
Consistent with the rest of this site, the calculator operates completely offline via client-side JavaScript. It features zero dependencies, requires no server interactions, and respects user privacy by avoiding external tracking scripts.
References
- Math.ceil() - JavaScript | MDN. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil