Every machinist, CNC programmer, or mechanical engineer eventually confronts the same task: distributing a set of holes evenly around a circle. Whether you are programming a 6-bolt flange on a vertical machining center, laying out sprocket teeth on a manual mill with a DRO, or verifying an existing bolt pattern on a casting, the underlying mathematics are identical — and even a single mis-keyed trigonometric value can scrap an expensive workpiece.
This Bolt Circle Calculator eliminates that risk by computing exact X and Y coordinates for every hole, along with the chord length between adjacent holes and the precise angular spacing — all derived from a set of clearly defined parameters you supply from your engineering drawing or design specification.
Required Design Parameters
Before generating coordinates, the following values must be established from your project documentation:
- Bolt Circle Diameter (BCD) — The diameter of the imaginary circle that passes through the center of every bolt hole, also known as the Pitch Circle Diameter (PCD). Expressed in millimeters (or inches, with appropriate conversion).
- Number of Holes (N) — The total quantity of equally spaced holes to be distributed around the circle. Must be an integer ≥ 2.
- Start Angle (θ₀) — The angular position of the first hole measured from the positive X-axis (the 3 o'clock position). A value of 0° places the first hole at the rightmost point; 90° places it at the topmost point.
- Center X (Xc) and Center Y (Yc) — The absolute coordinates of the bolt circle's center relative to your machine's work coordinate system (e.g., G54 origin). Set both to 0 for incremental output from the circle center.
- Direction — Either Counter-Clockwise (CCW), following standard mathematical convention, or Clockwise (CW), which reverses the angular progression.
- Hole Diameter — The finished size of the drilled or bored holes. Used for visual verification and clearance analysis, not for coordinate computation.
Theoretical Foundation & Formulas
The Parametric Circle Equation
The entire coordinate generation process rests on the parametric form of the circle equation. Given a radius $R$ and a center point $(X_c, Y_c)$, any point on the circle at angle $\theta$ is defined by:
$$X = X_c + R \cdot \cos(\theta)$$
$$Y = Y_c + R \cdot \sin(\theta)$$
The radius is derived directly from the Bolt Circle Diameter:
$$R = \frac{BCD}{2}$$
Angular Spacing Between Holes
For $N$ equally spaced holes, the angular separation between any two consecutive holes is:
$$\Delta\theta = \frac{360^\circ}{N}$$
The angle of the $i$-th hole (where $i$ starts at 0) depends on the chosen direction. For counter-clockwise rotation:
$$\theta_i = \theta_0 + i \cdot \Delta\theta$$
For clockwise rotation:
$$\theta_i = \theta_0 - i \cdot \Delta\theta$$
All angles are normalized to the range $[0°, 360°)$ before conversion to radians for the trigonometric functions.
Chord Length Formula
The chord length $C$ is the straight-line distance between the centers of two adjacent holes. This value is critically important for manual layout work using dividers or calipers, and it is derived from the inscribed angle theorem:
$$C = BCD \cdot \sin\left(\frac{180^\circ}{N}\right)$$
This formula can also be expressed using the radius:
$$C = 2R \cdot \sin\left(\frac{\pi}{N}\right)$$
For the special case of $N = 6$, the chord length equals the radius — a geometric fact that has been exploited by machinists for over a century to step off hexagonal patterns with simple dividers set to the radius dimension.
Degree-to-Radian Conversion
Since most engineering drawings specify angles in degrees while trigonometric functions operate in radians, the conversion applied internally is:
$$\theta_{rad} = \theta_{deg} \cdot \frac{\pi}{180}$$
Technical Specifications / Reference Data
The following table provides ASME B16.5 pipe flange bolt circle data for the most common nominal pipe sizes at Class 150 pressure rating. These are standard reference values used across petrochemical, power generation, and industrial piping:
| NPS (inches) | BCD (mm) | No. of Holes | Bolt Dia. (mm) | Hole Dia. (mm) | Chord Length (mm) |
|---|---|---|---|---|---|
| 1 | 79.4 | 4 | 12.7 | 15.9 | 56.1 |
| 2 | 120.6 | 4 | 15.9 | 19.1 | 85.3 |
| 3 | 152.4 | 4 | 15.9 | 19.1 | 107.8 |
| 4 | 190.5 | 8 | 15.9 | 19.1 | 72.9 |
| 6 | 241.3 | 8 | 19.1 | 22.2 | 92.3 |
| 8 | 298.4 | 8 | 22.2 | 25.4 | 114.2 |
| 10 | 362.0 | 12 | 25.4 | 28.6 | 93.7 |
| 12 | 431.8 | 12 | 25.4 | 28.6 | 111.7 |
| 16 | 539.8 | 16 | 28.6 | 31.8 | 105.7 |
| 24 | 749.3 | 20 | 33.3 | 36.5 | 117.0 |
Common automotive and cycling BCD values for quick reference:
| Application | BCD (mm) | Holes | Chord (mm) |
|---|---|---|---|
| 4-lug compact car (4×100) | 100.0 | 4 | 70.7 |
| 5-lug sedan (5×114.3) | 114.3 | 5 | 67.2 |
| 5-lug European (5×112) | 112.0 | 5 | 65.8 |
| Road bike chainring (5×130) | 130.0 | 5 | 76.4 |
| Compact chainring (4×110) | 110.0 | 4 | 77.8 |
| MTB chainring (4×104) | 104.0 | 4 | 73.5 |
Engineering Analysis & Real-World Application
How the Number of Holes Affects Chord Length and Structural Integrity
Increasing $N$ while keeping the BCD constant reduces the chord length between adjacent holes — and consequently reduces the edge distance (the material remaining between the hole perimeter and the edge of the next hole). This is a primary design constraint.
The minimum edge distance is typically specified as 1.5× to 2× the bolt diameter to prevent tear-out under load. For a 10 mm bolt on a 100 mm BCD, the chord length at $N = 12$ drops to approximately 25.9 mm, leaving only about 15.9 mm of center-to-center material minus two half-diameters — a marginal condition. By contrast, at $N = 6$, the chord equals 50 mm, providing ample structural margin.
The Role of the Start Angle in CNC Programming
The start angle $\theta_0$ is not merely an aesthetic choice. In CNC milling centers, the orientation of the first hole relative to the machine's X-axis determines how the bolt pattern aligns with reference features such as keyways, dowel pins, or mating surfaces.
A common convention in flange work is to place the first hole at 0° (3 o'clock) or to straddle the horizontal axis by offsetting $\theta_0$ by half the angular spacing. For example, an 8-hole pattern with $\Delta\theta = 45^\circ$ would use $\theta_0 = 22.5^\circ$ to ensure no hole falls on the horizontal or vertical centerline — preventing interference with gasket positioning grooves.
CW vs. CCW and Machine Coordinate Systems
The direction setting aligns the calculator's output with your machine's coordinate convention. Most CNC machining centers use a right-hand coordinate system where CCW is the positive angular direction (matching standard mathematics). However, some manual dividing heads and rotary tables index clockwise. Selecting the correct direction eliminates the need for post-calculation sign adjustments.
Interpreting the Chord Length for Manual Layout
On the shop floor, the chord length is arguably the most practical output. A machinist without a DRO-equipped mill can scribe the BCD on a workpiece, set a pair of spring-loaded dividers to the chord dimension, and step off hole locations around the circumference. For $N = 6$, this is trivially accurate since the chord equals the radius. For other values of $N$, the chord provides a rapid verification method: after stepping around the circle, the dividers should return precisely to the starting point. Any accumulated error immediately signals a measurement problem.
Floating-Point Precision and Practical Tolerances
The calculator resolves coordinates to four decimal places (0.0001 mm), which exceeds the practical positioning accuracy of most CNC machines (typically ±0.005 mm for standard VMCs). However, carrying extra precision through intermediate calculations prevents rounding-error accumulation — particularly critical for large bolt circles with many holes where truncated intermediate values can compound into measurable positional drift at the final hole.
Frequently Asked Questions
Measure the center-to-center distance between two adjacent holes — this is the chord length $C$. You also need to know (or count) the total number of holes $N$. Then rearrange the chord formula to solve for the BCD:
$$BCD = \frac{C}{\sin\left(\frac{180^\circ}{N}\right)}$$
For example, if you measure a chord of 52.3 mm between adjacent holes on a 5-hole pattern, the BCD is $52.3 \div \sin(36°) \approx 88.96$ mm. This technique is documented in Section 5.8 of Walsh's Handbook of Machining and Metalworking Calculations, where chord factors normalized to a unit diameter are tabulated for rapid field calculations.
Yes. The X and Y values produced are absolute coordinates referenced to the machine's work coordinate origin, provided that you enter the Center X and Center Y values relative to that same origin (typically G54). A basic drilling cycle using the generated coordinates would follow this structure: set the appropriate work offset, call the desired canned cycle (G81 for spot drilling, G83 for peck drilling), then list successive lines with the X and Y positions of each hole. The Z depth, retract plane, and feed rate are determined by your tooling and material, not by the bolt circle geometry.
If your work offset places the origin at the bolt circle center, set both center coordinates to zero and the output becomes a direct coordinate list ready for insertion into your program.
Bolt Circle Diameter (BCD) and Pitch Circle Diameter (PCD) refer to the same geometric dimension — the diameter of the circle passing through the centers of all mounting holes. The distinction is purely one of industry convention. BCD is predominantly used in North American machining, fastener, and cycling (chainring) contexts. PCD is more common in European engineering, automotive wheel specifications, and piping standards.
The mathematical treatment is identical regardless of terminology. In formal engineering documentation governed by ASME standards, the dimension is typically called out as the "bolt circle" diameter, while ISO-oriented drawings may label the same dimension as the "pitch circle."
Professional Conclusion
Manual bolt circle calculations — even for a simple 4-hole pattern — involve repeated trigonometric operations where a single degree-to-radian conversion error or sign mistake propagates into every downstream coordinate. On a high-value workpiece machined from aerospace-grade titanium or hardened tool steel, the cost of a misdrilled hole can reach thousands of dollars.
Automated coordinate generation eliminates this entire class of error. By entering verified dimensional parameters from the engineering drawing, the machinist receives validated coordinates that can be transferred directly into a CNC program or used for manual layout verification. The chord length output provides an independent physical check — measurable with calipers on the finished part — that closes the verification loop between design intent and machined reality.
Precision is not optional in metalworking. It is the difference between a conforming part and scrap.