P040F

P040F: Exhaust Gas Recirculation Temperature Sensor A/B Correlation

DIY difficulty 3/5

Print shop one-pager Take this page to the shop — causes, fair prices, and sharp questions on one sheet.

Your diesel has two temperature sensors watching the exhaust gas going through the EGR cooler. This code means the two readings disagree - like two thermometers in the same room showing different temperatures. Usually one sensor is lying, but it can also mean the cooler itself is clogged.

Key facts

Symptoms

Likely causes

Too many suspects? Answer 4–6 quick questions and this page's published cause list re-orders itself for your situation — plus the cheapest test to run next. Start the elimination wizard →

Before you buy the part — 6 checks

Work these checks before spending money — each one rules a cause in or out, cheapest first.

  1. Scan for all codes and record freeze-frame data, then clear the code and test-drive to see if it returns.
  2. Visually inspect the wiring, connectors, and hoses around the component for damage, corrosion, chafing, loose pins, or disconnection. Tests: corroded or loose connector
  3. With a scan tool, compare the EGR temperature readings at idle and under load - a sensor stuck at an impossible value is a strong suspect. Tests: failed EGR temperature sensor A or B
  4. Check the sensor's wiring for heat damage, since these sensors live next to the exhaust. Tests: wiring damaged by exhaust heat
  5. Test the sensor's resistance against a known-good value only if your service manual lists one - otherwise replace with a known-good sensor.
  6. Suspect the PCM only after every wire and component test passes - module failure is rare.

No scan tool yet? The Veepeak OBDCheck (~$32) reads and clears codes from your phone in about two minutes.

Typical price range

Parts$60 – $220
Labor$150 – $300

EGR temperature sensor replacement. National-average estimate for the most common repair for this code. Actual quotes vary by vehicle, region, and shop - get a local written estimate.

Dealer vs independent shop: these ranges reflect typical independent-shop prices. A dealer will usually quote higher — higher labor rates plus OEM-only parts — so a dealer quote at the top of (or a bit above) this range isn't automatically a rip-off. For a big dealer number, get a second quote from an independent shop before authorizing the work.

Got a shop quote? Grade it →

What will this cost to fix? A code doesn’t name the repair — run the code-first estimator to see the most likely fixes for P040F ranked, each with a price range.
They handed you a printout at the parts store? Decode it before you buy.

DIY difficulty

3 of 5 — The sensor is easy to test but often buried near hot exhaust parts; a heat shield or EGR cooler may need to come off.

Watch this repair on YouTube

Parts & tools

EGR toolkit — what the job actually takes

Torque specs: Typically 20–30 Nm into iron, less into aluminum — verify spec.

Pro tip: Clean the passages, not just the valve — a new valve on clogged passages throws the same code.

As an Amazon Associate, WrenchFair earns from qualifying purchases.

Related codes

Check another code
Got a quote?Grade it →Shop one-pagerPrint it →Another code?Look it up →
Who's behind this guide? WrenchFair is built by a fellow DIYer, not a repair shop. Code meanings follow the SAE J2012 standard; cause rankings come from real-world repair evidence (service bulletins, owner reports, NHTSA records); prices are typical US ranges, not quotes. Read the full methodology →