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 this information to time fuel injection and spark plug firing precisely. When the sensor fails, your engine can't synchronize these events, so you'll see a check engine light, rough idle, hard starting, or poor fuel economy.
These 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. Oil leaks, corrosion on the connector, and vibration can speed up failure. Unlike some engine repairs, this one is usually straightforward enough for a home mechanic with basic tools.
Key Takeaways
- The camshaft position sensor screws into the cylinder head or cam cover and connects to a two- or three-pin electrical connector that you unplug first.
- You will need a socket wrench (usually 22mm or 27mm), a new sensor, and possibly a gasket or O-ring, depending on your vehicle's design.
- The job takes 15 minutes to an hour depending on engine layout and how accessible the sensor is in your specific vehicle.
- After installation, the check engine light may stay on for a few drive cycles while the computer relearns; it should clear on its own.
- If the light returns after replacement, the wiring harness or connector may be damaged, and you should have the code read again at a shop.
Locate the sensor and gather your tools
The camshaft position sensor is mounted on or near the cylinder head, usually close to the camshaft or timing chain cover. On some vehicles it's straightforward to spot; on others it's tucked behind the intake manifold or air filter housing. Check your owner's manual or a repair manual for your specific make and model—the location varies widely.
Gather a socket set (the sensor usually needs a 22mm or 27mm socket, but confirm for your vehicle), a ratchet, possibly an extension bar, a new sensor, and a gasket or O-ring if your vehicle uses one. Have a clean rag nearby. You may also want a gasket scraper to remove the old gasket, though be gentle so you don't gouge the mounting surface.
Disconnect the battery and unplug the sensor
Disconnect the negative terminal of your battery first. This prevents accidental short circuits while you're working near electrical connectors. Wait a few minutes for the engine to cool if you've been driving—the sensor and surrounding metal will be hot.
Locate the electrical connector on the sensor. It will have a clip or tab you squeeze or pull to release it. Unplug it gently; don't yank on the wires themselves. If the connector is stuck, wiggle it side to side while pulling. Once unplugged, set it aside where it won't get dirty or damaged.
Remove the old sensor
Position your socket wrench on the sensor's hex head. Turn counterclockwise to loosen it, then unscrew it by hand once it's loose enough. Some sensors come out straight; others need a slight twist or angle. If it's stuck, explore penetrating oil and wait 10 minutes, then try again—don't force it and crack the mounting boss.
Once the sensor is out, inspect the mounting hole. If there's a gasket or O-ring still stuck in the hole, remove it with your gasket scraper or a plastic scraper. Wipe the hole clean with a rag. If oil is pooling in the hole, you may have a valve cover gasket leak that should be addressed separately, but the sensor replacement itself can still proceed.
Install the new sensor and reconnect
If your new sensor came with a gasket or O-ring, install it now—some sensors have it pre-installed, others don't. Check the instructions that came with the part. Thread the sensor into the hole by hand first to avoid cross-threading, then use your socket wrench to tighten it. Snug it firmly but don't over-tighten; you're aiming for hand-tight plus a quarter turn with the wrench.
Plug the electrical connector back in until you hear or feel it click. Reconnect the negative battery terminal. Start the engine and listen for any unusual sounds. The check engine light may stay on for a few drive cycles as the computer relearns the sensor signal—this is normal. Drive normally for 50 to 100 miles and the light should clear.
Troubleshooting if the light returns
If the check engine light comes back after a few days of driving, the problem may not be the sensor itself. The wiring harness could be damaged, the connector could be corroded, or the computer may have detected a different fault code. Have the code read again at an auto parts store (many do this free) or a shop to see what it says.
If the code is the same as before, the new sensor may be defective—return it and try another. If it's a different code, the issue is elsewhere in the ignition or fuel system, and you should consult a mechanic. Don't ignore a persistent check engine light, as it can affect fuel economy and engine performance over time.
When to call a professional
If the sensor is stuck and won't budge after penetrating oil and patient effort, stop and take the vehicle to a shop. Forcing it risks breaking the mounting boss, which is an expensive repair. Similarly, if your engine layout is so tight that you can't reach the sensor safely, or if you're not comfortable working around electrical connectors, a mechanic can do this job quickly and inexpensively.
Some vehicles have multiple camshaft position sensors—one for the intake cam and one for the exhaust cam. If your check engine code points to a second sensor, you may need to replace both. A shop can read the full diagnostic and tell you what needs attention.
Frequently Asked Questions
How much does a camshaft position sensor cost?
Sensors typically range from $30 to $150 depending on your vehicle's make and model. OEM (original equipment) sensors are usually more expensive than aftermarket ones, but both are generally reliable. Labor at a shop usually runs $100 to $300, so doing it yourself saves that cost.
Can a bad camshaft position sensor damage my engine?
A failed sensor won't cause when ready engine damage, but it will cause rough running, poor fuel economy, and hard starting. Driving on a bad sensor for a long time can strain other components and increase emissions. Replace it as soon as you see the check engine light to avoid compounding problems.
Do I need to clear the check engine code myself?
No. After you replace the sensor and drive normally for a few cycles, the computer will clear the old code on its own. If you want to clear it when ready, you can disconnect the battery for 15 minutes, but this will also erase other stored codes that a mechanic might want to see. It's usually better to let it clear naturally.
What if my vehicle has two camshaft position sensors?
Many modern engines have one sensor per camshaft—one for intake and one for exhaust. If your check engine code specifies which one failed, replace only that one. If both codes appear, both sensors may be failing, which is less common but possible on older, high-mileage vehicles.
Can I drive with a bad camshaft position sensor?
You can drive short distances, but the engine will run poorly and use more fuel. Some vehicles will enter a "limp home" mode that limits engine speed to protect itself. It's not safe to drive long distances on a bad sensor, and you risk stalling or not starting at all. Replace it as soon as you can.