Print shop one-pagerTake this page to the shop — causes, fair prices, and sharp questions on one sheet.
Diagnose soonDrivable; stalling on deceleration is the main risk.
Your throttle has a small switch that says 'fully closed,' and its signal is wrong. That confuses idle control and can cause stalling. Usually the switch needs adjustment or replacement, or its wiring is damaged.
Key facts
P0510 means closed Throttle Position Switch. Your throttle has a small switch that says 'fully closed,' and its signal is wrong. That confuses idle control and can cause stalling. Usually the switch needs adjustment or replacement, or its wiring is damaged. WrenchFair's published fair-price range for this repair is $20–$120 parts and $75–$200 labor at independent shops.
WrenchFair rates P0510 a 2-of-5 DIY difficulty (“Adjustment and cleaning; the switch is on the throttle body.”) with a “Diagnose soon” driveability rating: Drivable; stalling on deceleration is the main risk. These are this guide’s own published ratings.
For labor context, WrenchFair's methodology page cites two published numbers: about half of US independent shops charge $120–$159/hr (PartsTech survey of 752 shops, fall 2024), and the national average posted mechanical rate was $163/hr in June 2026 (NABR LaborRateHero). Multiply either band by a quote's labor hours to judge whether its labor line is in range.
Symptoms
rough or high idle
stalling on deceleration
check engine light on
Likely causes
misadjusted closed-throttle switch
failed throttle switch
wiring fault in the switch circuit
carbon preventing the throttle from fully closing
Too many suspects? Answer 4–6 quick questions and this page's published cause list re-orders itself for your situation — plus the cheapest test to run next. Start the elimination wizard →
Before you buy the part — 4 checks
Work these checks before spending money — each one rules a cause in or out, cheapest first.
Scan for all codes and record freeze-frame data, then clear the code and test-drive to see if it returns.
Clean the throttle body - carbon can hold it off the closed switch. Tests: misadjusted closed-throttle switch
Check switch adjustment and continuity at closed throttle. Tests: misadjusted closed-throttle switch
Inspect the wiring.
No scan tool yet? The Veepeak OBDCheck (~$32) reads and clears codes from your phone in about two minutes.
Typical price range
Parts$20 – $120
Labor$75 – $200
Throttle switch adjustment or replacement. National-average estimate for the most common repair for this code. Actual quotes vary by vehicle, region, and shop - get a local written estimate.
Dealer vs independent shop: these ranges reflect typical independent-shop prices. A dealer will usually quote higher — higher labor rates plus OEM-only parts — so a dealer quote at the top of (or a bit above) this range isn't automatically a rip-off. For a big dealer number, get a second quote from an independent shop before authorizing the work.
What will this cost to fix?A code doesn’t name the repair — run the code-first estimator to see the most likely fixes for P0510 ranked, each with a price range. They handed you a printout at the parts store? Decode it before you buy.
DIY difficulty
2 of 5 — Adjustment and cleaning; the switch is on the throttle body.
Who's behind this guide?WrenchFair is built by a fellow DIYer, not a repair shop. Code meanings follow the SAE J2012 standard; cause rankings come from real-world repair evidence (service bulletins, owner reports, NHTSA records); prices are typical US ranges, not quotes.Read the full methodology →