You can knit a hat on straight needles by working flat in rows, then seaming the sides together

A hat knit on straight needles is worked as a flat rectangle or trapezoid, not in the round. You cast on stitches, knit rows back and forth until the piece is tall enough to wrap around your head, then bind off and sew the two short ends together. The seam runs down the back of the finished hat.

This method is simpler than circular needles for beginners because you never have to worry about stitches sliding off the ends, and you work the same way every row — no switching between knit and purl sides. The finished hat looks and fits the same as one made on circular needles, and the seam is barely noticeable once you wear it.

Key Takeaways

  • Cast on enough stitches to equal your head circumference minus one inch, since the seam takes up roughly half an inch on each side.
  • Work in stockinette stitch (knit on the right side, purl on the wrong side) or garter stitch (knit every row) until the piece measures 7 to 9 inches tall for an adult.
  • Bind off all stitches, then use a yarn needle to sew the two short edges together with a mattress stitch or whip stitch.
  • Always knit a gauge swatch first to find out how many stitches per inch your needles and yarn produce, or your hat will not fit.

Measure your head and calculate cast-on stitches

Measure around your head with a soft tape measure, placing it where the hat will sit — usually about an inch above your eyebrows and around the back. Write down that number in inches. Most adult heads measure between 21 and 23 inches; children's heads are typically 18 to 20 inches.

Subtract one inch from your head measurement to account for the seam, which takes up roughly half an inch on each side. So if your head is 22 inches around, you will knit a piece that is 21 inches wide.

Next, knit a gauge swatch to find out how many stitches you need to cast on. Knit a small square (at least 4 inches by 4 inches) in the stitch pattern you plan to use for the hat. Bind off, lay it flat without stretching, and count how many stitches fit in one inch. If your gauge is 5 stitches per inch and you need a 21-inch-wide hat, cast on 105 stitches (21 × 5). If your gauge is 4 stitches per inch, cast on 84 stitches (21 × 4).

Cast on and work the body in rows

Cast on your stitches using the long-tail cast-on or another method you are comfortable with. Make sure all stitches sit on one needle and none are twisted.

Work in your chosen stitch pattern. Stockinette stitch (knit on the right side, purl on the wrong side) creates a smooth, fitted hat and is the most common choice. Garter stitch (knit every row) makes a thicker, bouncier fabric and is easier for beginners because you never have to remember which side you are on. Ribbed patterns like 2×2 rib (two knits, two purls, repeated) also work well and add stretch.

Keep working rows until the piece measures the height you want. For an adult hat, this is usually 7 to 9 inches. For a child's hat, measure 5 to 7 inches. You can try the piece on as you go by wrapping it around your head to check the fit. The piece will feel short and narrow at this stage — that is normal.

Bind off and prepare to seam

Bind off all stitches using a standard bind-off: knit two stitches, pass the first over the second, and repeat until one stitch remains. Cut the yarn, leaving a tail about 6 inches long, and pull it through the last stitch to find it.

You now have a flat rectangle with two long sides and two short sides. The short sides are the edges you will seam together. Lay the piece flat and look at the edges. If you used stockinette stitch, one short edge will show the bumpy purl side and the other will show the smooth knit side. This does not matter for seaming — both edges work the same way.

Seam the hat closed with a mattress stitch

Thread a yarn needle with a length of yarn that matches your hat. You can use the tail you left at bind-off, or cut a new piece from your ball. A mattress stitch creates an invisible seam and is the standard method for joining hat sides.

Lay the hat flat with the two short edges facing you, right sides up. Insert the needle under the first stitch on the left edge, coming out between the first and second stitch. Then insert the needle under the first stitch on the right edge, coming out between the first and second stitch. Go back to the left edge and insert the needle under the second stitch, coming out between the second and third stitch. Alternate sides this way, working up the seam.

Every few stitches, gently pull the yarn snug so the seam draws the edges together. Do not pull so hard that the fabric bunches. When you reach the top, weave the needle through a few stitches on the inside to anchor the thread, then trim the yarn.

Turn the hat right-side out. The seam now runs up the back, and the inside shows the bumpy purl side (or the texture of your stitch pattern). If you prefer the seam to be completely hidden, you can fold the hat inside out so the seam sits on the outside.

Block and finish your hat

Wet the finished hat with cool water and gently squeeze out the excess. Lay it flat on a towel or pin it to a blocking board in the shape you want — roughly rectangular, with the seam centered on one side. Let it dry completely, which usually takes 24 hours. Blocking helps even out the stitches and sets the shape.

Once dry, try the hat on. If the seam feels scratchy against your neck, you can fold the edge under and tack it down with a few stitches, or straightforward wear the hat with the seam on the outside. If the hat is too tight or too loose, you can unravel it and reknit with a different gauge, or accept it as is — most hats stretch a little with wear.

Common mistakes and how to avoid them

The most common error is casting on too many or too few stitches because the gauge swatch was not measured correctly. Always count stitches in the middle of your swatch, not at the edges where the gauge is often looser. If your finished hat does not fit, the problem is almost always the gauge, not the pattern.

Another frequent issue is pulling the seam too tight, which makes the hat pucker. Use a gentle tension and check your work every few stitches. If the seam is already too tight, you can unravel it and redo it more loosely. Some knitters also forget to bind off and accidentally unravel the last row — always bind off before you remove the needles.

Frequently Asked Questions

What size needles should I use?

Use needles one or two sizes smaller than the yarn label recommends. This creates a tighter, warmer fabric that holds its shape better. If the yarn says to use size 8 needles, try size 6 or 7. Knit your gauge swatch with your chosen needle size to make sure the fabric feels right.

Can I add a brim or cuff to the hat?

Yes. After you bind off the main body, pick up stitches along one short edge and knit a ribbed cuff (usually 1 to 2 inches tall) before binding off again. Alternatively, you can knit the cuff first, then the body, then seam them together. Ribbed cuffs are stretchy and help the hat stay on your head.

What if I want a slouchy hat instead of a fitted one?

Knit the body taller — 10 to 12 inches instead of 7 to 9 inches. The extra length will fold down and create a relaxed, slouchy look. You can also use a slightly looser gauge (fewer stitches per inch) to make the fabric less dense.

Do I have to use a mattress stitch to seam the hat?

No. A whip stitch (also called a ladder stitch) also works and is slightly easier for beginners. Insert the needle through one edge, then the other, moving up the seam. The mattress stitch is invisible from the outside, while a whip stitch is visible but still neat. Choose whichever you are more comfortable with.

Can I knit a hat on straight needles if I have never knitted before?

Yes, as long as you know how to cast on, knit, purl, and bind off. Garter stitch (knit every row) is the easiest pattern for a first hat because you never have to switch between knit and purl. Stockinette stitch is slightly harder but still manageable. Seaming takes practice, but you can watch videos or ask an experienced knitter to show you the mattress stitch in person.