OBD-II Generic Error Code P2158: How to Fix It

Medium 1-3 hours Medium Severity Verified June 2026
Error Code
P2158
Brand
OBD-II Generic
Product Type
automotive
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
1-3 hours
The OBD-II P2158 error code indicates a problem with Vehicle Speed Sensor B (VSS B), which monitors the rotational speed of a wheel or drivetrain component and sends that data to the engine control module (ECM). When this sensor fails, sends out-of-range signals, or loses its circuit connection, the ECM logs P2158 and may trigger the check engine light. Left unaddressed, this fault can affect transmission shift points, traction control, ABS, and cruise control functionality.
Ad

Tools You'll Need

How to Fix Error Code P2158

  1. Read and Record the Fault Code

    Park the vehicle on a flat surface, set the parking brake, and turn off the ignition before connecting the scanner. Never diagnose while driving.
  2. Inspect the Vehicle Speed Sensor B Wiring and Connector

    Allow the vehicle to cool completely before working near the exhaust or drivetrain components. Wear safety glasses and gloves.
  3. Test the Sensor Circuit with a Multimeter

    Do not probe live circuits carelessly. Use insulated probes and back-probe connectors rather than piercing wires.
  4. Inspect the Reluctor Ring or Tone Wheel

    Always use rated jack stands when working under a raised vehicle. Never crawl under a vehicle supported only by a floor jack.
  5. Replace the Vehicle Speed Sensor B if Faulty

    Disconnect the negative battery terminal before removing any sensor to protect the ECM from voltage spikes.
  6. Check for Related ABS or TCM Faults

  7. Perform a Final Test Drive and Recheck

    Obey all traffic laws during the test drive. Do not use a handheld scanner while driving alone.

Parts You May Need

Vehicle Speed Sensor B
Check Price on Amazon
Speed Sensor O-ring or Seal
Check Price on Amazon
Reluctor Ring (Tone Wheel)
Check Price on Amazon
Wiring Harness Repair Connector
Check Price on Amazon
Vehicle Speed Sensor B
Check Price on Amazon
Speed Sensor O-ring or Seal
Check Price on Amazon
Reluctor Ring (Tone Wheel)
Check Price on Amazon
Wiring Harness Repair Connector
Check Price on Amazon
Vehicle Speed Sensor B
Check Price on Amazon
Speed Sensor O-ring or Seal
Check Price on Amazon
Reluctor Ring (Tone Wheel)
Check Price on Amazon
Wiring Harness Repair Connector
Check Price on Amazon
Vehicle Speed Sensor B
Check Price on Amazon
Speed Sensor O-ring or Seal
Check Price on Amazon
Reluctor Ring (Tone Wheel)
Check Price on Amazon
Wiring Harness Repair Connector
Check Price on Amazon
Ad

When to Call a Professional

Call a professional mechanic if the wiring harness shows extensive damage requiring splicing or rerouting, if the reluctor ring is integral to the axle shaft or differential and requires special tools to replace, if the code returns immediately after sensor replacement (suggesting an ECM or TCM fault), or if you are not comfortable working under a raised vehicle. ABS module reprogramming or ECM calibration after a sensor replacement may also require dealer-level diagnostic equipment. If multiple speed-related codes are present across different modules, a shop with a full scan tool suite can diagnose the root cause faster and more safely.

Frequently Asked Questions

Is it safe to drive with a P2158 code?
Driving short distances is generally possible, but it is not recommended for extended use. A faulty Vehicle Speed Sensor B can cause erratic transmission shifting, disable cruise control, and in some vehicles trigger ABS or traction control faults. In severe cases it can cause the transmission to enter a failsafe mode, limiting performance. Have it diagnosed and repaired as soon as possible to avoid further drivetrain damage.
What is the difference between Vehicle Speed Sensor A and Vehicle Speed Sensor B?
Most modern vehicles use two or more speed sensors. Sensor A (covered by codes like P2156-P2157) typically monitors one location — often the transmission input or output shaft — while Sensor B monitors a different location, such as the other side of a differential or a separate axle. The P2158 code specifically targets the Sensor B circuit. Your vehicle's service manual will clarify exactly where each sensor is mounted.
Can a bad wheel speed sensor cause the P2158 code?
Yes, on some vehicles the ABS wheel speed sensors double as vehicle speed sensors and feed data to the ECM. If the vehicle speed input for Sensor B originates from a wheel speed sensor, a faulty wheel bearing (which can damage the reluctor ring), a dirty sensor face, or a broken sensor can all set P2158. Always inspect the reluctor ring and sensor mounting position carefully.
How much does it cost to fix a P2158 code at a shop?
Repair costs vary by vehicle and location. A replacement vehicle speed sensor typically costs between $20 and $100 for the part. Labor to replace it ranges from $50 to $200 depending on accessibility. If the reluctor ring or tone wheel must also be replaced, costs can increase to $200–$600 or more if it is integrated into a larger assembly like an axle shaft. Wiring harness repair adds additional labor cost.
Will P2158 cause my vehicle to fail an emissions test?
In most regions, an active check engine light will automatically result in a failed emissions or smog inspection, regardless of the code type. While P2158 is not a direct emissions-related fault, the illuminated malfunction indicator lamp (MIL) it triggers will cause a failure. Additionally, if the fault has reset the OBD2 readiness monitors, you may need to complete a drive cycle before the vehicle is ready for testing.