What an engine diagnostic test does
An engine diagnostic test reads the trouble codes stored in your vehicle's onboard computer and displays what system or component triggered the warning light. The test does not repair anything — it tells you what the computer detected as a problem. A mechanic connects a diagnostic scanner to the port under your steering wheel (usually a 16-pin connector), and the scanner communicates with your engine control unit to pull stored and pending codes.
The codes themselves are standardized across manufacturers. A P0300 code, for example, means "random cylinder misfire detected," while a P0171 means "system too lean." The diagnostic tool shows the code number, the description, and sometimes freeze frame data — a snapshot of engine conditions at the moment the problem occurred. This information narrows down where a mechanic should look, but the code alone does not always point to a single failed part.
Key Takeaways
- A diagnostic scanner reads trouble codes from your engine computer and costs between $50 and $150 at most shops, though some waive the fee if you have the repair done there.
- The same trouble code can point to different root causes depending on your vehicle's make, model, and year, so a code alone does not tell you what part failed.
- Mechanics often need to perform additional tests — fuel pressure checks, compression tests, or sensor readings — after the initial scan to confirm what is actually broken.
- A check engine light can stay on even after a repair if the code was not fully cleared from the computer, or if a related problem still exists.
What happens during a typical diagnostic visit
When you bring your vehicle in with a check engine light, the first step is always the scanner test. The mechanic plugs in the device, retrieves any stored codes, and reviews the data. This takes 15 to 30 minutes. At this point, the mechanic has a starting point but usually not a diagnosis.
From there, the work depends on the code. For a misfire code, the mechanic might check spark plugs, ignition coils, and fuel injectors. For an oxygen sensor code, they might test the sensor itself or look for exhaust leaks. For a transmission code, they might check fluid level and condition, or scan the transmission computer separately. The mechanic may also drive the vehicle to see if they can reproduce the condition or trigger the code again.
Some shops charge a flat diagnostic fee ($50 to $150) that applies toward repair costs if you proceed. Others charge hourly labor rates for diagnostic work, which can run $100 to $200 per hour depending on location and shop. A few shops offer free scans but charge for any additional testing beyond the initial code pull.
Why the same code can mean different things
Trouble codes are broad categories, not specific parts. A P0128 code ("coolant thermostat response") could mean the thermostat itself is stuck, the sensor reading the coolant temperature is faulty, or the wiring between them is corroded. A P0507 code ("idle speed too high") might point to a vacuum leak, a faulty idle air control valve, a dirty throttle body, or even a stuck accelerator cable.
This is why a mechanic cannot tell you over the phone what is wrong based on the code alone. They need to perform follow-up tests: measuring fuel pressure with a gauge, checking compression with a compression tester, reading live sensor data from the scanner, or inspecting components visually. A good diagnostic process eliminates possibilities one by one until the actual cause is found.
Common tests mechanics run after the initial scan
Once a code is retrieved, mechanics often move to targeted testing. A fuel pressure test uses a gauge connected to the fuel rail to measure whether the fuel pump is delivering the right pressure — typically 35 to 65 psi depending on the engine. A compression test measures how much pressure builds in each cylinder when the engine cranks, revealing whether piston rings or valves are worn. A cylinder leakdown test pressurizes each cylinder and listens for where air escapes, pinpointing internal damage.
For electrical codes, a mechanic may use a multimeter to check voltage and resistance in wiring and connectors. For sensor-related codes, they might read live data from the scanner — watching real-time values from the oxygen sensor, mass airflow sensor, or coolant temperature sensor as the engine runs. If values are erratic or outside normal range, the sensor or its wiring is likely the problem.
Some shops also use a smoke test for vacuum leaks, which pumps harmless smoke into the intake and watches where it escapes. This is especially useful for codes related to fuel mixture or idle problems that could be caused by hidden leaks.
What to expect after the diagnostic is complete
Once the mechanic has identified the root cause, they should explain what they found, what part or system is failing, and what repair is needed. They should also give you a repair estimate — the cost of parts and labor. At this point, you can decide whether to proceed, get a second opinion, or attempt the repair elsewhere.
Some repairs are straightforward: replacing a spark plug, an oxygen sensor, or a thermostat. Others are more involved, like replacing a transmission control solenoid or repairing internal engine damage. The mechanic should tell you how long the repair will take and whether your vehicle is safe to drive in the meantime.
If you decline the repair, ask the shop whether they will clear the code from the computer. Some shops do this at no charge; others may charge a small fee. Clearing the code erases the stored trouble code but does not fix the underlying problem — the code will return once the condition triggers again.
Why your check engine light stays on after a repair
After a repair, the check engine light should turn off within a few driving cycles (usually 50 to 100 miles of normal driving). If it stays on, one of three things is happening: the code was not fully cleared from the computer, a related problem still exists, or the repair did not address the root cause.
A mechanic should always clear the code after completing a repair and verify that it does not return during a test drive. If the light comes back on when ready, the repair may not have been successful, or the diagnostic may have missed a secondary issue. For example, if a misfire code was caused by a bad ignition coil, but the fuel injector was also clogged, replacing only the coil will not fully solve the problem.
If you return to the shop with the light still on, ask them to scan the vehicle again and compare the new codes to the original ones. If the same code returns, the repair did not work. If a different code appears, a second problem was present all along.
Diagnostic tools you can use yourself
You can purchase a basic code reader for $25 to $100 and retrieve trouble codes yourself. These handheld devices plug into the same diagnostic port a mechanic uses and display the code number and description. This lets you know what the computer detected before you take the vehicle to a shop.
A basic reader shows stored codes and clears them, but it does not show live sensor data, freeze frame information, or advanced diagnostics. For those, you need a more expensive scanner ($200 to $500) or professional diagnostic equipment. A code reader is useful for understanding what you are dealing with, but it does not replace a mechanic's ability to test components and confirm the actual cause.
If you retrieve a code yourself and want to avoid a diagnostic fee, you can bring the code number to a shop and ask them to focus on that system. Many shops will do this, though they may still charge for additional testing if the code does not point directly to a single failed part.
Frequently Asked Questions
How much does an engine diagnostic cost?
A basic diagnostic scan typically costs $50 to $150. Some shops waive this fee if you have the repair done at their location. Additional testing — fuel pressure checks, compression tests, or sensor diagnostics — may add $50 to $200 or more depending on what is needed and how long it takes.
Can I drive my car with the check engine light on?
In most cases, yes — the light indicates a problem the computer detected, but it does not mean your engine will fail when ready. However, some codes point to serious issues like a catalytic converter problem or severe misfires that can cause engine damage if ignored. If the light is flashing rather than steady, stop driving and have the vehicle towed, as a flashing light usually means active misfires.
What is the difference between a stored code and a pending code?
A stored code has occurred multiple times and is saved in the computer's memory. A pending code has occurred once or twice but not consistently enough to turn on the check engine light yet. Pending codes are useful because they show problems developing before they become serious, but they disappear if the condition does not happen again within a set number of driving cycles.
Can I clear the check engine light myself without fixing the problem?
Yes, you can clear the code with a code reader, and the light will turn off. However, the underlying problem remains, and the code will return once the condition triggers again. Clearing the code without fixing the cause is only useful if you want to see whether the problem was temporary or recurring.
What should I do if two different mechanics give me different diagnoses?
Ask each mechanic to show you the trouble code and explain what tests they ran to reach their conclusion. Request a copy of the diagnostic report from both shops. If the codes are the same but the diagnoses differ, the second opinion is worth the cost. If the codes are different, one mechanic may have missed something, or the vehicle may have developed a new problem between visits.