Mattress stitch creates an invisible seam by weaving thread through the sides of your knitted fabric instead of sewing edge to edge

Mattress stitch is a seaming technique that hides the join completely inside the fabric. Instead of sewing two edges together with visible stitches running along the outside, you work horizontally through the bars of yarn that sit between your edge stitch and the next stitch over. The result looks like the fabric grew that way—there is no seam line visible on either side.

This method works best on stockinette stitch (the smooth, V-patterned side of knit fabric) and works equally well whether you are joining two pieces side by side or closing a tube. You need a tapestry needle, matching yarn, and pieces with at least one stitch of selvage—the edge stitches that sit outside your pattern.

The technique takes practice to get the tension right, but once you understand the path the needle travels, it becomes automatic. Most knitters find it faster than other seaming methods once they have done it a few times.

Key Takeaways

  • Mattress stitch works by threading a tapestry needle horizontally through the bars of yarn on the sides of your pieces, not by sewing the edges together.
  • You need at least one selvage stitch on each piece—the outermost stitch that you slip rather than knit—to have bars to sew through.
  • The needle path alternates: one bar from the left piece, one bar from the right piece, working upward in a zigzag pattern.
  • Tension matters more than speed; pulling too tight puckers the seam, and pulling too loose leaves gaps.
  • Practice on a swatch first so you can see how the seam closes as you work, rather than discovering problems after you have sewn an entire garment.

What you need before you start

Gather a tapestry needle (also called a yarn needle)—one with a blunt tip and an eye large enough for your yarn to pass through easily. The needle should be roughly the same weight as your knitting yarn; a needle that is too thin will split the yarn fibers, and one that is too thick will leave holes.

Cut a length of yarn about 3 to 4 times the length of the seam you are closing. Thread it through the needle. If you are using the same yarn you knitted with, pull a strand from the ball or from a yarn end you left when you cast on or bound off. If that yarn is too thick or fragile, use a thinner yarn in a matching color—many knitters keep a small supply of tapestry yarn in neutral shades for this reason.

Lay your two pieces on a flat surface with the right sides (the smooth, finished sides) facing up. Line up the edges you are about to join so they sit parallel and close together, but not touching. This position lets you see the bars clearly as you work.

The basic needle path: one bar from each side

Start by anchoring your yarn. Insert the needle through the corner stitch on one piece—go in from the back and come out at the front, right at the base of the first row above the cast-on or the first row you want to seam. Pull the yarn through, leaving a 3-inch tail. You will weave this tail in later.

Now move to the opposite piece. Look at the edge stitch (the outermost stitch). Between that edge stitch and the next stitch over, you will see a horizontal bar of yarn. Insert your needle under that bar from right to left, going through the fabric. Pull the yarn snug—not tight, just snug enough that there is no slack.

Go back to the first piece and find the same bar in the same row. Insert the needle under that bar from left to right. Pull the yarn snug again. You have now completed one cycle: one bar from the right piece, one bar from the left piece.

Move up one row on both pieces and repeat. Insert the needle under the bar on the right piece, then under the bar on the left piece. Keep going upward, alternating sides, until you reach the top of the seam.

Tension: the most common mistake

Pulling too hard is the error that stops most beginners. When you pull the yarn tight after each stitch, the seam puckers and the edges curl inward. The fabric on either side of the seam will look gathered, and the seam itself will be visible as a ridge.

Instead, pull the yarn just enough to remove slack. Think of it as "snug" rather than "tight." After every few stitches—usually every 4 to 6 rows—pull the yarn firmly to close the gap, then loosen your grip and return to the snug tension for the next stitches. This rhythm lets the fabric settle naturally and keeps the seam flat.

If you have already sewn a seam too tightly, you can sometimes fix it by gently stretching the seamed area with your hands, working the puckering out. If that does not work, you may need to cut the seam out and redo it—frustrating, but faster than living with a puckered garment.

Closing the seam at the top

When you reach the last row, you have two options depending on what is at the top of your pieces. If both pieces end in a bound-off edge, work your last stitch under the bar of the final row, then insert the needle through the bound-off stitch itself on one piece and then the other. This anchors the seam and prevents it from unraveling.

If one or both pieces end in live stitches (stitches still on a needle), you will graft them together using Kitchener stitch instead—that is a different technique, and many patterns will tell you which method to use. For now, assume you are seaming two bound-off edges.

After your final anchor stitch, pull the yarn to the back of the fabric and weave the tail through several stitches on the wrong side, going in and out of the fabric in a small zigzag. Trim the tail close to the fabric. The woven-in tail will not unravel because the friction of the yarn against itself holds it in place.

Practice on a swatch before seaming a finished piece

Knit a small rectangle about 4 inches wide and 6 inches tall in stockinette stitch. Bind off. Knit a second identical rectangle. Seam them together using mattress stitch, and you will see when ready how the seam closes and whether your tension is right. If the seam puckers, you know to loosen up. If it gaps, you know to pull a bit firmer.

Once you have sewn the swatch, look at it from both sides. The right side should show no seam at all—just continuous fabric. The wrong side will show the woven yarn, but that is normal and expected. If you are happy with how it looks, you are ready to seam your actual project.

Keep this swatch. You can reference it later when you are seaming a garment and want to remember what "snug" tension feels like, or you can use it to test whether a new yarn color will match your project.

Mattress stitch on ribbed and textured fabrics

Mattress stitch works best on stockinette, but you can adapt it for other stitch patterns. On ribbed fabric (knit-purl-knit-purl), work through the bars of the knit stitches only, skipping the purl bumps. This keeps the seam hidden within the knit columns.

On garter stitch (knit every row), the fabric is bumpy on both sides, so there are no clear bars to work through. Instead, use a backstitch or a whip stitch along the edge. Some knitters prefer to add an extra selvage stitch on garter stitch pieces specifically to give themselves a clear bar to work with—this is a small change to your cast-on or bind-off that makes seaming much easier.

For textured stitches like cables or bobbles, mattress stitch may not be practical. Your pattern will usually tell you which seaming method to use, or you can test on a swatch first.

Frequently Asked Questions

What is a selvage stitch and do I need one?

A selvage stitch is the outermost stitch on each row, usually slipped rather than knitted. It creates a neat edge and, more importantly, produces clear bars that are straightforward to sew through. If your pattern does not mention selvage, slip the first stitch of every row knitwise to create one automatically. This takes no extra time and makes seaming much easier.

Can I use mattress stitch on pieces with different stitch counts?

Yes, but you will need to adjust. If one piece is taller than the other, you may need to skip a row on the taller piece occasionally to keep the edges aligned. Work a few rows on both pieces, then skip one row on the taller side, and continue. Your pattern should tell you if this is necessary.

What if I run out of yarn before I finish the seam?

Weave in the end of your current yarn on the wrong side, then thread a new length and anchor it by going through the last stitch you made. Continue seaming. The join will be invisible because both yarn ends are hidden inside the fabric.

How do I fix a seam if I made a mistake?

If you notice the error while you are still seaming, pull the yarn back out to the mistake, redo those stitches, and continue. If you discover it after you have finished, you can carefully cut the seam yarn and pull it out, then re-sew that section. It is tedious but usually faster than living with a visible flaw.

Does mattress stitch work for seaming sleeves into armholes?

Mattress stitch works for straight seams between two edges. For curved seams like armholes, you will usually use a backstitch or a combination of mattress stitch and backstitch. Your pattern will specify which method to use for that particular seam.