You can knit a hat on straight needles by working flat in rows, then seaming the sides together
A hat knitted on straight needles is worked as a flat rectangle that you fold and sew closed at the back. This is different from knitting in the round on circular or double-pointed needles—you work back and forth in rows instead, which many people find easier to manage. The finished hat has a visible seam running down the back, which is a normal part of the design.
The basic process is: cast on stitches for the width of the hat, knit rows until the piece is long enough to wrap around your head, bind off, then sew the two short ends together. You'll also need to close the top by gathering the stitches, which takes just a few minutes with a yarn needle.
Key Takeaways
- Cast on enough stitches to equal roughly 18 to 22 inches in width, depending on head size and your yarn thickness.
- Knit in stockinette stitch (knit on the front, purl on the back) or your chosen stitch pattern until the piece measures about 8 to 9 inches tall.
- Bind off all stitches, then use a yarn needle to sew the two short edges together with a mattress stitch or whip stitch.
- Thread yarn through the stitches at the top of the hat and pull tight to close the crown, then weave in the loose ends.
Measure your head and choose the right needle size
Start by measuring around your head with a soft measuring tape, just above your ears and eyebrows. Write down this number—it's your head circumference. A comfortable hat should measure about 1 to 2 inches smaller than your head circumference when laid flat, because the fabric will stretch slightly when you wear it. So if your head is 22 inches around, aim for a finished hat width of 20 to 21 inches.
Next, choose needles that match your yarn weight. The yarn label will recommend a needle size—use that as your starting point. Straight needles for a hat are usually size US 6 to US 10, depending on whether you're using fingering weight, sport weight, worsted weight, or bulky yarn. If you're unsure, knit a small test swatch about 4 inches square in the stitch you plan to use, measure how many stitches and rows fit in 1 inch, then do the math to figure out how many stitches to cast on.
Cast on and knit the body of the hat
Cast on the number of stitches you calculated. For example, if your swatch showed 5 stitches per inch and you need a 20-inch-wide hat, cast on 100 stitches. Use a long-tail cast-on or cable cast-on—both create a neat edge that looks good when you seam it later.
Once all stitches are on the needle, begin knitting in stockinette stitch: knit every stitch on the front-facing side (called the right side), then purl every stitch on the back-facing side (called the wrong side). Alternate these rows until your piece measures about 8 to 9 inches tall. This height works for most adult hats; children's hats are usually 6 to 7 inches. You can try the piece on as you go by wrapping it around your head to check the fit.
Keep the edges neat by slipping the first stitch of each row rather than knitting it. This creates a chain-like edge that's easier to seam later. straightforward insert your needle into the first stitch as if to knit, then slip it to the right needle without knitting it.
Bind off and prepare to seam
When your piece reaches the correct height, bind off all stitches. The standard bind-off works well: knit two stitches, pass the first stitch over the second, then repeat across the row until one stitch remains. Cut the yarn, leaving a tail about 6 inches long, and pull it through the final stitch to find it.
Before you seam, lay the piece flat and look at both edges. You'll see a row of bumps along each short edge—these are the cast-on and bind-off rows. These edges will become the back seam of the hat. Check that your piece is roughly rectangular and that the edges are even. If one edge is looser than the other, you can gently stretch it to match.
Sew the back seam with mattress stitch
Thread a yarn needle with a length of yarn about 24 inches long—use the same yarn you knitted with, or a matching color. Hold the two short edges of your hat piece together so the right sides (the knit sides) face outward. You're going to sew the wrong sides together on the inside.
Mattress stitch is the best choice for this seam because it's nearly invisible. Insert the needle under the first horizontal bar between the first and second stitch on one edge, then cross over and insert it under the corresponding bar on the opposite edge. Move up one row and repeat, going back and forth between the two edges. Pull the yarn snug every few stitches so the seam closes neatly, but not so tight that it puckers.
Continue until you've sewn the entire back seam. The two edges will come together and the seam will disappear into the fabric. Weave the yarn tail back through a few stitches on the inside to find it, then trim any excess.
Close the crown by gathering the top
Now you need to close the opening at the top of the hat. Thread the yarn needle with a fresh length of yarn, about 18 inches long. Starting at one end of the bind-off row, insert the needle through the first stitch from front to back, then bring it back through to the front. Move to the next stitch and repeat, threading the needle through every stitch along the bind-off edge.
Once you've threaded through all the stitches, gently pull the yarn tight. The stitches will bunch together and close the hole at the top of the hat. Pull until the opening is completely closed, then weave the yarn tail through a few stitches on the inside to anchor it. Trim the excess yarn.
Weave in loose ends and block if needed
You now have two loose yarn tails: one from the cast-on edge and one from the bind-off edge. Thread each one onto the yarn needle and weave it through the stitches on the inside of the hat, moving in a zigzag pattern so it won't unravel. Trim any remaining tail close to the fabric.
If your hat looks a bit uneven or the edges are wavy, you can block it. Fill a sink or bowl with lukewarm water, add a small amount of wool wash if your yarn is wool, and soak the hat for 10 to 15 minutes. Gently squeeze out the water without wringing, then lay the hat flat on a towel to dry, shaping it into a cylinder as it dries. This evens out the stitches and gives the hat a more finished look.
Frequently Asked Questions
Can I add a brim or cuff to a hat knitted on straight needles?
Yes. After you bind off, you can pick up stitches along the cast-on edge and knit a ribbed cuff downward, or knit a separate brim and sew it on. Ribbing (alternating knit and purl stitches) is popular for cuffs because it stretches and hugs the head. Pick up one stitch in each cast-on stitch, then knit in a 1x1 or 2x2 rib pattern for 1 to 2 inches before binding off.
What if my seam looks lumpy or uneven?
Mattress stitch takes practice. If your first seam isn't perfect, you can carefully undo it by pulling the yarn tail and re-seaming. Make sure you're catching the horizontal bars between stitches, not the stitches themselves. Pull the yarn snug but not tight—too much tension creates puckers.
How do I know if my hat will fit before I finish it?
Wrap the flat piece around your head before you seam it. It should reach almost all the way around with a small overlap. Remember that the fabric will stretch slightly when worn, so it's okay if it feels a bit snug when flat. If it's too loose or too tight, you can unravel and start over with a different cast-on number.
Do I have to use stockinette stitch?
No. You can use garter stitch (knit every row), ribbing, seed stitch, or any stitch pattern you like. Just keep in mind that some patterns use more yarn than others, so your finished hat might be a different length. Knit a swatch first to see how the pattern looks and how it affects your stitch count.
Can I add a pom-pom or tassel to the top?
Yes. After you close the crown, you can attach a pom-pom or tassel by sewing it to the gathered point at the top. Make or buy a pom-pom in a matching or contrasting color, then use a yarn needle to sew it securely through the center. A tassel is made the same way—wrap yarn around your fingers, slide it off, tie it in the middle, and trim the loops.