What a bad camshaft position sensor looks like on your dashboard

A failing camshaft position sensor almost always triggers the check engine light. The sensor tells your engine computer when to fire the spark plugs and inject fuel based on where the camshaft is turning. When it sends wrong signals or stops sending them, the computer can't time those events correctly, so it logs a fault code and illuminates the warning light.

The specific codes you'll see are P0340 (camshaft position sensor circuit malfunction), P0341 (camshaft position sensor range/performance), or P0342 (camshaft position sensor low voltage). Some vehicles have two sensors—one for intake and one for exhaust—so you might see P0345 or P0346 if the second one is the problem. Your scan tool or mechanic's diagnostic reader will show you which code appeared.

The check engine light is your first and most reliable sign. Don't ignore it hoping it goes away. A bad sensor won't fix itself, and driving on one can damage your catalytic converter or cause your engine to stall without warning.

Key Takeaways

  • A check engine light with code P0340, P0341, P0342, P0345, or P0346 points directly to a camshaft position sensor problem.
  • Rough idle, hard starting, and loss of power are common symptoms because the engine can't time fuel and spark correctly without good sensor data.
  • You can read the fault code yourself with a basic OBD-II scanner (around $25 to $100) or have a mechanic pull it for free at many auto parts stores.
  • A camshaft position sensor typically costs $150 to $400 in parts and labor combined, depending on how straightforward it is to reach on your engine.
  • Some sensors fail from age and heat; others fail because oil sludge or a timing chain problem damaged them, so a mechanic should inspect the cause.

Symptoms you'll notice while driving

Before the check engine light appears, you might feel the engine running rough at idle—a shaking or vibration when you're stopped at a red light. The engine may also hesitate or stumble when you accelerate, especially from a stop. Some drivers report a noticeable loss of power or fuel economy that develops over a few days or weeks.

Hard starting is another common sign. The engine cranks normally but takes longer to fire up, or it may crank several times before catching. In some cases, the engine starts fine but stalls a few seconds later. If the sensor is completely dead, the engine may not start at all because the computer has no reference point for timing.

These symptoms overlap with other problems—a bad oxygen sensor, fuel injector issues, or a weak battery can cause similar behavior. That's why reading the fault code is essential. The code tells you exactly which component is reporting the problem.

How to read the fault code yourself

You'll need an OBD-II scanner, a handheld device that plugs into the diagnostic port under your steering wheel (a 16-pin connector that looks like a rectangular socket). Basic scanners cost $25 to $100 and are available at auto parts stores, online retailers, and big-box stores. Plug it in, turn the ignition to the "on" position without starting the engine, and follow the scanner's menu to read codes.

Write down every code that appears, not just the first one. A P0340 code is a strong indicator of a camshaft position sensor fault. Codes like P0011 (camshaft timing over-advanced) or P0014 (camshaft timing over-retarded) suggest the sensor may be working but something else—like a timing chain or variable valve timing system—is out of sync. A mechanic needs to see all the codes to diagnose correctly.

Many auto parts stores will read codes for free if you don't own a scanner. Call ahead to confirm, because not all locations offer this service. If you take that route, ask them to print out the codes so you have them in writing.

Physical inspection and testing

The camshaft position sensor is usually mounted on or near the cylinder head, often close to the camshaft sprocket or timing cover. On some engines it's straightforward to see; on others you'll need to remove air intake components or other parts to reach it. Look for the sensor itself—a small cylindrical or rectangular component with an electrical connector.

Check the connector for corrosion, loose pins, or water damage. A corroded connector can cause the same fault codes as a bad sensor. If the connector looks dirty or wet, disconnect it, clean the pins with a dry cloth or electrical contact cleaner, and reconnect it. Clear the fault code with your scanner and drive the vehicle to see if the code returns.

If the connector is clean and tight, the sensor itself is likely the problem. Testing the sensor requires an oscilloscope or multimeter set to measure AC voltage, which is beyond what most owners can do safely without training. A mechanic can test the sensor's output signal in seconds and confirm whether it's producing the correct voltage pattern.

When to replace the sensor versus investigating further

A camshaft position sensor costs $150 to $400 in parts and labor, depending on how accessible it is on your engine. Some vehicles have the sensor in an straightforward spot and labor takes 30 minutes; others require removing the intake manifold or timing cover, which can take 2 to 3 hours. Ask your mechanic for a labor estimate before authorizing the work.

Before you replace it, ask the mechanic to check the condition of the timing chain or belt, the oil level, and whether there's sludge buildup around the sensor. A timing chain that's stretched or loose can cause the camshaft to move out of sync, which triggers the same fault codes as a bad sensor. If the timing chain is the real problem, replacing only the sensor will leave you with the same symptoms.

Similarly, if the engine has low oil or heavy sludge, the sensor may have failed because of heat and contamination. Replacing the sensor without addressing the oil condition means it will likely fail again in a few thousand miles. A thorough mechanic will identify the root cause, not just swap the part.

Temporary workarounds and when to stop driving

There is no safe temporary fix for a bad camshaft position sensor. You can't clean it, adjust it, or bypass it. The engine computer needs accurate sensor data to run the engine safely. Driving on a completely failed sensor risks stalling in traffic, overheating the catalytic converter, or damaging the engine itself.

If the check engine light is on but the engine is running smoothly and starting normally, you have time to schedule a repair at your convenience—within the next few days or week. If the engine is stalling, hard starting, or losing power, stop driving it and have it towed to a mechanic. Continuing to drive increases the risk of a breakdown in an unsafe location and can cause secondary damage to emission control systems.

Do not ignore the check engine light hoping it will clear on its own. The fault code will remain stored in the computer's memory until a mechanic clears it after fixing the problem. Resetting the code without fixing the sensor just hides the problem temporarily; the light will come back on within a few hundred miles.

Frequently Asked Questions

Can a bad camshaft position sensor cause the engine to not start?

Yes. If the sensor is completely dead, the engine computer has no reference for when to fire the spark plugs, so the engine won't start at all. If the sensor is failing intermittently, the engine may start sometimes but stall seconds later. A completely non-starting engine with a P0340 code almost always points to a dead sensor.

Will a camshaft position sensor fail suddenly or gradually?

Usually gradually. You'll notice rough idle or hard starting for a few days or weeks before the check engine light appears. The sensor degrades from heat and age. Sudden failure is less common but can happen if the sensor gets wet, corroded, or damaged by debris. Once the light is on, the sensor is failing and needs replacement soon.

How much does it cost to replace a camshaft position sensor?

Parts typically run $50 to $200 depending on the vehicle make and model. Labor ranges from $100 to $300 depending on how accessible the sensor is. Total cost is usually $150 to $400. Luxury and import vehicles tend to cost more. Get a written estimate from your mechanic before authorizing the work.

Can I drive with the check engine light on if it's just the camshaft position sensor?

You can drive short distances if the engine is running smoothly, but don't delay the repair. A failing sensor can cause stalling, poor fuel economy, and damage to the catalytic converter over time. If the engine is rough, stalling, or hard to start, have it towed rather than driving it.

What if I replace the sensor and the check engine light comes back?

The new sensor may be defective, the connector may still be corroded, or the real problem may be something else—like a timing chain issue or a wiring fault. Tell your mechanic the light returned and ask them to re-scan the code. If it's the same code, the replacement sensor may be bad. If it's a different code, the underlying cause wasn't the sensor.