Not every check engine light requires a mechanic. A significant portion of the most common OBD2 codes involve parts that are accessible, inexpensive, and straightforward to replace with basic tools.
Here are the 10 codes most worth attempting yourself, along with what you will spend on parts versus what a shop typically charges.
Dealing with this code right now?
Get a data-driven diagnosis specific to your vehicle make, model, and year.
The 10 Best DIY OBD2 Fixes
P0442 / P0455 (EVAP Leak): Start with the gas cap. A replacement cap costs $10-25. Shops charge $100-200 just for the diagnostic. Tighten or replace the cap, clear the code, complete two drive cycles.
P0128 (Thermostat): A failing thermostat stuck open is a common, cheap fix. A replacement thermostat kit costs $15-50 depending on the vehicle. Shops charge $120-300 for this job.
P0171 / P0174 (System Lean): Before blaming sensors, try cleaning the MAF sensor with dedicated MAF cleaner ($10). Also check for vacuum leaks. Many lean codes resolve with a $10 can of cleaner.
P0340 (Camshaft Position Sensor): The sensor itself costs $25-80. On most vehicles it is accessible with basic hand tools. Shop labor runs $150-300.
P0301-P0306 (Single Cylinder Misfire): Spark plugs and ignition coils. A coil-on-plug coil costs $30-80 each. Swap the suspect coil first before replacing all of them.
P0420 (Catalyst): Before buying a converter, replace the downstream O2 sensor ($40-100). Many P0420 cases are a lazy sensor, not a dead converter.
P0562 (Low Voltage): Clean the battery terminals with a wire brush and baking soda solution. Check and replace the battery ($100-200 DIY vs. $200-400 at a shop).
P0505 / P0507 (Idle Control): Clean the throttle body and idle air control valve with throttle body cleaner. No parts required.
P0113 / P0117 (Temperature Sensor): Sensors cost $15-40. On most engines they are a single-bolt replacement taking under 15 minutes.
P0401 (EGR Flow): Try cleaning the EGR valve with carb cleaner before replacing it. An EGR valve costs $50-200 in parts. Shops charge $200-600.
Tools You Actually Need
You do not need a full shop to handle these repairs. The core toolkit:
OBD2 scanner ($30-150): Essential. Get one that shows live data, not just codes. Autel AL319 or LAUNCH CR529 cover 90% of home use cases.
Socket set (3/8" drive, metric and SAE): Covers almost every sensor and coil replacement.
Torque wrench: Required for spark plugs and O2 sensors. Over-tightening breaks things.
MAF cleaner, throttle body cleaner, penetrating oil: Cheap consumables that solve a surprising number of problems.
That is realistically $150-200 in tools that pay back on the first or second repair.
Frequently Asked Questions
Is it safe to clear codes after a DIY repair?
Yes. Clear the code, complete the appropriate drive cycle, and verify the monitor completes without the code returning.
What if I replace a part and the code comes back?
Read the freeze frame data from the original code event. It shows the exact operating conditions when the fault was detected. That data points you to the root cause rather than the symptom.
Start your GearMedic data-driven diagnosis here
Enter your code, make, model, and year. GearMedic ranks the most likely causes based on historical fault patterns for your specific vehicle.
Diagnose Now