Units

Cast-On & Raglan Calculator: Start Any Project Right

Every project lives or dies at the very first row. Cast on too few stitches and your sweater pulls tight across the chest. Cast on too many and the fabric sags and grows bigger every time you wear it. A knitting cast on calculator fixes this in one step. You give it your gauge and your finished measurement, and it hands back the exact number of stitches to cast on. No guessing, no "eh, close enough" that you only find out about twelve inches later.

Last updated:

Hands casting on with circular needles, neutral-toned yarn in soft natural light — the start of any knit project.

TL;DR — The short version

Cast on too few and your sweater pulls tight across the chest. Cast on too many and the fabric sags out twelve inches later, the kind of thing you don't catch until you're trying to block it. A cast-on calculator turns your gauge and your finished width into the exact stitch count, with optional rounding to your stitch repeat so the ribbing doesn't end on a half-rib. Three minutes of maths now, no frogging later.

This guide walks through the math behind that number. Then it takes the same idea to the trickiest first row in knitting: the top-down raglan yoke. Along the way you'll see how the same gauge-times-width math carries you from a plain scarf to a sock. You'll also see where a calculator takes over the arithmetic so you can get back to the fun part.

The Core Cast-On Formula

The math under every knitting cast on calculator is short:

Cast-on stitches = stitch gauge (per inch) × desired width (in inches)

Say your swatch measures 5 stitches per inch and you want a cowl 24 inches around. That's 5 × 24 = 120 stitches. Working in centimeters? Same idea: stitches per cm times width in cm.

Cast-On Equation Visual narrative: a measuring tape shows your piece is 24 inches wide. The first inch is zoomed in to reveal 5 knit stitches fitting inside it — that is your gauge. Repeating those 5 stitches across all 24 inches gives the payoff: cast on 120 stitches (5 × 24 = 120). 24 inches wide = 1 inch 5 stitches in 1 inch ··· × 24 cast on 120 stitches 5 stitches/inch × 24 inches = 120
The whole calculator in one picture: gauge × width = the stitches you cast on.

Two small steps turn a clean number into one that actually works. First, round to your stitch pattern's multiple. A 2×2 rib (two knits, two purls, repeated) needs a number you can divide by 4. So 120 works, but 122 doesn't. You'd round to 120 or 124. Lace and cables often want a multiple plus an edge stitch or two, like "multiple of 8 + 3." Second, think about ease. Ease is just how loose or snug you want the fit. Desired width is the finished width you're after, which can be bigger or smaller than your actual body measurement. Pick the finished width first, then plug that into the formula.

Stitch multiple rounding: needle-and-stitches diagram Three knitting needles showing stitch groups of 4. Needle 1: 122 stitches with a trailing incomplete group of 2 (only 2 of 4 stitches), labelled "won't divide evenly". Needle 2: 120 stitches as 30 complete groups of 4, ending 117–120. Needle 3: 124 stitches as 31 complete groups of 4, ending 121–124. Caption: Round 122 down to 120 or up to 124. A 2×2 rib needs a multiple of 4. 122 = 30 × 4 + 2 → won’t divide evenly 1–4 5–8 9–12 113–116 117–120 121–122 122 stitches only 2 of 4 120 = 30 × 4 1–4 5–8 9–12 113–116 117–120 120 stitches 124 = 31 × 4 1–4 5–8 9–12 117–120 121–124 124 stitches Round 122 down to 120 or up to 124. A 2×2 rib needs a multiple of 4.
Round 122 down to 120 or up to 124. A 2×2 rib needs a multiple of 4.

Gauge is the input everything else leans on. If you haven't measured a blocked swatch yet, start with the gauge calculator so the stitches-per-inch you use reflects real, washed fabric, not a hopeful guess straight off the needles.

Why a Calculator Beats Pencil Math

You can do all this with a calculator app and a notepad. So why bother with a dedicated knitting cast on calculator? It handles the rounding to a stitch multiple, applies ease in one place, and catches the off-by-one mistakes that sneak in when you're tired. It also keeps your gauge steady across the whole garment. Body, sleeves, and bands all come from the same numbers, so nothing turns out a half-size off.

The real payoff shows up when one cast-on number has to line up with shaping later in the piece. That's what happens in a raglan.

Top-Down vs. Bottom-Up Raglan Math

A raglan sweater is shaped by four diagonal lines. They run front-to-sleeve on each side and back-to-sleeve on each side, from the underarm up to the neck. All the increasing (or decreasing) happens along those four lines. That's why raglans look so tidy and fit so many bodies.

