Free Bicycle Spoke Length Calculator for Custom Wheel Building

Calculate accurate bicycle spoke lengths for custom wheel builds. Input your rim ERD, hub dimensions, and lacing pattern for precise spoke measurements instantly.

Built by@Akhenaten

AI Generation Prompt

Bicycle Spoke Length Calculator

Technical Overview

A high-precision, client-side web utility designed for wheel builders to calculate the exact spoke length required for bicycle wheel builds. This tool is built using pure Vanilla JS and HTML5, ensuring lightning-fast performance without the need for server-side processing.

Core Features

  • Comprehensive Input Parameters: Fields for Effective Rim Diameter (ERD), Hub Flange Diameter (Left/Right), Center-to-Flange Distance (Left/Right), Spoke Count, and Lacing Pattern.
  • Real-Time Calculation: Instant updates as parameters are entered using industry-standard trigonometric formulas.
  • Visual Diagram Guidance: A clean, CSS-based illustration guide showing users exactly where to measure their hubs and rims.
  • Support for Varied Builds: Options to calculate for both front and rear wheels, supporting various cross-patterns (0x, 1x, 2x, 3x, 4x).
  • Zero-Dependency Architecture: No heavy frameworks; pure, efficient code that runs locally.

UI/UX Layout

  • Header: Minimalist header with the app name and a simple 'Reset' button.
  • Main Tool Area: A two-column grid layout on desktop (inputs on the left, visual aids/diagrams on the right). Single column for mobile users.
  • Input Cards: Modern white cards with subtle, high-quality box-shadows. Input fields feature active state highlighting.
  • Results Section: A prominent 'Call-to-Action' style results panel that highlights the calculated length for the Drive Side and Non-Drive Side in bold, readable typography.

Design System

  • Palette:
    • Background: #F9FAFB (Soft light grey)
    • Card Background: #FFFFFF (Clean white)
    • Primary Accent: #2563EB (Professional blue for actions)
    • Text: #111827 (Dark grey for readability)
    • Border/Input: #E5E7EB (Subtle grey)
  • Animations:
    • Smooth fade-in transitions for input validation errors.
    • Subtle scaling effects when hovering over buttons.
    • Fluid re-layout when switching from desktop to mobile views.

Implementation Directives

  • Single File: All CSS, HTML, and JS must be embedded within one file.
  • No Persistence: Do not use localStorage, sessionStorage, or cookies. Calculations must reset on refresh.
  • Sandboxed Compatibility: The app must not trigger alert(), confirm(), or prompt(). Use custom DOM-based modals for user warnings.
  • Responsiveness: Use CSS Grid and Flexbox for a fluid, mobile-first experience. Ensure input fields are large enough for touch targets.

Spread the word

2Total Views
gemini-3.0-flashAI Model

Files being used

index.html
9.9 KB
#bicycle spoke length calculator#custom wheel building tools#calculate spoke length#bicycle hub dimensions calculator#effective rim diameter calculator

Frequently Asked Questions

Everything you need to know about using this application.

Why is it important to use a spoke length calculator?

Using a precise spoke length calculator is critical for ensuring the structural integrity and safety of a custom-built bicycle wheel. If spokes are too short, the nipples cannot engage enough threads, leading to spoke breakage or nipple stripping. If they are too long, the spoke may protrude through the nipple head, potentially puncturing your rim tape and damaging the inner tube. Our tool uses proven trigonometric formulas to determine the exact length required based on your specific components. By entering accurate measurements for your hub and rim, you minimize the risk of assembly errors, ensuring a durable, reliable wheelset that performs consistently under riding loads.

What is Effective Rim Diameter (ERD) and how do I measure it?

Effective Rim Diameter (ERD) is the diameter of the rim measured between the two ends of the spokes where they sit in the nipples. This measurement is crucial because different rim profiles vary in wall thickness and nipple seat depth, meaning the physical diameter of the rim is not the same as the ERD. To measure ERD accurately, insert two spokes into opposite holes on the rim and attach nipples. Measure the distance between the ends of the spokes using a ruler, then add the length of the nipples themselves (or use an ERD measuring tool). Inputting the correct ERD into our calculator is the most important step for achieving accurate results.

How does the lacing pattern affect spoke length?

The lacing pattern, such as radial, 2-cross, or 3-cross, significantly changes the angle at which the spoke leaves the hub flange to reach the rim hole. As the number of crosses increases, the spoke length must also increase to bridge the longer distance created by the steeper angle of the spoke relative to the hub flange. Our calculator accounts for these geometric variations automatically. When you select a higher cross pattern, the underlying formula adjusts for the increased spoke length requirement, ensuring that your spokes will be the correct size for the specific tensioning requirements of your chosen lacing style.

Can I save my calculations for later use?

This application operates as a standalone, sandboxed utility within your browser. Due to privacy and security constraints in this environment, it does not utilize local storage, cookies, or any database to save your data between sessions. When you refresh the page, your input data will be cleared. We recommend that you copy your results, take a screenshot of your calculated dimensions, or print the page once you have finalized your wheel build specifications. This approach ensures your data remains private while allowing you to keep a record of your build parameters offline.

Related Applications