The mattress stitch closes two edges of knitting with an invisible seam
The mattress stitch is a way to join two pieces of knitting so the seam disappears into the fabric. Instead of sewing through the edges themselves, you work your needle under the bars of yarn that sit between the edge stitch and the next stitch over. This leaves the edge stitches free to roll inward and hide the seam completely.
The result looks like the two pieces were never separate. You use it most often to close the sides of sweaters, join the edges of blankets, or seam the legs of socks. It works best on stockinette stitch (the smooth V-pattern side) and requires a yarn needle—a blunt needle with an eye large enough for your yarn.
Key Takeaways
- The mattress stitch works under the horizontal bars of yarn between your edge stitch and the next stitch, not through the edge stitches themselves.
- You need two pieces with live stitches (still on needles) or cast-off edges, a yarn needle, and matching yarn to work invisibly.
- The seam closes from the right side of the fabric, so you can see when ready whether it is straight and even.
- Tension matters more than speed—pulling too hard distorts the seam, while pulling too loose leaves gaps.
- Practice on a small swatch first so you understand the rhythm before working on a finished piece.
What you need before you start
Gather a yarn needle (also called a tapestry needle), which has a blunt tip and a large eye. The needle should be small enough to fit through your stitches without stretching them, but large enough that your yarn threads through easily. If your yarn is thick, you may need to split it into thinner strands so the needle moves smoothly.
You will also need a length of yarn—about 3 to 4 inches per inch of seam you are closing. If you are seaming a 10-inch side, cut roughly 30 to 40 inches of yarn. Use the same yarn you knitted with, or a close match in weight and color. If you have a long tail left from casting off, you can use that instead of cutting new yarn.
Position your two pieces so the right sides (the smooth V-pattern side) face you. If you are closing a side seam, lay the pieces flat and parallel, with the edges you want to join closest to each other. The mattress stitch works best when both edges are the same type—two cast-off edges, two live-stitch edges, or two edges that were bound off the same way.
Finding and using the horizontal bars
Look closely at the edge of your knitted piece. Just inside the outermost stitch (the edge stitch), you will see horizontal bars of yarn running between stitches. These bars are what you will catch with your needle. They are easier to see on stockinette stitch than on textured patterns.
Insert your yarn needle under one of these bars on the first piece, going from right to left. Pull the yarn through, leaving a 6-inch tail to weave in later. Now move to the second piece and insert the needle under the corresponding bar on that side, again going right to left. Pull snug—not tight, just snug enough that the yarn sits in the fabric without slack.
Move back to the first piece and go under the next bar up. Then back to the second piece and under the next bar up. You are working in a zigzag pattern, one bar on each side, moving upward. After every 3 or 4 bars, gently pull the working yarn to close the gap. The edges will roll inward and the seam will disappear.
Keeping the seam straight and even
The most common mistake is pulling too hard too soon. If you yank the yarn after every stitch, you will cinch the seam and create a puckered line. Instead, work several stitches loosely, then pull gently to close the gap. This gives the fabric room to settle into its natural shape.
Work on a flat surface where you can see both pieces clearly. Stop every few inches and look at the seam from the right side. It should be a thin vertical line with no visible stitches. If you see a gap, you are not catching the bars fully—make sure your needle goes under the entire bar, not just part of it. If the seam is puckered, you are pulling too hard—loosen your tension on the next section.
Count your rows as you go, especially on longer seams. If one side has more rows than the other, you may need to skip a bar on the longer side occasionally so both pieces close evenly. This is normal and happens when row gauge and stitch gauge do not match perfectly.
Closing the last few stitches
When you reach the end of the seam, you will have a small gap left. Thread your needle through the remaining live stitches or through the last few bars, then pull the yarn tight to close the opening. Weave the tail back through the seam for 2 to 3 inches to find it, then trim the excess.
If you are working with live stitches (stitches still on the needle), you can graft them closed using the mattress stitch as well. Work under the bars as usual, but also pass through the live stitches themselves as you go. This creates a seamless join that looks like a continuous row of knitting.
Practice on a swatch before your finished piece
The mattress stitch has a learning curve, and your first attempt will probably look uneven. Knit a small practice swatch—something 4 inches by 6 inches—and seam it to another swatch. You will quickly learn how much tension to use and how to find the bars without looking too hard.
Once you understand the rhythm, the stitch becomes fast and automatic. Many knitters find it meditative—the repetitive motion and the satisfaction of watching a seam disappear makes it one of the most rewarding finishing techniques in knitting.
Frequently Asked Questions
Can I use the mattress stitch on ribbed or textured knitting?
The mattress stitch works best on stockinette stitch because the horizontal bars are clear and straightforward to see. On ribbed or textured stitches, the bars are harder to locate and the seam may be visible. For those patterns, a backstitch or whip stitch is often a better choice.
What if I run out of yarn before the seam is closed?
Weave in the end of your current yarn, then thread a new length and continue from where you left off. Overlap the old and new yarn by working 2 to 3 stitches with both strands together, then drop the old strand and continue with the new one. Weave in both ends when you are done.
How do I fix a mattress stitch seam that looks crooked?
If the seam is only slightly off, you can often tighten it by pulling gently on the working yarn as you go. If it is badly puckered or uneven, it is usually faster to cut it out and start over than to try to fix it. Use a seam ripper to remove the old yarn, then work the mattress stitch again with better tension.
Do I need to block my pieces before seaming them?
Blocking before seaming helps edges lie flat and makes the mattress stitch easier to work. However, you can seam first and block afterward if you prefer. Either way, a light blocking after seaming will even out any minor tension differences in the seam itself.