knitting calculator

Knitting Gauge, Size & Yarn Calculator

Enter your swatch details and target project size to estimate stitches to cast on, rows to knit, and an optional yarn estimate.

Tip: keep all dimensions in the same unit (inches or centimeters).

Swatch

Project Target

How this knitting calculator helps

Knitting gets dramatically easier when math is handled up front. This calculator converts your swatch into practical numbers you can use immediately: stitch gauge, row gauge, cast-on count, and row target. If you also track swatch yarn usage, it can estimate project grams and approximate skeins.

Whether you are planning a scarf, blanket panel, cowl, or sweater section, this gives you a consistent starting point. It does not replace pattern design details like shaping, but it removes most of the guesswork from sizing.

Why gauge matters more than almost anything

Gauge is the relationship between stitches, rows, and physical measurement. If your pattern says 20 stitches over 4 inches, that translates to 5 stitches per inch. Even a tiny difference from your expected gauge can create a big size difference across a full project.

  • A project that is just 0.5 stitches per inch off can be several inches too wide.
  • Row gauge drift changes overall length and placement of shaping sections.
  • Different fibers relax differently after washing and blocking, so washed swatches are best.

The formulas used

1) Stitch and row gauge

Stitches per unit = swatch stitches ÷ swatch width

Rows per unit = swatch rows ÷ swatch height

2) Cast-on and row target

Cast-on stitches = project width × stitches per unit

Total rows = project length × rows per unit

You can round cast-on to a multiple (for example 2, 4, or 8) to match ribbing or stitch pattern repeats.

3) Yarn estimate (optional)

Swatch area = swatch width × swatch height

Project area = project width × project length

Grams per area = swatch grams ÷ swatch area

Estimated project grams = project area × grams per area × (1 + safety margin)

If you enter skein weight, the calculator rounds up to show whole skeins.

Step-by-step workflow for better results

Make a realistic swatch

Use the exact yarn, needle size, and stitch pattern you plan for the final piece. A stockinette swatch does not reliably predict garter, cables, or textured repeats.

Measure after washing and drying

Fibers change after wet finishing. Measure the swatch once it is dry and relaxed so your gauge reflects the project’s final state, not just on-needle tension.

Add a safety margin

Most knitters use 5%–15% extra yarn to account for joins, tails, swatch overhead, and minor pattern changes.

Practical use cases

  • Scarves: set width by desired drape and compute cast-on quickly.
  • Baby blankets: estimate both stitch counts and yarn with less waste.
  • Sweater panels: calculate front/back dimensions before adding shaping.
  • Home projects: pillows, table runners, and throws sized to furniture.

Common mistakes to avoid

  • Mixing units (e.g., swatch in centimeters and project in inches).
  • Skipping blocked measurements.
  • Using tiny swatches that exaggerate measurement error.
  • Forgetting stitch multiple requirements for lace or cables.

Final notes

This knitting calculator is best for rectangular sections and planning. For garments with shaping, use these results as your base counts, then add increases, decreases, armhole curves, and neck shaping according to your design method. With good swatch data, your numbers become far more reliable and your finished projects become far more predictable.

🔗 Related Calculators