Article

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.

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 equation showing gauge (5 stitches per inch) times width (24 inches) equals 120 total cast-on stitches. 1 in 5 sts / in × 24 in = 120 stitches gauge × width = cast-on stitches
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.

Three rows of stitches: 122 with a partial 4-stitch group at the end (won't divide), 120 as 30 even groups of 4, 124 as 31 even groups 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 yoke trapezoids side by side. Left: top-down construction with upward-pointing arrows showing increases from neck to underarm. Right: bottom-up construction with downward-pointing arrows showing decreases from underarm to neck. The shape is identical; only the direction of stitch math is reversed. Neck (cast on) Chest (split) Top-down increase to fit Neck (bind off) Chest (join) Bottom-up decrease to neck Same shape. Same 4 raglan lines. The math just runs the other direction.
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 Schematic A trapezoid representing the raglan yoke viewed from above — narrower at the top (neck) and wider at the bottom (chest). Four dashed diagonal lines divide it into four sections: back, front, and two sleeves. Increase arrows on each diagonal indicate where stitches are added each increase round. Back (Front mirrors) Sleeve Sleeve Neck Chest 4 raglan lines, +8 stitches per increase round (2 stitches per line × 4 lines)
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.

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 at the underarm (gauge × finished chest width).
  3. Take the difference between your starting yoke stitches and the chest count, divide by 8, 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

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:

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 view of a knit sock with four sections labelled: cuff and leg (top), heel (back curve), foot (sole length), and toe (front decreases). Each section has its own math sub-formula in a sock calculator: the cuff cast-on uses foot circumference with negative ease; the heel uses about half the stitches; the foot is knit to length minus 2 inches; the toe decreases finish the closure. Cuff & leg cast-on, negative ease Heel half the stitches, gusset Foot length − 2 in Toe decrease close Four sections, one gauge. Each math formula leans on the same swatch.
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

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.