Top-down vs bottom-up raglan Two front views of the same raglan pullover. Left, top-down: cast on at the neck and increase down the four raglan lines to the underarm (arrow points down). Right, bottom-up: cast on at the hem and decrease up to the neck (arrow points up). Same garment shape and four raglan lines; only the direction of the stitch math differs. Neck (cast on) Hem Top-down neck → underarm: increase Neck (bind off) Hem (cast on) Bottom-up hem → neck: decrease Same shape, same 4 raglan lines — the math just runs the other way.
Two yokes, same shape, opposite math. Top-down grows out from the neck; bottom-up shrinks down to it.

The direction you knit changes the arithmetic:

The math is just a mirror image. Top-down: neck stitches grow into yoke stitches. Bottom-up: yoke stitches shrink into neck stitches. A raglan calculator runs either direction from the same short list of inputs: gauge, neck circumference, chest circumference, and yoke depth.

Setting Up the Top-Down Neck Division

Start by turning your neck circumference into stitches with the core formula (gauge × neck width). Then split that total across the four sections. A common starting split is roughly:

You also set aside 1 to 2 stitches at each of the four raglan lines as a "seam" column. The increases grow out from there. The exact split changes with the pattern and the neckline shape, so a raglan calculator lets you nudge the proportions and watch the four section counts update right away.

Top-down raglan yoke (laid flat) The raglan yoke shown flat, as knitters draw it: a rounded rectangle with the neck opening in the centre, the back section above it, the front below, and a sleeve to each side. Four dashed raglan lines run from the corners of the neck opening out to the corners of the rectangle — the increase lines worked at the raglan markers, adding 8 stitches (2 per line) each increase round. At separation the two sleeves come off the work onto holders and a small underarm gusset is cast on, so the chest equals front + back + underarm — the sleeves are not part of the chest. back front sleeve sleeve neck → onto holder onto holder ← Top-down raglan yoke (laid flat) raglan increase line 4 raglan lines · +8 stitches per increase round (2 stitches at each of the 4 lines) At separation: sleeves come off · cast on underarm gusset chest = front + back + underarm (sleeves are separate)
The yoke from above: four sections, four diagonal increase lines, +8 stitches per increase round.

The Raglan Increase Rhythm

Increases happen on both sides of each raglan column, so a standard raglan increase round adds 8 stitches (2 per line × 4 lines). The rhythm is almost always "increase every other round." Increase round, plain round, repeat. That's what gives you the classic 45-degree raglan diagonal.

Raglan increase round Three rounds of knit stitches with four raglan lines marked by vertical dashes. On an increase round, one stitch is added on each side of every raglan line — eight highlighted stitches in total (+8). The round between is plain. Increasing every other round produces a 45-degree raglan diagonal. increase round = +8 sts plain round — work straight increase round = +8 sts increase every other round → a 45° raglan diagonal
Increase every other round → 45-degree raglan diagonal.

To figure out how many increase rounds you need, compare where you start to where you have to finish:

  1. Decide the finished yoke depth in inches and multiply by your row gauge to get the total yoke rounds.
  2. Work out the chest stitch count you need (gauge × finished chest width). Your chest is front + back + both underarm cast-ons, so subtract the two underarm cast-ons to get the front+back you need at separation.
  3. Work out the front+back stitches you need at the underarm (your chest count minus the two underarm cast-ons). Subtract your starting front+back stitches, divide by 4 (front and back gain 4 stitches per increase round), and that's how many increase rounds to work.

If the math says you need more increase rounds than your yoke depth allows, you have options. Increase faster for a stretch (every round), or add stitches at the underarm cast-on when you divide. Which brings us to the next step.

Dividing for Body and Sleeves

Yoke split into body and sleeves A raglan yoke trapezoid at the top splits into three pieces below: one wide body tube (front and back joined) in the centre and two narrower sleeve tubes held on stitch holders. At each of the two underarms, 4 to 8 extra stitches are cast on to add ease across the chest. yoke (knit in the round, top-down) body (front + back) sleeve sleeve +4–8 sts underarm +4–8 sts underarm
At each underarm, cast on a few extra stitches to add ease across the chest.

When the yoke reaches your underarm, you split the live stitches into body and sleeves. Each sleeve section slides onto waste yarn or a holder. The front and back sections keep going as the body. At each of the four division points you usually cast on a few underarm stitches (often 4 to 8 per underarm) to add width and ease across the chest. Those few underarm stitches are the small lever that turns a snug yoke into a comfy body.

After that, the body and each sleeve are just tubes. Knit straight, or add gentle waist and sleeve shaping. The sleeve decreases down to the cuff are their own increase-and-decrease puzzle, and the decrease distribution calculator spaces them out evenly so you don't end up with a pile of decreases bunched at the wrist.

Basic Sizing: From Width to Whole Garment

