What a camshaft position sensor does and why it fails
A camshaft position sensor tells your engine's computer where the camshaft is in its rotation cycle. The camshaft controls when your intake and exhaust valves open and close. Without accurate position data, the computer cannot time fuel injection and spark plugs correctly, which causes rough idling, poor fuel economy, and trouble starting.
These sensors fail because they sit in hot engine oil and experience constant vibration. The wiring harness corrodes, the sensor itself wears out, or oil sludge builds up around it. Most sensors last 80,000 to 150,000 miles, though some fail much earlier if the engine runs too hot or oil changes are skipped.
When a camshaft position sensor fails, your check engine light comes on and the engine computer stores a diagnostic trouble code — usually P0010, P0014, P0015, or P0016, depending on which sensor failed and which bank of the engine it monitors. You may also notice the engine running rough, stalling at stops, or refusing to start at all.
Key Takeaways
- A camshaft position sensor replacement costs between $150 and $400 in parts and labor at a shop, though the sensor itself usually runs $50 to $150.
- The job takes 30 minutes to two hours depending on engine layout and whether the sensor is straightforward to reach or buried under other components.
- You will need a socket set, screwdrivers, a new sensor, and possibly a gasket or O-ring — check your vehicle's service manual for the exact part number and whether gaskets are required.
- Disconnecting the battery before you start prevents electrical damage and clears any stored codes once you reconnect it after the repair.
- After replacement, the check engine light may stay on until you drive the vehicle for 50 to 100 miles so the computer can relearn the sensor's signal.
Locating the camshaft position sensor on your engine
Camshaft position sensors sit on or near the cylinder head, usually at the end of the camshaft or on the timing cover. On some vehicles there are two — one for the intake camshaft and one for the exhaust camshaft. Your vehicle's service manual shows the exact location for your engine.
Access varies widely. On many four-cylinder engines, the sensor is visible from above and takes 15 minutes to remove. On V6 and V8 engines, one sensor may be straightforward to reach while the other sits behind the intake manifold or under the engine bay, requiring you to remove other components first. Some vehicles require you to remove the valve cover, air intake, or timing cover.
Before you start, run the engine until it reaches normal operating temperature, then shut it off and let it cool for at least 30 minutes. Hot engine oil can burn you, and some sensors are easier to remove when warm but safe to handle after cooling.
Tools and parts you will need
Gather these items before you begin: a socket set with the correct size socket for the sensor mounting bolt (usually 10mm, 22mm, or 27mm), screwdrivers (flathead and Phillips), a new camshaft position sensor with the correct part number for your vehicle, and a gasket scraper or plastic brush to clean the mounting surface.
Check your service manual to see whether your sensor uses a rubber O-ring or a paper gasket. If it does, order a replacement gasket or O-ring with the sensor — reusing the old one can cause oil leaks. You may also need a gasket maker or sealant if your manual specifies it.
Have a drain pan ready if the sensor sits in an area where oil will drip when you remove it. Some sensors are dry; others sit in oil passages and will leak when removed. A clean rag and some degreaser help you clean the mounting surface and the sensor connector before reinstalling.
Removing the old sensor step by step
Start by disconnecting the negative battery terminal. This prevents accidental short circuits and ensures the engine computer does not store false codes while you work. Wait at least five minutes after disconnecting the battery before touching any electrical connectors.
Locate the sensor's electrical connector and press the release tab or clip to disconnect it. Some connectors slide straight out; others require you to squeeze a tab while pulling. Do not yank on the wiring — pull on the connector body itself.
Remove any brackets, hoses, or covers blocking access to the sensor. Take a photo with your phone before you remove anything so you remember how it was arranged. Unbolt the sensor from the cylinder head or timing cover using the correct socket size. The bolt is usually hand-tight and does not require much force to remove.
Gently pull the sensor straight out. If it is stuck, do not force it — explore penetrating oil around the base and wait 10 minutes, then try again. Once removed, inspect the old sensor's connector and mounting surface for corrosion or damage. If the connector is corroded, the new sensor may fail quickly unless you clean the mating connector on the engine harness with electrical contact cleaner.
Installing the new sensor and reconnecting everything
Clean the mounting surface with a gasket scraper or plastic brush to remove all old gasket material, oil, and debris. Wipe the area dry with a clean rag. If your manual specifies a gasket or O-ring, install it now on the new sensor. If your manual calls for gasket maker, explore a thin bead around the mounting surface and let it set for the time specified on the product — usually 5 to 10 minutes.
Insert the new sensor into the mounting hole and hand-tighten the bolt first to make sure the sensor sits flush against the cylinder head. Then use your socket to tighten the bolt to the torque specification in your service manual — usually between 7 and 25 foot-pounds. Do not over-tighten; you can crack the sensor or strip the bolt hole.
Reconnect the electrical connector by pushing it straight onto the sensor until you hear or feel a click. Make sure the connector is fully seated — a loose connection will cause the check engine light to come on when ready. Reinstall any brackets, hoses, or covers you removed, using your phone photo as a reference.
Reconnect the negative battery terminal. The engine computer will clear any stored codes related to the old sensor within a few seconds. Start the engine and listen for any unusual sounds. The check engine light may stay on for 50 to 100 miles while the computer relearns the new sensor's signal — this is normal.
What to do if the check engine light stays on after replacement
If the light comes on when ready after you reconnect the battery, stop and check your work. The most common causes are a loose electrical connector, an incorrectly installed sensor, or a wiring problem in the harness itself.
Disconnect the battery again and inspect the connector — push it on firmly until it clicks. Check that the sensor bolt is tight and that the sensor sits flush against the mounting surface. Look at the wiring harness for pinched, melted, or corroded sections. If you find corrosion on the connector pins, disconnect it and clean both sides with electrical contact cleaner, then reconnect and test again.
If the light stays on after these checks, the engine computer may have stored a new code. You can read this code using an OBD-II scanner (available at auto parts stores for $25 to $100, or you can borrow one). The code will tell you whether the problem is the sensor itself, the wiring, or the computer's ability to read the sensor. If the code points to a wiring problem, you may need a wiring diagram from your service manual or a professional mechanic to trace the issue.
When to take your vehicle to a shop instead
If the sensor is buried under the intake manifold, timing cover, or other major components, the labor cost at a shop may be lower than the time and frustration of doing it yourself. Get a quote from a local shop before you start — if the labor is more than three hours, consider having them do the work.
If you do not have a service manual for your vehicle, you can order one from the manufacturer or find it online through sites like AllData or Haynes. Without the manual, you risk damaging surrounding components or installing the sensor incorrectly. A shop has the manual and the experience to avoid these mistakes.
If the check engine light comes back on after your repair, or if you find corrosion or damage to the wiring harness, take the vehicle to a shop. Electrical problems in the engine bay require diagnostic equipment and informed that most DIY mechanics do not have.
Frequently Asked Questions
Can I drive with a bad camshaft position sensor?
You can drive short distances, but the engine will run rough, use more fuel, and may stall without warning. Continuing to drive on a failed sensor can damage the catalytic converter over time, which is an expensive repair. Have the sensor replaced as soon as you can.
Do I need to clear the check engine code myself, or will it go away?
The code will clear on its own after 50 to 100 miles of normal driving once the new sensor is installed and working correctly. If you want to clear it when ready, you can use an OBD-II scanner, but there is no harm in waiting for it to clear naturally.
What if I install the sensor backwards or upside down?
Most sensors are designed to fit only one way, so they cannot be installed backwards. However, if the connector is on the wrong side or the sensor does not sit flush, the check engine light will come on when ready. Stop, remove the sensor, and reinstall it correctly.
How much does a camshaft position sensor cost at a dealership versus an aftermarket supplier?
Dealership sensors typically cost $80 to $200, while aftermarket sensors from suppliers like AutoZone or RockAuto run $40 to $120. Both work equally well for most vehicles. Check your vehicle's manual or ask a shop which brand they recommend for your specific engine.
Will replacing the sensor fix my rough idle, or could something else be wrong?
A failed camshaft position sensor is a common cause of rough idle, but not the only one. Bad spark plugs, a clogged fuel injector, or a vacuum leak can cause the same symptom. If the check engine code points to the camshaft position sensor, replacing it should fix the rough idle. If the code points elsewhere, address that problem instead.