How to Fix the P0170 DTC Code on a 6.7L Powerstroke (Fixed)

In order to diagnose specific issues in your vehicle, the OBD systems (Onboard Diagnostic Systems) have provided some specific codes. These codes are considered  universal codes, which means that any manufacturer can recognize them. Code p0170 is such an universal code that can be read by any diagnostic equipment as well.

The p1249 code on 6.7 powerstroke means the Fuel Trim Malfunction (Bank 1). It indicates that the powertrain control module has detected the fuel trims have reached an abnormally high or an abnormally low value for a specific amount of time. 

You might be worrying about how exactly to fix this unknown problem you have suddenly encountered. No need to panic! You will find everything you need to know about the code p0170 in this guide, including how to fix it.

How to Fix the P0170 DTC Code on a 6.7L Powerstroke

What Does p0170 Code Mean On 6.7 powerstroke?

The code p0170 on the 6.7 powerstroke refers to the fuel trim malfunction of the car. When there’s too much fuel or too much oxygen in the car’s fuel-air mixture, the car shows this code p0170. 

Fuel trim is the powertrain control module fuel mixture adjustment tool. These control the continuous adjustments the ECU makes to the fuel-air mixture to keep it balanced. 

When the fuel trim goes outside the range of modifications set by the manufacturer, the powertrain control module detects it and the code p0170. 

The powertrain will set up a negative fuel trim if the oxygen sensor calls for less fuel. On the other hand, the powertrain control module will perform a positive fuel trim if the PCM detects an increase in fuel in the oxygen sensors.

Now that we have a clear idea of what the code p0170 entails, let’s focus on the causes and the solutions for it. The dissection of code P1249 is given below for your convenience:

  • p- Powertrain, the system of components that propel your car forward
  • 0-Generic manufacturing code derived from SAE standard
  • 1-Specific system related to the fuel trim control 
  • 70-Describes the specific fault information. In this case, the fuel trim malfunction of bank 1.

How Serious Is Code p0170 On 6.7 powerstroke?

Code p0170 can be pretty serious of an issue for your 6.7 powerstroke as it directly affects the engine of the car. In the long term, this fuel trim issue could affect your engine’s health. The amount of fuel outside the supposed range of fuel can severely affect your engine negatively.

There can be a larger number of drivability issues that can stem from this code. This will impact the mileage of your car eventually. Moreover, you will face issues with your ignition and accelerator while driving. It will reduce the efficiency and overall functionality of the car.

This code has existed on your car for a long time and will result in serious damage to your powertrain control module. So, if the code is not repaired by the time severe symptoms are still absent, it will turn into an even more serious issue for your 6.7 powerstroke.

What Causes Code p0170 On 6.7 powerstroke?

There are a few specific causes behind the code p0170. If your car unfortunately faces any of these incidents, it might end up being the reason for the code’s sudden appearance. 

The most common causes for this code are mechanical and electrical failures in the engine. Other possible causes for this code include:

  • Leak in the turbo air change hoses
  • Contaminated or saturated engine oil
  • Clogged air filters
  • Malfunctioning or leaking injector
  • Physical damage in the exhaust pipe, catalytic converter and muffler.
  • Faulty O2 sensor
  • Excessive fuel pressure or a faulty fuel-air pressure regulator.
  • Damaged coolant, mass airflow sensor or temperature sensor.
  • Loose connections or frayed wirings in the circuit.
  • Clogging or build ups in the air intake system.
  • Software issues in the Powertrain Control Module.
  • Saturated carbon canister 
  • A faulty powertrain control module (PCM).

Other Symptoms Of Getting p0170 Code On 6.7 powerstroke

You will notice your car displaying a few clear symptoms all of a sudden when you receive the code p0170. 

Most evidently, it will directly affect the engine performance very noticeably. These are the possible symptoms you will notice on your car once the code p0170 shows up:

  • Fuel mileage of the car drops very low suddenly.
  • The fuel consumption ability decreases.
  • While accelerating, the engine starts vibrating.
  • The engine starts running rough and misfires often.
  • Stumbling and hesitation in the engine shows up.
  • Check Engine Light illuminates or blinks.
  • Catalytic converter gets damaged.
  • Engine performance downgrades a lot.

How To Fix p0170 Code On 6.7 powerstroke?

Now let’s take a look at how we can fix the code p1249 on 6.7 powerstroke. Similar to solving any problem, first you need to figure out the exact reason for the issue. 

Depending on that, you will need to replace any of the parts such as the fuel filter, fuel pump, fuel pressure regulator, PCM, oxygen sensor or the mass air flow system.

1. Replace The Fuel Filter

If a clogged fuel filter is the reason for the code then first, you need to clean the fuel filter. In case even that doesn’t work, you need to replace the filter with the following steps:

  • Raise the car and support it with jack stands.
  • Depressurize the fuel system.
  • Remove the filter from the high pressure fuel line.
  • Remove the in and out connectors from the filter.
  • Use a little bit of oil on the O-rings to lubricate it.
  • Install the new filter in the right place.

