Electronic throttles use more than one position sensor so the engine computer can cross-check them. A P0221 code means the signal from throttle or pedal position sensor B does not make sense compared with what the computer expects.
This guide explains how the sensors are cross-checked, what makes sensor B read wrong and how to find the cause.
P0221 Code Breakdown
Every OBD-II code follows the same five-character pattern set by the SAE J2012 standard. Each character narrows down which system has the fault. This table shows what each part of the code tells you.
| Character | Meaning | What It Tells You |
|---|---|---|
| P | Powertrain | The fault is in the engine or transmission systems. |
| 0 | Generic (SAE) code | The definition is the same on every OBD-II vehicle. |
| 2 | Fuel and air metering | The fault involves fuel and air metering, such as injectors, the fuel pump, throttle sensors or boost control. |
| 21 | Specific fault | Throttle/Pedal Position Sensor/Switch B Circuit Range/Performance Problem |
What the P0221 Code Means
The SAE J2012 standard defines the P0221 code as Throttle/Pedal Position Sensor/Switch B Circuit Range/Performance Problem. On most vehicles with electronic throttle control, sensor B is the second throttle position sensor built into the throttle body. The throttle body has two sensors that both read the throttle plate angle, so the PCM can compare them.
Most of these sensors get a 5-volt reference and a ground from the powertrain control module (PCM) and send back a signal between about 0.5 and 4.5 volts. On many designs, one sensor’s voltage rises as the throttle opens while the other falls, or the two rise at different rates.
Because the throttle is drive-by-wire, the PCM cannot let a bad signal open the throttle by mistake. When a sensor fails, it usually limits throttle opening and puts the car into reduced power or limp mode.
Range/performance means the circuit is electrically intact, but the throttle position sensor B reading does not make sense. It may be stuck, change too slowly, drift or disagree with other inputs the PCM uses to check it.
Symptoms of a Sensor B Fault
Because the throttle is electronic, symptoms are often obvious. Common signs of a P0221 code include:
- Check engine light and often a wrench or traction light
- Reduced power or limp mode
- Little or no response to the gas pedal
- High or unstable idle
- Stalling or hesitation
- Harsh or delayed shifting on some automatics
Many cars recover after the engine is restarted, then fall back into reduced power when the fault returns. That pattern points to a wiring or connector problem rather than a fully dead sensor.
Most Common Causes of the P0221 Code
Range codes often come from the sensor or the system it measures, not the wiring:
- Worn sensor track. The sensor wears where the throttle sits most, causing dead spots.
- Dirty or sticking throttle body. Carbon buildup can stop the plate from moving as commanded.
- Corroded connector. Resistance shifts the signal so the sensors no longer agree.
- Failed throttle motor or gears. The plate does not reach the commanded position.
- Water in the connector. Moisture changes the signal voltage.
- Wrong replacement part. A sensor with the wrong output curve will not match the other sensor.
Tools You Will Need
You can do most of this testing at home with basic tools:
- OBD-II scan tool that shows both throttle sensors
- Digital multimeter with back-probe pins
- Wiring diagram for your vehicle
- Throttle body cleaner
- Scan tool or procedure for throttle relearn
How to Diagnose the P0221 Code
Work from the scan tool to the connector, and check for related throttle codes before you replace anything.
Check Live Data
With the key on and engine off, look at both throttle position sensor values and voltages. Press the pedal slowly through its full travel. Note the closed and wide-open readings for sensor B. A reading stuck near 0 or 5 volts confirms a circuit fault.
Compare Both Sensor Signals
Watch both throttle sensors in live data with the key on and engine off. Press the pedal slowly from closed to fully open. Both signals should change smoothly with no jumps, and their relationship should match your service manual.
Clean and Inspect the Throttle Body
With the key off and battery disconnected, look inside the throttle body. Heavy carbon can make the plate stick. Clean it with throttle body cleaner, but do not force the plate open by hand on drive-by-wire units.
Check for Related Codes
Codes such as P2135 (sensor correlation) or P2101 (throttle motor) often set alongside this one. Fixing a shared reference or ground can clear several throttle codes at once.
Repairs That Fix the P0221 Code
Match the repair to what your tests found. Then clear the code and drive under the same conditions that set it.
- Clean or replace the connector if pins are corroded or loose. Add dielectric grease to the seal.
- Repair damaged wiring between the throttle body and the PCM.
- Clean a dirty throttle body if carbon is stopping the plate from moving freely.
- Replace the throttle body or sensor if sensor {L} fails tests. On most drive-by-wire cars, the sensors are part of the throttle body.
- Run a throttle relearn after cleaning or replacing the throttle body.
Many vehicles need a throttle relearn after a battery disconnect or throttle body replacement. Without it, the idle may be high or unstable. Follow the service manual procedure, which may only need a key-on wait or may need a scan tool.
Common Mistakes to Avoid
These mistakes waste money or leave the real fault in place:
- Assuming a range code always means a bad sensor
- Skipping the mechanical checks that can make a good sensor look wrong
- Skipping the throttle relearn after replacement
- Buying a cheap throttle body with sensors that do not match the factory output
Typical Repair Costs
The cost to fix a P0221 code depends on the cause. This table shows typical ranges for parts and labor.
| Repair | DIY Cost | Typical Shop Cost |
|---|---|---|
| Connector cleaning or pigtail | $10 to $40 | $75 to $200 |
| Wiring repair | $10 to $30 | $100 to $300 |
| Throttle body cleaning | $10 | $75 to $150 |
| Throttle body with sensors | $100 to $400 | $300 to $700 |
| Accelerator pedal assembly | $60 to $250 | $200 to $450 |
Most of the cost comes from the throttle body itself. Testing the connector and wiring first can save the price of a part you may not need, since many of these faults are corroded pins.
Is It Safe to Drive with a P0221 Code?
It is risky. Many cars drop into reduced power with this code, which makes merging, passing and climbing hills dangerous.
Drive only as far as needed to reach a repair shop, and avoid highways if the car will not accelerate normally. If the throttle does not respond at all, have it towed.
Related Codes
These codes often show up with this one or point to the same system:
| Code | Meaning |
|---|---|
| P0220 | Throttle/Pedal Position Sensor/Switch B Circuit Malfunction |
| P0222 | Throttle/Pedal Position Sensor/Switch B Circuit Low Input |
| P0223 | Throttle/Pedal Position Sensor/Switch B Circuit High Input |
| P0224 | Throttle/Pedal Position Sensor/Switch B Circuit Intermittent |
| P2135 | Throttle/Pedal Position Sensor/Switch A/B Voltage Correlation |
| P0120 | Throttle/Pedal Position Sensor/Switch A Circuit Malfunction |
Fixing Throttle Position Sensor B
A P0221 code means sensor B reads something the PCM does not believe. Worn sensors, dirty throttle bodies and corroded connectors cause most cases.
- Compare both sensor signals as you press the pedal.
- Clean a dirty throttle body.
- Check the connector for corrosion.
- Replace the throttle body if the sensor has dead spots.
Frequently Asked Questions
Can a Dirty Throttle Body Cause the P0221 Code?
Yes. Carbon buildup can stop the throttle plate from reaching the position the PCM commands. The sensors then report a position that does not match, and a range code can set. Cleaning the throttle body and running a relearn often fixes it.
Can I Replace Just the Sensor?
On most drive-by-wire vehicles, the throttle position sensors are built into the throttle body and cannot be replaced separately. Some older vehicles and some pedal assemblies have separate sensors. Check a parts catalog for your vehicle.
Do I Need a Throttle Relearn?
Often, yes. After a throttle body replacement, cleaning or battery disconnect, many vehicles need to relearn the closed throttle position. Some do it on their own after a key-on wait, while others need a scan tool.
What Does Reduced Power Mode Feel Like?
The engine starts and idles, but the throttle opens only a little no matter how far you press the pedal. The car may struggle to reach highway speed, and a warning such as a wrench light or reduced engine power message often appears. Restarting may clear it for a while.
Can Water Get into the Throttle Body Connector?
Yes. Engine washing, heavy rain and a worn connector seal can let water in. Water causes signal errors that come and go. Dry the connector, clean the pins and replace the seal or pigtail if it is damaged.