Here's what you should do:
1. Get the Diagnostic Trouble Code (DTC): This is crucial. You need to know *why* the check engine light is on. You can do this in a few ways:
* OBD-II Scanner: The cheapest and easiest option. Buy a relatively inexpensive OBD-II scanner from an auto parts store. Plug it into the OBD-II port (usually under the dashboard) and it will read the trouble codes. These codes will help you (or a mechanic) identify the problem.
* Auto Parts Store: Many auto parts stores will read the codes for free. Just bring your car in and ask.
* Mechanic: A mechanic will have the tools and expertise to diagnose the problem properly.
2. Fix the Problem: Once you know the DTC, you can research the problem online or consult a repair manual. Some simple issues can be fixed yourself (like replacing a loose gas cap), but others require professional help. Do not simply reset the light without fixing the problem; it will likely come back on.
3. Clear the Code (After Repair): *Only after fixing the problem* should you consider clearing the code. Many OBD-II scanners have a "clear codes" function. After clearing the code, drive the car for a few days to ensure the problem doesn't reappear. If it does, the problem wasn't properly fixed.
Methods that might work (but are not recommended):
Some people suggest disconnecting the battery for a period of time (e.g., 30 minutes) to reset the computer. This *might* clear the light temporarily, but it won't fix the underlying issue. It also could disrupt other car settings, such as radio presets. This is a temporary solution and should not be considered a proper repair.
In summary: Don't just try to reset the light. Find out what's wrong, fix it, then clear the code. This is the only reliable way to deal with a check engine light. Ignoring it could lead to more serious and costly repairs down the line.