P0365 Code: Camshaft Position Sensor “B” Circuit Explained
8 min read · by Nicole Bennett · Last updated: November 26, 2026
The p0365 code means the engine control module has detected a fault in the Camshaft Position Sensor “B” circuit, the circuit that carries the signal from the sensor that reports camshaft position for engine timing. Because it is a general code, the same flag can come from several different faults.
Treat this code as a serious warning rather than a minor nuisance. Check the wiring and engine software before you buy a sensor, and have a technician confirm the fault.
What the P0365 Code Means
The p0365 code is the generic flag for the Camshaft Position Sensor “B” circuit, and the engine computer sets it when that circuit shows a fault. According to Kelley Blue Book’s code guide, the related codes narrow down the problem:
- P0366: a range or performance problem with the same sensor circuit
- P0367: the sensor signal is too low
- P0368: the sensor signal is too high
- P0369: the sensor signal is intermittent
Because P0365 is the general flag, the p0365 code alone does not tell you which of these faults is present. The same kind of fault on the A sensor circuit sets P0340. A technician uses the full code set and live data to narrow it down.
Symptoms You May Notice
The check engine light is the usual first sign of a p0365 code, and the symptoms can range from mild to severe. Kelley Blue Book lists the following symptoms for this code:
- Check engine light on
- Weak acceleration
- Rough starting
- Engine misfires
- Sudden power loss while driving
- A no-start condition
A 2020 General Motors bulletin on the same code notes that some customers report only the malfunction indicator lamp being on. In that case the light may be the only sign of a p0365 code, so do not wait for a stall before you act. The bad camshaft position sensor symptoms guide lists more warning signs.
Common Causes of the p0365 Code
The main causes are a failed camshaft position sensor, sensor damage from oil, damaged wiring or short circuits, and, rarely, a faulty powertrain control module. Oil leaking onto the sensor is a named cause, so look for oil around the sensor before you replace anything.
Wiring damage is the other common explanation. Kelley Blue Book notes that the affected parts sit in tight areas of the engine, which makes inspection hard without experience. A short or open in the harness can produce the same code as a dead sensor, so the wiring should be checked first.

Why the cause is hard to pin down
Many underlying problems can set the same code. That is why Kelley Blue Book recommends having a professional perform the diagnosis instead of replacing parts one by one.

How Serious Is the p0365 Code and Can You Drive
Kelley Blue Book calls the p0365 code “incredibly serious” and says it is among the more serious codes a vehicle can set. The page adds that a vehicle may still run, but you should avoid driving it as much as possible.
Kelley Blue Book also advises that, instead of continuing to drive with this code, you should contact an expert. A no-start condition is listed as a common outcome, so a car that stalls in traffic or at a junction is a safety problem. Schedule the diagnosis before the next long trip rather than after the next failure.
What a Manufacturer Bulletin Shows for P0365
A March 2020 General Motors service bulletin defines P0365 as the exhaust camshaft position sensor circuit and says a software anomaly may cause it. The bulletin is hosted on NHTSA’s site and is listed in the GM bulletin 20-NA-046 record.
The correction starts with a VIN check for a service update. If none applies, the technician verifies that the engine control module has the latest software, reprograms it if needed, and clears the codes. The bulletin sequence is:
- Enter the vehicle VIN to check whether a service update applies.
- Verify that the engine control module has the latest software.
- Reprogram the module if needed, then run several key starts.
- If the codes reset, diagnose further using the manufacturer’s service information.
The bulletin notes that technicians may find P0365 and P0366 set together in the engine control module, so read the full list of codes rather than only the p0365 code. The bulletin covers one vehicle only: the 2020 Chevrolet Malibu with the 1.5L engine in North America. Use it as a clue for similar vehicles, not as a fix for yours, and confirm applicability with your VIN. Some scans return a group of codes in this range, and P0364 Code is one of them.
First Checks Before You Replace Parts
Start with the cheapest checks: confirm the software level, inspect the wiring and connector, and look for oil at the sensor before you order a part. Write down every stored code first, because a code often arrives with related codes. Each check rules out a different cause, as the table shows.
| Check | What it helps rule out |
|---|---|
| Software level | The software anomaly named in the GM bulletin |
| Wiring and connector | Open or short circuits and damaged wiring |
| Oil at the sensor | Oil damage to the sensor, a cause listed by Kelley Blue Book |
| Battery condition | Unstable voltage during ECM reprogramming |
| Sensor | A failed sensor, checked after the items above |
If the software, wiring and oil checks look normal, the sensor becomes the next suspect, since failure is a listed cause. Replace it only after the simpler causes are ruled out, so you do not pay for a part that was not the cause of the p0365 code. Our guide to camshaft position sensor testing shows how to test the sensor itself.

When to Get Help and What Is Not Verified
Get a professional to diagnose the p0365 code, because the cause is hard to pin down and the parts sit in tight spaces. The bulletin also warns that stable battery voltage is critical during reprogramming, and that a battery charger should not be connected during the process.
The sources read for this p0365 code article do not give sensor resistance, voltage readings, repair costs or a full diagnostic sequence for every vehicle, so those points are left out. Confirm them with the following:
- Exact sensor resistance or voltage readings for your engine
- Repair costs for the sensor, wiring or control module work, which our camshaft position sensor repair cost guide covers separately
- Whether the GM bulletin applies to your make, model and model year
- Diagnostic steps for vehicles other than the 2020 Malibu
Your vehicle’s service information or a dealer can check the official procedure with your VIN, and a dealer can also confirm whether a software update has already been issued for the car. Ask that the diagnosis for the p0365 code be written on the repair order, so you know which fault was confirmed.
Frequently Asked Questions
Does a p0365 code always mean the sensor is bad?
No. Kelley Blue Book lists a failed camshaft position sensor as one cause, but also damaged wiring, short circuits and, rarely, a faulty control module. Check the wiring and software before you replace the sensor.
Will clearing the p0365 code fix it?
Not by itself. The GM bulletin says that if codes reset after reprogramming, the vehicle needs further diagnosis. Clearing powertrain codes also resets the inspection and maintenance readiness status, so clearing it does not confirm a repair.
Can I drive with a p0365 code?
Kelley Blue Book says you should avoid driving with this code as much as possible and contact an expert. A no-start condition is also listed, so plan a diagnosis instead of relying on the car for long trips.
What is the difference between P0365 and P0366?
P0365 is the general circuit flag, while P0366 points to a range or performance problem. Kelley Blue Book also lists P0367 and P0368 for signals that are too low or too high.
Does battery voltage matter for this repair?
Yes. The GM bulletin says stable battery voltage is critical during ECM reprogramming and that any drop can interrupt it. A weak battery should be checked before programming, and a charger should not be connected during the process.
A p0365 code is a reason to schedule a diagnosis soon, not to keep driving the car. Start with the software and wiring checks, and let a technician decide on parts once the fault is confirmed.
-
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
LearnP2701 Code: Identify Transmission Clutch Problems and Avoid Further Damage
LearnBrake Fluid Leak Symptoms: Signs, Causes, and What to Do
LearnP1472 Code: Identify the EVAP Electrical Fault and Diagnose It Correctly
LearnP0521 Chevy Tahoe: Meaning, Causes, Diagnosis, and Fix
LearnP0505 Jeep Cherokee: Diagnose Idle Problems and Find the Fault
LearnP0841 Toyota Corolla: Diagnose Transmission Pressure Problems