Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🧭 Diagnostic Flowchart 🎬 Helpful Videos 🛍️ Shop This Part

P0440 on 2017-2024 BMW 5 Series: EVAP System Malfunction Causes and Fixes

For a 2017-2024 BMW 5 Series, the P0440 code is most often caused by a failed Fuel Tank Vent Valve (also called a purge valve) located in the engine bay. This is a common failure item on BMWs with the B48 and B58 engines. Expect to pay around $70-$130 for an OEM part. This part is known to fail and may also trigger BMW-specific codes like 190F08 or 191C02.

19 minutes to read 2017-2024 BMW 5 Series
Most Likely Cause
Faulty Fuel Tank Vent Valve (Purge Valve)
Difficulty
2/5
Est. Time
1.4 hrs
DIY Doable?
✅ Yes
Shop Labor
$150 – $500
Parts Price
$30 – $250
Safe to drive — Driving with a P0440 code will not cause immediate engine damage or affect drivability. However, your vehicle will fail an emissions test, and you may notice a faint fuel smell. In some rare cases, a failing vent valve can cause rough idling or difficulty starting immediately after refueling.
Key Takeaways
  • P0440 on a 2017-2024 BMW 5 Series is most likely a bad Fuel Tank Vent Valve (part no. 13907643106), not a loose gas cap.
  • The vehicle is safe to drive, but it will fail an emissions test and should be repaired to avoid releasing fuel vapors into the atmosphere.
  • Diagnosis should start with checking the gas cap, but quickly move to inspecting the vent valve in the engine bay.
  • If the issue isn't the gas cap or vent valve, a smoke test is the best way to find the leak.
  • Do not confuse this fuel EVAP system issue with the common A/C evaporator failure on the same vehicles.
The trouble code P0440 indicates a general malfunction in the Evaporative Emission (EVAP) Control System. This system is designed to capture harmful fuel vapors from the fuel tank and prevent them from escaping into the atmosphere. The vehicle's main computer, the DME (Digital Motor Electronics), periodically runs a pressure test on the fuel system. If it detects a leak or a component not responding correctly during this test, it will trigger the Check Engine Light with the P0440 code. This generic code can sometimes be accompanied by more specific BMW codes like 190F08 ('Fuel tank ventilation system malfunction') or 191C02, which often point directly to a faulty vent valve.

What's Unique About the 2017-2024 BMW 5 Series

While a loose gas cap is the most common cause for a P0440 code on many vehicles, on modern BMWs like the G30 5 Series, it is more frequently caused by a component failure. Specifically, the Fuel Tank Vent Valve (purge valve) is a known weak point. Owners and technicians often point to this valve as the primary suspect before even considering a gas cap issue or other leaks. The diagnosis is further complicated by another common but unrelated issue on this platform: A/C evaporator failures, which are extremely expensive to fix and should not be confused with this fuel EVAP system code.

Generation note: The 2017-2024 year range covers the entire G30 (sedan), G31 (touring), and F90 (M5) generation, including the 2021 model year LCI (facelift). The primary causes and fixes for P0440, particularly the failure of the fuel tank vent valve on B48/B58 engines, are consistent across this generation and its platform mates.

Symptoms You May Notice

  • Check Engine Light is on
  • A faint smell of fuel, possibly near the rear of the car or from the vents
  • Vehicle will automatically fail an emissions inspection
  • Difficulty starting the engine immediately after refueling (less common).
  • Rough or unstable idle (less common).
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the gas cap when the Fuel Tank Vent Valve is the actual problem. Many technicians familiar with BMWs will check the vent valve first.
  • Confusing the fuel EVAP (Evaporative Emissions) system with the A/C Evaporator. The A/C evaporator is a common and expensive failure on the G30 platform but is completely unrelated to the P0440 code. Owners report A/C failure symptoms like warm air or uneven vent temperatures, and the repair can cost between $4,800 and $7,000 due to the need to remove the entire dashboard.

