What a camshaft position sensor does and why it fails

Your camshaft position sensor tells your engine's computer where the camshaft is in its rotation cycle. The computer uses that signal to time fuel injection and spark plug firing correctly. When the sensor fails, your engine can't synchronize these events, so you'll see a check engine light, rough idle, poor fuel economy, or trouble starting.

The sensor sits on or near the cylinder head, usually close to the camshaft itself. It reads a tone ring or reluctor ring on the camshaft and sends a voltage signal to the engine control module. Over time, the sensor's internal electronics wear out, or dirt and oil buildup on the tone ring makes the signal weak or intermittent.

Replacement is straightforward on most vehicles — the sensor itself costs $40 to $150, and the job takes 30 minutes to two hours depending on engine layout and how much you have to remove to reach it.

Key Takeaways

  • The camshaft position sensor sits on the cylinder head and signals the engine computer about camshaft timing; a failed sensor triggers a check engine light and rough running.
  • You will need a socket set, screwdrivers, possibly a gasket scraper, and the correct replacement sensor for your vehicle's year, make, and model.
  • Disconnect the negative battery terminal before you start, then unplug the sensor connector, unbolt the sensor, and install the new one in reverse order.
  • Some vehicles require you to remove the valve cover or other components first; check your service manual or a repair guide specific to your car before you begin.
  • If the check engine light returns after replacement, the tone ring may be dirty, the wiring may be damaged, or the engine control module may need reprogramming.

Gather the right tools and the correct sensor

Before you start, confirm which camshaft position sensor your vehicle needs. The sensor varies by engine size, year, and sometimes even transmission type. Look up your vehicle's year, make, model, and engine size on a parts retailer's website, or ask at an auto parts store with your VIN. Buy the sensor that matches your specific vehicle — a sensor for a 2015 Honda Civic will not work on a 2015 Honda Accord, even though they look similar.

Gather a socket set (usually 8 mm to 14 mm), a screwdriver set, and a gasket scraper or plastic pry tool. Some sensors bolt on with one or two fasteners; others slide into a bore and lock with a clip. Check your vehicle's service manual or a repair guide like Haynes or AllData to see which type yours is and what size socket you'll need. You may also need a gasket or O-ring if your sensor uses one — some do, some don't.

Disconnect the battery and locate the sensor

Turn off the engine and let it cool for at least 15 minutes. Open the hood and locate the negative battery terminal — it's marked with a minus sign and usually has a black cable. Loosen the terminal nut with a wrench and slide the cable off the post. This prevents accidental short circuits while you work.

Now find the camshaft position sensor. On most vehicles, it bolts to the top of the cylinder head near the front or rear of the engine, or it screws into a bore on the head itself. Consult your service manual or a repair guide to pinpoint its location on your specific engine. Take a photo of the sensor and its connector before you touch anything — it helps you remember the orientation when you install the new one.

Remove the old sensor

Unplug the electrical connector from the sensor by pressing the release tab or clip and pulling straight back. Some connectors are tight; wiggle gently rather than yank. If the connector is stuck, spray a small amount of penetrating oil around the base and wait a few minutes.

Unbolt the sensor using the correct socket or wrench. Most sensors use a single bolt, though some use two. Keep the bolt in a safe place — you'll reuse it. If the sensor is threaded into a bore rather than bolted on, turn it counterclockwise by hand or with a wrench until it comes free. Some sensors have an O-ring or gasket; if it sticks to the head, scrape it off gently with a plastic tool so you don't gouge the mounting surface.

Inspect the mounting hole or bore. If you see oil, dirt, or corrosion, wipe it clean with a dry cloth. If the tone ring on the camshaft is visible and looks dirty or oily, you can clean it with a soft brush and a small amount of brake cleaner — but do not scrub hard or use abrasive materials.

Install the new sensor and reconnect

If your new sensor came with a gasket or O-ring, install it now. Some sensors have the gasket pre-installed; others require you to slide it on by hand. Check the packaging or instructions that came with the sensor.

Insert the new sensor into the mounting hole or bore and hand-tighten the bolt first. Once you're sure it's seated correctly and not cross-threaded, tighten the bolt with a socket wrench. Most camshaft position sensors bolt down with 15 to 25 foot-pounds of torque — check your service manual for the exact spec. Do not over-tighten; you can crack the sensor body or strip the threads.

Plug the electrical connector back in. You should hear or feel a click when it seats fully. Reconnect the negative battery terminal by sliding the cable back onto the post and tightening the nut.

Clear the check engine light and test

Start the engine and listen for rough idle or unusual noises. The engine should start normally and idle smoothly. If you have a code reader or scanner, connect it to the diagnostic port under the steering column and read the fault codes. If the camshaft position sensor code is gone, the replacement worked.

If the check engine light is still on or the code returns, the problem may be elsewhere. The tone ring on the camshaft could be dirty or damaged, the wiring harness could be pinched or corroded, or the engine control module may need to relearn the sensor signal. In those cases, consult a repair manual specific to your vehicle or have a technician diagnose further.

You can clear the code yourself with a code reader, or it may clear on its own after a few drive cycles. If you clear it and it comes back within a few miles, do not ignore it — there is a real fault that needs attention.

When to call a technician instead

If the sensor is in a tight spot — buried under the intake manifold, tucked behind the engine bay, or in a location that requires removing multiple components — the job becomes much longer and more complex. Some vehicles require you to remove the valve cover, timing cover, or other major parts just to reach the sensor. In those cases, labor costs can exceed parts costs quickly.

If you don't have a service manual for your specific vehicle, or if you're unsure about bolt torque specs or connector orientation, ask a technician or consult a repair database like AllData or Haynes before you start. A mistake in torque or orientation can damage the sensor or the engine control module.

Frequently Asked Questions

How do I know if my camshaft position sensor is bad?

A check engine light with a camshaft position sensor code (usually P0010, P0014, P0015, or P0016) is the clearest sign. You may also notice rough idle, hard starting, poor fuel economy, or the engine stalling while driving. A code reader can confirm the fault before you buy a replacement.

Can I drive with a bad camshaft position sensor?

You can drive short distances, but the engine will run rough and may stall. Fuel economy will suffer, and the engine may not start reliably. Do not drive long distances or at highway speeds until the sensor is replaced — the engine can overheat or damage itself if timing is too far off.

Do I need to replace both camshaft position sensors if I have two?

Not necessarily. Replace only the one that is faulty. If your vehicle has dual camshafts (intake and exhaust), each has its own sensor. A code reader will tell you which one is failing. Replace only that one unless the other is also showing a fault code.

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

The tone ring on the camshaft may be dirty or damaged, the wiring may be corroded or pinched, or the engine control module may need to relearn the sensor. Check the wiring harness for damage, clean the tone ring if you can reach it, and try clearing the code again. If it returns, consult a repair manual or technician.

How much does a camshaft position sensor cost?

The sensor itself usually costs $40 to $150 depending on the vehicle and brand. OEM sensors are more expensive than aftermarket ones. Labor at a shop ranges from $100 to $400 depending on how hard the sensor is to reach on your specific engine.