P0366: Camshaft Position Sensor B Circuit Range/Performance

P0366 means the engine computer is seeing an out-of-range or unstable signal from camshaft position sensor B, which can throw off valve timing and fuel injection. Common fixes are repairing the sensor wiring or replacing the cam sensor, usually about $120 to $350 at an independent shop.

Severity
Moderate
Can I drive?
Drive with caution
DIY?
Possible with some experience
Repair cost range
$100 – $3,000

Get the answer for your exact car

Add your car and a few details. DashClue asks up to 3 questions, then tells you the most likely cause and what it should cost.

FreeNo card neededAnswer in about 2 minutes

What does P0366 mean?

The camshaft position sensor tells the engine computer where the camshaft is as the engine runs. The computer uses that signal to control fuel timing, spark timing, and variable valve timing on many vehicles. With P0366, the signal from sensor B is present but not reading the way it should, which can happen if the sensor is weak, the wiring is damaged, or the timing system is not behaving correctly. Some cars will run normally at first, while others may idle rough or lose power.

Common symptoms

  • Check engine light on
  • Rough idle
  • Hard starting
  • Loss of power when accelerating
  • Stalling at stop
  • Poor fuel economy

Causes, fixes and costs

DashClue diagnosis

P0366: Camshaft Position Sensor B Circuit Range/Performance

General guide for most cars. Your car may differ.

Severity: ModerateDrive with caution

The car may still run, but it can idle poorly, hesitate, or stall if the signal gets worse. Stop driving if the engine starts stalling repeatedly, runs very rough, or the check engine light flashes.

Most likely causes

  1. 1

    Faulty camshaft position sensor BHigh

    Most common when the light is on with rough idle, hard starting, or an intermittent stall, especially if the code returns right away after clearing.

    Quick check: Inspect the sensor if accessible and compare live data or test with a known-good sensor when possible.

  2. 2

    Damaged wiring or connectorHigh

    Likely if the problem comes and goes, gets worse in wet weather, or there is visible oil intrusion, corrosion, broken insulation, or a loose plug at the sensor.

    Quick check: Wiggle-test the harness with the engine idling and inspect the connector pins for damage or corrosion.

  3. 3

    Cam timing problem or stretched timing chainMedium

    More likely if there is rattling on startup, low power, or multiple cam/crank correlation or timing codes along with P0366.

    Quick check: Listen for chain noise at startup and scan for related timing codes; a shop may need to verify mechanical timing.

  4. 4

    Failed tone wheel or internal engine timing issueLow

    Possible if the sensor and wiring test good but the signal is still erratic, especially after engine work or if the engine has had major internal repairs.

    Quick check: Have the cam signal checked with a scope and inspect for mechanical damage to the reluctor wheel or cam target.

Can you fix it yourself?

Possible with some experience

Difficulty: Moderate. A careful owner can inspect the connector, wiring, and sensor on many cars with basic hand tools and a scan tool. If the problem looks mechanical or the code keeps coming back after a sensor swap, it needs professional diagnosis.

Show the steps
  1. Read all codes and freeze-frame data
  2. Inspect the cam sensor B connector and harness
  3. Look for oil, corrosion, broken wires, or loose pins
  4. Clear the code and road test
  5. If accessible, replace the sensor with an OEM-quality part
  6. Recheck for return codes and live cam signal
  7. If the code returns, test wiring and timing system

Estimated repair cost

$120 – $350

Camshaft position sensor B replacement: parts about $40-$180, labor about $80-$170

  • Repair cam sensor wiring or connector$100 – $300
  • Cam timing inspection/diagnosis$150 – $400
  • Timing chain or cam timing repair$900 – $2,500
  • Reluctor wheel or internal engine repair$800 – $3,000

Prices vary by vehicle, engine layout, and how hard the sensor is to reach.

Frequently asked questions

Can I drive with P0366?

Usually yes for a short time if the engine runs normally, but you should get it checked soon. If it stalls, runs very rough, or the check engine light flashes, stop driving.

Will P0366 clear itself?

It may disappear temporarily if the fault is intermittent, but the problem usually comes back. If the underlying sensor, wiring, or timing issue is not fixed, the code will return.

Is P0366 a sensor problem or a timing problem?

It can be either one. The most common cause is the cam sensor or its wiring, but timing chain or cam timing issues can also trigger it.

Can I replace the camshaft position sensor myself?

Often yes, if the sensor is easy to reach and you can safely access it. The harder part is making sure the wiring, connector, and timing system are okay if the code returns.

Will P0366 fail an emissions test?

Yes, in many states it can because the check engine light is on and the system has a stored fault. Some vehicles may also fail if the code is recent and readiness monitors are not set.

Related codes

  • P0340 Camshaft Position Sensor 'A' Circuit (Bank 1)
  • P0341 Camshaft Position Sensor 'A' Circuit Range/Performance
  • P0344 Camshaft Position Sensor 'A' Circuit Intermittent
  • P0016 Crankshaft Position - Camshaft Position Correlation (Bank 1 Sensor A)
  • P0017 Crankshaft Position - Camshaft Position Correlation (Bank 1 Sensor B)
  • P0010 A Camshaft Position Actuator Circuit

Related problems

This guide covers most cars and is general advice, not an inspection. Prices are typical US independent-shop ranges and vary by region, car and shop. If your brakes, steering or a warning light feel unsafe, stop driving and contact a mechanic.