The two ways to attach a zipper

You can sew a zipper on by hand with a needle and thread, or by machine. Hand-sewing takes longer but gives you more control and works on delicate fabrics. Machine-sewing is faster and creates a stronger seam, but requires practice to keep your stitches straight and close to the zipper teeth without hitting them.

Both methods start the same way: you pin the zipper in place, then stitch along both long sides of the zipper tape (the flat fabric edges on either side of the metal or plastic teeth). The difference is in the tool and the stitch you use.

Key Takeaways

  • Pin the zipper face-down on the fabric with the teeth facing away from you, then flip and stitch from the right side so your stitches sit close to the teeth.
  • Hand-sewing uses a backstitch or whip stitch about 1/8 inch from the zipper teeth; machine-sewing uses a straight stitch with a zipper foot to keep the needle from hitting the teeth.
  • Stitch both long sides of the zipper tape, starting and stopping at the same points on each side so the zipper sits straight.
  • Test the zipper before you trim loose threads or press the seam, because pulling out stitches after pressing is much harder.

Preparing the fabric and zipper

Lay your fabric flat with the right side (the side you want to show) facing up. Position the zipper face-down on top of the fabric, with the zipper teeth pointing away from you and the zipper tape sitting on the fabric edge where you want the seam to be. The top stop (the small bar at the top of the zipper) should align with the top of your opening, and the bottom stop should align with the bottom.

Pin the zipper tape to the fabric along both long edges, placing pins every 2 to 3 inches perpendicular to the zipper. Make sure the zipper is not twisted and lies flat. If you are attaching the zipper to two pieces of fabric (like the sides of a bag or garment), pin both pieces to the zipper tape at the same time so they stay aligned.

Hand-sewing a zipper with backstitch

Thread a needle and tie a knot at the end. Flip the fabric over so the zipper is now face-up and you are looking at the back of the fabric. This positioning lets you see the zipper teeth and stitch close to them without your stitches showing on the finished side.

Starting at the top of one side, push the needle up through the fabric about 1/8 inch away from the zipper teeth. Bring the needle back down 1/8 inch ahead of where you came up, then back up at the point where you first came out. This is a backstitch: each new stitch overlaps the previous one, creating a solid line. Continue down the entire length of the zipper, keeping your stitches small (about 1/8 inch long) and parallel to the teeth. Tie off the thread at the bottom with a knot on the back side.

Flip the fabric back over and repeat on the other side of the zipper, starting at the top and working down. Keep your stitches the same distance from the teeth on both sides so the zipper sits straight and the fabric does not pucker.

Hand-sewing a zipper with whip stitch

Whip stitch is faster than backstitch and creates a less visible seam on the back of the fabric. Thread a needle and tie a knot. Flip the fabric so the zipper is face-up and you are looking at the back.

Starting at the top, bring the needle up through the fabric about 1/8 inch from the zipper teeth. Slide the needle horizontally through the fold of fabric for about 1/8 inch, then push it back out through the fabric and over the edge of the zipper tape. Bring the needle back in through the fabric just below where it came out, slide it horizontally again, and repeat. The needle stays mostly inside the fold of fabric and only crosses the zipper tape edge, creating a stitch that sits mostly out of sight. Continue down the length of the zipper, then repeat on the other side.

Machine-sewing a zipper with a zipper foot

A zipper foot is a presser foot attachment that sits to one side of the needle instead of straddling it. This lets you stitch very close to the zipper teeth without the needle hitting them. Most machines come with a zipper foot, or you can buy one that fits your machine model.

Attach the zipper foot to your machine and set the stitch to straight stitch with a length of 2.5 to 3 millimeters. Flip the fabric so the zipper is face-up and you are looking at the back. Position the fabric under the presser foot so the needle will land about 1/8 inch from the zipper teeth. Lower the presser foot and begin sewing slowly, guiding the fabric with both hands to keep the stitches parallel to the teeth. Sew all the way down one side, then raise the presser foot and remove the fabric.

Reposition the fabric to stitch the other side of the zipper, again starting at the top and working down. Keep the distance from the teeth the same on both sides. Sew slowly and stop if you feel resistance—if the needle hits a tooth, it can break. Tie off the thread ends on the back side by hand or by setting your machine to tie-off mode.

Finishing and testing the zipper

Before you trim threads or press the seam, test the zipper by opening and closing it several times. Make sure it moves smoothly and does not catch on the fabric or stitches. If the zipper catches, stop and check whether a stitch is too close to the teeth or whether the fabric is bunched. If you need to remove stitches, use a seam ripper to cut every third or fourth stitch, then pull the thread out gently.

Once the zipper works smoothly, trim the loose thread ends with scissors. If your project calls for it, press the seam with an iron on a low setting, keeping the iron away from the zipper teeth and slider (the pull tab) because heat can damage plastic zippers. Press from the back side of the fabric to avoid flattening the stitches.

Common mistakes and how to avoid them

Stitching too far from the zipper teeth makes the seam weak and the zipper tape visible on the finished side. Stitching too close risks hitting the teeth and breaking your needle or thread. The sweet spot is 1/8 inch away—close enough to hold the tape securely, far enough to miss the teeth.

Twisting or bunching the zipper while you pin it causes the fabric to pucker and the zipper to sit crooked. Take time to smooth everything flat before you start stitching. If you are attaching the zipper to two pieces of fabric, pin both pieces to the zipper at the same time and stitch them together in one pass rather than sewing each piece separately.

Pressing the seam before testing the zipper makes it much harder to remove stitches if something went wrong. Always test first, then press. If you are working with a delicate fabric, use a pressing cloth between the iron and the fabric to protect it.

Frequently Asked Questions

Can I sew a zipper on a stretchy fabric like knit or spandex?

Yes, but you need to stabilize the fabric first so it does not stretch out of shape while you stitch. Cut a strip of fusible interfacing (a stiff fabric that bonds to your fabric with heat) and iron it to the back of the fabric along the zipper opening. This keeps the fabric from moving and prevents puckering.

What if my zipper is too long for the opening?

You can shorten a metal zipper by sewing a bar across the teeth above where you want the zipper to end, then cutting off the excess tape and slider above the bar. For plastic zippers, you can sometimes remove the bottom stop, slide the slider off, trim the tape, and glue or sew a new stop in place. Coil zippers cannot be shortened easily, so it is better to buy the correct length.

How do I attach a zipper to a curved seam?

Curved seams are harder because the zipper tape is straight and the fabric curves. Pin very carefully, easing the fabric around the curve as you go. Stitch slowly and stop frequently to adjust the fabric. Hand-sewing works better than machine-sewing for curves because you have more control over each stitch.

Why does my zipper slider keep coming off the bottom?

The bottom stop may be loose or damaged. If you are sewing a new zipper, make sure the bottom stop is sitting firmly on the teeth before you stitch. If the stop is damaged, you may need to replace the zipper. If the slider itself is worn, you can sometimes buy a replacement slider that fits your zipper teeth.

Should I use a specific thread color for sewing a zipper?

Match the thread color to the fabric, not the zipper, because the thread sits on the fabric side of the seam. If you cannot find an exact match, choose a color slightly darker than the fabric, which is less noticeable than a lighter shade.