Buttonhole Calculator – Even Spacing for Any Button Band

Buttonhole Calculator: Perfectly Spaced, Every Time

Uneven buttonholes are one of the most visible mistakes on a finished garment — a band with buttonholes crowded at the top and spread out at the bottom draws the eye immediately, even from across a room. The math to space them evenly isn’t hard, but doing it in your head while counting rows is where most knitters go wrong, especially on a band that isn’t a round number of centimeters or rows.

This calculator does the spacing for you. Enter your button band’s length and either how many buttonholes you want, or the gap you’d like between them — it returns the exact spacing, and if you give it your row gauge, the exact row numbers to work each buttonhole on.

Buttonhole Spacing Calculator

Get even spacing, top to bottom

Enter your band length, your edge margins, and either your button count or your preferred spacing — get the exact placement for every buttonhole.

Please fill in the band length and margin fields with numbers, and either a buttonhole count or a spacing greater than zero.

Spacing between buttonholes
Number of buttonholes

Formula: spacing = (band length − top margin − bottom margin) ÷ (buttonholes − 1). This distributes the buttonholes evenly across the usable

The formula

Buttonhole spacing is a straightforward division, once the margins are set aside:

Spacing = (Band length − Top margin − Bottom margin) ÷ (Number of buttonholes − 1)

The top and bottom margins matter because a buttonhole worked right at the very edge of a band is prone to stretching and gapping — most patterns leave at least 1–1.5cm (½”) of solid band above the first buttonhole and below the last one. Everything in between gets divided evenly by the number of gaps, which is always one fewer than the number of buttonholes.

If you already know how many rows your row gauge gives you over that band length, the calculator also converts each buttonhole’s position into an actual row number — so instead of “every 4cm,” you get “buttonhole on row 6, 17, 28, 39,” ready to follow directly.

Working from button count vs. working from spacing

There are two ways to plan a band, and this calculator handles both:

  • You know how many buttons you want — a cardigan pattern might call for 6 buttons regardless of your size. Enter the button count and the calculator tells you the spacing that fits your actual band length.
  • You know how far apart you want them — for a specific button size or a look you have in mind (buttons close together vs. spread out), enter the spacing you want and the calculator tells you how many buttonholes actually fit, rounding to a whole number so the last one doesn’t land awkwardly close to the edge.

Sizing the buttonhole itself, not just its position

This calculator spaces buttonholes along the band — it doesn’t size the buttonhole itself. That depends on your button diameter and your gauge:

  • A buttonhole should be very slightly smaller than the button’s diameter, since knit fabric stretches. A buttonhole sized exactly to the button’s width will gap open in wear.
  • In stitch counts, a one-row horizontal buttonhole (bind off 2–3 stitches, cast on the same number the next row) suits small to medium buttons; a two-row buttonhole gives a cleaner, sturdier edge for larger or heavier buttons.
  • Match your row gauge, not just stitch gauge, when converting a horizontal buttonhole’s width to how many rows a vertical buttonhole should span, if your pattern uses vertical buttonholes instead.

FAQ:

Q: My band length doesn’t divide evenly — what happens to the leftover? The leftover is absorbed into the top and bottom margins, not into the spacing between buttonholes. The calculator keeps every gap between buttonholes identical and lets the margins be slightly larger than the minimum you entered if needed, so the buttonholes themselves stay evenly spaced.

Q: How many buttonholes does a standard cardigan need? There’s no fixed rule — it depends on the button spacing you want and how far the button band needs to close. As a rough guide, buttons spaced 7–10cm (2.75–4in) apart look balanced on most adult cardigans; baby and children’s garments often use closer spacing, around 5–6cm, so small hands can manage the buttons.

Q: Should the first buttonhole be higher on a garment with a collar or neckband? Many patterns place the top buttonhole slightly closer to the neckline than the calculated even spacing would suggest, to keep the collar closed without gaping. If your pattern specifies this, follow the pattern’s placement for the top buttonhole and use this calculator to evenly space the remaining ones below it.

Q: Can I use this for a vertical buttonhole band, like on a vest? Yes — enter the band length as the vertical measurement (the length the buttonholes run along, top to bottom) rather than the horizontal band width, and the same spacing formula applies.

Q: What if my calculated buttonhole count doesn’t match my pattern’s stated count? Small mismatches (off by one) are usually fine to adjust — space your buttonholes as calculated rather than forcing an exact count if your gauge or band length differs from the pattern’s. A larger mismatch may mean your band length itself has come out different from the pattern’s expectation, worth double-checking against your gauge swatch before proceeding.