Sewing a zipper into a bag is straightforward once you understand the order of steps and how to keep the zipper straight
A zipper sewn into a bag stays put and works smoothly when you attach it before closing the bag's sides. The process involves pinning the zipper face-down along the opening edge, sewing it to one side panel, flipping the bag, and then sewing the other side. The whole job takes 20 to 30 minutes for a small bag and uses a standard sewing machine with a regular needle—no special equipment needed. The most common mistake is sewing the zipper crooked or too close to the teeth, which makes the zipper hard to pull.
The key is working with the bag flat and open. You attach the zipper to both fabric panels before you sew any side seams, so the zipper ends up sandwiched between two layers. This method keeps the zipper centered and prevents twisting or bunching.
Key Takeaways
- Attach the zipper to the bag panels before you sew the side seams closed, so the zipper is sandwiched between two layers of fabric.
- Pin the zipper face-down (teeth pointing toward the fabric) along one opening edge, then sew it down with a straight stitch about one-quarter inch from the zipper's edge.
- Flip the bag inside-out, align the other opening edge with the other side of the zipper, pin, and sew the second side the same way.
- Use a zipper foot on your sewing machine to sew close to the zipper teeth without hitting them or breaking your needle.
- Test the zipper before you sew the bag's side seams, so you can fix any problems while the bag is still flat.
What you need before you start
Gather a zipper that is at least 2 inches longer than the opening you are closing (you will trim it later), two fabric panels cut to size with one long edge left raw for the zipper, a sewing machine, thread that matches your fabric or the zipper, and a zipper foot—a small metal or plastic attachment that slides onto your machine's presser bar and lets you sew right next to the zipper teeth without hitting them.
Check that your zipper foot fits your machine. Most machines use a standard presser bar, but some older or specialty machines need a special foot. Your machine's manual will tell you which one you need, or you can bring your machine to a fabric store and ask. A zipper foot costs between $5 and $15 and works for all future projects. Press your fabric panels with an iron so they lie flat. Wrinkled fabric makes it hard to pin the zipper straight, and crooked pinning leads to crooked sewing.
Pin the zipper to the first fabric panel
Lay one fabric panel flat on your work surface with the raw edge (the edge you will attach the zipper to) facing you. Open the zipper all the way. Place the zipper face-down on top of the fabric so the zipper's edge runs along the raw fabric edge, with the zipper teeth pointing down into the fabric. The zipper should run the full length of the opening—if it is longer, that is fine; you will trim it after sewing.
Pin the zipper down every 2 to 3 inches along its length, pushing the pins through the zipper tape (the flat fabric part on either side of the teeth) and into the fabric below. Use at least four pins so the zipper does not shift while you sew. Check that the zipper edge and the fabric edge line up along the entire length—if they drift apart, unpin that section and repin it straight. Close the zipper partway (about halfway) so the slider does not get in your way while you sew. Leave it open enough that you can still see the teeth and the edge of the zipper tape.
Sew the zipper to the first side
Attach the zipper foot to your sewing machine by sliding it onto the presser bar according to your machine's manual. Thread your machine and set it to a straight stitch at a medium length (about 2.5 on most machines). Lower the presser foot onto the fabric.
Position the needle so it will sew about one-quarter inch away from the zipper's edge—this is the distance from the zipper tape to where your stitches will go. On most machines, you can move the needle position left or right using a dial or button; check your manual if you are not sure how. Sew slowly along the entire length of the zipper, keeping the edge of the zipper foot parallel to the zipper edge. Stop and raise the presser foot when you reach the end, then remove the fabric from the machine. Trim any loose threads with scissors. Do not trim the zipper yet—wait until both sides are sewn.
Flip the bag and pin the second side
Flip the bag inside-out so the fabric panel you just sewed is now on the back. The zipper is now sandwiched between the first panel (underneath) and the air above. Lay the second fabric panel on top, with its raw edge aligned with the other side of the zipper. The zipper should run along this raw edge just as it did on the first side.
Pin the second panel to the zipper the same way you pinned the first: every 2 to 3 inches along the zipper tape, with pins going through the tape and into the fabric. Check the alignment again—the raw edges of both fabric panels should be even with each other, and the zipper should sit centered between them. If the zipper is crooked at this stage, unpin and repin until it is straight.
Sew the zipper to the second side
Keep the zipper foot attached and thread your machine if needed. Position the needle one-quarter inch from the zipper edge again, on the same side of the zipper as your first seam. Sew along the entire length of the zipper at the same speed and tension as the first side. This second seam should be parallel to the first one, with the zipper running between them.
When you reach the end, raise the presser foot and remove the fabric. Trim loose threads. Close the zipper all the way and inspect both seams to make sure they are even and the zipper sits straight between them.
Trim the zipper and test it
Trim the excess zipper tape at both ends with scissors or a seam ripper, leaving about one-half inch of tape beyond your stitching. This prevents the zipper from catching on fabric when you open and close it. Open and close the zipper several times to make sure it moves smoothly and does not catch.
If the zipper is stiff, run the slider back and forth a few more times—it often loosens up with use. If it catches on fabric, gently pull the caught fabric free and check that the zipper tape is not folded under. Do not force a stuck zipper; stop and inspect it before you continue. Once the zipper works smoothly, you can sew the bag's side seams closed. Fold the bag so the two fabric panels are right-sides together (the sewn sides facing inward), and sew along the sides and bottom with a straight stitch. The zipper will be enclosed inside the finished bag.
Common mistakes and how to avoid them
Sewing too close to the zipper teeth: If your needle hits the zipper teeth, it can break the needle or bend the teeth. Use a zipper foot and position the needle one-quarter inch away from the teeth, not right next to them. If you hear a clicking sound while sewing, stop when ready and check the needle.
Zipper crooked or off-center: This happens when you do not pin carefully before sewing. Pin every 2 to 3 inches and check the alignment before you start sewing. If you sew a crooked line, you can remove the stitches with a seam ripper and re-sew, but it is faster to get it right the first time. Take your time with pinning—it is the step that prevents most problems.
Zipper slider stuck or hard to move: This usually means the zipper tape is folded under or the fabric is bunched. Open the zipper and inspect both sides. If fabric is caught, gently pull it free. If the tape is folded, use a seam ripper to remove a few stitches, straighten the tape, and re-sew. Test the zipper before you close the bag so you catch this early.
Forgetting to use a zipper foot: Sewing a zipper without a zipper foot is possible but risky—your needle can hit the teeth and break. A zipper foot is inexpensive and takes 30 seconds to attach, so use one every time.
Frequently Asked Questions
Can I sew a zipper into a bag that is already closed?
No. Once the bag is sewn closed, there is no way to insert a zipper without cutting the bag open and then repairing it, which is much harder than sewing the zipper in before closing the sides. Always attach the zipper to the open panels first, then sew the bag closed.
What if my zipper is shorter than the opening?
The zipper should be at least 2 inches longer than the opening so you have room to sew it down and trim the excess. If your zipper is too short, buy a new one. Trying to stretch a short zipper or sew it into an opening that is too long will cause the fabric to bunch and the zipper to jam.
Do I need a special needle for sewing zippers?
No. A standard universal needle (size 80/12 or 90/14) works fine for most zippers and fabrics. If you are sewing a heavy zipper into thick fabric like canvas or denim, you can use a size 100/16 needle, which is slightly stronger. Change your needle before starting if it is bent or dull.
How do I remove stitches if I sew the zipper crooked?
Use a seam ripper—a small tool with a curved blade that cuts thread. Slide the blade under a stitch, pull up gently, and the thread will cut. Work along the seam, cutting every few stitches, then pull the thread free. Once the stitches are out, repin the zipper straight and sew again.
Can I sew a zipper by hand if I do not have a sewing machine?
Yes, but it takes longer and the stitches are more visible. Use a backstitch, which is the strongest hand-sewing stitch: bring the needle up through the fabric, go back one stitch length, and come up one stitch length ahead. Repeat along the entire zipper. Keep your stitches small and even, about one-quarter inch apart, and sew slowly so the line stays straight.