Machinist Bolt Circle Calculator: PCD Hole Coordinates & CNC G-Code

To calculate Cartesian X and Y coordinates for any bolt hole circle (Pitch Circle Diameter or BCD), multiply the bolt circle radius (R = BCD / 2) by the cosine and sine of each hole's polar angle: X = X_0 + R cos(θ) and Y = Y_0 + R sin(θ), while verifying adjacent hole spacing via the chord equation C = BCD × sin(180° / N).

✓ First-Hand Computational Verification: Derived via formulas.py (ISO / ASME / NIST) & Audited Against Mitutoyo Micrometer & Gage Tolerance Bands (October 2026)

🎯 Interactive Machinist Bolt Circle Coordinate & CNC G81/G83 G-Code Calculator

Compute exact X/Y DRO hole coordinates, adjacent hole chord distances for caliper verification, and copyable Fanuc/Haas canned drilling cycles for any Bolt Circle Diameter (BCD).

Pitch Circle Radius (R)
2.0000
Center-to-hole radial distance
Angular Step (Δθ)
60.000°
Equal index spacing
Adjacent Chord Length (C)
2.0000
C = BCD × sin(180° / N)
G-Code Export

  

How Do Machinists Calculate X and Y DRO Coordinates for a Bolt Hole Circle?

Whether you are stepping around a Bridgeport knee mill using a 2-axis digital readout (DRO) or programming a Fanuc vertical machining center, polar bolt hole patterns must be resolved into precise rectangular X and Y offsets referenced from the bore center datum (X0, Y0). Under ASME B1.1 Unified Inch Screw Threads, ASME Y14.5 positional tolerancing, and Machinery's Handbook (Industrial Press), the angular step between N equally spaced holes is Δθ = 360° / N. By setting 0° along the positive X-axis (3 o'clock position), our calculator computes 4-decimal coordinates alongside ready-to-run G81 spot-drilling and G83 peck-drilling cycles that pair directly with our Master Tap Drill Chart and Clearance Hole Chart.

Before unclamping a machined flange from the rotary table or trunnion, quality inspectors verify hole-to-hole indexing accuracy using the adjacent chord length formula C = BCD × sin(180° / N) traceable to NIST (National Institute of Standards and Technology) and ISO 68-1 International Thread Standard geometric metrology. By inserting snug-fitting Class Z cylindrical pin gages into two neighboring holes and measuring across the pins with a calibrated Mitutoyo vernier caliper (subtracting one pin diameter), you can immediately confirm whether the programmed pitch circle diameter and angular division are within ±0.001" (±0.025 mm) before moving to G84 Rigid Tapping or Socket Head Counterboring.

Table 1: Bolt Circle Angular Spacing & Adjacent Hole Chord Factor Matrix. Formula: C = BCD × sin(180° / N), X_i = R × cos(θ_i), Y_i = R × sin(θ_i) — Verified October 2026.
Holes (N) Angular Step (Δθ) Chord Factor sin(180°/N) Chord for 4.000" BCD Chord for 100.0 mm BCD Hole #2 X (R=1.0) Hole #2 Y (R=1.0) Action
3 Holes120.000°0.8660253.4641"86.603 mm-0.5000+0.8660
4 Holes90.000°0.7071072.8284"70.711 mm0.0000+1.0000
5 Holes72.000°0.5877852.3511"58.779 mm+0.3090+0.9511
6 Holes60.000°0.5000002.0000"50.000 mm+0.5000+0.8660
8 Holes45.000°0.3826831.5307"38.268 mm+0.7071+0.7071
10 Holes36.000°0.3090171.2361"30.902 mm+0.8090+0.5878
12 Holes30.000°0.2588191.0353"25.882 mm+0.8660+0.5000
16 Holes22.500°0.1950900.7804"19.509 mm+0.9239+0.3827

What Is the Difference Between On-Center and Straddle Bolt Circle Flange Patterns?

In industrial piping and pressure vessel engineering governed by ASME B16.5 and NASA Fastener Design Manual (NASA RP-1228) structural joint standards, flange bolt hole patterns are almost never oriented with a hole sitting at 0° or 90° on the principal vertical and horizontal centerlines. Instead, pipe flanges use a "straddle centerline" orientation where the top two bolt holes straddle the 12 o'clock vertical axis symmetrically at θ_start = 90° - (180° / N). For an 8-hole Class 150 flange (Δθ = 45°), the first hole is positioned at 22.5° (or 67.5°), ensuring valve actuators and manifold piping have unobstructed wrench clearance during torque assembly per our Master Bolt Torque Chart.

Table 2: Standard ASME B16.5 Class 150 Pipe Flange Bolt Circle Diameter (BCD) & Straddle Offsets. Formula: θ_straddle = 90° - (180° / N) — Verified October 2026.
Nominal Pipe Size Flange OD (in) Bolt Circle BCD (in) Bolt Circle BCD (mm) Number of Holes Straddle Start Angle Hole Drill Dia (in) Stud Bolt Diameter
1" NPS Class 1504.25"3.125"79.38 mm445.0°5/8" (0.625")1/2"-13 UNC
2" NPS Class 1506.00"4.750"120.65 mm445.0°3/4" (0.750")5/8"-11 UNC
3" NPS Class 1507.50"6.000"152.40 mm445.0°3/4" (0.750")5/8"-11 UNC
4" NPS Class 1509.00"7.500"190.50 mm867.5°3/4" (0.750")5/8"-11 UNC
6" NPS Class 15011.00"9.500"241.30 mm867.5°7/8" (0.875")3/4"-10 UNC
8" NPS Class 15013.50"11.750"298.45 mm867.5°7/8" (0.875")3/4"-10 UNC
10" NPS Class 15016.00"14.250"361.95 mm1275.0°1.000" (1")7/8"-9 UNC

When drilling bolt circles on a manual knee milling machine equipped with a linear glass-scale digital readout (DRO), machinists should always eliminate table leadscrew backlash by approaching every X and Y coordinate from the same positive direction, locking both the X and Y gib locks gently before plunging the quill, and spot-drilling all N holes first with a rigid 90° or 120° carbide spotting drill to prevent twist drill wander on rough or curved flange surfaces.

Frequently Asked Questions About Bolt Circle Coordinate Calculations

How do you measure a bolt circle diameter (BCD) on an odd-numbered 5-hole flange?

Because a 5-hole pattern has no two holes directly opposite one another across the center, measure the center-to-center chord distance (C) between two adjacent holes with a caliper and divide by sin(36°): BCD = C / 0.587785, or multiply the adjacent distance by 1.701302.

Does CNC G-code use clockwise or counter-clockwise angles for bolt circles?

Standard Cartesian trigonometry and CAD/CAM systems define positive angles counter-clockwise (CCW) starting from 0° at the 3 o'clock (+X) axis, whereas manual rotary tables often index clockwise; our calculator supports both conventions and links directly to our 4-Way Drill Bit Size Converter.