Most Likely Causes

  1. Faulty Fuel Tank Vent Valve (Purge Valve) 🔴 High Probability → Shop Fuel Tank This specific valve, often made by Bosch, is a widely documented common failure part on BMW's B48 and B58 engines used in the G30 5 Series. BMW has acknowledged issues with this part under SIB 01 03 24. It frequently triggers codes P0440, P0446, and the BMW-specific code 190F08.
    How to confirm: The valve is located in the engine bay, under the acoustic engine cover. It can be tested by applying vacuum to see if it holds, or by using a scan tool to command it open and closed. A faulty valve may be stuck open or closed, or leak internally, sometimes making a metallic clicking noise.
    Typical fix: Replacement of the valve. It is typically mounted on the engine with a few hoses and an electrical connector, making it a relatively simple DIY job 🎬 Watch: This walkthrough shows how to replace the G30 purge valve. that can take as little as 10 minutes. Be careful, as the plastic hose connectors can become brittle and break upon removal.
    Est. part cost: $70-$130
  2. Loose or Faulty Gas Cap 🟡 Medium Probability → Shop Fuel Tank Cap While less common than the vent valve on BMWs, human error (not tightening the cap until it clicks) or a degraded rubber seal on the cap can still prevent the system from sealing correctly.
    How to confirm: Ensure the gas cap is tightened until it clicks several times. Inspect the rubber O-ring on the cap for cracks, dirt, or signs of wear. A dirty fuel filler neck can also prevent a good seal.
    Typical fix: Tighten the cap and clear the code. If the code returns, replace the gas cap with a new OEM part (Part No. 16117470341).
    Est. part cost: $25-$50
  3. Faulty Leak Diagnosis Module (DMTL Pump) ⚪ Low Probability The DMTL pump is a small electric motor that pressurizes the tank for leak testing. These pumps can fail over time, leading to incorrect test results and fault codes.
    How to confirm: The pump is located in the rear passenger-side wheel well area. A BMW-specific scan tool can run a test of the DMTL pump itself. Failure is confirmed if the pump doesn't run or if it fails its internal reference check.
    Typical fix: Replacement of the DMTL pump and its associated filter.
    Est. part cost: $100-$180
  4. Cracked or Disconnected EVAP Hoses ⚪ Low Probability
    How to confirm: A visual inspection may reveal obvious cracks, but small leaks are hard to see. The most effective method is a smoke test, where a mechanic injects pressurized smoke into the EVAP system to see where it escapes.
    Typical fix: Replacement of the specific hose or line that is found to be leaking.
    Est. part cost: $30-$100

Rare But Worth Checking

  • Cracked Charcoal Canister: → Shop Vapor Canister The charcoal canister stores fuel vapors. Physical damage from road debris can cause it to crack, creating a large leak in the system.
  • Leaking Fuel Sending Unit Gasket: One owner on a forum traced an intermittent EVAP code to a leaking fuel sending unit gasket located under the rear seat, which was only found using a smoke machine.

Diagnosis Steps

  1. Check the Gas Cap: Remove and reinstall the gas cap, ensuring it clicks multiple times. Inspect the cap's seal for any cracks or damage. Clear the code and see if it returns after a few drive cycles.
  2. Inspect the Fuel Tank Vent Valve: Locate the valve in the engine bay under the engine cover. Visually inspect it and its connected hoses for any obvious damage. Given its high failure rate, this is the most likely culprit.
  3. Scan for BMW-Specific Codes: Use a BMW-compatible scanner (like ISTA) to read for more detailed fault codes. Codes like 190F08 or 191C02 will strongly indicate a faulty vent valve, saving diagnostic time.
  4. Perform a Smoke Test: If the cause is not the gas cap or vent valve, a smoke test is the definitive way to find a leak. The test involves filling the EVAP system with a harmless, visible smoke under low pressure. 🎬 See how to perform a smoke test to find hidden leaks. Smoke will exit from any cracks in hoses, the charcoal canister, or bad seals.
  5. Test the DMTL Pump: Using a capable scan tool, initiate the EVAP system leak test. You should be able to hear the DMTL pump running in the rear wheel well area. The scan tool can also report the pump's status and amperage draw to determine if it is functioning correctly.

