P0339 BMW: Diagnose Crankshaft Sensor Problems and Prevent Stalling
17 min read · by Nicole Bennett · Last updated: November 25, 2026
p0339 bmw means the engine computer has detected an intermittent signal problem in crankshaft position sensor A, which can cause stalling, difficult starting, and unpredictable engine operation. The fault does not automatically mean the crankshaft sensor has failed. Damaged wiring, a loose connector, an electrical supply problem, or an issue with the crankshaft signal-generating components can produce similar symptoms.
The crankshaft position sensor is important because the engine management system uses its signal to determine crankshaft position and engine speed. Without reliable information, the computer may struggle to coordinate ignition and fuel injection. Depending on the BMW model and engine, the result can range from an illuminated check engine light to an engine that suddenly stalls or refuses to start.
The right approach is to check the stored fault information, inspect the sensor circuit, and verify the signal before installing replacement parts. This guide explains the BMW-specific information available for P0339, the symptoms to watch for, scanner tests, common causes, repair considerations, and when driving is unsafe.
What P0339 Means on a BMW
P0339 is the generic SAE powertrain code for Crankshaft Position Sensor A Circuit Intermittent. It means the engine control system has detected an unreliable or interrupted crankshaft position signal rather than a continuously missing signal.
BMW’s published SAE P-code list confirms the P0339 definition. The code identifies the affected signal circuit, but it does not identify the exact defective component. A sensor can be functioning correctly while a loose terminal, damaged wire, or intermittent electrical connection interrupts its output.
Understanding the BMW crankshaft sensor
The crankshaft position sensor monitors the rotation and position of the crankshaft. Its information allows the engine computer to calculate engine speed and determine when individual cylinders should receive ignition and fuel delivery. The sensor works with a rotating signal-generating component that produces a recognizable pattern for the engine management system.
When the signal becomes irregular, the engine computer may receive incomplete or implausible position information. An interruption lasting only a short time can be important because crankshaft position is essential to engine operation. The problem may appear during cranking, acceleration, engine vibration, or changes in operating temperature.
A documented BMW example
BMW service information for the 2010 M3 Convertible E93 with the S65 4.0L V8 identifies internal DME fault 27A9 alongside P0339. That application-specific information describes an engine-speed collapse from approximately 600 rpm to zero within a short monitoring interval. It also identifies possible engine stalling, inability to start, and additional driver warnings.
The documented M3 diagnostic procedure recommends checking the crankshaft sensor connector and wiring harness before replacing the sensor. This is useful guidance, but it should not be treated as a universal BMW repair procedure. Other models, engines, and DME versions may use different monitoring conditions and diagnostic instructions. The wiring and part locations differ by make, as P0339 Chrysler shows for the same code.
For the original BMW code classification, consult the BMW SAE P-code list. Always use the vehicle’s own diagnostic information when determining the exact failure.

