Basics
The camshaft position sensor (CMP) sits on each cylinder head of the WRX's flat-four boxer engine and counts gear teeth on the cam to report its angle to the engine control unit (ECU). (Wikipedia)
Together with the crankshaft sensor, it sets fuel-injector timing and spark advance so power and mileage stay on target. (Wikipedia)
How It Works
Most Subaru CMP sensors are Hall-effect devices that create a digital on/off signal as the cam gear passes a magnet. (Wikipedia)
The ECU watches both cam and crank signals; if they drift too far apart, it stores timing-correlation codes such as P0016 or P0017. (clubwrx.net)
Sensor Locations
On 2015-2021 WRX and WRX STI models (FA20DIT or EJ257 engines), there are four sensors-two per head:
Failure Signs
Quick Tests
Replacement Steps
Specs & Facts
| Item | Value | Source |
| Sensor type | Hall-effect, 3-wire | |
| Resistance | 1 kΩ - 4 kΩ | |
| Bolt torque | 6.4 Nm (0.65 kgf-m) | |
| Typical lifespan | 100k-150k mi |
← scroll table horizontally →
Maintenance Tips
Keep engine oil clean; sludge can block AVCS passages and trigger false cam-sensor codes. (static.nhtsa.gov)
Inspect harness connectors for oil wicking or broken clips during every spark-plug change (60 k mi). (Reddit)
Frequently Asked Questions
Q: Why does my WRX show code P0340 right after an oil change?
A: If oil drips into the sensor connector, it can short the signal. Clean the plug and clear the code.
Q: Can I keep driving with a bad cam sensor?
A: The car may run, but power and fuel economy suffer, and it could stall at lights-replace it soon. (familyhandyman.com)
Q: How many cam sensors does a 2015-2021 WRX have?
A: Four-one for each intake and exhaust camshaft on both cylinder heads. (Reddit)
Q: Is the cam sensor the same part as the crank sensor?
A: No; they look alike but read different toothed wheels and are not interchangeable.
Q: What tools do I need to change it?
A: Only a 10 mm socket, small ratchet, and torque wrench for the bolt. (YouTube)
Q: Will a failing cam sensor hurt my turbo?
A: Not directly, but bad timing can cause misfires that raise exhaust temps, which may strain the turbo. (clubwrx.net)
Q: Do aftermarket performance cams need different sensors?
A: No, but you may need ECU tuning so the new cam profile aligns with the factory timing map. (Wikipedia)
By understanding how the Subaru WRX camshaft position sensor works, spotting early warning signs, and following the easy replacement guide, you can keep your boxer engine happy and healthy for years to come.
Your Go-To Place for Auto Parts!
Shop with confidence and peace of mind
Over 18 years of excellence
Meets or exceeds OE standards