Knitting Buttonhole Spacing Calculator
Enter the full button band, the opening you have tested, and the space you want at each end. The calculator divides the remaining whole stitches or rows into balanced gaps and writes out the placement plan.
Units available between buttonholes172
- Short and long gap sizes
- 34 and 35 stitches
- Gap sequence
- 34, 35, 34, 35, 34 stitches
- Buttonhole start positions
- 9, 45, 82, 118, 155, 191 (stitches)
- Pattern-style placement plan
- Work 8 stitches, make a 2-stitche buttonhole, work 34 stitches, make a 2-stitche buttonhole, work 35 stitches, make a 2-stitche buttonhole, work 34 stitches, make a 2-stitche buttonhole, work 35 stitches, make a 2-stitche buttonhole, work 34 stitches, make a 2-stitche buttonhole, work 8 stitches.
Start positions are one-based: position 1 is the first stitch or row of the band.
How to use this calculator
- Choose stitches for a horizontal band or rows for a vertical band.
- Enter the complete usable length of the band and the number of buttonholes.
- Enter the stitches or rows consumed by one tested buttonhole.
- Enter the units before the first opening and after the last opening.
- Use the gap sequence and start positions to check the layout against the stitch pattern before knitting.
How buttonhole spacing is calculated
Plan buttonholes in the units the band is actually worked in: stitches for a horizontal band and rows for a vertical band. First make and test the opening in the same yarn and stitch pattern. Its construction determines how many units it consumes; an eyelet can involve more stitches than its finished hole suggests.
Let T be the total band units, N the number of buttonholes, H the units per opening, A the units before the first opening, and Z the units after the last opening. The units left for the spaces between openings are:
R = T − N × H − A − Z
For more than one buttonhole, there are G = N − 1 internal gaps. The base gap is q = floor(R / G), with r = R − qG units left over. The calculator gives every gap q units, then adds one unit to exactly r gaps. Those longer gaps are spread across the band rather than all being placed at one end. Every gap is therefore the same size or differs by only one stitch or row.
Start positions are one-based: position 1 means the first stitch or row of the band. The first opening begins after the starting allowance, so its first unit is at A + 1. Each later position adds the opening width and the intervening gap. This makes the written plan easy to count while you work.
What changes the layout most
The number and width of openings take space away from the gaps directly. Adding a buttonhole creates another opening and another interval, so it can change every gap. The two end allowances are independent by design: use different values when the hem, neckline, collar, or finishing treatment makes one end need more room.
Very short gaps can work for grouped decorative closures, but they can crowd the fabric or make buttons harder to use. The calculator warns when the shortest gap is smaller than the opening. A zero gap is permitted when adjacent openings are intentional, but it deserves a swatch.
What this calculator leaves out
This is a whole-unit layout tool, not a substitute for testing the actual buttonhole. It does not automatically preserve ribbing columns, cable panels, lace repeats, shaping, bust placement, or deliberately grouped buttonholes. It also does not choose a buttonhole size: yarn-over, bound-off, and reinforced openings can consume different numbers of stitches or rows.
Measure after blocking if the finished band will be blocked, and check the plan on the garment before committing to the buttonhole row. The Knitting Guild Association recommends choosing buttons first, swatching the opening in the intended fabric, and placing the first and last buttonholes away from the fabric edge.
Worked example
For a horizontal band with 200 stitches, six buttonholes, two stitches per opening, and eight stitches at each end, the units available between openings are 200 − (6 × 2) − 8 − 8 = 172. There are five gaps, so 172 ÷ 5 = 34 remainder 2.
The short gap is 34 stitches and two gaps need one extra stitch. The balanced sequence is 34, 35, 34, 35, 34. The one-based buttonhole start positions are 9, 45, 82, 118, 155, and 191. The plan reads: work 8 stitches, make a 2-stitch buttonhole, work 34 stitches, and continue with the displayed gap sequence through the final 8 stitches.
Common questions
Should buttonholes be spaced by stitches or by rows?
Use stitches when the button band is worked across its width, as on a horizontal band. Use rows when the buttonholes are placed as you work up a vertical band. Count in the same direction that controls the distance between the openings.
How do I distribute leftover stitches between buttonholes?
Divide the available units by the number of spaces between buttonholes, not by the number of buttonholes. Use the whole-number quotient for every gap, then add one unit to as many gaps as the remainder requires. Spreading those longer gaps through the sequence prevents all of the extra units from collecting at one end.
How far should the first and last buttonholes be from the edge?
That depends on the construction of the band, the button size, and the edge finish. The Knitting Guild Association suggests keeping the first and last buttonholes about one-half to one inch from the fabric edges. Convert that distance using your blocked gauge, then check it against the actual garment.
Does a yarn-over buttonhole count as one or two stitches?
Count the units consumed by the specific construction, not the apparent size of the hole. A simple eyelet can use a yarn over and a decrease across two stitches, while other methods use more stitches or several rows. Work a swatch and enter the count that your chosen method actually occupies.
How do I space buttonholes evenly in ribbing?
First choose a buttonhole method that works with the rib pattern, then use this layout as a starting count. You may need to move an opening slightly to keep knit or purl columns intact. Recheck the altered gap sequence and keep the first and last allowances appropriate for the edges.
Should I block the band before planning buttonholes?
For a finished band that will be washed or blocked, plan from a swatch treated the same way. Blocking can change both the band length and the behavior of the opening. If you cannot work the band first, use the blocked gauge swatch and leave room to check the fit before finishing.