P1339 Code: Crankshaft Position Variation Not Learned
6 min read · by Nicole Bennett · Last updated: November 26, 2026
The p1339 code means the engine computer has not completed, or has lost, its learned crankshaft position variation value. The check engine light usually comes on, and the engine may idle roughly, stall, or start hard. The exact wording and fix depend on the manufacturer.
Most cases involve the crankshaft position sensor, its wiring, or a relearn step that was skipped after a battery disconnect or repair. Check those basics before you buy parts.
What the p1339 code means
P1339 is listed as “Crankshaft Position Variation Not Learned,” a powertrain code tied to how the engine computer learns the variation in the crankshaft position signal. One code reference labels it manufacturer specific. If your scanner also lists P1338 Code, that guide covers it.
The crankshaft position sensor, often called the CKP sensor, measures crankshaft position and speed. The engine computer uses that signal to time ignition and fuel injection, as described in Wikipedia’s crankshaft position sensor article.
According to one code reference, the learn value can be lost after a battery disconnect, a computer reset, or a service that clears memory. Until the computer relearns it, the engine may run rough or hesitate. The learn value works as a stored reference, so when it is missing, the computer has nothing solid to compare live crankshaft readings against.

Symptoms to watch for with p1339
The most common signs of the p1339 code are rough running at idle, stalling, and hard starting after a battery disconnect or computer reset.
- Rough running, stalling, or weak performance at idle or low RPM
- Hard starting or no-start after a battery disconnect, service, or computer reset
- Hesitation during acceleration
- A check engine light, sometimes with other CKP or CMP codes
Wikipedia notes that a failing crankshaft sensor can cause the engine to cut out while running, misfire, or shake at idle. A typical early sign is a no-start when the engine is hot that clears after it cools. Note whether the problem appears when the engine is hot, cold, or idling, because that detail narrows the cause during testing. A clean scan on a cold, idling car does not rule out the fault, since the symptoms often come and go with engine temperature and battery condition.
Causes to check first for p1339
The crankshaft position sensor and its wiring are the causes that code references list most often for p1339.
Heat, vibration, and corrosion are named causes of crankshaft sensor failure in Wikipedia’s article. Vibration can fracture a wire, and corrosion on harness connector pins can break the signal path, so the connector deserves a close look before you replace the sensor.
Computer memory loss and an incomplete learn are also on the list. A battery disconnect or module reset can leave the learn value unset, and some makes need a specific procedure to finish it. If that procedure is skipped, the code can stay even after a new sensor is installed. When P1340 Code appears in the same scan, check that guide before replacing parts.

Mechanical timing problems, mismatched crankshaft and camshaft signals, electrical noise, and poor grounding appear less often. A weak ground can mimic a sensor fault, so check the engine and body grounds as well as the sensor plug. Misfires from ignition or fuel problems can look similar, so do not treat a misfire alone as proof of a sensor failure. Live data makes this diagnosis much easier, and Best Code Readers Without Subscription lists tools that show it.
How to check p1339 with a scanner
Read the code with a scanner and save the freeze frame data first, because it records the engine conditions when p1339 was set.
- Read every stored and pending code, not only p1339, and note any CKP or CMP codes that appear with it.
- Save the freeze frame data, including engine speed, load, and coolant temperature at the time of the fault.
- Watch crankshaft and camshaft signal data at idle and during a gentle rev, looking for dropouts or erratic readings.
- Inspect the CKP connector, harness, and grounds for corrosion, looseness, and chafing.
- If the car needs a learn after a battery disconnect or sensor work, follow the manufacturer’s procedure in the service information.
- Clear the code, drive the car through a normal cycle, and check whether p1339 returns.
The relearn step is where many repairs fail. A new sensor alone may not clear the code if the learn is skipped, so check the procedure for your make and model before you call the job finished. Keep a written record of each code, its freeze frame values, and each repair step. If the code returns, that record shows a shop which checks were already done and which were not.
Is it safe to drive with p1339?
Limit driving with p1339 to short trips until the cause is found, because stalling and no-start conditions can happen without warning.
Wikipedia lists engine cut out while running as a symptom of a failing crankshaft sensor. If that happens in traffic, the car can lose power at a bad moment, so treat stalling as a reason to stop driving and have the vehicle checked or towed.
If the engine runs smoothly and the light stays steady, a scanner check is still worth scheduling soon. Hard starts and rough idle tend to return, and a signal fault that is ignored can turn into a no-start at a bad time. Codes in this range are close together, so if P1337 Code shows up as well, read that guide too.
Frequently Asked Questions
Is the p1339 code the same on every car?
No. One code reference labels it manufacturer specific and says the exact wording and learn procedure vary by make. The same number can point to different systems, so check the service information for your vehicle before you replace parts.
Can a battery disconnect cause p1339?
Yes, a battery disconnect is one listed trigger. It can clear the computer’s memory and leave the crankshaft variation learn incomplete, which may bring on rough idle or hard starting until the relearn is done.
Will a new crankshaft sensor fix p1339?
It can, if the sensor is the fault. The code can stay if the wiring is damaged or the learn procedure is skipped, so test the sensor, connector, and wiring first, then complete any required relearn after replacement.
Is p1339 an expensive repair?
The sources read for this article do not give a reliable price, so no figure is quoted here. A connector or ground repair usually costs less than a sensor replacement with a relearn. Get a written estimate that names the parts and the procedure.
-
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
LearnP0449 Code: What It Means and How to Fix It
LearnBad Brake Drums Symptoms: 6 Signs, Causes and Repair Costs
LearnP2559 Code: Meaning, Causes, Symptoms, and Diagnostic Steps
LearnP0517 Code: Meaning, Causes, Symptoms, and Step-by-Step Diagnosis
LearnP0028 Code: Diagnose Bank 2 Intake Valve Control Problems
LearnP1114 Code: Identify the Fault and Find the Right Repair