Symptoms of an Intermittent Crankshaft Sensor Fault
P0339 can cause noticeable engine problems because the crankshaft signal is needed for accurate engine-speed and position calculations. Symptoms may appear intermittently, which means the BMW can run normally between episodes.
The severity depends on how frequently the signal disappears and whether the engine computer can maintain reliable position information. A vehicle that starts normally in the morning may develop a no-start condition after a short drive if the fault becomes worse as components heat up.
Common warning signs
- Intermittent engine stalling: The engine may suddenly shut off while idling, accelerating, or slowing down because the computer temporarily loses reliable crankshaft information.
- Extended cranking: The starter turns the engine, but combustion does not begin promptly because the engine computer cannot reliably establish engine position.
- Intermittent no-start condition: The BMW may start normally on one attempt and fail on another, especially when the underlying electrical fault is temperature-sensitive.
- Rough or unstable engine operation: An inconsistent signal can interfere with engine management and produce irregular operation.
- Check engine light: The malfunction indicator lamp may illuminate when the DME or engine control system confirms the fault.
- Unexpected warning messages: Some BMW applications may display additional drivetrain or transmission-related warnings when engine-speed information becomes unreliable.
- Loss of engine power: The engine may respond unpredictably or stop running when the signal interruption becomes severe.
Why symptoms can come and go
An intermittent electrical connection may work when the engine is cold but fail after the engine compartment heats up. Expansion can change contact pressure at a damaged terminal or affect an already weakened wire. Engine vibration can also move a loose connector enough to interrupt the circuit temporarily.
This explains why simply restarting the vehicle is not a reliable repair. The engine may operate normally after a restart even though the original fault remains. A technician should reproduce the conditions recorded when the problem occurred rather than assume the fault has disappeared.
Tip: If the engine stalls unexpectedly, record whether it was cold or hot, whether the vehicle was accelerating or idling, and whether it restarted immediately. These details help connect the symptoms with the scanner’s freeze-frame information and intermittent fault records. Shops often compare notes across makes for this code, and P0339 Dodge Code is a good reference.
Common Causes of P0339 on BMW Vehicles
The most useful starting point is the crankshaft sensor circuit, not automatic sensor replacement. P0339 describes an intermittent electrical signal, so the sensor, connector, wiring, and signal-generating components all deserve attention.
BMW uses different engine designs and engine management systems across its model range. The exact sensor location, circuit design, and failure conditions therefore vary. Causes vary by model year and engine unless the specific vehicle’s service information confirms otherwise.
1. Failing crankshaft position sensor
The sensor itself can develop an internal electrical fault. Heat, age, vibration, and component deterioration may cause its signal to become inconsistent. A sensor can also work during a stationary inspection but fail under actual operating conditions.
A sensor replacement becomes more convincing when the supply, ground, connector, and wiring are verified and the output signal still drops out. The correct replacement must match the specific BMW engine application.
2. Damaged wiring or a loose connector
Wiring problems are important because the sensor cannot provide a reliable signal if its electrical connection is unstable. Look for damaged insulation, corrosion, loose terminals, poor connector locking, and signs of heat exposure.
A harness may also be damaged where it passes near hot engine components, brackets, or moving parts. A conductor can break internally while its outer insulation still appears normal. This type of damage may only become apparent when the harness moves or the engine reaches operating temperature.
3. Electrical supply or grounding problems
A weak electrical connection, unstable supply, or poor ground can interfere with sensor operation. Low battery voltage and charging-system problems should also be considered if the vehicle has several unrelated electrical faults.
A healthy battery at rest measures approximately 12.6 volts. With the engine running, a typical charging-system reading is approximately 13.5 to 14.7 volts. These are general reference values, not BMW crankshaft sensor circuit specifications. Smart charging systems can vary their output according to operating conditions.
4. Damaged crankshaft signal-generating components
The crankshaft sensor reads a rotating target or signal-generating component. Depending on the engine design, damage to the reluctor or encoder arrangement can produce irregular position information even when the electrical sensor is functioning correctly.
Cracks, deformation, missing features, contamination, or an incorrect sensor installation can affect signal quality. The exact inspection procedure depends on the BMW engine and its mechanical arrangement.
5. DME or control-system problems
An internal engine control module fault is possible, but it should be considered only after the external circuit and sensor have been properly tested. A damaged connector at the control module or an intermittent wiring connection can imitate an internal computer failure.
Replacing or programming a DME without confirming the underlying problem can create unnecessary expense. Manufacturer-level electrical testing and the correct wiring diagram are important before making this diagnosis.
How to Diagnose P0339 With an OBD2 Scanner
A scanner helps determine when the fault occurred and whether engine-speed information became unreliable. A BMW-capable diagnostic tool is preferable because it can access manufacturer-specific DME information in addition to generic OBD-II data.
Do not clear the code immediately. The stored information may be the best evidence available for an intermittent failure. Record the freeze-frame data and related faults before beginning electrical inspections or replacing components.
Step 1: Scan all relevant control modules
Connect the scanner to the vehicle’s 16-pin OBD-II diagnostic port, usually located beneath the dashboard on the driver’s side. Read the DME or engine control module and check for P0339, P0335, P0336, and related camshaft or engine-speed faults.
A P0335 indicates a crankshaft position sensor circuit fault, while P0339 specifically indicates an intermittent circuit fault. The presence of both codes can help establish whether the signal problem is intermittent or has progressed into a more persistent failure.
Use a BMW-capable scanner to check manufacturer-specific fault descriptions and additional DME information. Generic readers may display only the standardized code without the detailed BMW diagnostic context.
Step 2: Examine freeze-frame data
Freeze-frame data records operating information when a fault is detected. It can help establish whether P0339 occurred during cold starting, warm operation, acceleration, or another operating condition.
- Engine RPM: Check whether the recorded speed was normal, unusually low, or inconsistent with the reported symptoms.
- Coolant temperature: Determine whether the problem occurred during cold operation or after the engine warmed up.
- Vehicle speed: Establish whether the fault appeared while driving or when the vehicle was stationary.
- Battery or system voltage: Look for abnormal electrical conditions that could affect multiple engine-management components.
- Engine load: Compare the recorded load with the driver’s description of the event.
Not every scanner displays every parameter, and the available freeze-frame information depends on the vehicle’s control module. Some BMW-specific faults require enhanced diagnostic software to access additional operating details.
Step 3: Monitor live engine-speed data
Observe engine RPM while cranking and, if the engine runs safely, during normal operation. The displayed RPM should respond consistently to actual crankshaft rotation. A sudden unexplained drop to zero while the engine is still physically turning can indicate a loss of engine-speed information.
A zero reading during a genuine stall is not enough to prove sensor failure. The engine has stopped rotating, so the reading may be accurate. Compare scanner data with the actual engine condition and use an oscilloscope when a more detailed signal assessment is necessary.
Step 4: Inspect the sensor connector and harness
Follow the BMW-specific service procedure to locate and inspect the crankshaft sensor circuit. Look for damaged insulation, oil contamination, corrosion, loose terminal fit, broken connector locks, and harness sections exposed to excessive heat or vibration.
Check the wiring diagram before testing individual terminals. The sensor may use a different electrical design depending on the engine, so do not assume that every BMW crankshaft sensor has the same supply voltage, pin arrangement, or resistance specification.
Step 5: Check the signal with appropriate equipment
A digital multimeter can help identify certain supply, ground, continuity, and resistance problems when the manufacturer’s testing procedure permits those measurements. However, a multimeter may not capture a brief signal interruption that occurs only while the engine is running.
An automotive oscilloscope provides a more detailed view of the crankshaft sensor waveform. A technician can compare the waveform during cranking and running, looking for missing sections, irregular pulses, electrical noise, or an unexpected interruption.
Step 6: Review fuel trims and Mode $06 where relevant
Fuel trims are not a direct test of crankshaft sensor operation. However, they can help identify a separate mixture problem if the BMW also has rough running, misfire symptoms, or additional fuel-control codes.
Combined short-term and long-term fuel trims beyond approximately plus or minus 10 percent deserve investigation. Values beyond roughly 25 percent can contribute to lean or rich fault codes, depending on the operating conditions. These readings should not be mistaken for proof of a P0339 cause.
Mode $06 can provide monitor test results on supported vehicles and scanners. Its usefulness depends on the specific diagnostic monitor and available data. It is not a substitute for examining the crankshaft sensor waveform and electrical circuit when investigating an intermittent signal fault.
| Diagnostic finding | Possible interpretation | Next check |
|---|---|---|
| P0339 stored | Intermittent crankshaft signal fault | Review freeze-frame data and wiring |
| P0335 stored with P0339 | Additional crankshaft circuit malfunction evidence | Check the complete sensor circuit |
| RPM drops unexpectedly while engine rotates | Possible loss of crankshaft signal | Compare live data with an oscilloscope waveform |
| Visible connector corrosion | Possible unstable electrical contact | Inspect terminals and connector condition |
| Signal drops out during waveform testing | Possible sensor, harness, or signal-target fault | Isolate the affected circuit or component |
| Battery at rest near 12.6 V | Typical healthy battery reference reading | Check charging performance under operating conditions |
| Engine running near 13.5–14.7 V | Typical charging-system reference range | Compare with BMW-specific electrical specifications |
The table provides general diagnostic guidance, not a list of guaranteed failure thresholds. BMW-specific wiring diagrams, test conditions, and sensor specifications take priority over generic readings. Codes often appear in groups on this vehicle, so P0328 BMW may also apply.

