P0340 on a 2012 Subaru Outback
Camshaft Position Sensor Circuit Fault
P0340 on a 2012 Subaru Outback indicates camshaft position sensor circuit fault. It usually stays drivable short-term but should be diagnosed promptly. The most common cause is failed camshaft position sensor (most common after 100k miles) (typically $100–$400). Confirm the root cause before replacing parts.
What does P0340 mean on a 2012 Subaru Outback?
P0340 is set when the engine control module cannot interpret the camshaft position sensor signal on the primary cam (or the single cam on engines with one sensor). The signal might be missing entirely, out of phase with the crankshaft signal, or showing electrical noise. Because the ECM uses cam position to time fuel injection and ignition, a P0340 will typically cause a hard start, a no-start, or a stall.
This guide covers P0340 across the 2010-2014 Subaru Outback generation — the symptoms, causes, and diagnostic steps below apply to every model year from 2010 through 2014.
Is it safe to drive a 2012 Subaru Outback with P0340?
In most cases a 2012 Subaru Outback stays drivable for short trips with P0340 active, but diagnose and repair it promptly. This is a high-severity code — ignoring it can lead to further damage or a failed emissions test.
What are the symptoms of P0340 on a 2012 Subaru Outback?
- Check Engine Light is illuminated
- Hard cranking or extended crank time before the engine starts
- Intermittent stalling, especially when the engine is hot
- Engine cuts out and restarts after a short delay
- Possible complete no-start condition
- Rough running and reduced power if the engine does run
What causes P0340 on a 2012 Subaru Outback?
| Cause | Likelihood | Estimated repair (USD) |
|---|---|---|
| Failed camshaft position sensor (most common after 100k miles) | Most common | $100–$400 |
| Damaged or corroded sensor connector | Common | $50–$250 |
| Chafed or broken sensor wiring | Common | $80–$350 |
| Loose, slipped, or worn camshaft sensor reluctor wheel | Occasional | $300–$1,200 |
| Timing chain stretch causing cam-crank correlation drift | Occasional | $800–$3,000 |
| Failed PCM driver for the cam sensor input (rare) | Rare | $400–$1,500 |
How to diagnose this on a 2012 Subaru Outback
-
Inspect the connector and wiring at the cam sensor
Locate the cam sensor (usually near the front of the cylinder head, threaded into the head or timing cover). Disconnect the sensor and inspect the connector for corrosion, bent pins, or water intrusion. Inspect the harness for chafing against engine mounts or accessory brackets.
Tools: Connector unlock tool, Flashlight, Electrical contact cleaner
-
Test the sensor signal with a scope or scan tool
With the engine cranking or running, the cam sensor should produce a square-wave or sine-wave signal that the scan tool can graph. No signal or a noisy signal indicates the sensor or its wiring is bad. A clean signal that the ECM does not respond to suggests an ECM input fault.
Tools: Scan tool with cam sensor PID, or oscilloscope, Multimeter
-
Verify cam-crank correlation in live data
Watch the cam and crank position signals together while cranking. They should maintain a fixed timing relationship. If the cam signal drifts relative to the crank signal over time, suspect timing chain stretch or a slipped reluctor wheel.
Tools: Scan tool with dual-PID graphing
-
Check sensor power and ground at the connector
With the connector unplugged and the key on, verify battery voltage on the power wire and continuity from the ground wire to a known good chassis ground. Missing power or poor ground will produce P0340 with a perfectly good sensor.
Tools: Multimeter, Wiring diagram
-
Inspect the reluctor / target wheel on the camshaft
If the wiring tests good and the sensor is new but P0340 persists, remove the sensor and shine a light at the reluctor wheel through the sensor port. Damaged or oil-fouled teeth will not generate a clean signal. On some engines the reluctor is a separate pressed-on piece that can slip.
Tools: Inspection mirror, Bright flashlight
NHTSA complaints & recalls for the 2012 Subaru Outback
Owner-reported safety complaints and official recalls filed with the U.S. National Highway Traffic Safety Administration for the 2012 Subaru Outback. Use these to gauge how common a problem is on your specific vehicle before you start chasing Subaru Outback diagnostics.
- POWER TRAIN 107
- ENGINE 50
- AIR BAGS 39
- ELECTRICAL SYSTEM 37
- SERVICE BRAKES 37
16 active recalls
- AIR BAGS:FRONTAL:PASSENGER SIDE:INFLATOR MODULE Jan 2019
Subaru of America, Inc. (Subaru) is recalling certain 2010-2014 Tribeca, WRX, Outback, and Legacy vehicles, 2010-2011 Impreza vehicles and 2010-2013 Forester vehicles sold, or ever registered, in the states of Arizona, Arkansas, Delaware, District of Columbia, Illinois, Indiana,…
NHTSA campaign 19V008000 - PARKING BRAKE Sep 2018
Subaru of America, Inc. (Subaru) is recalling certain 2010-2014 Subaru Legacy and Outback vehicles equipped with a manual transmission. The electronic parking brake (EPB) may not engage as intended, allowing the vehicle to rollaway if the transmission is not in the proper gear w…
NHTSA campaign 18V626000 - AIR BAGS:FRONTAL:PASSENGER SIDE:INFLATOR MODULE Jan 2019
Subaru of America, Inc. (Subaru) is recalling certain 2010-2013 Forester, 2010-2014 Tribeca, WRX, Outback, Legacy, and 2010-2011 Impreza vehicles sold, or ever registered, in the states of Alabama, California, Florida, Georgia, Hawaii, Louisiana, Mississippi, South Carolina, Texa…
NHTSA campaign 19V007000 - AIR BAGS:FRONTAL:PASSENGER SIDE:INFLATOR MODULE Jan 2019
Subaru of America, Inc. (Subaru) is recalling certain 2010-2014 Tribeca, WRX, Legacy and Outback vehicles, 2010-2011 Impreza vehicles and 2010-2013 Forester vehicles sold, or ever registered, in the states of Alaska, Colorado, Connecticut, Idaho, Iowa, Maine, Massachusetts, Michi…
NHTSA campaign 19V009000
How do I fix P0340 on a 2012 Subaru Outback?
- Replace the camshaft position sensor with an OEM part
- Repair the sensor connector or harness
- Replace the slipped or damaged reluctor wheel
- Replace stretched timing chains and guides (if cam-crank correlation drifts)
About the 2010-2014 Subaru Outback
The 2010-2014 Subaru Outback was commonly sold with the following powertrains: 2.5L H4, 2.4L Turbo H4, 3.6L H6. Common trims include Base, Premium, Limited, Touring, Wilderness, Onyx Edition.
Why P0340 sometimes causes a no-start
The ECM uses the cam sensor to decide which cylinder is approaching top-dead-center on the compression stroke vs. the exhaust stroke. With no cam signal, the ECM cannot synchronize the injectors to the right cylinder, and on many engines it defaults to a fail-safe mode that disables fuel injection. The engine will crank but not fire.
Some engines (notably modern Ford and GM) have a “limp” mode that uses the crank signal alone and runs the engine in batch fire (all injectors firing together) — these vehicles will run, but poorly, without a cam signal.
Cam sensor vs. timing chain
A new cam sensor is $30–$150 and a 15-minute install on most engines. Timing chain replacement is $800–$3,000. Before condemning the chain, always test the new sensor first. The exception: on engines with documented timing chain stretch issues (BMW N20, VW EA888 1st gen, GM 3.6 LFX/LLT, Nissan VQ35 with stretched chain) and high mileage, cam-crank correlation drift in the live data should be inspected before installing a new cam sensor.
Heat-soak intermittent stalling
A failing cam sensor often works correctly when cold and fails after extended driving. The pattern is: drive 30 minutes, stop for gas, restart and the engine stalls or cranks for 10+ seconds before catching. If P0340 is intermittent and correlates with engine heat, replace the sensor preemptively — the failure mode worsens until eventually the vehicle will not start at all.
P0340 on a 2012 Subaru Outback: frequently asked questions
What does diagnostic trouble code P0340 mean on a 2012 Subaru Outback?
P0340 is set when the engine control module cannot interpret the camshaft position sensor signal on the primary cam (or the single cam on engines with one sensor). The signal might be missing entirely, out of phase with the crankshaft signal, or showing electrical noise. Because the ECM uses cam position to time fuel injection and ignition, a P0340 will typically cause a hard start, a no-start, or a stall.
What are the symptoms of P0340 on a 2012 Subaru Outback?
Check Engine Light is illuminated. Hard cranking or extended crank time before the engine starts. Intermittent stalling, especially when the engine is hot. Engine cuts out and restarts after a short delay. Possible complete no-start condition. Rough running and reduced power if the engine does run
What causes P0340 on a 2012 Subaru Outback?
Failed camshaft position sensor (most common after 100k miles) (most-common). Damaged or corroded sensor connector (common). Chafed or broken sensor wiring (common). Loose, slipped, or worn camshaft sensor reluctor wheel (occasional). Timing chain stretch causing cam-crank correlation drift (occasional). Failed PCM driver for the cam sensor input (rare) (rare)
Is it safe to drive a 2012 Subaru Outback with P0340?
In most cases a 2012 Subaru Outback stays drivable for short trips with P0340 active, but it should be diagnosed and repaired promptly — this is a high-severity code. Ignoring it can lead to further damage or a failed emissions test.