P2158

Vehicle Speed Sensor B Range/Performance

P2158 is a generic OBD-II powertrain diagnostic trouble code: Vehicle Speed Sensor B Range/Performance. It is logged by the engine control unit when the powertrain monitor detects that a specific fault threshold has been exceeded — typically resulting in the malfunction-indicator lamp (MIL / check-engine light) being illuminated.

Code
P2158
Group
Powertrain
System
Powertrain
Severity
Warning (MIL on)
Need P2158 disabled?
RaceTune permanently disables any OBD-II trouble code on supported ECUs — for motorsport, off-road, and export use.

What P2158 means

P2158 is set when the PCM determines that the signal from vehicle speed sensor B is outside the expected range or is performing implausibly relative to other vehicle speed or drivetrain inputs. In systems with multiple speed sensors, the PCM compares them and flags a sensor that deviates beyond acceptable limits as a range or performance fault.

Vehicle speed sensor B may refer to a secondary VSS, a transmission output shaft speed sensor, or a wheel speed sensor depending on the specific vehicle architecture and which sensor the manufacturer designates as B in their calibration. The code does not indicate a complete circuit failure (which would produce a different code) but rather a signal that is present but incorrect or implausible.

Diagnosis should begin with live data to observe the sensor B output under controlled driving conditions and compare it against other speed references available on the scan tool. Physical inspection of the sensor, its tone ring, and the associated wiring follows. Bearing wear and damaged reluctor rings are common causes of performance faults in magnetic and Hall-effect speed sensors.

Common causes

Most-frequently reported root causes when P2158 is logged.

  • 1
    Vehicle speed sensor B reluctor ring damaged, corroded, or missing teeth.
  • 2
    Sensor B air gap out of specification due to bearing wear or improper installation.
  • 3
    Sensor B signal intermittently dropping out due to wiring or connector fault.
  • 4
    Metallic debris on the sensor tip affecting signal quality.
  • 5
    Sensor B internally degraded, producing a weak or erratic signal.
  • 6
    Drivetrain mechanical issue causing the B sensor input shaft speed to deviate from expected values.
  • 7
    PCM calibration or software fault causing the plausibility check to trigger incorrectly.

Symptoms drivers notice

MIL illuminated, possibly with speedometer irregularities.
Transmission shift quality issues or incorrect shift points.
ABS, traction control, or stability control warnings may accompany the fault.
Cruise control may be disabled.
Speedometer reading may be erratic or drop to zero intermittently.

How to diagnose P2158

A typical diagnostic flow when this code is present.

  1. 1
    Retrieve all DTCs and note any companion speed sensor, ABS, or transmission codes.
  2. 2
    Monitor live data for sensor B output versus sensor A or wheel speed data during a test drive.
  3. 3
    Inspect the sensor B mounting, tone ring, and sensor face for damage or debris.
  4. 4
    Check sensor air gap and compare to specification.
  5. 5
    Inspect sensor B wiring harness and connector for damage, corrosion, or intermittent contact.
  6. 6
    Measure sensor B signal output and compare to expected waveform or frequency.
  7. 7
    Replace sensor or repair wiring as indicated and verify performance across the vehicle speed range.

Related powertrain codes

Frequently asked questions

What is the difference between a range fault and a circuit fault for a speed sensor?

A circuit fault (open or short) means no usable signal is reaching the PCM at all. A range or performance fault means a signal is present but its values are implausible or outside expected operating limits.

Can a damaged ABS reluctor ring cause P2158?

Yes. Missing or damaged teeth on the reluctor ring produce irregular pulses that the PCM interprets as a performance deviation, triggering a range or performance code rather than a circuit fault.

Could bearing wear set P2158?

Yes. Worn wheel bearings can change the sensor-to-tone-ring gap, weakening or distorting the signal enough to cause a performance fault, especially at low speeds.

Does P2158 affect the transmission?

Potentially. If sensor B is the transmission output or input speed sensor, incorrect speed data can cause inappropriate shift timing, harsh shifts, or torque converter lock-up issues.

Disabling P2158 in software

RaceTune can permanently disable P2158 — and any other OBD-II diagnostic trouble code — on every ECU family we support. The monitor is disabled inside the ECU itself, so the fault stops being logged: the warning light stays off and the engine never enters limp mode for this code. The change is tied to your exact software version.

Permanent
The monitor is disabled in the ECU itself — not just cleared. It cannot return.
Tailored to your file
Each patch is matched to your specific software version — never a one-size-fits-all file.
Reversible
The original file is always preserved. Reflash the stock to return the ECU to factory state.

Software modifications affect emissions compliance and are not road-legal in many jurisdictions. RaceTune service files are intended for motorsport, off-road, and export use.

Got P2158 in your scan?

Upload your ECU file — we'll identify the exact software version and confirm whether a disable is available for your car.

Upload your file