Knitting Pattern Calculator
Calculate exactly how many stitches to cast on and how many rows to knit for a sweater, scarf, blanket, or any rectangular piece. Enter your gauge (stitches and rows per 4 in / 10 cm) and your finished width and length, and get the cast-on count, total rows, a scaled visual diagram of your project, yarn-quantity estimate, and a full step-by-step breakdown. Supports inches and centimeters.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
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.
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 Weight | Stitches / 4 in | Rows / 4 in | Typical Needle |
|---|---|---|---|
| Lace | 32 – 36 | 40 – 48 | 1.5 – 2.25 mm |
| Fingering / Sock | 27 – 32 | 36 – 44 | 2.25 – 3.25 mm |
| Sport | 24 – 26 | 32 – 38 | 3.25 – 3.75 mm |
| DK | 21 – 24 | 28 – 34 | 3.75 – 4.5 mm |
| Worsted / Aran | 16 – 20 | 24 – 30 | 4.5 – 5.5 mm |
| Bulky | 12 – 15 | 16 – 22 | 5.5 – 8 mm |
| Super Bulky | 7 – 11 | 10 – 14 | 8 – 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?
Thicker yarn means fewer stitches per inch. Always match the yarn weight your pattern assumes.
Larger needles loosen your gauge (fewer stitches per inch); smaller needles tighten it.
Tight or loose knitters get different gauges with identical yarn and needles — this is why you swatch.
Cables, ribbing, and lace pull in or open up the fabric, changing gauge versus plain stockinette.
Washing and blocking can relax or grow your fabric, so always measure gauge after blocking.
Wool, cotton, and acrylic behave differently; cotton in particular has little stretch and can shift gauge.
How to Use This Calculator
- 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.
- Enter your gauge: Choose inches or centimeters, then enter your stitch gauge and row gauge.
- Enter your finished dimensions: Type the finished width and length you want, plus optional edge stitches for a border.
- 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// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: June 11, 2026