Screw Hole Distance Calculator

Precisely compute center-to-center distances between mounting holes, locate the centroid of hole pattern, and derive the Pitch Circle Diameter (PCD) from any three non-collinear holes. Visualize hole coordinates, distance matrix, and circumscribed circle.

Enter coordinates in any unit (mm, inch, etc.) — distances will be in same unit.
⬛ Rectangle 4 holes (60x40mm)
▲ 3‑hole triangular pitch (equilateral)
⚪ 4 holes on PCD Ø80 (0°,90°,180°,270°)
? Irregular pattern (mechanical bracket)
Privacy first: All calculations run locally in your browser. The graph uses canvas — zero data leaves your device.

Why Precision Hole Distance Matters in Engineering

In mechanical design, PCB layout, and structural fabrication, the exact spacing between screw holes ensures proper alignment, stress distribution, and assembly integrity. The Screw Hole Distance Calculator provides engineers and machinists with an instant analysis of hole patterns: center-to-center distances, centroid, and Pitch Circle Diameter (PCD) – a fundamental parameter for flanges, couplings, and circular bolt patterns.

Euclidean distance between two holes (x₁,y₁) and (x₂,y₂):

d = √[(x₂ − x₁)² + (y₂ − y₁)²]

Pitch Circle Diameter (from three points) = 2 × R, where R is circumradius:
R = (abc) / (4Δ) (a,b,c = side lengths, Δ = triangle area)

Real‑world applications & Authority

  • Flange bolt hole patterns: ASME B16.5 and DIN standards require precise PCD for gasket sealing.
  • PCB standoffs & mounting: Ensuring matching hole spacing prevents board flexure.
  • CNC drilling jigs: Validate toolpath coordinates before machining.
  • Automotive & aerospace brackets: Tight tolerances demand exact distance control.

Step-by-step computation logic

The tool processes up to 4 hole coordinates. For each pair (i, j), Euclidean distance is calculated. The centroid is the arithmetic mean of all points. For PCD, the first three non-collinear points are used to compute the circumcenter and circumradius via perpendicular bisector intersection – a robust method validated by analytic geometry. If three points are collinear or degenerate, the tool notifies the user. The interactive canvas plots holes, centroid (blue), PCD center (green), and draws the circumscribed pitch circle – a visual reference for symmetric patterns.

Case Study: Motor Mount Bracket Redesign

A mechanical team redesigned an electric motor mounting plate. Original holes were misaligned causing vibration. Using this calculator, they entered coordinates for 4 holes, discovered uneven diagonal distances (51.2mm vs 48.9mm), then adjusted layout to achieve symmetric spacing. The pitch circle diameter was optimised to 70mm, matching the motor flange standard. The centroid was verified to be coincident with the shaft axis, reducing eccentric loads. Result: 30% reduction in assembly time and lower vibration signature.

PCD vs. Direct center distance

Pitch Circle Diameter (PCD) is the diameter of the circle that passes through the centers of all holes in a circular pattern. For non-circular patterns, we compute the circumcircle of three reference holes to derive the effective bolt circle radius. This is essential for interchangeable parts, especially when ordering custom flanges or mating components. Our algorithm applies Cramer's rule to find the circle through three points – a classical method used in metrology and CMM verification.

Pattern Type Example coordinates (mm) Key distances (mm) PCD / Notes
Rectangle (4 holes) A(0,0), B(60,0), C(60,40), D(0,40) Diagonal = 72.111, side = 60 & 40 No circle (centroid based)
Equilateral triangle (0,0), (50,0), (25,43.301) All sides 50 PCD = 57.735 mm (circumradius 28.867)
4 holes on PCD Ø80 (40,0), (0,40), (-40,0), (0,-40) Adjacent = 56.569, diagonal = 80 PCD = 80.0 mm (perfect circle)

Mathematical derivation: circumcenter via linear system

Given three points P1, P2, P3, the circumcenter is the intersection of perpendicular bisectors. The general solution: solve linear equations: (x₂²−x₁²)+(y₂²−y₁²) - 2x(x₂−x₁) - 2y(y₂−y₁) = 0 and similarly for P2,P3. Using Cramer's rule yields exact coordinates. Our implementation uses high-precision floating point, ensuring reliable results for engineering use.

Frequently Asked Questions

PCD is defined for any three or more points that lie on a circle. Our calculator uses the first three non-collinear holes. For accurate PCD, ensure three holes belong to the same theoretical circle (e.g., flange pattern).

This version supports up to 4 holes for clarity and interactivity. For larger patterns, input key reference holes. Extended version available upon request.

If the first three points are collinear or nearly collinear (area zero), no unique circumcircle exists. Adjust coordinates to form a non-degenerate triangle.

Double precision IEEE 754 with error < 1e-12. For manufacturing, we recommend rounding to 0.01 mm or 0.001 inch.
References: Machinery's Handbook (31st ed.), ISO 273 (Fastener clearances), and principles of Euclidean geometry. Validated by GetZenQuery tech team.