Create your free account and get 10 bonus questions when you confirm your email. No card needed. Create free account

Try it free

P0221: pedal/throttle sensor B

Throttle/Pedal Position Sensor/Switch 'B' Circuit Range/Performance Problem

Severity: high

Updated: 29 Nov 2026 · Generic OBD-II code (SAE J2012 / ISO 15031-6). Written with AI and reviewed; translated automatically from the Spanish original.

What it means

The code P0221 is generic according to SAE J2012 / ISO 15031-6. It indicates that the ECU (ECM/PCM) has detected a range or performance problem in the circuit of the 'B' position sensor of the accelerator pedal or throttle, depending on the vehicle design. The ECU compares the signals of sensors A and B, and if the difference between them or the signal from B is outside the expected range for a certain time, it records the fault. It does not by itself indicate that the sensor is broken: it may be contamination, a loose connector or a calibration problem. On some vehicles the system may enter a safety mode and limit power.

Can I keep driving?

Only as far as you need to, and gently.

This fault can cause serious damage or affect safety. Avoid motorways, heavy loads and high revs, and have it diagnosed as soon as possible. If the engine shakes, loses power or a red light comes on, stop where it is safe.

If in doubt, put safety first: a red or flashing warning light, smoke, a burning smell or any change in the brakes or steering are reasons to stop.

Got P0221? Ask about your car

Tell us your car and what you notice: we answer right here, no account needed.

How the ECU detects it

The ECU compares the signals from the pedal or throttle position sensors with each other and with the expected electrical ranges. The fault is recorded when the difference or the signal stays out of range for several driving cycles. It may appear intermittently if the problem is an intermittent contact.

Symptoms

  • Check engine warning light on, sometimes with a reduced power indicator.
  • Irregular throttle response or jerking when pressing the pedal.
  • Unstable idle or engine stalling when releasing the accelerator.
  • Power limitation or emergency mode ('limp mode') on some vehicles.
  • Difficulty maintaining a constant speed, depending on the system design.

Common causes

  • Pedal or throttle position sensor with wear, contamination or out-of-date calibration.
  • Sensor connector or wiring with corrosion, damage, intermittent contacts or poor earth.
  • Unstable 5 V reference supply to the sensor.
  • Throttle body with carbon build-up preventing free and smooth movement, depending on the body type.
  • Calibration problems after replacing the pedal, throttle body or ECU, depending on the vehicle.

What to check

  • Read the code with an OBD-II reader and check whether other pedal or throttle codes appear (for example P0120-P0123, P0220-P0229 depending on the manufacturer).
  • With the live data reader, observe the pedal and throttle position signals with the engine off and running, checking that they vary consistently.
  • Visually inspect the sensor connector and wiring, looking for corrosion, pinched cables or loose terminals.
  • Measure the sensor's reference voltage and earth according to the manufacturer's wiring diagram.
  • Consult the pedal or throttle relearn or adaptation procedure if the manufacturer requires it after a replacement.
  • If the sensor and wiring are correct, consider cleaning or replacing the throttle body or pedal, depending on the diagnosis.

Common diagnostic mistakes

  • Replacing the pedal or throttle without first checking the wiring and connector.
  • Confusing P0221 with turbo boost faults or turbo pressure sensor faults.
  • Clearing the sensor only by its resistance, without verifying the signal with the engine running.
  • Forgetting the relearn procedure after a replacement, which is required on some vehicles.

Typical repairs

From the simplest and cheapest to the most expensive. Which one applies depends on the diagnosis.

  • Clean or replace the throttle body, depending on its condition and the vehicle design.
  • Repair or replace the sensor connector and damaged wiring.
  • Replace the pedal or throttle position sensor when it is faulty.
  • Carry out the relearn or calibration specified by the manufacturer.

Frequently asked questions

Can I keep driving with code P0221 active?

It depends on the symptoms. If the car responds normally and there is no jerking or power limitation, you can use it with caution and have it checked soon. If the accelerator responds poorly, the engine stalls or it goes into emergency mode, it is best not to drive until it has been diagnosed, because an incorrect throttle response can cause unexpected acceleration or loss of power.

Can I just clear it? Clearing the code does not fix the fault: if the cause is still there, it comes back, and with the engine warning light on the car will fail its roadworthiness test (MOT in the UK).

General information about a generic code. The exact causes depend on the make and engine: confirm them with a diagnosis before replacing parts.

Related codes

  • P0234 Excessive boost: indicates that pressure exceeds the safety limit, whereas P0221 signals a position or correlation problem with the valve.
  • P0299 Insufficient boost pressure: pressure is below what is expected, whereas P0221 focuses on the sensor or valve control.
  • P0236 Range or performance problem with the turbo pressure sensor (boost MAP), not with valve position.
  • P0237 Low circuit on the boost pressure sensor: an electrical fault in the pressure sensor, not in the wastegate valve.

More codes: fuel and air metering

All OBD codes in English