2. Replace The Fuel Pump

A fuel pump could be the reason for the code. Once you pinpoint that it is the problem, replace the fuel pump by following the proper instructions:

  • Remove the fuel pump through the access panel above the tank in the passenger compartment.
  • If there is no access panel, drain the fuel tank and lower it.
  • Remove the return hoses, EVAP system hoses and other electrical connections from the fuel pump.
  • Attach reusable brackets and pickup screens to the new fuel pump.
  • Install the new fuel pump carefully.
  • Reconnect the electrical connections again.
  • Refill the fuel tank.

3. Replace The Fuel Pressure Regulator

A bad fuel pressure regulator can leak fuel to the engine. Therefore, you will need to replace it.

  • Inspect the fuel pressure regulator for leakage or broken parts.
  • Inspect any broken vacuum lines in the regulator.
  • Remove the fuel pressure regulator.
  • Install a new regulator properly.
  • If the engine oil is contaminated, check and replace the engine oil.
  • Test drive the car for a successful installment.

4. Replace the Powertrain Control Module

A faulty PCM and ECU can eventually lead to the failure of the engine and the car as a whole. The car would refuse to start at one point. Follow these steps to replace the PCM in your car:

  • Firstly, disconnect the battery.
  • Disconnect the engine control module connections and remove the PCM.
  • Install the new PCM in its place.
  • Reconnect the battery.
  • Connect a battery charger to charge it properly.

5. Replace The Oxygen Sensor

Leaking oil or coolant damages the oxygen sensors inside the fuel trim. You need to find the leakage inside and fix it to stop the oxygen sensors from getting damaged. If the sensors are very damaged, you need to replace the damaged ones in particular.

  • First off, inspect the vacuum leaks and holes inside the exhaust system. 
  • Check the electrical connections properly.
  • Remove the damaged oxygen sensor.
  • Place the new oxygen sensor in the proper place.
  • Check if it is operating correctly.

6. Replace the Mass Air Flow System

Mass air flow systems can stop working because of bad wiring and connections. In that case, try fixing these connections first before replacing the mass air flow system. 

If it is really bad, inspect the air duct between the sensor and the manifold beforehand. Routinely changing and cleaning the air filters will result in a better mass air flow system. 

It will improve the lifespan of the component by a great deal. Inspect the vacuum hoses and the attaches snorkel with the air flow system to check and keep it well maintained. 

How Much Does It Cost To Fix 6.7 Powerstroke p0170 Code?

Fixing the p0170 code on 6.7 powerstroke can end up being pretty expensive than average. It will vary depending on which parts you will need to replace and which diagnosis method you will need to follow. 

Any repair shops will require at least an hour to the diagnosing stage. It will cost you between $75-$150 per hour. Apart from this labor cost, the other costs you will need to make according to the specific parts problem are-

  • Vacuum leak- $100-$200
  • Fuel pressure regulator- $200-$400
  • Replace MAF- $300
  • Clean MAF- $100
  • Air fuel sensor or oxygen sensor- $200-$300
  • Fuel Pump- $1300-$1700
  • Exhaust repair- $100-$200 

Can You Drive Your 6.7 Powerstroke With Code p0170?

The seriousness of the code p0170 is of moderate level. So, it is recommended to not drive the car after getting the code p1249.

You will have a loss of mileage from your car’s drivability once you have the code p0170 on it. 

However, driving the car for an excessive period of time even after getting the code will result in the engine’s performance decreasing subsequently. 

So, to avoid further damage to your engine, you should not drive your 6.7 powerstroke with code p0170 for a long time.


In this section, we will answer some of the most frequently asked questions regarding the code p0170. 

Can A Bad O2 Sensor Cause A P0170?

Yes, a bad O2 sensor can cause a p0170 code. In some cases, a longer than normal injector pulse is required to get the desired oxygen signal from a bad O2 sensor. As a result, the ECM gets an increased fuel trim value. This causes the car to have the code p0170.

How Do You Reset The Fuel Trim?

You can very easily reset the fuel trim. Firstly, disconnect the battery and then wait for 10 minutes. Turn the ignition key on to the starter position. Then let go to discharge the system and reset the fuel trim.

How Do You Diagnose Fuel Trim Issues?

In order to diagnose any fuel trim issues, you need to plug a scan tool into the OBD II diagnostic connector located under the instrument panel. Turn the key on and it will communicate with the computer device inside. Eventually, the scan tool will measure the fuel trim value of the car.


This guide will allow you to fix the code p0170 on your 6.7 powerstroke instead of worrying your head off about it. Usually the fuel trim malfunction can cause the car to go through some serious damage if not fixed on time. 

Therefore, it is advised to figure out the actual causation of the code and apply the mentioned fix accordingly. In case you are unable to fix the issues by yourself, you can seek help from a professional or a mechanic in a repair shop. 

By evaluating the estimated costs mentioned in this guide, you will be able to decide if it is necessary to consult a professional for the fix.

Similar Posts