The cast-on formula scales to any flat or tube measurement. Here are a few worked examples:

One cast-on formula, three projects Three project silhouettes — a scarf as a long rectangle, a cowl as a short tube, and a hat as a rounded crown — each labelled with its finished measurement, gauge, and the cast-on count from the same gauge-times-width formula: 40, 120 and 100 stitches respectively. scarf 8″ wide 5 sts/in 8 × 5 = 40 sts cowl 24″ around 5 sts/in 24 × 5 = 120 sts hat 20″ around 5 sts/in 20 × 5 = 100 sts
Same math, different clothes.
Project Finished measurement Gauge Cast-on
Scarf 8 in wide 4 sts/in 32 sts
Cowl 26 in around 5 sts/in 130 sts
Hat 20 in around 5.5 sts/in 110 sts

Hats and cowls knit in the round use the circumference straight up. Flat pieces use the panel width. The only real call is ease. Use negative ease (cast on for less than the body measurement) for snug ribbed hats and socks, and positive ease for relaxed sweaters.

Knitting Sock Size Calculator

Socks are where the math matters most, because a sock has almost no room to be "about right." Your foot will tell on you. A knitting sock size calculator works from foot circumference and foot length instead of one flat width:

Knit Sock Anatomy Side-profile schematic of a cuff-down knit sock in the conventional L shape: a ribbed vertical leg tube at the top (cast on = 60 stitches), a distinct heel at the lower left built from a heel flap and a rounded heel turn worked over half the stitches (heel = 30), a gusset diagonal running from the front ankle back to the heel turn, a horizontal foot (instep on top, sole below), and a rounded toe at the right grafted closed over 16 stitches with Kitchener stitch. Stitch counts are derived from the sock-cast-on formula. Sock anatomy (cuff-down) Cuff & leg cast on = 60 Heel flap Heel turn heel = 30 Gusset Instep Sole Toe 16 (graft) Cast-on count drives the heel and toe stitch counts.
A sock is four small problems stacked into one: cuff, heel, foot, toe. Each leans on the same gauge swatch.

A knitting sock size calculator ties those steps together so the cuff, heel, and toe all come from one steady gauge and one set of foot measurements. It's the same gauge-driven logic as the sweater, just on a smaller, less forgiving canvas.

How Gauge Ties It All Together

Gauge is the foundation under every formula Three banners — cast-on count, raglan yoke increases, and sock cuff stitches — each marked "× gauge", with arrows pointing down to a single gauge swatch labelled the foundation. Every garment-math formula is the same multiplication by gauge. Cast-on count × gauge Raglan yoke increases × gauge Sock cuff stitches × gauge gauge — the foundation
Get the swatch right. Every number after is a multiplication.

Here's the through-line: cast-on, raglan, and sock math are all the same formula in different outfits. Stitches equal gauge times the dimension you care about, whether that's width, circumference, neck, or foot. Get gauge right and every number after it falls into place. Get it wrong and a calculator will cheerfully hand you a very precise wrong answer.

That's the reason StitchSums calculators share inputs. Enter your gauge once, and your cast-on count, raglan yoke, and sock numbers all stay on the same page. If you want the deeper "why" behind these formulas, the knitting math guide walks through gauge, shaping, and yardage from the ground up.

Start Your Next Project With the Right Number

Stop casting on a guess and ripping back at row twelve. Open the knitting cast on calculator , enter your gauge and finished measurement, and cast on a number you can actually trust. Then carry that same gauge straight into your raglan or sock without a second thought.

FAQ

How do I calculate cast-on stitches from gauge?

Multiply your stitches-per-inch (or per-cm) by your desired finished width, then round to the nearest multiple your stitch pattern needs. For example, 5 sts/in × 24 in = 120 stitches, rounded to a multiple of 4 for a 2×2 rib.

How many stitches do raglan increases add per round?

A standard raglan adds 8 stitches per increase round, 2 stitches on each side of all four raglan lines. You usually work it every other round to get that classic diagonal.

What is the difference between top-down and bottom-up raglan math?

Top-down starts at the neck and increases out to the underarm, so you can try on the yoke as you go. Bottom-up knits the body and sleeves first, then decreases up to the neck. Both use the same four raglan lines and the same gauge-driven stitch counts.

How much negative ease should a sock have?

Most socks use about 10% negative ease so they hug the foot and stay up. Measure foot circumference, subtract that ease, multiply by gauge, and round to a workable stitch multiple.

Do I need a swatch before using a cast-on calculator?

Yes. A blocked, washed swatch gives you the accurate stitches-per-inch the calculator depends on. Measure gauge first with the gauge calculator , because every cast-on, raglan, and sock number is only as good as that one input.