What P0340 means on this engine
Cam sensor.
The camshaft sensor tells the computer which cylinder is next to fire. Its signal is missing or doesn't line up with the engine. It's usually the sensor or its wiring, and less often a timing problem behind it.
- The usual suspects
- Sensor or wiring.
- What you'll notice
- Long cranking before the engine starts, rough running, less power, sometimes stalling.
Can you keep driving?
On this engine: you can drive gently, but get it checked this week.
Usually yes, for a short time. The engine can run without this signal but starts poorly and may stall, so fix it soon.
The part behind it: Crankshaft and camshaft sensors
- What it does
- Tell the computer engine speed and position.
- Why it fails
- Sensor or wiring faults.
- Other signs you'll notice
- Stalls, hard start, no start.
In the full guide for this engine
- How to check it yourself, step by step
- What fixes it, and who should fix it: you, a shop or a mechanic
- Where the part sits on a 3D engine you can turn
- The exact part to ask for
Know this about your engine
The one rule for this engine: watch for head gasket leaks and keep the timing belt on schedule. The EJ25 is famous for head gaskets that leak — usually oil or coolant seeping out the bottom of the heads first. Catch it early; if it starts to overheat or loses coolant fast, stop driving. If the belt (or a seized idler) fails, the valves hit the pistons.
Cars with this engine
- Subaru Baja 2003–2006 · 2.5 non-turbo.
- Subaru Forester 1999–2010 · 2.5 non-turbo (X/XS).
- Subaru Impreza 1999–2011 · 2.5 non-turbo (2.5i/RS/Outback Sport).
- Subaru Legacy 2000–2012 · 2.5 non-turbo.
- Subaru Outback 2000–2012 · 2.5 non-turbo.