Where Is the Speed Sensor Located on an Electric Bike?
You may be riding your e-bike and notice something odd on the display. The bike is moving, but the speed still shows 0 mph. In some cases, the number may jump around instead of showing a steady speed.
This is a common issue, and one of the first things to check is the speed sensor. This small part sends speed information to the display, so if it is loose, dirty, or out of position, the reading may be wrong.
The bike speed sensor is usually found in one of two places on an e-bike:
-
It is attached to the chainstay (that is, the frame tube which runs from the pedals to the rear wheel) via a small magnet fastened to a spoke on the rear wheel.
-
It is mounted as one complete unit directly onto the front or rear wheel hub and has no external magnet.
The specific position and kind of the sensor will vary according to the design of your e-bike, the motor it has and its age. You can ignore the technical sound of that. In this guide we will show you step by step how to locate your sensor, understand its function, carry out simple checks and repair the most common faults so that you can get back onto the road.

Why Your Sensor is Vital
- The sensor sends the raw data to your controller, which then computes and displays your present speed, the distance for the current trip, and the odometer reading on the screen.
- The regulation of motor assistance is its most important function. On almost all e-bikes, the controller employs speed information in order to give out smooth and suitable power; if it does not know how fast the rider is going, it is unable to offer the correct level of assistance and as a result either delivers power in a jerky way or provides no power at all.
- E-bikes are legally obliged to stop supplying motor assistance when they reach a certain speed (for example, 20 mph in the case of Class 1 and 2 or 28 mph for Class 3 in the United States); it is the speed sensor that informs the controller to cut off the power in order to ensure the bike remains legal.
To sum up, a defective bike speedometer sensor can not only cause your display to show the wrong information but also stop your pedal assist system from working properly, or possibly completely.
Common Sensor Locations
Here's the main part: locating the sensor. We'll examine the most typical arrangements, starting with the traditional two-piece setup and going on to the more modern built-in types. Get your bike and let's have a look.
The Chainstay System
This kind of arrangement is the most traditional and remains very common, particularly with e-bikes that have rear hub or mid-drive motors; it consists of two components, namely a sensor unit mounted on the frame and a magnet on the wheel.
Begin by looking at your back wheel.
1. Turn the wheel slowly and observe the spokes as they go by the frame.
2. Look for a small magnet, generally black or silver, which is clamped onto one of the spokes; it is usually in the form of a small cylinder or rectangle and can be unscrewed.
When you have located the magnet, check the section of the frame that is adjacent to it; there you will see the sensor body, which is a small plastic component with a wire coming from it, attached to the chainstay.
The system functions in such a way that the magnet passes the sensor once for each revolution of the wheel; the sensor picks up the magnetic field and sends a pulse to the controller.
The Wheel Hub System
It is a small pod, generally circular, which is fitted directly to the middle of either the front or rear wheel hub and is usually secured by a solid rubber strap. Since it employs an internal accelerometer to detect the rotation of the wheel, there is no need for a magnet. As a result, installing it or removing it from one bicycle to another is very simple. Whenever you can't see a magnet on your spokes, look at the centre of your wheel hubs.
Integrated & Internal Sensors
In certain high-end e-bikes, especially those equipped with top-quality mid-drive systems manufactured by companies such as Bosch, Shimano, or Brose, the bike speedometer sensor is more discreet. It can be a very small sensor that is neatly positioned near the rear wheel's dropout (the point where the wheel fits onto the frame), together with a tiny magnet attached to the brake rotor rather than to the spoke. In a number of instances, the sensor is even built inside the motor casing so that it cannot be seen from the outside. Although these systems are the most reliable, they are not serviceable for the user.
Quick Reference Table
For easier reference, here is a simple method for working out what type of sensor your e-bike has by looking at the type of its motor.
| E-bike Motor Type | Most Common Sensor Type | Typical Location |
|---|---|---|
| Rear Hub-Drive | Magnet-Based or Hub-Mounted | Chainstay/Spoke or Rear Hub |
| Mid-Drive | Magnet-Based or Integrated | Chainstay/Spoke or near Rear Dropout |
| Front Hub-Drive | Hub-Mounted or Magnet-Based | Front Hub or Front Fork/Spoke |
Quick Sensor Checks
The good news is that the majority of speedometer problems are due to simple causes which you can repair in a few minutes without needing any special tools. Before you panic, go through these quick checks.
For Magnet-Based Sensors
- To check the alignment, turn the wheel slowly and observe the magnet as it passes by the sensor; they should pass each other directly. It is possible for the sensor to become rotated or for the magnet to slide down the spoke. Loosen them, realign them so that the magnet passes over the mark indicated on the sensor body, and then retighten.
- Set the Gap: This is the most usual solution. The distance between the sensor and the magnet must be very small; it's common for the wheel to be slightly knocked during transportation as a result of this problem. As a general guideline, the gap should be roughly the thickness of a credit card, that is, about 2 to 5 mm. In most cases, all you need to do is push the sensor or the magnet holder with your thumb to close the gap and remedy the issue immediately.
- Remove the components: Mud, dirt from the road, and metallic debris can accumulate on both the sensor and the magnet and thus interfere with the magnetic signal. Sometimes all that is necessary is a quick cleaning with a clean cloth.
- Check the security by ensuring that both the sensor on the frame and the magnet on the spoke are securely fastened; if either one is wobbling, this could result in an inconsistent signal.
For Hub-Mounted Sensors
- Battery check: These devices are powered by a small coin cell battery and if your speedometer is not working then the battery should be the first thing that you check. There is generally a small slot which can be opened by turning it with a coin. They usually use a CR2032 battery, which is easy to obtain.
- Repair the sensor: In some cases the sensor will lose contact with the display. To reactivate it, spin the wheel for a few seconds (there may be a small LED on the sensor which flashes). Next, access the settings menu on your e-bike display and look for a setting to 'pair' or 'scan' for sensors. This action will reestablish the connection.
- Check the security by making sure that the rubber strap which holds the sensor to the hub is tight and that the sensor has not rotated or moved out of position; it should fit snugly against the hub body.
Checking Wires and Connectors
If the physical checks mentioned above have not dealt with the problem, the next thing to do is to check the wiring. Start at the bike speedometer sensor and follow the wire back towards the main wiring harness. The wires on a Folding Electric Bikes are generally routed along or inside the frame. Look for a small, round, waterproof connector, which is usually located a few inches from the sensor. Such connectors typically have small arrows on them which need to be aligned.
First, carefully unplug the connector and check the pins to ensure that they are not bent or corroded. You can use a quick spray of electronics contact cleaner to deal with the situation. Then reinsert the connector, making certain that the arrows are aligned and that the connection is pushed together securely. Opportunely, take the time to examine the whole length of the wire for any signs of damage, for example if it has been pinched, frayed, or cut.