Parts You'll Likely Need

  • Fuel Tank Vent Valve (Purge Valve) (OEM #13907643106) — This is the most common failure point for the P0440 code on the G30 5 Series with B48 and B58 engines.
    Trusted brands: Bosch, Genuine BMW
    OEM price range: $120-$135
    Aftermarket price range: $70-$90
  • Fuel Cap (OEM #16117470341) — A simple and inexpensive part to rule out if the seal is old, cracked, or if the cap was lost. Replaces older part number 16117482903.
    Trusted brands: Genuine BMW, Gates, Stant
    OEM price range: $30-$45
    Aftermarket price range: $15-$30
  • Diagnosis Module Tank Leakage (DMTL) Pump — This pump is the heart of the leak detection system and can fail, causing a variety of EVAP codes.
    Trusted brands: Bosch, Genuine BMW
    OEM price range: $150-$200
    Aftermarket price range: $100-$140

Related Codes That Often Appear With This One

  • P0446 — This code indicates a fault in the EVAP system's vent control circuit. It often appears with P0440 when the issue is related to the DMTL pump or the fuel tank vent valve.
  • 190F08 (BMW-Specific) — This is a BMW-specific code for 'Fuel tank ventilation system malfunction'. It very frequently points directly to a failed Fuel Tank Vent Valve and is often seen in conjunction with the generic P0440.
  • 191C02 (BMW-Specific) — Another BMW-specific code for 'Fuel tank ventilation system, 2nd largest discharge point malfunction' that is commonly associated with a failing Fuel Tank Vent Valve.

Technical Service Bulletins (TSBs) & Recalls

  • SIB 01 03 24: BMW identified that the Fuel Tank Breather Valve (P/N 13907643106) may suffer from material and operational issues with age, potentially causing lean mixture faults (118001, 118401) and specific EVAP codes (190F08, 191C02, 195014).

Platform-Specific Known Issues

  • A user on Bimmerpost with a 2017 540i reported getting a P0440 code. After checking the gas cap, the forum community's immediate suggestion was to perform a smoke test to find a leak, with the canister purge valve (fuel tank vent valve) being the primary suspect component to check.

Mechanic-Grade Diagnostic Values

  • Fuel Tank Vent Valve (Purge Valve) Solenoid Resistance — expected: 18.2 - 28.1 Ohms. Failure: A significantly higher reading (e.g., 190 Ohms) or an open circuit indicates a faulty solenoid coil.
  • Fuel Tank Vent Valve (Purge Valve) Bench Test — expected: With 12V applied to the two pins, the valve should make an audible click and open. When de-energized, it should be closed and hold vacuum.. Failure: If the valve does not click, does not open with 12V, or does not hold vacuum when closed, it is faulty.

Hidden / Shadow Codes Worth Checking

  • 195014: Differential pressure sensor, tank vent valve, signal: Permanently stuck. This fault often indicates a software issue or a failing vent valve. (see via BMW-specific scan tool like ISTA. A service bulletin suggests a vehicle software update may be required to fix this if the valve itself is not faulty.)
  • 2A17: DMTL, system failure. This points to a problem with the DMTL pump itself, such as a failed internal motor or valve. (see via BMW-specific scan tool like ISTA.)
  • 2A15 / 2A16: DMTL, leak detected (minor/major). These codes are more specific than the generic P0440 and are triggered by the DMTL pump's test sequence. (see via BMW-specific scan tool like ISTA.)

Scan Tool Commands That Help

  • ISTA (Rheingold): DME -> Component Triggering -> Motor of diagnostic module (DMTL) — Use this to manually activate the DMTL pump motor. You should hear the pump running in the rear passenger wheel well area, confirming the motor is receiving the command and is functional.
  • ISTA (Rheingold): DME -> Component Triggering -> Changeover valve of diagnostic module (DMTL) — This command tests the solenoid valve within the DMTL pump assembly. You should hear a click, confirming the valve is actuating. A failure here can cause a leak detection fault.
  • ISTA (Rheingold): Vehicle Management -> Service Functions -> Drive -> Fuel tank leakage diagnostic module (DMTL) test plan — This is the comprehensive, automated test. It first runs a reference check on the pump itself, then pressurizes the entire fuel tank and EVAP system to test for major and minor leaks. It can take up to 12 minutes and is the definitive way to confirm a leak without a smoke machine.

Wiring & Ground Locations

  • EVAP System Ground Point — The main chassis ground points are crucial. On a G30, a common ground point used for accessories in the trunk (boot) is a threaded stud on the chassis, often near the battery. Ensure this is clean and tight if other electrical issues are present.. The DMTL pump is located in the rear of the vehicle and relies on a solid ground connection to operate correctly. A poor ground can cause the pump to fail its self-test or not run at all, triggering EVAP codes.
  • Engine Ground Strap — The primary engine-to-chassis ground strap is typically located on the driver's side, connecting an engine mount bracket to the body.. While less direct, a corroded or broken main engine ground can cause a host of electrical gremlins and voltage issues for engine-mounted components like the Fuel Tank Vent Valve. This is a common wear item on BMWs.
  • Wiring Harness Chafe Point — On some B46-engine vehicles sharing a similar layout, a wiring harness loom with a white barcode label runs near the EVAP lines by the passenger side firewall. An EVAP hose has been observed rubbing against this loom, potentially causing a wear-through leak over time.. A small, hard-to-see leak can be caused by this rubbing. If a smoke test reveals smoke in the passenger side firewall area, this chafe point should be inspected closely.

Real Owner Repair Stories

  • Bimmerpost user (BMW with B58 Engine) — Check Engine Light with code 190F08 (Tank vent valve). Rough idle and stalling after refueling.
    ❌ Tried (didn't work) Initial replacement of the Fuel Tank Vent Valve (P/N 13907643106) fixed the issue temporarily.
    ✅ What actually fixed it The code returned, indicating the replacement part had also failed. A second replacement of the same Fuel Tank Vent Valve resolved the issue again, highlighting that this part can fail repeatedly and even new parts can be faulty. The user questioned if another factor was causing the repeat failures, but the ultimate fix was simply another new valve.
  • Bimmerpost user (2017 540i (G30)) — Check Engine Light with code P0440.
    ❌ Tried (didn't work) Checking the gas cap to ensure it was tight.
    ✅ What actually fixed it The user was advised by the forum community that the most likely cause was a leak in the EVAP system and the primary suspect was the canister purge valve (Fuel Tank Vent Valve). The definitive diagnostic step recommended was a smoke test to pinpoint the leak, rather than guessing.

OEM Part Supersession History

  • 1390764586013907643106 — Part revision or supplier change for the Fuel Tank Vent Valve.
    Heads up: The newer part number 13907643106 is the correct and current replacement for B46, B48, and B58 engines in the G30 platform.

Model Year Variations Within This Range

  • 2017-2020 (Pre-LCI) vs 2021-2024 (LCI): The G30 received a Life Cycle Impulse (LCI) or facelift for the 2021 model year. While the core B48/B58 engines and the common P0440 causes (like the vent valve) remained consistent, the LCI introduced updated exterior styling, new headlights/taillights, and iDrive 7 as standard. Some options like soft-close doors were eliminated on LCI models due to supply chain issues. For the purpose of diagnosing P0440, the procedures are effectively identical between pre-LCI and LCI models.

Diagnostic Flowchart

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Coolant Leaks (B48/B58 Engines) 🔴 High — Common issue, often starting around 60,000-80,000 miles. Leaks often evaporate on hot surfaces, leading to a coolant smell without visible puddles.
  • A/C Evaporator Failure 🔴 High — A widely reported failure on the G30 platform, can occur on cars as early as 2018 with around 75k miles.
  • Active Grille Shutter Failure 🟠 Medium — A common problem where the plastic mechanism jams or the actuator motor fails, often triggering a Check Engine Light. (Ref: An extended warranty may be available for this part.)
  • Valve Cover and Gasket Oil Leaks 🟠 Medium — A classic BMW issue that continues with the B58 engine. Gaskets degrade over time from engine heat, leading to leaks.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For purely mechanical, non-electronic, and non-rubber components like brackets or specific plastic lines that are not brittle, a used part can be acceptable. A used gas cap is a reasonable choice if the seal is inspected and found to be pliable and free of cracks.

Donor-vehicle mileage cap: roughly under 50000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • For a Fuel Tank Vent Valve, check for cracks in the plastic housing or connector.
  • For a gas cap, ensure the rubber O-ring is soft, pliable, and not cracked or flattened.
  • For a DMTL pump, inspect for any physical damage or cracks to the housing and ensure the electrical connector pins are clean and not corroded.

OEM-only on this vehicle (don't cheap out):

  • Fuel Tank Vent Valve (Purge Valve): Given the high failure rate and the critical function, using a Genuine BMW or OEM Bosch part is strongly recommended to avoid repeat failures.
  • DMTL Pump: This is a sensitive electronic and mechanical component. An OEM Bosch or Genuine BMW part is recommended to ensure it passes the internal self-test and functions correctly with the DME.

Aftermarket brands forum-validated for this vehicle:

  • Bosch: Bosch is the Original Equipment Manufacturer (OEM) for many of these EVAP components, including the Fuel Tank Vent Valve and DMTL pump. Buying a Bosch-branded part is often identical to the Genuine BMW part without the dealership markup.

Brands owners have reported issues with on this vehicle:

  • Unbranded/No-name eBay/AliExpress parts: While some may function initially, the quality control, material specifications (especially for rubber seals and solenoid windings), and longevity are highly questionable. For critical emissions components that require significant diagnostic time if they fail, it is not worth the risk.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2017 BMW 540i (B58)

Symptoms: The owner reported a P0440 code appearing and sought advice on whether the gas cap was the culprit.

What fixed it: The community recommended a smoke test, identifying the canister purge valve (fuel tank vent valve) as the primary suspect for replacement.

Source hint: bimmerpost.com: A G30 540i owner received a P0440 code

BMW 3 Series (B58 engine)

Symptoms: The vehicle experienced repeat failures of the Fuel Tank Vent Valve, throwing BMW-specific code 190F08.

What fixed it: Replacement of the Fuel Tank Vent Valve (Part No. 13907643106), though the user noted even replacement parts can fail.

Source hint: bimmerpost.com: A user with an F30 (which shares the B58 engine) experienced repeat failures of the Fuel Tank Vent Valve (13907643106)

Frequently Asked Questions

Does BMW SIB 01 03 24 apply to my 5 Series with code P0440?
Yes, SIB 01 03 24 identifies that the Fuel Tank Breather Valve (P/N 13907643106) on B48 and B58 engines can suffer from operational issues, triggering EVAP codes like 190F08, which often translates to P0440.
What is the specific BMW part number for the gas cap if I need to replace it?
The recommended OEM replacement part number for the gas cap on this vehicle is 16117470341.
I have a BMW-specific scanner; what codes should I look for instead of P0440?
On the G30 5 Series, you should look for BMW-specific codes 190F08, 191C02, or 195014, which provide more detail regarding the fuel tank vent valve or EVAP system status.
Where is the Fuel Tank Vent Valve located on the B48/B58 engine?
The valve is located in the engine bay, positioned under the acoustic engine cover. It is typically mounted on the engine with an electrical connector and a few hoses.
Can a faulty vent valve cause performance issues other than the check engine light?
Yes, according to the article context, a faulty valve can lead to a rough or unstable idle and difficulty starting the engine immediately after refueling.
Is the DMTL pump a common failure point for the P0440 code on this model?
The DMTL pump is considered a low-probability cause compared to the vent valve, but it can fail over time. It is located in the rear passenger-side wheel well area.
BMW purge valve replacement B58 G30 540 340 740 2017
BMW purge valve replacement B58 G30 540 340 740 2017
ROUGH START AND IDLE??? | B58 Tank Ventilation Valve Fix
ROUGH START AND IDLE??? | B58 Tank Ventilation Valve Fix
BMW Fuel Tank Breather Valve Replacement! B58/S58
BMW Fuel Tank Breather Valve Replacement! B58/S58
How To Find EVAP Leaks & Vacuum Leaks On Your BMW !!
How To Find EVAP Leaks & Vacuum Leaks On Your BMW !!
How to: Diagnose/Fix DMTL Fault Codes on your BMW
How to: Diagnose/Fix DMTL Fault Codes on your BMW
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated May 30, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0440 for:
  • BMW 5 Series: 20172018201920202021202220232024
In this article
🧭 Diagnostic Flowchart
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part