P0304 Duramax Code: Cylinder 4 Misfire Explained
6 min read · by Nicole Bennett · Last updated: November 14, 2026
A P0304 Duramax code means the engine computer detected a misfire on cylinder 4. The leading cause is the cylinder 4 injector, with wiring, connector and cylinder compression as the next suspects.
A single-cylinder code keeps the search small. Work through the data, the wiring and the compression reading in that order, so the expensive part is the last one you buy.
What the P0304 code covers
P0304 is the standard OBD-II code for a misfire on cylinder 4, defined by SAE J2012, so its general meaning does not change between makes. The engine computer watches crankshaft speed for the firing event of cylinder 4 and stores the code when the irregularity passes the threshold for that cylinder.
What the code does not tell you is the failed part. A cylinder 4 misfire can come from an injector, a wire, a worn cylinder or a valve problem, and the code alone cannot separate them. GM sets the exact thresholds for the Duramax in its service information, and that document is the reference for the test steps on your model year.
The Car Code Finder page on the Duramax P0304 rates the code as serious and says the truck can be driven with caution for a short period. Keep trips brief and arrange a diagnosis soon, because a misfire that stays unresolved can grow into a broader running problem.
Cylinder 4 on a shared fuel rail
The Duramax uses high-pressure common-rail direct injection, which the Wikipedia article on the Duramax engine family describes with Bosch supply hardware. One rail feeds all the injectors, and each injector opens on a command from the computer.
Because the rail is shared, a supply problem usually affects more than one cylinder. A code that names only cylinder 4 is a sign that the fault is local to that cylinder’s injector, its circuit or its compression. That is why the next tests stay focused on cylinder 4 instead of the whole fuel system.
Four causes of a P0304 Duramax code
Car Code Finder ranks the causes in a set order: the injector first, the wiring second, low compression third and a fuel supply problem last. The ranking reflects frequency, not a guarantee, so each item needs a test before a part is ordered.
- Cylinder 4 injector fault, rated high likelihood
- Injector wiring or connector fault on the cylinder 4 circuit, rated moderate
- Low compression in cylinder 4, rated moderate
- Fuel supply or fuel quality problem, rated low
A wiring fault can look like an injector fault, since both stop the cylinder from firing correctly. The difference shows up in the tests: a wiring fault can come and go with engine movement, while a dead injector stays dead. A cylinder 3 misfire follows the same test order, see cylinder 3 misfire explained.

What a cylinder 4 misfire feels like
Expect a rough idle, shaking, a loss of power and a check engine light that may flash when the misfire is severe. Exhaust smoke can appear as well, though it is not a reliable way to identify the cylinder.
The misfire is often easiest to notice under load. A truck that idles smoothly may still hesitate on an incline or when pulling a trailer. Write down the speed, the load and the temperature when the problem shows up, since that record helps link the symptom to the right test. Other misfire codes on the same engine are listed in cylinder 6 misfire causes and fixes.
A cylinder 4 test sequence that protects your budget
Start with the scan tool and avoid the parts counter until the data points somewhere. The same approach applies to other misfires, for example cylinder 2 misfire explained. The injector balance or contribution data shows whether cylinder 4 is the outlier, and that step takes minutes.
- Read every stored code and the freeze frame data for the P0304 event.
- Confirm with injector balance data that cylinder 4 is the weak cylinder.
- Inspect the cylinder 4 wiring and connector for chafing, corrosion or a pin that has backed out.
- Run a compression test on cylinder 4 before replacing the injector.
Do not loosen injector lines or the fuel rail during these checks. Diesel injection operates at very high pressure, so any fuel line work should follow the GM service procedure for your model year, with the engine cooled first.
When the cylinder 4 data is unclear, compare the reading with the cylinder 4 result from a retest after clearing the code. A fault that returns quickly after a clear usually has a steady cause, such as a failing injector or a compression loss. A fault that takes longer to come back may point toward a connector or a wire that only misbehaves under certain conditions. Either pattern narrows the next step, so keep the timing in your notes.

Injector or harness, and how to decide
If the harness shows damage, repair it and retest before any injector is bought. A clean repair often ends the code without new parts, and it is the cheapest outcome to confirm.
When the wiring is sound and compression is normal, the cylinder 4 injector becomes the probable fault, and replacement is reasonable. If compression is low, the injector is not the answer, since the cylinder needs a mechanical repair. This guidance applies to a running engine with a single-cylinder code, not to a truck that will not start.
Frequently Asked Questions
What does P0304 mean on a Duramax?
P0304 means the engine computer detected a misfire on cylinder 4. The generic definition is standard across vehicles, and GM sets the exact thresholds in its service information.
Is the cylinder 4 injector the most likely cause?
Car Code Finder rates it as high likelihood. Wiring and compression problems can produce the same code, so test them before buying an injector.
Can I drive with a P0304 code?
The source says you can drive with caution for a short period. Keep trips brief, watch for heavy shaking or a flashing light, and get the cylinder checked soon.
Will clearing the code fix the cylinder?
No. Clearing the code removes the stored data but leaves the cause in place. If the misfire continues, the code returns, and the freeze frame data you need may be gone.
A P0304 code narrows the problem to one cylinder, which is good news for the budget. Let the data, the harness and the compression reading decide the repair before any injector goes in the cart.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0342 Duramax Code: Camshaft Position Sensor A Circuit Low
LearnP0341 Duramax Code: Camshaft Position Sensor A Range or Performance
LearnP0380 Duramax Code: Glow Plug Circuit Fault and Fixes
LearnP0306 Duramax Code: Cylinder 6 Misfire Causes and Fixes
LearnP0302 Duramax Code: Cylinder 2 Misfire Explained
LearnHow to Fix Code P000A: Slow Intake Cam Response Explained