Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Beading Pattern CalculatorQuilt Binding CalculatorCross-Stitch Size CalculatorYarn Calculator
Home Page > Miscellaneous > Craft Tools

Knitting Pattern Calculator

Work out how many stitches to cast on and rows to knit for a sweater, scarf, blanket or any rectangular piece. Enter your gauge and finished width and length to get the cast-on count, total rows, a scaled diagram and a yarn estimate.

Free to useNo sign-up requiredInstant Results
Knitting Pattern CalculatorTry it now — free ▼
Quick examples — click to fill the form, then press Calculate:
sts / 4 in
rows / 4 in
in
in
Extra stitches added to each side for a garter or seed-stitch border. Leave at 0 if not used.

Embed Knitting Pattern Calculator Widget

About Knitting Pattern Calculator

The Knitting Pattern Calculator turns your gauge and the finished size you want into the two numbers every project starts with: how many stitches to cast on and how many rows to knit. Enter your stitch and row gauge (measured over a 4 in / 10 cm swatch) plus the finished width and length of your sweater panel, scarf, or blanket, and the tool draws a scaled diagram of the piece, estimates the yarn you will need, and shows the full calculation step by step.

What is Knitting Gauge?

Gauge (also called tension) is the number of stitches and rows that fit into a fixed window of knitted fabric — conventionally 4 inches or 10 cm. It is the single most important measurement in knitting, because the same pattern knit by two people can come out at very different sizes if their gauge differs. Gauge depends on your yarn weight, needle size, and how tightly you knit, so it is personal to you and your materials.

Knitting Pattern Formula

Calculating a pattern is simple once you have your gauge. First convert gauge to a per-unit figure, then multiply by your finished dimensions.

Step 1 — Stitches & Rows Per Unit
$$\text{Stitches per inch} = \frac{\text{Stitch gauge}}{4} \qquad \text{Rows per inch} = \frac{\text{Row gauge}}{4}$$
Step 2 — Cast-On Stitches
$$\text{Cast-on} = (\text{Stitches per inch} \times \text{Width}) + (2 \times \text{Edge stitches})$$
Step 3 — Total Rows
$$\text{Rows} = \text{Rows per inch} \times \text{Length}$$

For centimeters the idea is identical — you simply divide the gauge by 10 (the cm window) instead of 4, then multiply by your width and length in cm.

Worked Example

Suppose your swatch measures 20 stitches and 28 rows over 4 inches, and you want a baby blanket that is 30 in wide and 36 in long with no edge stitches:

  • Stitches per inch = 20 ÷ 4 = 5
  • Rows per inch = 28 ÷ 4 = 7
  • Cast-on = 5 × 30 = 150 stitches
  • Total rows = 7 × 36 = 252 rows

Common Gauge Reference by Yarn Weight

These are typical stockinette gauges over 4 in / 10 cm. Always knit your own swatch — these are only a starting point.

Yarn WeightStitches / 4 inRows / 4 inTypical Needle
Lace32 – 3640 – 481.5 – 2.25 mm
Fingering / Sock27 – 3236 – 442.25 – 3.25 mm
Sport24 – 2632 – 383.25 – 3.75 mm
DK21 – 2428 – 343.75 – 4.5 mm
Worsted / Aran16 – 2024 – 304.5 – 5.5 mm
Bulky12 – 1516 – 225.5 – 8 mm
Super Bulky7 – 1110 – 148 – 12.75 mm

Why You Should Always Knit a Gauge Swatch

It is tempting to skip the swatch and start the project, but gauge is the difference between a sweater that fits and one that does not. A difference of just half a stitch per inch over a 40-inch garment adds up to 20 stitches — several inches of width. Knit a swatch at least 4 inches square in the same yarn, needles, and stitch pattern you will use, wash and block it the way you will treat the finished piece, then measure the stitch and row count in the middle of the swatch where it is most even.

What Affects Your Gauge?

🧶 Yarn Weight

Thicker yarn means fewer stitches per inch. Always match the yarn weight your pattern assumes.

📏 Needle Size

Larger needles loosen your gauge (fewer stitches per inch); smaller needles tighten it.

Personal Tension

Tight or loose knitters get different gauges with identical yarn and needles — this is why you swatch.

🔀 Stitch Pattern

Cables, ribbing, and lace pull in or open up the fabric, changing gauge versus plain stockinette.

💧 Blocking

Washing and blocking can relax or grow your fabric, so always measure gauge after blocking.

🧵 Fiber Content

Wool, cotton, and acrylic behave differently; cotton in particular has little stretch and can shift gauge.

How to Use This Calculator

  1. Knit and measure a gauge swatch: Make a swatch at least 4 inches (10 cm) square and count the stitches and rows in a 4 in / 10 cm window.
  2. Enter your gauge: Choose inches or centimeters, then enter your stitch gauge and row gauge.
  3. Enter your finished dimensions: Type the finished width and length you want, plus optional edge stitches for a border.
  4. Click Calculate: Get your cast-on stitch count, total rows, a scaled diagram of the piece, an approximate yarn estimate, and a step-by-step breakdown.

Frequently Asked Questions

What is knitting gauge?

Gauge is the number of stitches and rows that fit in a fixed window of fabric, conventionally 4 inches or 10 cm. It depends on your yarn, needle size, and personal tension, so every knitter should knit a gauge swatch before starting a project rather than relying on the pattern's stated gauge.

How do I calculate how many stitches to cast on?

Divide your stitch gauge by the gauge window to get stitches per unit, then multiply by your finished width. For example, 20 stitches per 4 inches is 5 stitches per inch, so a 40 inch wide blanket needs about 200 stitches cast on, plus any edge stitches.

Why do I need a gauge swatch?

A gauge swatch tells you how your specific yarn and needles behave. Two knitters using the same pattern can get very different sizes if their tension differs. Knitting a 4 inch swatch and measuring its stitch and row count is the only reliable way to get an accurate cast-on number and avoid a finished piece that is too big or too small.

What if my gauge is in stitches per inch instead of per 4 inches?

Multiply your stitches-per-inch figure by 4 before entering it, since this calculator uses the standard 4 inch / 10 cm gauge window. For example, 5 stitches per inch equals 20 stitches per 4 inches.

How accurate is the yarn estimate?

The yarn estimate is a rough planning range based on the fabric area and a typical worsted-weight stockinette consumption. Actual yardage varies with yarn weight, stitch pattern, and tension, so always buy a little extra and keep dye-lot numbers in mind.

Can I use this for a sweater?

Yes. This calculator works for any rectangular panel, including the front, back, and sleeves of a sweater knit flat. Calculate each panel from its finished width and length. For shaped or seamless garments you will also need increase and decrease instructions from a full pattern.

Additional Resources

Reference this content, page, or tool as:

"Knitting Pattern Calculator" at https://MiniWebtool.com/knitting-pattern-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: June 11, 2026

Craft Tools:

Top & Updated:

Knitting Needle Size ConverterDate Pattern GeneratorCone Flat Pattern (Template) GeneratorView all →
Home Page > Miscellaneous > Craft Tools > Knitting Pattern Calculator