Thread a needle, knot the end, and push up through the underside of the fabric

Start by cutting about 18 inches of thread — match it to your button color or the pants fabric if the button is dark. Thread it through the needle eye and pull until one end is about 6 inches shorter than the other. Tie a knot at the longer end by looping the thread around your finger twice, rolling it off, and pulling tight.

Position your pants so the button hole faces up. Push the needle up through one hole from underneath the fabric, pulling until the knot catches on the back side. This anchors your thread so it does not slip through.

Key Takeaways

  • Use thread that matches your button or pants color, and tie a knot at one end before you start sewing.
  • Push the needle through the button holes in an X or parallel pattern, going through the fabric each time.
  • Wrap thread around the base of the button underneath it to create a shank that lets the button move freely.
  • Knot the thread on the back side of the fabric and trim the excess so it does not unravel.

Sew the button down with an X or parallel stitch pattern

If your button has four holes, sew in an X: push the needle down through the hole diagonally across from where you came up, then back up through an adjacent hole. Repeat this diagonal pattern four or five times until the button feels snug. If your button has two holes, sew straight across — up through one hole, down through the other — about five times.

Each time the needle goes through the button and fabric, pull the thread snug but not so tight that you pucker the fabric. The button should sit flat against the pants, not pulled down into a dimple.

Create a thread shank under the button

A shank is a small gap between the button and fabric that lets the button move slightly when you button and unbutton your pants. This prevents the thread from breaking under stress. After your final stitch through the button, push the needle back up through the fabric but do not go through a button hole — instead, wrap the thread around the threads underneath the button three or four times, creating a little coil.

This wrapping takes only a few seconds and makes the difference between a button that lasts a month and one that lasts a year. The coil sits between the button and fabric like a tiny spring.

Knot and trim on the back side of the pants

Push the needle to the back side of the fabric, underneath where the button sits. Make a small loop with the thread, push the needle through it, and pull tight to form a knot. Repeat the knot one more time for security. Trim the thread tail with scissors, leaving about a quarter inch so the knot does not slip.

If you are sewing a button on the waistband, the back side is the inside of the pants. If you are sewing a fly button or a button on a pocket, the back side is still the inside of the garment — you are always knotting where nobody sees it.

Reinforce the button if it takes heavy stress

Waistband buttons and fly buttons on pants bear constant pulling and tugging, so they fail faster than buttons on a shirt. If you want your repair to last longer, sew a small reinforcement button on the back side of the fabric directly behind the main button. Use a two-hole button and sew it with the same thread — it does not need to be visible, and it distributes the stress across two buttons instead of one.

This step is optional but worth the extra minute if the button has already come off once. Pants buttons that fail tend to fail again in the same spot.

Choose the right thread and needle for your fabric

Use all-purpose polyester thread for most pants — it is strong, does not fray, and comes in colors that match common button shades like black, navy, tan, and white. If you cannot find an exact match, choose a color slightly darker than the button rather than lighter, because thread looks darker when it is wet or in shadow.

Pick a needle size that fits the thread comfortably without forcing it through the eye. A size 70/10 or 80/12 needle works for most sewing thread. If the needle is too small, the thread frays; if it is too large, it leaves visible holes in the fabric.

Frequently Asked Questions

Can I sew a button on without a needle?

No. A needle is the only tool that pushes thread through fabric and button holes cleanly. Trying to push thread through by hand damages the thread and your fingers. A needle costs less than a dollar and lasts indefinitely.

What if the button holes are torn or enlarged?

If the holes are slightly enlarged, sew the button in a slightly different position — move it a quarter inch to one side so the thread goes through undamaged fabric. If both holes are torn, the button cannot be saved; you will need to replace it with a new button of the same size and color.

How do I match the button color if I cannot find the exact shade?

Bring the pants and the old button to a fabric or craft store and hold them under natural light near the thread section. A slightly darker match is safer than a lighter one. If the button is unusual — wood, metal, or decorative — you may need to order a replacement online using the button size in millimeters.

Do I need to wash the pants before or after sewing the button?

Sew the button after washing and drying, so you know the fabric has already shrunk and the button will fit properly. If you sew before washing, the fabric may shrink and pull the button off-center or break the thread.

What if the thread keeps breaking while I sew?

Your needle is probably too small for the thread, or the thread is old and brittle. Try a larger needle, or cut a fresh piece of thread from a new spool. Pull the thread snug but not so hard that you strain it — if you are using force, the needle or thread is wrong for the job.