What a camshaft sensor does and why it fails
A camshaft sensor (also called a cam sensor) tells your engine's computer where the camshaft is positioned at any given moment. The computer uses this information to time fuel injection and spark plug firing precisely. When the sensor fails, your engine can't synchronize these events, which triggers the check engine light and often causes rough idle, poor fuel economy, or difficulty starting.
Camshaft sensors fail because they sit in a hot engine bay and wear out over time—typically between 80,000 and 150,000 miles, though some last longer and some fail earlier. They can also fail if oil leaks onto them or if the connector corrodes. Unlike some electrical parts, there's no way to repair a failed sensor; you have to replace it.
Key Takeaways
- A camshaft sensor replacement takes one to three hours depending on engine layout and your mechanical skill, and costs $150 to $400 in parts and labor at a shop.
- You will need a socket set, screwdrivers, possibly a jack and jack stands if the sensor is underneath the engine, and an OBD-II scanner to confirm the sensor is the problem before you start.
- The sensor bolts or clips to the camshaft housing or cylinder head; you disconnect the electrical connector, remove the fastener, and install the new sensor in reverse order.
- After installation, clear the check engine code with your scanner or by disconnecting the battery for 15 minutes, then test-drive to confirm the light stays off.
Confirming the camshaft sensor is actually the problem
Before you buy a sensor or start taking things apart, plug an OBD-II scanner into the diagnostic port under your steering wheel (it looks like a rectangular slot about two inches wide). The scanner reads the fault code stored in your engine computer. Camshaft sensor codes typically show as P0010, P0014, P0015, or P0340, depending on which sensor (intake or exhaust cam) is failing and which bank of cylinders it's on.
If you see a different code—for example, a timing chain code or a crankshaft sensor code—the problem is elsewhere. Many shops will scan for free; if you don't have a scanner, this is worth the 15-minute trip. A cheap handheld scanner costs $25 to $60 and pays for itself the first time you avoid replacing the wrong part.
Locating the sensor and gathering tools
Camshaft sensors sit on or near the cylinder head, usually at the front or rear of the engine. On some vehicles they're straightforward to reach; on others they're tucked behind the intake manifold or under the engine. Check your vehicle's service manual or a repair database like AllData or Haynes to find the exact location on your model. Take a photo of the sensor before you remove it so you can see how the connector and fastener are oriented.
You'll need a socket set (usually 8mm to 13mm sockets), screwdrivers (Phillips and flat-head), and possibly a jack and jack stands if the sensor is on the underside of the engine. If the sensor is corroded or stuck, a penetrating oil like PB Blaster, applied 30 minutes before you start, makes removal easier. Have a new gasket or O-ring on hand if your sensor uses one; some do, some don't—check the parts diagram.
Removing the old sensor
Disconnect the negative terminal of your battery first. This prevents electrical shorts and protects the engine computer. Then locate the electrical connector on the sensor and press the release tab (usually a small plastic clip) to unplug it. Some connectors are tight; wiggle gently rather than pulling hard.
The sensor itself is held in place by one bolt or clip. Use the correct socket or screwdriver to avoid stripping the fastener. Once the bolt is out, the sensor should slide or twist out of its housing. If it's stuck, explore more penetrating oil and wait another 15 minutes, then try again. Do not force it—a broken sensor stuck in the hole is much harder to remove than a stubborn one.
Installing the new sensor
Before you install the new sensor, inspect the hole where it goes. If there's debris, oil buildup, or corrosion, wipe it clean with a lint-free cloth. If the old sensor had an O-ring or gasket, remove it and discard it. Install the new gasket or O-ring that came with the replacement sensor (if applicable) by pressing it onto the sensor body.
Slide the new sensor into the hole and hand-tighten the bolt first to make sure the sensor is seated straight. Then use your socket to tighten it to the torque specification in your service manual—usually 15 to 25 foot-pounds. Over-tightening can crack the sensor housing; under-tightening can cause a loose connection and a recurring fault code. Reconnect the electrical connector until you hear or feel it click into place.
Clearing the code and testing
Reconnect the negative battery terminal. If you have an OBD-II scanner, plug it in and select "Clear Codes" or "Erase Codes." If you don't have a scanner, disconnect the negative battery terminal again and leave it disconnected for 15 minutes. This drains the computer's memory and clears the fault code. Reconnect the battery.
Start the engine and let it idle for two minutes. The check engine light should not come on. Take the vehicle for a 10-minute test drive at normal speeds. If the light stays off, the replacement was successful. If the light comes back on when ready or within a few miles, the new sensor may be defective, the connector may not be fully seated, or there may be a wiring problem. Rescan with your OBD-II tool to see if the same code returns or if a different code appears.
When to take it to a shop instead
If the sensor is located behind the intake manifold, under the timing cover, or in another spot that requires removing multiple components, the labor time jumps to three to five hours. At that point, a shop's hourly rate often makes more sense than doing it yourself. Similarly, if you don't have a scanner and can't confirm the fault code, paying a shop $100 to $150 for a diagnostic scan is cheaper than guessing and replacing the wrong part.
If you remove the sensor and find the hole is stripped, the connector is damaged, or there's oil leaking from the camshaft housing, stop and take the vehicle to a shop. These are signs of a larger problem that needs professional attention.
Frequently Asked Questions
Can a bad camshaft sensor damage the engine?
A failed camshaft sensor won't cause when ready engine damage, but it will cause rough running, poor fuel economy, and difficulty starting. Driving on a bad sensor for a long time can increase emissions and wear on the catalytic converter, so it's worth fixing sooner rather than later.
Do I need to replace both camshaft sensors at once?
Only if both are failing. If your scanner shows a code for only one sensor, replace only that one. If you replace one and the check engine light comes back on with a code for the other sensor, then replace the second one. Replacing parts that aren't broken wastes money.
What if the new sensor throws the same code when ready?
First, make sure the connector is fully seated and the bolt is tight. Then rescan to confirm the code is the same. If it is, the new sensor may be defective (rare but possible), or there may be a wiring problem between the sensor and the computer. At this point, a shop with a wiring diagram can trace the circuit and find the real issue.
How much does a camshaft sensor cost?
The sensor itself costs $40 to $150 depending on the vehicle. Labor at a shop typically runs $100 to $250. If the sensor is straightforward to reach, you might pay $150 to $250 total; if it's buried in the engine, you might pay $300 to $400 or more.
Can I drive with the check engine light on?
You can drive short distances, but the vehicle will run rough and use more fuel. Many states won't pass emissions testing with the light on. It's better to fix it within a few days rather than waiting weeks.