Every guide is free — start with the Start Here guide →
Plain-Language Knitting GuidesKnitBeginnersStart Learning

How to Knit a Hat: The Easy Beanie Pattern for Beginners

By the KnitBeginners team · Published 5 November 2026 · Updated 19 November 2026

How to knit a hat, in one paragraph: cast on enough stitches to fit around the head, knit a ribbed brim, knit the body in the round until it is tall enough, then decrease stitches evenly to shape the crown, and close the top. That is the whole project. This guide covers it as one pattern, not two — "beanie" and "hat" are the same construction here, because splitting them would duplicate the same instructions under a different name. The difference between a snug beanie fit and a slouchier hat fit is one choice: how long you knit the body before decreasing.

This page uses "how to knit a hat" as its primary, with beanie phrasing as secondaries, because the hat term carries the larger volume and the construction is identical. If you came looking for a beanie pattern, you are in the right place — follow the snug-fit length below.

KNIT A BEANIE, IN FIVE STEPSStep 1: Cast onCast on and join in the round.Step 2: Ribbed brimKnit the ribbed brim.Step 3: BodySnug fit: about 5 to 6 inches. Slouchy: about 7 to 8 inches.Step 4: Crown decreasesDecrease for the crown.Step 5: Close and finishClose the crown and weave in the ends.
Infographic: knitting a beanie in five steps — cast on, ribbed brim, body, crown decreases, close and finish.

What You Need

Hands decreasing stitches at the crown of a ribbed dusty-blue beanie.

Hat Sizing: Measure First

A hat that does not fit is the most common beginner hat disappointment, and it is preventable with one measurement: head circumference, measured around the forehead just above the eyebrows, where the hat brim will sit.

Size Head circumference (approx.) Finished hat circumference (with ease)
Child 18–20 inches 17–19 inches
Adult small/medium 21–22 inches 20–21 inches
Adult large 23–24 inches 22–23 inches

Finished hats are knitted slightly smaller than the head — about 1 inch of negative ease — because the fabric stretches to fit snugly. If you knit the hat exactly head-sized, it will feel loose. If you knit it more than 2 inches smaller, it will feel tight.

Stitch count from gauge: knit a gauge swatch in stockinette in the round (knit every round, as the hat body will be), count stitches per inch, and multiply by the finished circumference you want. For example, at 5 stitches per inch, a 20-inch finished hat needs about 100 stitches. Round to a number divisible by 8 for easy crown decreasing (decreases are usually worked in 8 sections). If your swatch says otherwise, trust the swatch — it is your knitting, not the pattern's guess, that determines the fit.

Step by Step: Knitting the Hat

Step 1: Cast On and Join in the Round

Cast on your calculated stitch count using the long-tail cast-on, or the knitted cast-on if the tail estimate fails. Place a stitch marker on the right needle, then join the round by knitting the first cast-on stitch — being careful not to twist the cast-on row, because a twist at the join can never be undone later. Check that all stitches face the same way around the needle before joining: the cast-on edge should form a clean circle, not a loop with a twist in it.

Step 2: Knit the Ribbed Brim

Work in ribbing — knit two, purl two, repeated — for about 2 inches. Ribbing stretches and grips, which is what keeps the hat on. If you want a folded brim, knit the ribbing twice as long and fold it up when the hat is finished. Use the smaller needle size for the brim if you want it snugger than the body.

Step 3: Knit the Body

Switch to the body needle size if you changed needles for the brim, then knit every round (stockinette in the round) until the hat measures from the brim:

Measure from the cast-on edge, not from the brim start, and keep the fabric relaxed — do not stretch it while measuring, or the hat will come out shorter than you think.

Step 4: Decrease for the Crown

Decrease evenly to shape the crown. A standard decrease round for a stitch count divisible by 8 is: *knit 6, knit two together; repeat from * around. Each decrease round removes 8 stitches (one per section). Then knit one round plain, then decrease again with one fewer stitch between decreases: knit 5, knit two together; repeat, then a plain round, and so on, until few stitches remain.

When the stitches no longer fit comfortably around the circular needle, switch to double-pointed needles, or use the magic loop method with a long circular needle. Do not force a shrinking round onto a needle that is too long — stretched stitches distort and can drop.

Step 5: Close the Crown and Finish

When about 8 stitches remain, cut the yarn leaving a tail of about 8 inches, thread it through the remaining stitches with a yarn needle, pull tight to close the hole, and secure the tail on the inside. Weave in the cast-on tail and any other loose ends. Try the hat on: it should sit snugly without pressing, and the brim should stay where you put it.

Common Beginner Hat Problems and Fixes

A twist at the join. If the cast-on row twisted when you joined, the hat has a permanent twist that cannot be fixed by later rows. The only fix is to start over, checking carefully before joining that the cast-on edge forms a clean circle. This is the one hat mistake worth restarting for.

A hat that is too big or too small. Gauge, not effort, determines fit. If the hat is far off, the stitch count was wrong for your gauge — re-swatch in the round and recalculate. If it is only slightly off, blocking (washing and reshaping) can adjust it a little, but not by inches.

Laddering between double-pointed needles. When using double-pointed needles, the gaps between needles can form loose "ladder" columns. Fix it by pulling the first stitch on each new needle a little tighter, and by rotating the needle positions every few rounds so the gaps do not stack in one place.

Crown decreases that look uneven. Count stitches after each decrease round. A missed decrease in one section makes the crown lopsided; catching it on the round it happens is a one-round fix, while catching it later means undoing several rounds.

Frequently Asked Questions

How do you knit a hat for beginners?

Cast on to fit the head, join in the round without twisting, knit a ribbed brim, knit the body in stockinette in the round, decrease evenly for the crown, and close the top by threading yarn through the remaining stitches. This guide covers each step in order.

How do you knit a beanie?

The same way as a hat, with a shorter body before decreasing — about 5 to 6 inches from the brim for a snug beanie fit, versus 7 to 8 inches for a slouchy hat fit. Beanie and hat are one pattern with a length choice, not two different patterns.

How many stitches do I cast on for a hat?

It depends on your gauge and the head size. Measure head circumference, subtract about 1 inch for ease, multiply by your stitches per inch from a stockinette-in-the-round swatch, and round to a number divisible by 8 for easy crown decreasing.

Why does my hat twist when I join in the round?

The cast-on row twisted before joining. Check that the cast-on edge forms a clean circle, with all stitches facing the same way, before knitting the first stitch. A twist at the join cannot be fixed later — restart if it happens.

What is the difference between a beanie and a hat knitting pattern?

For beginners, only the fit: a beanie is snugger and shorter; a slouchy hat is longer before decreasing. The construction — ribbed brim, stockinette body, decreased crown — is identical, which is why this site covers both in one guide.

Next step: continue with Knitting for Beginners — Start Here →