What a camshaft position sensor does and why it fails
A camshaft position sensor tells your engine's computer where the camshaft is at any given moment. The camshaft controls when your engine's intake and exhaust valves open and close. Without accurate position data, your engine cannot time the spark plugs or fuel injectors correctly, so the car runs rough, uses more fuel, or won't start at all.
These sensors fail because they sit in hot engine oil and endure constant vibration. The wiring corrodes, the sensor tip gets coated with sludge, or the internal electronics straightforward wear out. When one fails, your check engine light comes on and you'll see a code like P0010, P0014, P0015, or P0016 — all pointing to camshaft position problems.
Replacing one is a job you can do yourself if you have basic tools and some mechanical confidence, though the exact steps and difficulty depend on your vehicle's make, model, and engine layout.
Key Takeaways
- A camshaft position sensor sits near the camshaft and tells the engine computer when to fire spark plugs and inject fuel.
- Replacement usually takes 30 minutes to two hours depending on engine design and how accessible the sensor is.
- You will need a socket set, screwdrivers, a new sensor (specific to your vehicle), and possibly a gasket or O-ring.
- The sensor connector unplugs, the mounting bolt comes out, and the old sensor slides free — then reverse the steps with the new one.
- If the new sensor doesn't clear the check engine code, the wiring harness or engine computer may be the real problem.
Locate the sensor on your specific vehicle
Camshaft position sensors live in different places depending on your engine. On many vehicles, one or two sensors bolt to the top of the engine near the valve cover. On others, they're tucked inside the valve cover itself. Some sit at the front of the engine near the timing chain or belt. A few are mounted on the cylinder head at the rear.
The best way to find yours is to look up your vehicle's year, make, and model in a repair manual — either a printed Haynes or Chilton manual from an auto parts store, or a free online resource like AllData or YourMechanic's DIY guides. The manual will show you exactly where the sensor is, how many you have (some engines have two or even four), and which one is causing your specific trouble code.
Once you've located it, take a photo with your phone so you remember the orientation and how the wiring harness connects.
Disconnect the battery and remove the old sensor
Before you touch anything electrical, disconnect the negative terminal of your battery. This prevents accidental shorts and protects the engine computer. Use a wrench to loosen the nut on the negative battery post, then slide the cable off and tuck it away so it can't touch the post again.
Next, unplug the sensor's electrical connector by squeezing or prying the tab (depending on the connector type) and pulling straight out. Some connectors are stiff — wiggle gently rather than yanking hard. Take a photo of how the connector sits so you don't reverse it when you plug in the new sensor.
Now remove the mounting bolt. Most sensors have one bolt that holds them in place; use the correct socket or wrench size so you don't strip it. Once the bolt is out, the sensor should slide free. If it's stuck, tap it gently with a rubber mallet or explore penetrating oil and wait a few minutes. Do not pry with a screwdriver — you can damage the mounting surface.
Inspect the mounting surface and install the new sensor
Before you install the new sensor, look at where it was mounted. If there's an old rubber O-ring or gasket stuck to the engine, scrape it off gently with a plastic scraper or old credit card. Leftover debris can prevent the new sensor from seating properly and cause it to fail quickly.
Check the new sensor against the old one to make sure they're identical — same connector type, same length, same mounting style. If they don't match, you may have ordered the wrong part.
Slide the new sensor into the mounting hole and hand-tighten the bolt first. Once you're sure it's seated straight, tighten the bolt to the torque specification in your repair manual — usually between 7 and 18 foot-pounds depending on the vehicle. Don't over-tighten; you can crack the sensor or strip the bolt hole.
Reconnect the wiring and clear the code
Plug the electrical connector back in until you hear or feel it click. Make sure it's fully seated — a loose connection will trigger the check engine light again when ready.
Reconnect the negative battery terminal and tighten the nut. Start the engine and let it run for a minute. The check engine light may stay on for a few seconds while the computer runs its self-test, then turn off. If it stays on after 30 seconds, turn the engine off and check that the connector is fully seated.
If the light is still on after a second start, you can clear the code yourself using an OBD-II scanner (available at auto parts stores for $25 to $100, or you can borrow one). Plug the scanner into the diagnostic port under the steering wheel, select "clear codes," and follow the prompts. Drive the car for 10 to 15 minutes to let the computer run through its test cycle. If the code comes back, the wiring harness or computer is likely the problem, not the sensor.
When to call a mechanic instead
If the sensor is buried deep inside the engine or under other components, removal can take three to five hours even for an experienced mechanic. If your vehicle requires removing the valve cover, intake manifold, or timing cover, the labor cost often exceeds the cost of the sensor itself, and the risk of damaging gaskets or seals goes up.
You should also have a mechanic handle it if you don't have a repair manual for your specific vehicle, if the mounting bolt is seized or stripped, or if you're not comfortable working around the engine bay. A shop visit typically costs $150 to $400 in labor depending on location and how hard the sensor is to reach.
What to do if the new sensor doesn't fix the problem
If you've installed a new sensor and the check engine light returns with the same code, the problem is upstream of the sensor itself. The wiring harness between the sensor and the engine computer may be corroded, pinched, or damaged. The connector may be loose or corroded. Or the engine computer itself may have a fault.
Use an OBD-II scanner to read the exact code again. If it's the same code, take the car to a mechanic with a scope or advanced diagnostic equipment. They can test the wiring harness for continuity, check the connector pins for corrosion, and test the computer's input signal. This usually costs $75 to $150 in diagnostic time and will point you to the real culprit.
Frequently Asked Questions
How much does a camshaft position sensor cost?
The sensor itself typically costs $40 to $150 depending on your vehicle's make and model. OEM (original equipment) sensors are more expensive than aftermarket ones, but often last longer. If you're having a shop install it, add $150 to $400 in labor depending on how accessible the sensor is on your engine.
Can I drive with a bad camshaft position sensor?
You can drive short distances, but the engine will run poorly — rough idle, hesitation during acceleration, poor fuel economy, and hard starting. Continuing to drive can damage the catalytic converter over time. It's better to replace it as soon as the check engine light appears.
Do I need to replace the gasket or O-ring?
Most sensors come with a new O-ring or gasket included in the box. If yours doesn't, buy one separately — they cost $2 to $5. Always use a new seal; reusing the old one can cause oil leaks or sensor failure.
What if I have multiple camshaft position sensors?
Your engine may have two, three, or even four sensors depending on the design. The check engine code will tell you which one is failing — P0010 and P0014 are intake sensors, P0015 and P0016 are exhaust sensors. Replace only the one that's throwing the code unless the others are also old and showing signs of wear.
Will replacing the sensor reset my check engine light?
No — you have to clear the code manually with an OBD-II scanner or by disconnecting the battery for 15 minutes. However, if the new sensor fixes the problem, the code won't come back after you clear it and drive the car through a normal test cycle.