Fix

Check engine light after getting gas: the gas cap and EVAP codes

Published

Tools for this job

All 7 picks compared

This page is for drivers whose check engine light came on soon after a trip to the gas station. Most of the time the fix is free or cheap: the gas cap. We explain why the cap matters, which EVAP codes it usually sets, how to confirm it with a scanner, and when the real cause is something else, such as a purge valve, vent valve, or a habit like topping off the tank.

Why the gas cap can turn on the check engine light

Your fuel system is sealed so gasoline vapor cannot escape into the air. The evaporative emission (EVAP) system stores that vapor in a charcoal canister and later draws it into the engine to burn. To make sure the system is sealed, the engine computer runs a leak test, usually after the car has sat for a while or during certain driving conditions.

If the gas cap is loose, cross-threaded, missing, or has a cracked seal, the leak test fails and the computer sets an EVAP code. Because the test does not run every minute, the light often appears a day or more after the fill-up rather than right at the pump.

Codes you will commonly see

Read the code with an OBD2 scanner to confirm you are dealing with an EVAP leak. Look up exact meanings with the code decoder.

How to fix it step by step

Start with the cap, because it is the cheapest and most common cause. Many vehicles also show a check fuel cap message on the dash when the system suspects the cap.

  1. 1

    Read and write down the code and freeze frame with a scanner.

  2. 2

    Remove the gas cap and inspect the rubber seal for cracks, flattening, or debris.

  3. 3

    Wipe the filler neck sealing surface and check it for dents or rust.

  4. 4

    Reinstall the cap and turn it until it clicks. On capless fillers, check that the flap closes fully and is clean.

  5. 5

    If the seal looks worn, replace the cap with one specified for your vehicle.

  6. 6

    Drive normally for several days. The light often goes out on its own once the leak test passes.

  7. 7

    If you prefer, clear the code with a scanner after fixing the cap, then watch whether it returns.

Note.Gasoline vapor is flammable. Do not smoke or use open flames near the filler neck, and do not run the engine in a closed garage.

Get a scanner to read EVAP codes →

Topping off and other refueling habits

Many owner's manuals say to stop at the first automatic click of the pump. Topping off after that can push liquid fuel into the EVAP canister, which is designed for vapor, not liquid. Over time this can saturate the canister and lead to purge or vent problems, poor running right after refueling, and EVAP codes.

If your car is hard to start or runs rough right after filling up, a stuck-open purge valve is a common cause on many vehicles. That often pairs with codes like P0496. See P0446 and P0449 for vent valve problems.

When the gas cap is not the problem

If a good cap is tight and the code returns, the leak is elsewhere. Common sources include cracked EVAP hoses, a leaking purge or vent valve, a cracked filler neck, or a damaged charcoal canister. These are harder to find by eye. Shops use a smoke machine to push visible smoke into the system and spot the leak.

Work through the code-specific guides for the next steps: P0455 for large leaks, P0456 for very small leaks, and P0442 for small leaks. Some scanners can command the vent and purge valves for testing, which is one reason people look at a bidirectional scan tool.

  • Cracked or disconnected EVAP hoses
  • Purge valve stuck open or leaking
  • Vent valve stuck or blocked
  • Rusty or damaged filler neck
  • Damaged charcoal canister

Is it safe to drive?

An EVAP leak code alone usually does not affect how the car drives, so you can normally keep driving while you sort it out. The light will cause an emissions inspection fail in many states, and while it stays on you will not notice a new, more serious code. If you smell strong fuel odor, find the source promptly. See can you drive with the check engine light on.

Frequently asked questions

How long after tightening the gas cap will the light go off? It varies by vehicle. The EVAP test has to run and pass, which can take several days of normal driving. Clearing the code with a scanner turns it off right away.

Can a new gas cap cause a check engine light? Yes, if it is the wrong type or a poor fit for your vehicle. Use a cap specified for your make and model.

Will a loose gas cap fail an emissions test? In many states, yes. A lit check engine light or incomplete EVAP monitor can cause a fail. See readiness monitors explained.

Can bad gas cause a check engine light? Contaminated or water-laden fuel can cause misfires and set misfire codes. That is less common than a gas cap issue.

What you need for this