P0336 Duramax Code: Crankshaft Position Sensor A Circuit Explained
6 min read · by Nicole Bennett · Last updated: November 14, 2026
A P0336 Duramax code means the engine computer sees a crankshaft position sensor A signal that does not agree with its other inputs. The code is generic, so the basic meaning matches any vehicle, but the exact test conditions for GM diesels sit in GM service information.
This guide explains the likely causes, the symptoms to watch for, how far you can drive with the code, and a checking order that tests the cheap parts before you buy a sensor.
Crankshaft faults can stall or strand a truck, so treat this guide as general information. It does not replace the specifications in the service information for your model year.
What the P0336 Duramax code means
P0336 is a generic OBD-II code for a range or performance problem in the crankshaft position sensor A circuit. The sensor reports crankshaft speed and position, and the computer uses that signal to set ignition and injection timing.
The code does not say the sensor has failed. It says the reading does not match what the computer expects from other inputs, such as the camshaft sensor. According to the Duramax P0336 code page, the setting criteria for GM diesels are in GM service information rather than in the generic definition.
Why a Duramax can set P0336
The crankshaft and camshaft signals work as a pair. When the computer sees them disagree, the code alone does not say which sensor is wrong, so the live data matters more than the code title.
A Duramax sets P0336 for a few main reasons. The sensor can read incorrectly, the wiring can fail, or the timing between the crank and cam signals can drift out of range. The list below runs from the most common causes to the least common.
- A crankshaft sensor that reads incorrectly or has failed.
- Corroded, damaged or moist sensor connectors.
- A broken or worn reluctor ring, the toothed wheel the sensor reads.
- Electrical shorts or chafed wiring in the sensor harness.
- Crankshaft and camshaft timing out of range.
- An engine control module fault, which is the least common cause.
The sensor is only one suspect. A harness fault or a damaged reluctor can produce the same code, so replacing the sensor first is a common mistake that often leaves the real fault in place. A bench check of the sensor itself is covered in crankshaft position sensor testing steps.

Symptoms of a P0336 code
P0336 usually shows up as a check engine light together with a change in how the engine starts or runs. The sensor controls timing, so the engine feels the fault as soon as the timing signal is unreliable.
- Check engine light on.
- Hard starting, long cranking or no start.
- Stalling or rough running at idle.
- Misfires and hesitation during acceleration.
- Reduced fuel economy.
The symptoms matter most for a truck that tows or carries heavy loads. Under load, a timing fault can cause a stall or a loss of power at the wrong moment, so the fault deserves attention before the next long trip.
Some drivers notice the symptoms come and go at first. Intermittent symptoms often point to a connector or harness problem, because moisture and vibration can open a circuit for a short time. Other warning signs are listed in bad crankshaft position sensor symptoms.

Can you keep driving with P0336?
Sources that cover P0336 rate it as a serious code, but they usually allow short trips with care. The safe rule is to keep trips short, avoid towing, and get the truck diagnosed soon.
This advice assumes a steady check engine light and normal running. If you smell fuel, see smoke or hear a knock from the engine, stop and get help before you drive further.
If the truck stalls, will not restart, or runs very roughly, stop driving and arrange a tow. A crankshaft timing fault can leave you stranded in traffic, so a short trip to a shop is the most you should attempt.
How to check P0336 step by step
Work through the checks in this order, from the cheapest test to the most involved. Stop as soon as you find a clear fault, but confirm the repair before you close the job.
- Read the full code list and the freeze frame data with a scan tool before you clear anything.
- Inspect the crankshaft sensor connector and harness for corrosion, moisture, chafing and loose pins.
- Compare the live crankshaft and camshaft signals on the scan tool while the engine runs.
- Check the sensor reference voltage, ground and signal against the GM specification for your model year.
- Look for other codes that share the same reference voltage or ground.
A wiring fault is often cheaper to repair than a sensor, but it is harder to find. While the engine runs, gently move the harness and watch the live crankshaft signal for dropouts. A dropout that follows the harness points to the wire, not the sensor. A related code on the same sensor circuit is crankshaft sensor circuit malfunction.
Clear the code only after the repair. If the computer runs the test again and the code stays away, the fault is most likely fixed. A common mistake is clearing the code, driving once and assuming the job is done. Check the test status with the scan tool, because the dash light alone can hide a test that has not run yet.
Frequently Asked Questions
Is P0336 the same on every Duramax?
The title and basic meaning are the same on any vehicle because P0336 is a generic OBD-II code. GM sets the exact test conditions for its diesels in its service information, so check the specification for your model year before you decide on a repair.
Should I replace the crankshaft sensor first?
Usually not. Test the connector, the wiring and the sensor signal first, because a harness or reluctor fault can set the same code. Replacing the sensor before those checks can cost money and leave the real fault in place.
Does P0336 turn on the check engine light?
Yes. A check engine light is the most common symptom reported for P0336. It can come on alone, or together with hard starting, rough idle or misfires, depending on how the fault affects the engine.
Will clearing the code fix P0336?
No. Clearing the code only removes the stored record. If the sensor, the wiring or the timing fault is still present, the code returns. Confirm the repair with a scan tool after the work is done.
If the code returns after a repair, take the truck to a shop with GM diagnostic equipment, because the fault may sit in the timing system or the engine computer.
-
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
LearnP0335 Duramax Code: Crankshaft Sensor Circuit Causes and Fixes
LearnP0343 Duramax Code: Camshaft Position Sensor A Circuit High Input
LearnP0307 Duramax Code: Cylinder 7 Misfire Causes and Fixes
LearnP0340 Duramax Code: Camshaft Position Sensor A Circuit Explained
LearnP0302 Duramax Code: Cylinder 2 Misfire Explained
LearnP0335 Toyota Corolla: Diagnose the Crankshaft Sensor Fault