Getting a kids hat to actually fit requires more than just following a free pattern online.
I've knit probably two dozen children's hats over the years, and the ones that worked perfectly on me were the ones I paid attention to gauge and Crown decreases on. The ones that didn't were the ones where I rushed the brim or used a ball of yarn that had a slight twist in it because I didn't check it first. Most free patterns assume you know what you're doing already. They give you the stitch counts but they don't tell you why your hat is going to be two inches too small if you ignore the needle size they listed. Here is the thing most people miss about a Yarn Kids Hat Pattern: the brim matters more than the body. A poorly constructed brim means the hat slides off the second the kid moves their head. I learned this the hard way when I made a batch of six hats for a church fundraiser. The first three went out with a standard k1 p1 ribbing. They all lost their shape after the first wash, and two of the kids literally lost them on the playground within a week. The remaining three I made with a 2x2 rib and a slightly smaller needle for the first two rounds before switching to the main needle size, and those lasted months in real kid use. That single change extended the usable life of the hat by a factor of four, probably five.
Yarn Kids Hat Pattern
The basic construction is round, top-down, and works on two double-pointed needles or a long circular needle using the magic loop method. You start at the crown and work down to the brim, which is backwards from what most beginners expect. The advantage is you can try the hat on the child as you go, which eliminates the guesswork that makes so many homemade hats end up in the donate pile. Cast on somewhere between 24 and 32 stitches depending on your yarn weight and the circumference you want at the crown. For a typical worsted weight yarn and a 12 inch head circumference, 28 stitches on size 8 needles works. Use a stretchy cast on like the German twisted cast on or the long tail cast on, not a knitted cast on, because the latter has almost no give and will make the crown uncomfortably tight against the scalp. Work even in the round for about 2 inches to establish the brim, then begin the body increases. The standard increase pattern is to place four markers evenly spaced around the circle and knit one stitch before each marker on every right side round. This creates the classic dome shape. After about six or seven increase rounds, the stitch count will be high enough that you switch to working even without increases for the next several rounds until the hat reaches the desired depth, usually around 6 to 7 inches from the cast on edge for a toddler.
Then comes the crown decrease, which is where most people mess up. You decrease at each marker by knitting two together before the marker and bringing the next two stitches together after the marker, which removes two stitches per marker per round. This is four stitches decreased per round across all four markers. Do this every other round until about 12 to 16 stitches remain, then pull the yarn through and cinch closed. The resulting crown seam should lie flat and not create a bulky lump. I ran into a specific problem last winter when a customer asked me to make hats for triplets, ages 2, 4, and 6. The pattern called for the same number of rounds across all three sizes with only the cast on count changing. I made them and the 2 year old's hat fit fine but the 6 year old's hat sat way too high on the head, almost like a beanie that never drops down. The issue was that the pattern only increased the circumference but not the height proportionally. A taller head needs proportionally more body rounds, not just more stitches at the base. I went back and added three extra even rounds to the larger size before starting the decrease section, and that fixed it. The hat now sits at the correct depth rather than perching on top of the head like a dunce cap. There are real limitations to this approach. Top down construction is not ideal if you are using a variegated or hand dyed yarn with a carefully planned color repeat. The crown will be a concentrated mess of color pooling where all the increases and decreases happen in the same small area. If the colorwork is important to you, consider a bottom up hat where the color bands flow vertically and predictably from brim to crown. It takes slightly more skill to knit bottom up and you have to seam the crown at the end, but the visual result is much cleaner with specialty yarns.
Get the Full Details

Another honest limitation is that the magic loop method leaves a visible ridge on the inside of the hat at the point where the cable bend is. Some kids are sensitive to that and will complain about a bump against their ear. If the recipient is particular about comfort, switch to four double pointed needles. The join is slightly less seamless at the start but there is no cable bend ridge anywhere in the fabric. The tradeoff is it takes about 10 to 15 percent longer to knit and you need to manage five needles instead of one circular. The yarn choice also dictates a lot. A 100 percent wool worsted weight in a semi-solid color is the most forgiving combination for a first attempt. It blocks well, it has natural elasticity, and minor gauge mistakes are easier to fix because the fibers forgive. Superwash merino works too but it stretches out over time, especially at the brim, so you may need to account for that by starting with a couple fewer inches of brim length. Acrylic blends are fine for durability and machine washing but they do not block the same way and the finished hat will look slightly looser and less defined after the first wash than the blocked version did before washing. If you want a downloadable pattern file, search for "free kids hat pattern top down" on Ravelry or a few of the major knitting blogs. Most of the well written ones include a size chart with head circumference measurements for ages 0 to 8 and sometimes include optional ear flap variations. I personally keep a copy of my own notes from these patterns in a simple Google doc rather than saving the PDFs because they tend to break or get taken down over time. The stitch math does not change, so retype the essential rounds and you have a permanent reference.
One more practical detail that patterns rarely mention: leave a tail of at least 12 inches when you finish the crown decrease. You need enough length to weave it through the remaining stitches, pull it tight, and then go back and secure it through the inside of the adjacent stitches two or three times before trimming. A short tail means the crown opens up after the first time the hat gets shoved into a backpack. I have seen this happen on hats made from leftover scrap yarn where the knitter used the natural end of the ball instead of cutting a proper tail. It looks fine when you finish it. It does not stay fine.