Bicycle Spoke Length Calculator: How to Use It
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A bicycle spoke length calculator works out the exact spoke length you need to build a wheel, based on your rim’s effective diameter, hub flange dimensions, spoke count, and lacing pattern. You enter those measurements, and it returns the required spoke length in millimeters, which you then use to order or cut spokes. The calculation uses a standard geometric formula that accounts for the three-dimensional position of each spoke hole on the hub and rim.
Formula
The spoke length formula is derived from the law of cosines in three dimensions. For each side of the wheel (left and right), the spoke length L is:
L = √( R² + f² − 2·R·f·cos(θ) + d² ) − h/2
Where:
- R = effective rim radius (ERD/2), in mm
- f = hub flange radius (flange diameter/2) for that side, in mm
- θ = angle between the spoke hole on the flange and the rim hole, in radians. For a cross pattern, θ = 2π × cross count / spoke count
- d = distance from the hub center to the flange (flange offset) for that side, in mm
- h = hub flange hole diameter, in mm (subtracted to account for the nipple seat)
You compute this separately for the left and right sides because the flange offsets differ on most hubs. The calculator above averages the two flange diameters for simplicity, but for precise results, run the formula twice with each side’s actual values.
Worked Example
Using the default values: ERD = 600 mm, flange diameters = 40 mm both sides, flange offsets = 30 mm both sides, 32 spokes, 3-cross, hole diameter = 2.4 mm.
- Effective rim radius: 600/2 = 300 mm
- Flange radius: 40/2 = 20 mm
- Angle θ: 2π × 3 / 32 = 0.5890 radians
- Horizontal component: 20² + 20² − 2×20×20×cos(0.5890) = 400 + 400 − 800×0.8325 = 800 − 666 = 134
- Average horizontal term: 134/2 = 67
- Vertical term: 30² + 30² = 1800, divided by 2 = 900
- Sum: 300² + 67 + 900 = 90000 + 967 = 90967
- Square root: √90967 ≈ 301.6 mm
- Subtract hole radius: 301.6 − 1.2 = 300.4 mm
The calculator returns 300.4 mm, which rounds to 300 mm. In practice, you’d order 300 mm spokes for both sides because the flanges are centered.
How to Measure Your Parts
Getting accurate measurements is the hardest part. The calculator is only as good as the numbers you feed it.
- ERD: Measure the rim’s inner width and outer diameter, or use the manufacturer’s spec. A common method: place two old spokes in opposite holes, measure the distance between their ends, then add the nipple head height twice.
- Flange diameter: Measure from the center of one spoke hole to the center of the opposite hole on the same flange. This is the diameter, not the radius.
- Flange offset: Measure from the hub’s center (the midpoint between the locknuts) to the center of the flange. Do this for both sides; they often differ on rear hubs to accommodate a cassette.
- Spoke hole diameter: Usually 2.4 mm for standard spokes, but some hubs use 2.0 mm or 2.6 mm. Measure with calipers if unsure.
Use a digital caliper for all measurements. A 1 mm error in ERD changes the spoke length by 0.5 mm, which can mean the difference between a spoke that threads fully and one that bottoms out.
Choosing the Right Cross Pattern
The cross pattern (1-cross, 2-cross, 3-cross, 4-cross) determines the angle between spokes and affects the length. More crosses mean longer spokes and a stronger, more flexible wheel. Common choices:
- 1-cross: Light riders, low spoke counts (16-20), or small diameter rims like 20-inch BMX wheels.
- 2-cross: Road wheels with 24-28 spokes, or when the hub flange is small.
- 3-cross: The classic choice for 32-spoke wheels, offering a good balance of strength and ride quality.
- 4-cross: Tandem or heavy-duty touring wheels with 36-40 spokes, but only if the rim and hub allow it.
If you’re unsure, stick with 3-cross for 32 spokes. It’s the most common and works with nearly any rim and hub combination. The spoke count and cross pattern must match the rim’s drilling; you can’t lace a 32-hole rim in a 4-cross pattern if the rim holes are too close together.
Common Mistakes and How to Avoid Them
Even experienced wheel builders make these errors:
- Mixing up left and right flange offsets: On rear hubs, the drive-side flange is usually closer to the center. If you swap them, the spoke lengths will be wrong.
- Using the wrong ERD: Some manufacturers list the rim’s outer diameter, not the effective diameter. The effective diameter is where the spoke nipple seats, not the rim’s outer edge.
- Forgetting the spoke hole diameter: The formula subtracts half the hole diameter. If you ignore it, you’ll get spokes about 1.2 mm too long.
- Rounding too early: Always calculate to the nearest 0.1 mm, then round to the nearest whole mm. Spokes are sold in 1 mm or 2 mm increments, so a 0.5 mm error can force you to buy the wrong size.
- Assuming both sides are the same: On most front hubs, the flanges are centered, but rear hubs are not. Always measure both sides.
If your calculated length is between two standard sizes, go shorter. A slightly short spoke will still thread into the nipple, but a long one will poke through the rim tape and puncture the tube.
Limitations of the Formula
The standard formula assumes perfect geometry: round flanges, evenly spaced holes, and a perfectly circular rim. In reality, rims have slight ovality, and hub flanges may be slightly off-center. The formula also doesn’t account for the spoke’s own diameter or the nipple’s internal length, though these are negligible for most builds.
For unusual components—like offset rims, asymmetric hubs, or straight-pull spokes—the formula may not be accurate. Straight-pull spokes use a different measurement (the head is at the hub, not the rim), and some hubs have flanges that are not perpendicular to the axle. In those cases, consult the hub or rim manufacturer’s spoke length chart, or use a dedicated calculator that includes those factors.
Also note that the formula gives the theoretical length, not the exact length you need. Spokes stretch slightly under tension, and nipples have a range of adjustment. Most builders add 0 to 1 mm to account for the nipple’s internal thread depth. The calculator above does not add any extra; you can adjust manually if you prefer.
Frequently Asked Questions
What is the effective rim diameter (ERD)?
ERD is the diameter of the circle formed by the inside of the rim where the spoke nipples seat. It’s not the outer diameter of the rim. You can measure it by inserting two spokes into opposite holes, measuring the distance between their ends, and adding the height of the nipple head twice. Most rim manufacturers list ERD in their specifications.
Should I round spoke length up or down?
Round to the nearest whole millimeter. If you’re between sizes, go shorter. A spoke that is 1 mm too short will still thread fully into the nipple, but a spoke that is 1 mm too long may protrude through the rim and puncture the inner tube. If you’re using a rim with a thick rim strip, you might add 0.5 mm to be safe.
Can I use the same spoke length for both sides of a rear wheel?
Only if the hub is perfectly symmetrical, which is rare. Most rear hubs have a larger flange offset on the non-drive side to accommodate the cassette. The drive-side flange is closer to the center, so the drive-side spokes are usually shorter. Always calculate each side separately.
What’s the difference between 2-cross and 3-cross lacing?
Cross count refers to how many spokes each spoke crosses on its way from the hub to the rim. A 3-cross pattern has each spoke crossing three others. Higher cross counts produce longer spokes, a more tangential angle at the hub, and a wheel that’s more flexible and durable. Lower cross counts produce shorter, more radial spokes that are stiffer but less able to absorb shocks.
Does spoke length affect wheel strength?
Not directly. The strength comes from the bracing angle and the tension, not the length itself. However, a spoke that’s too short won’t thread deeply enough into the nipple, weakening the connection. A spoke that’s too long can bottom out in the nipple or protrude into the rim. Correct length is essential for a safe, strong wheel.
Why do some calculators ask for the hub flange hole diameter?
Because the spoke head sits in that hole, and the hole’s radius is part of the geometric distance from the hub center to the spoke’s elbow. The formula subtracts half the hole diameter to account for the fact that the spoke’s effective length starts at the inner edge of the hole, not the center. If you skip this, you’ll get spokes about 1.2 mm too long.
Related
Formula used
in efd | Effective Rim Diameter (ERD) | mm | 600 | 0 in fl | Left Flange Diameter | mm | 40 | 0 in fr | Right Flange Diameter | mm | 40 | 0 in wl | Left Flange to Center | mm | 30 | 0 in wr | Right Flange to Center | mm | 30 | 0 in n | Number of Spokes | - | 32 | 0 in c | Cross Pattern | - | 3 | 0 in h | Hub Flange Hole Diameter | mm | 2.4 | 0 out len | Spoke Length | mm | sqrt( (efd/2)^2 + ((fl/2)^2 + (fr/2)^2)/2 - ((fl/2)*(fr/2))*cos(2*pi*c/n) + (wl^2 + wr^2)/2 ) - h/2 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.