Repair Options and Cost Factors
The correct repair depends on which part of the crankshaft signal system is actually failing. A connector repair may solve an intermittent electrical problem, while a defective sensor or damaged signal-generating component may require a different repair procedure.
The most economical approach is to confirm the cause before purchasing parts. Replacing the sensor without inspecting the harness can leave the original fault unresolved and lead to repeated diagnostic work.
Crankshaft position sensor replacement
If testing confirms that the sensor is producing an unreliable signal, replacement may be necessary. The technician must use the correct component for the engine and follow the specified installation procedure.
Access varies considerably across BMW models. Some installations require more labor because nearby engine components restrict access. The sensor’s mounting condition and sealing arrangement should also be checked during installation.
Connector and wiring repairs
If the fault comes from damaged wiring, the repair may involve replacing a connector, repairing an approved harness section, or replacing a larger section of wiring. Correct terminal fit, insulation, routing, and protection from engine heat are important.
Simply moving a wire until the engine runs normally is not a lasting repair. The damaged area must be identified and repaired using the manufacturer’s recommended electrical procedures.
Signal-generating component repairs
If the crankshaft signal target is damaged, replacing the sensor alone may not correct the problem. Mechanical inspection may be necessary to determine whether the rotating component, its mounting, or the sensor installation is affecting the waveform.
These repairs can involve more labor because access may require additional disassembly. The technician should establish the mechanical cause before recommending extensive engine work.
What affects the total repair cost?
- Parts: The correct sensor, connector, wiring components, or mechanical replacement parts depend on the BMW engine.
- Labor hours: Sensor accessibility and the amount of surrounding component removal affect the work required.
- Diagnostic time: Intermittent problems can take longer to reproduce and isolate than continuously present faults.
- Electrical testing: Advanced scan-tool and oscilloscope testing may add diagnostic labor.
- Shop versus DIY: A professional repair includes labor charges, while a DIY repair requires appropriate tools, technical information, and experience.
- Additional repairs: Damaged wiring, signal-generating components, or control-system problems can increase the overall repair scope.
A basic sensor replacement may be relatively straightforward on one BMW and considerably more involved on another. Ask for a diagnosis that identifies the failed component and separates diagnostic labor, parts, and installation work. If the light returns with a different code, P0325 Bmw is a good next read.
Is It Safe to Drive With P0339?
Driving with P0339 is not recommended if the engine is stalling, failing to start consistently, or losing power unexpectedly. The crankshaft sensor signal is essential to engine operation, and an intermittent interruption can become a complete loss of signal.
A BMW that stalls in traffic can create a serious road hazard. The engine may stop providing power assistance to some vehicle systems, and restarting may not be possible. Even if the car currently runs normally, the fault can return without much warning.
When to stop driving
- The engine repeatedly stalls while driving.
- The engine cranks but does not start reliably.
- The vehicle suddenly loses power in traffic.
- The check engine light flashes, indicating an active misfire that can damage the catalytic converter.
- Additional drivetrain warnings appear alongside serious engine-running problems.
If the engine stalls, move to a safe location if possible and arrange professional assistance. Towing is the safer choice when the engine cannot maintain reliable operation.
When a short trip may be considered
If the check engine light is steady, the engine runs smoothly, and there are no signs of stalling or power loss, the immediate risk may be lower. However, this does not mean the fault is harmless. A short trip directly to a repair facility may be reasonable only if the vehicle operates consistently and local conditions allow it.
Avoid long journeys, heavy acceleration, high-speed driving, and situations where an unexpected stall would create additional danger. If symptoms worsen, stop driving and arrange towing rather than repeatedly restarting the engine.
Safety: Never inspect exposed electrical connections near moving belts, pulleys, or fans while the engine is running. Follow the BMW service procedure before disconnecting electrical components or performing resistance tests. If the vehicle stalls unpredictably, do not continue driving it in traffic merely because restarting temporarily restores normal operation. If you do not own a scan tool yet, Best Selling Scan Tools is a good starting point.
Frequently Asked Questions
Can P0339 appear without turning on the check engine light?
Yes. Depending on the BMW’s diagnostic strategy and fault status, an intermittent problem may initially appear as a pending code or stored diagnostic event without immediately illuminating the malfunction indicator lamp. A BMW-capable scan tool can reveal additional fault information.
Can a crankshaft sensor fault affect the automatic transmission?
It can contribute to drivetrain warnings or unusual transmission behavior because engine-speed information is shared with other control systems. However, a transmission warning does not prove that the transmission itself has failed. Scan the relevant control modules before deciding which system needs repair.
Will disconnecting the BMW battery permanently clear P0339?
No. Disconnecting the battery does not repair an intermittent sensor circuit. It may also erase useful diagnostic information or reset certain vehicle settings. Permanent OBD-II fault codes require the underlying problem to be corrected and the relevant monitor to pass before they clear automatically.
Does P0339 mean the camshaft position sensor is defective?
No. P0339 identifies crankshaft position sensor A, not the camshaft position sensor. The two systems work together for engine timing, but a crankshaft sensor fault should be diagnosed separately from a camshaft sensor fault.
Can a new crankshaft sensor still produce P0339?
Yes. An incorrect replacement component, damaged connector, poor terminal contact, wiring interruption, or defective signal-generating component can cause the fault to return. Installation and compatibility should also be verified before concluding that the replacement sensor is defective.
P0339 on a BMW indicates an intermittent crankshaft position sensor signal, but the sensor itself is only one possible cause. Start with a complete scan, freeze-frame review, connector and wiring inspection, and signal testing before replacing parts. If your BMW stalls or struggles to restart, avoid driving it until the fault has been properly diagnosed and repaired.
-
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
LearnP0339 Code: Crankshaft Position Sensor A Circuit Intermittent
LearnP0340 BMW: Diagnose the Camshaft Sensor Fault and Restore Engine Performance
LearnP0303 BMW Code: Cylinder 3 Misfire Causes and Tests
LearnP0301 BMW Code: Cylinder 1 Misfire Causes and Tests
LearnP0308 BMW: Identify Cylinder 8 Misfires and Find the Cause
LearnP0463 Hyundai Code: Fuel Level Sensor High Input Explained