DIY vs. Professional Help
It's important to know your own limitations. Although a number of sensor problems can be easily sorted out, others will need the tools and knowledge of a professional mechanic. The following explains when you should deal with the problem yourself and when you should go to the workshop.
You Can Likely Fix This
- The symptom is that the speedometer works intermittently, shows 0 mph, or jumps around suddenly.
- The diagnosis is that the sensor or the magnet is either visibly misaligned, loose, or covered with dirt and the battery in the sensor mounted on the hub is older than a year; these problems can be easily solved by following the steps mentioned above.
It's Time for the Bike Shop
- Symptom: The screen is showing a particular error code (see the user guide for your e-bike), the pedal assist is entirely non-functional, or the speed is always incorrect (for example, it always displays exactly half of your real speed).
- The diagnosis is that you have already carried out all the alignment, battery, and cleaning checks with no success; you can see that the wire is physically cut or worn. The sensor is an integrated one and is situated close to or within the motor. In such situations, a technician will use the diagnostic tools to test the sensor's signal and will replace the component if needed.
Your Sensor: An Unsung Hero
Although the bike speedometer sensor might not be the most impressive component of your e-bike, it is one of the most important ones; it is the little-known hero that allows the motor to work in sync with your riding, giving you smooth power and accurate information. Once you know where to locate it—whether on the chainstay or on the wheel hub—and have carried out a few simple inspections, you'll be in a better position to deal with one of the most frequent e-bike problems. Monitoring the alignment, checking the battery, and making sure the parts are clean will stop the majority of issues before they occur.
Once you understand how this small component works, you will be in a better position as an owner. What was originally a frustrating problem can then be solved in just five minutes, which will enable you and your smart electric bike to continue riding happily for miles ahead.
Frequently Asked Questions
How do I know if my bike speedometer sensor is broken?
Typical signs are the screen showing 0 mph when you're riding, the speed readings jumping about randomly, or the pedal assist not functioning correctly. In some cases the display may show an error code concerning the speed sensor.
May I ride my e-bike when the speed sensor is broken?
You remain able to use your e-bike without the motor assistance, although the motor help is probably not going to function. This is because the controller requires speed information in order to give appropriate assistance, and a faulty sensor generally results in no electric power.
What is the cost of replacing a bike speed sensor?
Standard magnet sensors generally cost between $15 and $30, whereas those built into the hub range from $25 to $50; if professional installation is required, an extra $30 to $60 must be added for labour.
Why does my speed sensor keep going out of place?
It typically occurs as a result of the usual vibrations experienced when riding, during transportation, or from small collisions. Make sure that both the sensor and the magnet are securely fastened and perhaps apply thread locker to the mounting screws.
Can I switch from a magnet sensor to a hub-mounted sensor?
In most cases, yes, but you'll need to check if your e-bike's controller is compatible with the new sensor type. Hub-mounted sensors are generally more reliable and easier to maintain than magnet-based systems.
Leave a comment