Engine · Cutaway inline-four

What does a camshaft position sensor do?

A camshaft position sensor reads a toothed target on a camshaft and tells the engine computer which stroke each cylinder is on, so it can time each injector, and often each coil, to its own cylinder. A failing one causes hard starting, stalling, rough running and the check engine light, though most engines keep running in a fallback mode.

Also called cam sensor, CMP sensor

Updated 4 minute read

The camshaft position sensor lit in the app's 3D model of the engine, with the rest of the assembly darkened
  1. Camshaft position sensor
  2. Exhaust camshaft
  3. Intake camshaft
Rendered from the app's 3D model.

How does a camshaft position sensor work?

A piston at the top of its travel could be ending its compression stroke or its exhaust stroke, and the crankshaft sits in the same place for both. The camshaft turns at half the crankshaft's speed, so it sits in a different place for each, and a sensor that reads it tells the two apart. In the app's engine the sensor sits at the flywheel end of the cylinder head and reads a target with three teeth on the exhaust camshaft.

With that signal the engine computer opens each injector just before its own cylinder draws in air, which is called sequential injection, and fires each coil once per cycle. Engines with variable valve timing also compare the camshaft and crankshaft signals to measure how far a cam phaser has turned its camshaft, so they often have a sensor on each phased camshaft.

Most are sealed Hall-effect sensors, powered by the engine computer, that switch on and off as each tooth passes; some older ones are magnetic pickups. Neither has moving parts, so most failures come from heat, oil seeping into the connector and damaged wiring.

What are the symptoms of a bad camshaft position sensor?

  • Hard starting or long cranking. Without the camshaft signal, many engines crank for longer while the computer works out which stroke each cylinder is on, or fall back to firing the injectors in pairs.
  • Stalling or cutting out. A sensor that fails when hot can stall the engine, then work again once it has cooled.
  • Rough running and lost power. Fuel timed to the wrong stroke, or a fallback mode, makes the engine run rough, hesitate and feel flat. Why is my car idling rough?
  • The check engine light. A code for the sensor's circuit is often the first sign. A code for the camshaft and crankshaft signals not agreeing can mean the sensor, but also a stretched timing chain.
  • Worse fuel economy. Injectors fired in pairs in a fallback mode waste fuel, so the miles per gallon drop.

Can you drive with a bad camshaft position sensor?

Have it checked before you drive far

Usually, gently, as far as a repair shop. Most engines keep running on the crankshaft sensor alone, in a fallback mode with the check engine light on and less power. Some will not restart once switched off, and a sensor that cuts out can stall the engine in traffic, so don't set off on a long drive. If the check engine light is flashing or the engine shakes badly, that is a misfire: pull over and switch off.

Is it the sensor or the timing?

A code for the camshaft and crankshaft signals not agreeing does not always mean a bad sensor. The two signals also disagree when the camshaft itself is out of step with the crankshaft: a timing chain that has stretched or jumped a tooth, a worn chain tensioner or a cam phaser that sticks. A new sensor will not cure that, so a good shop checks the timing first, often by comparing the two signals on a scope. A rattle for a few seconds after a cold start points the same way, and the engine rattle page covers it.

How does it work with the crankshaft sensor?

The crankshaft sensor gives the engine speed and the exact angle of the crankshaft, many times each turn; the camshaft sensor adds one more fact, which half of the cycle the engine is in. Together they let the computer time every spark and every injection to the right cylinder. That is why most engines run without the camshaft signal, more roughly, but few run without the crankshaft’s, as the crankshaft position sensor page explains.

In the app’s engine the sensor and the exhaust camshaft’s target sit side by side at the flywheel end of the head, and the camshafts turn once for every two turns of the crankshaft, as the four-stroke engine guide describes.

What does replacing a camshaft position sensor involve?

  1. Read the fault codes, and check the sensor's connector and wiring, which fail as often as the sensor.
  2. If the code is for the camshaft and crankshaft signals not agreeing, have the timing checked before buying a sensor, since a stretched chain or a sticking cam phaser sets the same code.
  3. Disconnect the battery, unplug the sensor, take out its bolt and ease it out of its bore with a slight twist.
  4. Look at the tip for oil or metal debris, and wipe the bore clean.
  5. Install the new sensor with a new O-ring, fully seated, and reconnect it, keeping its wire clear of hot and moving parts.
  6. Clear the codes and start the engine. Some cars also need a relearn with a scan tool.

Tighten every nut and bolt to the torque spec in the manufacturer's service manual for your car.

On many engines a short, simple repair, with the sensor on top of the cylinder head, the valve cover or the timing cover; on V engines there is often one per cylinder bank. Fit the sensor made for the engine, since the length of its tip sets its gap to the target.

Questions people ask

Can a bad camshaft position sensor cause a no start?

Sometimes. Many engines still start, after a longer crank, by working out the stroke from the crankshaft signal alone. Others will not, and a sensor shorted inside can pull down the supply the computer shares with other sensors, the crankshaft sensor among them, which stops the engine from starting at all.

Where is the camshaft position sensor located?

Usually on the cylinder head, the valve cover or the timing cover, at whichever end of the camshaft carries its target. In the app's engine it sits at the flywheel end of the head, on the exhaust side.

What do the camshaft position sensor codes mean?

Codes from P0340 on point to the sensor's circuit: the sensor, its wiring or its connector. P0016 and its neighbors mean the camshaft and crankshaft signals disagree, which can also be a stretched timing chain, a worn tensioner or a sticking cam phaser.

Related

Parts nearby

  • What does a crankshaft position sensor do? A crankshaft position sensor reads a toothed ring on the crankshaft and tells the engine computer how fast the engine is turning and exactly where each piston is.
  • What does a camshaft do? A camshaft opens the engine's valves. It is a shaft with an egg-shaped lobe for each valve, turned by the timing chain or belt at half the crankshaft's speed, so each valve opens once per four-stroke cycle at exactly the right moment.
  • What does a timing chain do? A timing chain links the crankshaft to the camshafts, so the valves open and close in step with the pistons.
  • What do piston rings do? Piston rings are the split metal rings in grooves around each piston.

The whole system

3D Mechanic app icon

3D Mechanic Watch your engine run in 3D

Get the app