P0221 Code: Throttle Position Sensor B Range Meaning and Fixes
7 min read · by Nicole Bennett · Last updated: November 26, 2026
The p0221 code means the throttle or pedal position sensor B is out of its expected range. The engine computer compares the throttle angle it reads with the angle it expects at the current engine speed. The check engine light usually comes on with it.
Because the code is generic, the fault can sit in the sensor, its wiring, a connector or the throttle body. Compare sensor A with sensor B before you decide which part to replace.
What the p0221 code means on your dashboard
P0221 means the throttle or pedal position sensor B reading is outside the range the engine computer expects, so the throttle does not match the driver’s request.
According to KBB’s P0221 page, the computer reads the sensor voltage, which rises as the throttle opens. The code sets when the throttle angle does not match what the computer expects at a given engine speed.
The title of the code, Throttle/Pedal Position Sensor/Switch B Circuit Range/Performance, shows that it covers the B side of the sensor. A fault on sensor A is a different code, so the two sides are compared during diagnosis.
Symptoms you may notice with p0221
The most noticeable symptom is a throttle that does not respond the way you expect, often as a stumble when you accelerate or slow down.
KBB lists the symptoms below for this code. Some of them, such as black smoke on acceleration, can also come from other engine faults, so treat them as clues rather than proof. Codes in this range are close together, so if P0219 Code shows up as well, read that guide too.
- The check engine light is on
- Stumbling acceleration or deceleration
- Black smoke on acceleration
- Failed start or difficulty starting
- Failsafe mode that limits throttle opening, with reduced power and speed
- A higher idle when the car is stationary
Common causes of the p0221 code
The most direct cause is a faulty throttle position sensor, but the code can also come from the pedal sensor, the wiring or the throttle body.
The list below combines the causes named by KBB and TorqueMech. Each one leads to a different test, so the list is a guide to what to check rather than a diagnosis.

- A faulty throttle position sensor
- A faulty pedal position sensor on vehicles that use one
- A short in the wiring harness that affects the sensor
- Connector corrosion or loose connector pins
- A throttle body problem, such as a plate that binds
- Floor mats that obstruct the pedal sensor
Check the floor mats first, because they cost nothing to move and KBB lists them as a cause that can block the pedal sensor.
Is it safe to drive with a p0221 code?
KBB calls the p0221 code a moderately serious problem. The car can usually still be driven, but KBB recommends a prompt inspection by a qualified mechanic. If your scanner also lists P0222 Code Meaning, that guide covers it.
The reason for the hurry is that stalling or sudden power loss can cause unexpected stops in traffic. A car that stumbles while you pull into a junction or merge is not safe to drive that way for long. Choosing the right equipment matters here, so take a look at Best Bidirectional Scanners for European Cars.
If the car goes into limp mode, stalls, or fails to start, do not keep trying to drive it. Arrange a tow to a repair shop instead.
How to diagnose p0221 step by step
KBB notes that diagnosis varies by vehicle, and it recommends a certified mechanic unless you have the right tools and expertise. The TorqueMech P0221 page lists a diagnostic order that starts with a scan tool comparison of the two sensors.
- Connect a scan tool, record the p0221 code and any other stored throttle or pedal codes.
- Compare the sensor A and sensor B sweep as you slowly press the pedal, and look for a gap that is out of range.
- Remove the floor mats and check that nothing can press the pedal or block its travel.
- Inspect the connector pins and the harness routing for corrosion, a pinch or a short.
- Check the throttle plate for binding or sticking when you move the pedal by hand, with the engine off.
- If the sensor can be adjusted to factory settings, adjust it, then retest. If the tolerance cannot be met, replace the sensor.
- Clear the code, drive the car, and check for pending codes to confirm the repair.
Steps one to four can be done with a scan tool and basic hand tools. Steps five and six involve the throttle, so a shop with the right procedure for your vehicle is the safer choice.
Repair options and what they cost
The repair depends on what the sweep test and the wiring checks show. A cleaned connector or a moved floor mat may solve the fault, while a failed sensor or throttle body needs a part.
Neither source gives a repair cost. KBB only links to a service estimate page, and TorqueMech links to a repair cost guide without figures. This guide therefore does not list prices.

Ask the shop to show the sensor A and sensor B readings before and after any repair. Those two numbers show whether the fault has really been fixed, and they are useful evidence if the code returns. When P0218 Code appears in the same scan, check that guide before replacing parts.
Mistakes to avoid with the p0221 code
The most common mistake is replacing the throttle body or the pedal sensor without comparing the two sensor sides first.
- Replacing a part before comparing sensor A and sensor B
- Overlooking floor mats that can block the pedal
- Ignoring stumbling because the car still moves
- Clearing the code and assuming the throttle is fixed
A quick sweep comparison and a floor mat check are the first two steps. They cost almost nothing and rule out the simplest causes.
Frequently Asked Questions
Can I drive with a p0221 code?
KBB says the car can usually still be driven, but it calls the problem moderately serious and recommends a prompt inspection. Keep the trip short and gentle, and stop if the car stalls, loses power or goes into limp mode.
Does p0221 always mean a bad throttle body?
No. The code can come from the throttle position sensor, the pedal sensor, the wiring, a connector or a binding throttle plate. Compare the sensor sides and check the wiring before you replace the throttle body.
Can floor mats cause the p0221 code?
KBB lists floor mats that obstruct the pedal sensor as a possible cause. Remove the mats and check that nothing can press the pedal or block its travel, then clear the code and see whether it returns.
Will clearing the p0221 code fix the car?
Clearing the code only removes the stored record. If the sensor, wiring or throttle fault is still there, the code returns. Repair the confirmed fault first, then clear the code and check the sweep again.
Is the p0221 code the same on every vehicle?
The code name is generic, but the sensor layout, the use of a pedal sensor and the throttle design vary by make and model. KBB notes that diagnosis varies by vehicle, so use the service information for your car.
If the stumble returns after the basic checks, take the car to a qualified mechanic. Ask for the sensor A and sensor B comparison on a scan tool, and keep the printed readings so you can compare them after the repair.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0278 Duramax Code: Meaning, Causes and How to Fix It
LearnP2480 Code: Diagnose the Exhaust Temperature Sensor Circuit
LearnP0694 Code: Find Cooling Fan Circuit Problems Before Overheating
LearnP0A40 Code: Diagnose Hybrid Motor Position Sensor Problems
LearnP0305 Kia: Diagnose Cylinder 5 Misfires and Find the Right Fix
LearnP0011 Lexus: Diagnose VVT Problems and Avoid Unnecessary Repairs