The short answer
Ribbing alternates knit and purl stitches in the same row. Common versions include knit one, purl one (k1 p1) and knit two, purl two (k2 p2). The result is a stretchy fabric with columns of knit and purl stitches that line up with the knit stitches above.
What ribbing does
Ribbing is used where a piece needs to stretch and recover. Cuffs, hems, collars and waistbands often use ribbing because it gathers the fabric and then springs back. The knit columns and purl columns also give a pleasing vertical texture.
How to work ribbing
Ribbing is worked by following the pattern across each row. For a k2 p2 rib, for example, you knit the first two stitches, purl the next two, and repeat across the row.
On the next row, you work each stitch as it appears: knit the knit stitches and purl the purl stitches. The pattern lines up because each knit stitch sits above a knit stitch on the row below.
Purl stitches tend to recede into the fabric, while knit columns stand forward. If you are new to purling, how to purl step by step covers the steps.
Matching the stitch count
Ribbing only lines up if your stitch count fits the repeat. Check the pattern’s count before you start. For k2 p2, the count should be a multiple of four, plus any extra stitches the pattern asks for at the edges.
Before you knit a long piece, check that the repeat finishes neatly on the last stitch. If it does not, the pattern will drift and the ribs will look uneven.
Ribbing in the round
In the round, you work the same pattern every round. The knit and purl columns continue around the tube, so the ribbing forms a seamless cuff or hem. Join the round carefully, as described in how to knit in the round on circular needles.
Finishing the edge
Ribbing can pull in at the top if the bind off is too tight. Many knitters use a stretchy bind off so the top of the cuff can still pass over the hand or head. You can also use a larger needle for the bind off. Compare the edge with a few ribs before you finish.
For the basic method, see how to bind off knitting, and then try a stretchy version if the project needs more give.
Common problems
Ribbing that pulls too tight. Ribbing can look narrow if the tension is tight. Relax your grip, and check the width against the pattern.
A pattern that drifts off the rib. If the knit and purl columns stop lining up, check the stitch count and the instructions for the row. A mistake often shows up within a few rows, so catching it early saves work.
Edges that do not match. Ribbing at the edges can look different if you change the first or last stitch. Keep the edge stitches consistent across the piece.
Next steps
Ribbing is often combined with stockinette stitch, which is worked as knit rows or knit rounds with a ribbed border. How to knit stockinette stitch shows how the two fabrics go together.