The basic method: pin, baste, then stitch
Sewing a zipper into a bag involves four steps: position the zipper between the bag pieces, pin it in place, baste (stitch loosely) to hold it steady, then sew it permanently with either a machine or needle and thread. The zipper teeth should face inward toward the bag interior so the fabric edges hide the metal. Most home sewers use a sewing machine with a zipper foot—a presser foot that lets the needle run close to the zipper teeth without hitting them.
The entire process takes 20 to 40 minutes depending on bag size and your experience. You do not need special tools beyond what you likely have: a needle, thread, pins, scissors, and either a sewing machine or the patience for hand-sewing. The hardest part is keeping the zipper straight and the fabric smooth as you stitch, not the sewing itself.
Key Takeaways
- Position the zipper face-down (teeth toward the bag interior) between the two bag pieces before you pin anything.
- A zipper foot on a sewing machine lets the needle run close to the teeth; without one, you risk hitting the metal and breaking your needle.
- Basting—loose stitching by hand or machine—holds the zipper in place and lets you adjust it before the final stitch.
- Sew slowly and stop frequently to check that fabric edges are even and the zipper is not twisting.
- Hand-sewing a zipper takes longer but gives you more control and works well for small bags or delicate fabrics.
Preparing the bag pieces and zipper
Lay out the two main pieces of your bag with the right sides (the finished sides you want to see) facing each other. The zipper will go between them. Measure the opening where the zipper will sit—it should be roughly the same length as your zipper, or slightly longer. If your zipper is too short, it will not open the bag far enough; if it is too long, the excess hangs out.
Cut a piece of scrap fabric or interfacing about 1 inch wide and as long as your zipper. Pin this reinforcement strip to the wrong side (back) of each bag piece, centered over the opening. This prevents the fabric from stretching or tearing when you pull the zipper. If your bag fabric is already thick (like canvas or denim), you can skip this step.
Unzip your zipper completely. Place it face-down (teeth pointing toward the bag interior) along one edge of the opening, with the zipper tape aligned with the raw edge of the fabric. The slider (the part you pull) should be at least 1 inch away from any seams or corners so it has room to move. Pin the zipper tape to the fabric every 2 inches along its length.
Basting the zipper in place
Basting is temporary stitching that holds the zipper steady while you check alignment and before you sew it permanently. By hand, use a needle and thread in a color that matches your fabric, and make long, loose stitches (about 1/4 inch long) along the edge of the zipper tape, about 1/8 inch from the teeth. You are not trying to be neat—you just need the zipper to stay put.
By machine, set your stitch length to 3.0 or 4.0 (longer than normal) and use a regular presser foot, not the zipper foot yet. Stitch along the edge of the zipper tape on both sides. Stop and check: the zipper should be straight, the fabric should not be bunched, and the opening should be even on both sides. If something is crooked, pull out the basting stitches and repin.
Once you are satisfied with the position, place the second bag piece on top, right side down, so the zipper is sandwiched between the two pieces. Pin around the edges. The zipper opening on the second piece should line up exactly with the opening on the first piece. Baste this side the same way—loose stitches along the zipper tape edge.
Machine-sewing the zipper with a zipper foot
Attach the zipper foot to your sewing machine. This foot has a narrow slot that lets the needle pass very close to the zipper teeth without hitting them. Consult your machine manual for how to attach it—most machines have a quick-release system. Thread your machine with thread that matches your bag fabric.
Set your stitch length to 2.0 to 2.5 (normal length for permanent seams). Position the bag under the presser foot so the needle will stitch along the edge of the zipper tape, about 1/8 inch from the teeth. Lower the presser foot and sew slowly, keeping the fabric edge straight. Stop every few inches and lift the presser foot to check that the zipper is not twisting and the fabric is not bunching.
When you reach the zipper slider, stop with the needle down, lift the presser foot, and gently pull the slider away from you (toward the open end of the zipper). Lower the presser foot and continue sewing. Repeat this each time the slider blocks your path. Sew all the way to the end of the zipper tape, then backstitch (reverse) a few stitches to lock the thread.
Flip the bag and repeat on the other side of the zipper. Remove all the basting stitches by pulling gently on the thread—they should come out easily. Zip and unzip the bag several times to make sure the zipper moves smoothly and does not catch fabric.
Hand-sewing a zipper for small bags or detail work
Hand-sewing takes longer but gives you precise control and works well for small pouches, coin purses, or bags made from delicate fabric. After basting the zipper in place (using the same method as above), thread a needle with thread that matches your fabric and knot the end.
Use a backstitch: bring the needle up through the fabric and zipper tape from underneath, then push it back down through both layers about 1/8 inch behind where it came up. Bring it back up 1/8 inch ahead of that point. This creates a solid line of stitches. Work slowly and keep the stitches small and even. Sew along one side of the zipper tape from end to end, then flip the bag and sew the other side.
When you reach the slider, stop and gently pull it away from you, then continue stitching. After you finish both sides, remove the basting stitches and test the zipper. Hand-sewn zippers are just as strong as machine-sewn ones if the stitches are tight and close together.
Finishing the bag and securing the zipper ends
Once the zipper is sewn in, the bag opening is not yet closed—you have only attached the zipper to the two main pieces. Sew the side seams of the bag to close it completely. Use a 1/2-inch seam allowance (the standard distance from the raw edge to the stitch line) and sew from the bottom of the bag up to where the zipper tape ends.
At the zipper tape ends, you may see excess tape sticking out past the seam. Trim this close to the stitching with scissors. Some sewers fold the zipper tape back and stitch it down by hand to prevent fraying, but this is optional. If your fabric frays easily (like cotton or linen), a small dab of clear fabric glue or fray check on the cut edge prevents loose threads.
Turn the bag right-side out through the opening (before you close it completely with a final seam or topstitching). Test the zipper one more time. It should glide smoothly and the fabric should not bunch or catch. If it does, the zipper may be slightly twisted—gently work it back and forth to loosen it, or carefully hand-stitch any bunched fabric flat.
Common mistakes and how to avoid them
Zipper teeth facing outward: If you sew the zipper with teeth facing out, they will snag fabric and feel rough. Always position the zipper face-down (teeth inward) before you pin. Double-check this before you start basting.
Stitching too close to the teeth: If you stitch right on top of the zipper teeth, your needle will hit the metal and break. A zipper foot solves this by letting the needle run 1/8 inch away from the teeth. If you do not have a zipper foot and are using a regular presser foot, stitch slightly farther from the teeth (about 1/4 inch) to be safe.
Zipper twisting or bunching: This happens when you pull the fabric unevenly as you sew. Stop every few inches, lift the presser foot, and check that both sides of the opening are even. If one side is bunching, pull it gently to straighten it before continuing.
Forgetting to move the slider: If the slider reaches the presser foot before you move it, you cannot sew any farther. Stop, lift the presser foot, slide the zipper pull away from you, and continue. This is normal and happens on every bag.
Frequently Asked Questions
Can I sew a zipper into a bag that is already closed?
No. The zipper must go between the two bag pieces before you close the side seams. If your bag is already sewn shut, you would have to cut it open, insert the zipper, and resew it—much more work. Always insert the zipper before you sew the final seams.
What if my zipper is longer than the opening?
Trim the excess zipper tape with scissors, leaving about 1/2 inch of tape beyond the end of the opening. Fold this tape back and stitch it down by hand, or leave it as is if it will be hidden inside a seam. Do not cut the zipper teeth themselves—only the tape.
Do I need a special zipper foot, or can I use a regular presser foot?
A zipper foot is strongly recommended because it lets the needle run very close to the teeth without hitting them. A regular presser foot is wider and forces you to stitch farther away, which can leave a gap between the zipper and the fabric. If you do not have a zipper foot, stitch about 1/4 inch from the teeth and accept that the gap will be slightly larger.
Why does my zipper stick or not slide smoothly after I sew it in?
The most common cause is fabric bunched inside the zipper teeth. Gently work the slider back and forth to loosen it. If that does not help, carefully hand-stitch any bunched fabric flat with a needle and thread. You can also run a pencil along the zipper teeth to lubricate them slightly.
Can I sew a zipper by hand if I do not have a sewing machine?
Yes. Hand-sewing takes longer (45 minutes to an hour for a medium bag) but works perfectly well. Use a backstitch and keep your stitches small and tight. The result is just as strong as a machine-sewn zipper.