Hole Pattern Calculator

GEOMETRY & SHOP MATH

Pick Linear or Grid, enter the spacing and count, and this returns the X/Y coordinate of every hole — ready to drop into your CNC program or layout. Need a circular bolt pattern instead? Use the dedicated Bolt Circle Calculator.

Pattern inputs

Linear settings

Grid settings

Only the section matching the selected pattern type is used — the other is ignored. Coordinates are unit-agnostic (mm or in, whatever you entered the spacing in). Capped at 400 holes.

0
Total holes
0.00
X extent (max − min)
0.00
Y extent (max − min)
Hole # X Y

How it works

Linear mode places holes along a straight line starting at (Start X, Start Y): hole i (0-indexed) sits at X = StartX + i × spacing × cos(angle), Y = StartY + i × spacing × sin(angle), using the standard CCW-from-positive-X-axis convention. Grid mode places holes on a rectangular array: row r, column c sits at X = StartX + c × column spacing, Y = StartY + r × row spacing, numbered left-to-right then top-to-bottom.

FAQ

Can I do a diagonal grid or rotated array? Not directly — for a rotated pattern, generate the grid here, then rotate each X/Y pair yourself, or use Linear mode twice (two angled rows) for simple cases.

What about circular/bolt-circle patterns? Use the dedicated Bolt Circle Calculator — it has its own angle and chord-spacing outputs tailored to circular layouts.

Are coordinates relative to a corner or the center? Relative to whatever you set as Start X/Start Y — set that to your part’s reference origin to get work coordinates directly.

Related Guides

Dimensions & Geometry Calculators · Bolt Circle Calculator · Setup & Workholding Calculators

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.