How the calculation works
For each side: angle = 720° × cross count / total spoke count. Geometric spoke length = √(R² + r² − 2Rr cos(angle) + d²) − h/2, where R = ERD/2, r = flange hole-circle diameter/2, d = axial distance from the flange centre to the rim spoke-hole plane, and h = flange hole diameter. Positive rightward rim offset adds to left d and subtracts from right d. ERD helper = 2 × equal measuring-spoke length + inside-bend gap. Hub helper = half the contact-face width − the respective flange inset.
A worked example
With 600 mm ERD, 44 mm flange hole-circle diameters, 35 mm left and 20 mm right centre-to-flange distances, 32 spokes, 3-cross on both sides and 2.6 mm flange holes, the geometric lengths are about 293.077 mm left and 291.672 mm right. The ERD helper example is 266 + 266 + 35.7 = 567.7 mm.
Before you use the result
This geometry is for evenly spaced, conventional two-flange J-bend wheels with equal spoke counts on both sides. Supported cross counts are 0–6 with a computed angle no greater than 90°. That mathematical limit does not establish that a hub permits a particular lacing pattern. Enter ERD at the intended spoke-tip position with the actual nipple and washer arrangement; do not use tire diameter, bead-seat diameter or add a second generic nipple allowance. Rim offset is a signed distance toward the right side of the wheel, independent of whether this is the drive or rotor side. The spoke-hole plane must lie between the flange planes. Results are unrounded geometric estimates, not a stock-length recommendation. Verify actual parts, thread engagement and final length with the component maker or wheelbuilder. Straight-pull, paired-hole, unequal-count and special proprietary systems, spoke stretch and tension are not modeled. Nipple length alone does not define a universal adjustment or acceptable tolerance.