Hole Pattern Calculator

Generate the full X/Y coordinate list for a rectangular grid of holes — rows, columns, spacing, done.

How the grid is built

The first hole sits at your entered origin (X0, Y0). Every other hole is just that origin plus a whole number of X or Y spacings: hole at column c, row r sits at X0 + c × X spacing, Y0 + r × Y spacing, counting both from zero. Row 1 is the first row from the origin, and the pattern fills out column by column within each row.

Picking an origin that matches your setup

Set X0, Y0 to wherever you're actually indicating your part zero from — a corner of the stock, an existing feature, or a fixture datum. If your part zero is already at the first hole's location, leave the origin at (0, 0) and the table gives you offsets directly usable in most CNC programs.

Uneven or non-rectangular patterns

This assumes a uniform rectangular grid with constant spacing in both directions — for a circular bolt pattern, use the Bolt Circle Calculator instead. For an irregular pattern that's neither a grid nor a circle, each hole needs to be laid out individually against the print.