Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All →
🎬 Helpful Videos 🛍️ Shop This Part

P0340 on 2000-2004 Subaru Outback: Camshaft Sensor Circuit Causes and Fixes

P0340 on a 2000-2004 Subaru Outback most often means the camshaft position sensor has failed. It can also be caused by a stretched or skipped timing belt, or damaged wiring. Replacing the sensor is a common, affordable DIY fix, but mechanical timing should always be verified if the code persists.

20 minutes to read 2000-2004 Subaru Outback
Most Likely Cause
Failed Camshaft Position Sensor
Est. Time
2.2 hrs
Shop Labor
$100 – $750
Parts Price
$40 – $250
⚠️ Drivable, but... — You can likely drive the vehicle, but it is not recommended. The engine may stall unexpectedly, especially at low speeds or when coming to a stop, which could leave you stranded or create a safety hazard. It may also be very difficult to restart.
Key Takeaways
  • P0340 on a 2000-2004 Outback means there's a fault in the camshaft position sensor circuit.
  • The most likely cause is a failed sensor, but a problem with the timing belt is a strong second possibility specific to this engine.
  • Symptoms typically include a no-start or hard-start condition, stalling, and rough idling.
  • Diagnosis should start with the sensor and its wiring, but must include a visual inspection of the timing belt's alignment and condition.
  • Do not drive the vehicle extensively, as it could stall in traffic or fail to restart.
The trouble code P0340 stands for "Camshaft Position Sensor 'A' Circuit Malfunction". This means the Engine Control Module (ECM) has detected a problem with the signal from the camshaft position sensor. This sensor tells the computer the exact position of the camshaft, which is essential for timing fuel injection and ignition spark. On the SOHC EJ251/EJ252 engine, there is only one camshaft sensor, so this code points directly to an issue in that single sensor's circuit.

What's Unique About the 2000-2004 Subaru Outback

On the Subaru EJ25 SOHC engine used in this generation of Outback, the timing belt is a critical maintenance item. Unlike many other vehicles where a P0340 is almost always just the sensor, on these Subarus, a stretched or skipped timing belt is a very real and common cause for this code. The EJ25 is an interference engine, so a timing belt failure can cause catastrophic damage. Owners should pay close attention to the timing belt's condition and service history when diagnosing P0340.

Symptoms You May Notice

  • Check Engine Light is on
  • Engine is hard to start or cranks but won't start.
  • Engine stalls, especially at idle or low speeds.
  • Rough or unstable idling.
  • Noticeable loss of engine power.
  • Engine sputtering or misfiring.
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the crankshaft position sensor instead of the camshaft position sensor. While they work together, P0340 specifically points to the cam sensor circuit.
  • Replacing the camshaft sensor when the actual problem is a skipped timing belt. Always verify mechanical timing if a new sensor doesn't fix the issue, especially on an EJ25 engine.
  • Assuming the new sensor is good. Aftermarket sensors can be defective out of the box. It's recommended to use an OEM or reputable brand like Denso or NGK/NTK.

Most Likely Causes

  1. Failed Camshaft Position Sensor 🔴 High Probability Sensors are electronic components that fail over time due to constant heat cycles and engine vibration. It is the most common point of failure for a P0340 code.
    How to confirm: Test the sensor's resistance with a multimeter. A healthy sensor on this engine should read approximately 2.0-2.1k ohms. You can also test for a signal with the engine cranking. A video by 'Carsntoys' on YouTube demonstrates this test procedure.
    Typical fix: Replace the camshaft position sensor. It is located on the driver's side (left side) of the engine, near the front, mounted on a bracket behind the timing cover. It is held in by a single 10mm bolt.
    Est. part cost: $40-$90
  2. Timing Belt Problem (Stretched, Skipped Tooth, or Damaged) 🟡 Medium Probability The EJ25 is an interference engine with a timing belt that requires replacement every 105,000 miles. A worn belt, failing tensioner, or damaged idler can allow the timing to jump one or more teeth. This de-synchronizes the cam and crank signals, which the ECU detects as a cam sensor circuit fault, triggering P0340.
    How to confirm: Remove the outer timing covers (driver and passenger side) and visually inspect the belt for damage, slack, or misalignment of the timing marks on the cam and crank sprockets. Rotate the engine by hand using a 22mm socket on the crankshaft pulley bolt to check the entire belt and all timing marks.
    Typical fix: Replace the timing belt, tensioner, and all idler pulleys as a complete kit. If the belt has broken or skipped significantly, internal engine damage (bent valves) is highly likely and will require cylinder head removal and repair.
    Est. part cost: $100-$250 for a full kit
  3. Damaged Wiring or Connector 🟡 Medium Probability The wiring harness in the engine bay becomes brittle from age and exposure to heat, leading to cracks, corrosion, or loose connections at the sensor connector or further down the harness toward the ECM.
    How to confirm: Visually inspect the wiring and connector for any signs of damage, melting, or corrosion. Wiggle the connector while the engine is running to see if it causes stalling. Perform a continuity test from the sensor connector to the ECM to check for breaks in the wire.
    Typical fix: Repair the damaged section of wire or replace the connector pigtail.
    Est. part cost: $10-$30

Rare But Worth Checking

  • Damaged Camshaft Sprocket Reluctor Ring: The teeth on the back of the camshaft sprocket, which the sensor reads, can be damaged, bent, or covered in debris during a timing belt service or other repairs. This will cause an erratic or missing signal.
  • Failing Alternator: A failing alternator can produce excessive electrical noise (AC ripple voltage), which can interfere with the sensitive cam sensor's signal and trigger a P0340 code. This is a known, though uncommon, issue on some Subaru models and can be diagnosed with an oscilloscope.
  • Failed Powertrain Control Module (ECM): This is very rare, but the ECM itself can fail. This should only be considered after all other possibilities (sensor, wiring, mechanical timing) have been exhaustively ruled out.

Diagnosis Steps

  1. Read all stored fault codes with an OBD-II scanner. Note any other codes present, such as misfire or crankshaft codes.
  2. Visually inspect the camshaft position sensor and its electrical connector for obvious damage, corrosion, or loose connections. The sensor is on the driver's side of the engine, near the oil fill tube.
  3. Test the sensor's internal resistance using a multimeter set to ohms. Disconnect the sensor and probe its two pins. It should be around 2.0-2.1k Ohms.
  4. If the sensor tests good, inspect the wiring harness for continuity between the sensor connector and the ECM. Check for shorts to ground or power.
  5. If wiring is good, the next critical step is to inspect the engine's mechanical timing. Remove the plastic timing belt covers and verify that the timing marks on the camshaft 🎬 Watch: How to perform a quick DIY timing belt inspection. sprockets and crankshaft sprocket are all correctly aligned per the service manual.
  6. While inspecting the timing, check the condition of the timing belt for wear, fraying, glazing, or excessive slack. Check the tensioner for leaks.
  7. If the sensor, wiring, and timing are all confirmed to be good, consider rare causes. Test the alternator for excessive AC ripple voltage using a multimeter with that function or an oscilloscope.
  8. As a final step, if all else fails, the issue may be a faulty ECM, though this is highly unlikely.

Parts You'll Likely Need

  • Camshaft Position Sensor (OEM #22056AA063) — This is the most frequent cause of a P0340 code. The sensor itself fails electronically over time. The OEM part 22056AA063 supersedes previous part numbers 22056AA060, 22056AA061, and 22056AA062.
    Trusted brands: Subaru (Genuine), Denso, NGK/NTK, Hitachi
    OEM price range: $70-$100
    Aftermarket price range: $40-$70
  • Timing Belt Kit (OEM #13028AA231 (Belt Only, Kit numbers vary)) — If the code is caused by a skipped or stretched timing belt, a full kit including the belt, tensioner, and idlers is the correct and necessary fix to prevent catastrophic engine failure.
    Trusted brands: Aisin, Gates, Dayco
    OEM price range: $200-$300
    Aftermarket price range: $100-$180

Related Codes That Often Appear With This One

  • P0335 — Crankshaft Position Sensor Circuit Malfunction. The ECU relies on both cam and crank signals to verify engine timing. A major timing belt issue can cause both codes to appear.
  • P0301, P0302, P0303, P0304 — Cylinder Misfire codes. If the cam timing is incorrect, the engine will misfire. Subaru TSBs #11-130-13R and #11-122-12 directly link P0340 with these misfire codes on other models, indicating a common pattern.

Technical Service Bulletins (TSBs) & Recalls

  • Bulletin #11-130-13R: While for a later model year, it provides detailed diagnostic procedures for P0340 and related codes, linking them to incorrect sensor clearance, which can be caused by issues with the camshaft or sensor mounting. It consolidates several older TSBs.
  • Bulletin #11-122-12: Also links P0340 with difficulty starting, rough idle, and misfire codes, showing a persistent pattern across Subaru models. [This TSB was superseded by 11-130-13R]

Platform-Specific Known Issues

  • Subaru has issued multiple Technical Service Bulletins (TSBs) for other models and years that group P0340 with symptoms like 'Difficulty Starting' and 'Rough Idle', indicating a known pattern of issues with the cam position sensing system. (Bulletins #11-130-13R, #11-124-12R, #11-100-11R, #11-122-12)
  • An owner complaint filed with the NHTSA (ODI #11363231) for a similar model year highlights the diagnostic challenge, where replacing both the cam and crank sensors did not resolve the issue, pointing towards a more complex underlying problem like wiring or mechanical timing.
  • A Reddit thread on r/subaru for a 2012 Outback with P0340 details a frustrating diagnostic case where a new OEM sensor didn't fix the stalling issue, and the mechanic suspected a complex electrical fault after verifying the timing belt was okay.

Mechanic-Grade Diagnostic Values

  • Camshaft Position Sensor Resistance — expected: 1.0 to 4.0 kΩ (typically ~2.0 kΩ). Failure: A reading of 0 Ω (short) or infinite/OL (open circuit).
  • Alternator AC Ripple Voltage — expected: Less than 0.5 Volts AC (500mV) with engine running.. Failure: Excessive AC voltage 'ripples' visible on an oscilloscope, indicating a failing diode in the alternator which creates electrical noise that can disrupt the cam sensor signal.
  • Camshaft Sensor Connector Voltage (3-wire Hall Effect Type) — expected: With key on, engine off: ~5V on the power wire, ~5V on the signal wire, and continuity to ground on the ground wire.. Failure: Missing 5V reference, missing ground, or signal voltage that does not change when the engine is cranked.

Wiring & Ground Locations

  • E15 (Camshaft Position Sensor Connector) — On the front of the driver's side (left) cylinder head, behind the timing belt cover, near the oil filler neck.. This is the primary connector to inspect for corrosion, damage, or loose pins. It has two wires for the inductive-type sensor used on this engine.
  • Engine Ground Straps — Key grounds are typically located from the battery negative terminal to the chassis, and from the chassis to the engine block (often near the starter or alternator).. A poor engine ground can cause all sorts of floating voltages and electrical noise, which can disrupt the low-voltage signal from the camshaft position sensor, leading to a P0340 code even if the sensor and its direct wiring are good.

Real Owner Repair Stories

  • SubaruOutback.org forum user (2001 Subaru Outback, EJ25) — P0340 code, engine would crank but not start.
    ❌ Tried (didn't work) Replaced the camshaft position sensor., Replaced the crankshaft position sensor.
    ✅ What actually fixed it The timing belt had jumped a tooth. The user discovered the hydraulic timing belt tensioner had failed, causing slack in the belt. After replacing the tensioner and resetting the timing belt correctly, the P0340 code was resolved and the car started normally.
  • NASIOC forum user (Subaru with EJ engine) — Persistent P0340 code, stalling at low RPMs.
    ❌ Tried (didn't work) Replacing the camshaft position sensor.
    ✅ What actually fixed it The root cause was a failing alternator producing excessive electrical noise (AC ripple). Replacing the alternator resolved the P0340 code and stalling symptoms.

When the Usual Fixes Don't Work

  • While replacing the camshaft position sensor is the most common fix, numerous owner accounts emphasize that it is not a guaranteed solution. In an NHTSA complaint (ODI #11363231), the owner replaced both cam and crank sensors without resolving the issue. In a well-documented Reddit thread, a new OEM sensor also failed to fix the problem, pointing to a deeper electrical or mechanical fault. These cases highlight the critical importance of verifying mechanical timing and checking for less obvious causes like alternator interference before assuming the sensor is the final fix.

OEM Part Supersession History

  • 22056AA060, 22056AA061, 22056AA06222056AA063 — Standard part evolution, likely for improved durability or manufacturing consistency.
    Heads up: All listed part numbers are generally interchangeable for this application. However, using the latest superseded part number (22056AA063) is always recommended to get the most current revision.

Model Year Variations Within This Range

  • 2000-2004: The engine could be an EJ251 or EJ252. The EJ252 was used in some manual transmission models and had different emissions hardware (like the front O2 sensor and IAC valve) and a corresponding ECU. However, for the purposes of diagnosing P0340, the camshaft position sensor, its location, and the mechanical timing procedure are identical between them.

Diagnostic Flowchart

This guide addresses the P0340 Camshaft Position Sensor circuit fault on the SOHC 2.5L EJ engine. Start by identifying if the issue is a simple electronic failure or a critical mechanical timing threat.
→ Clean the connector with electrical cleaner or repair the brittle wiring harness. Oil leaks in this area are common on EJ25 engines due to aging seals; ensure the sensor is dry and securely mounted.
Disconnect the sensor and test internal resistance across the two pins with a multimeter. Does it read between 2.0k and 2.1k Ohms?
→ Replace the Camshaft Position Sensor. Use a high-quality or OEM sensor, as TSB #11-130-13R notes that incorrect sensor clearance or signal quality can cause persistent P0340 codes and hard-start conditions.
The EJ25 is an interference engine. When was the timing belt last replaced, and are there symptoms like sputtering or power loss?
Remove the outer timing covers. Rotate the crank (22mm socket) to align marks. Is the belt loose, or have the cam/crank marks skipped alignment?
→ Immediate Repair Required: Replace the timing belt, tensioner, and idlers as a complete kit. If the belt skipped significantly, perform a leak-down test to check for bent valves, a common EJ251 failure mode.
Check for continuity between the sensor connector and the ECM. While the engine is idling, wiggle the harness. Does the engine stall or stumble?
→ The wiring harness is likely brittle from engine heat cycles. Replace the sensor pigtail or repair the break in the signal wire between the sensor and the ECM.
If the sensor, timing, and wiring are verified, check for 'ghost' signals. Does the alternator show excessive AC ripple voltage?
→ Replace the alternator. Excessive AC interference can scramble the cam signal to the ECM, triggering a false P0340 even if the sensor is healthy.
→ Rare Case: If all mechanical and electrical tests pass, the ECM may be failing to process the signal. However, re-verify the sensor air gap and mounting bracket integrity per TSB #11-130-13R before replacing the ECM.
Check for continuity between the sensor connector and the ECM. While the engine is idling, wiggle the harness. Does the engine stall or stumble?
→ The wiring harness is likely brittle from engine heat cycles. Replace the sensor pigtail or repair the break in the signal wire between the sensor and the ECM.
If the sensor, timing, and wiring are verified, check for 'ghost' signals. Does the alternator show excessive AC ripple voltage?
→ Replace the alternator. Excessive AC interference can scramble the cam signal to the ECM, triggering a false P0340 even if the sensor is healthy.
→ Rare Case: If all mechanical and electrical tests pass, the ECM may be failing to process the signal. However, re-verify the sensor air gap and mounting bracket integrity per TSB #11-130-13R before replacing the ECM.

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Head Gasket Failure 🔴 High — Very common, typically between 80,000 and 150,000 miles. The SOHC EJ25 engines in this era are known for external oil leaks at the head gasket, particularly at the rear of the driver's side cylinder head, and/or external coolant leaks from the driver's side.
  • Rear Oil Separator Plate Leak 🟠 Medium — Common on higher mileage vehicles. The original plastic separator plate on the back of the engine block becomes brittle and leaks oil, often mistaken for a rear main seal leak. The fix is to replace it with an updated metal plate.
  • Rear Wheel Bearing Failure 🟠 Medium — Frequent failure item. Owners report a loud humming or grinding noise from the rear of the vehicle that increases with speed. The fix is to replace the entire hub and bearing assembly.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For this repair, using a used part is generally not recommended for the electronic sensors (cam/crank) or the timing belt components. However, if a wiring connector pigtail is needed, a used one from a junkyard is a perfectly acceptable and cost-effective solution. Similarly, used timing belt covers or bolts are fine.

Donor-vehicle mileage cap: roughly under 100000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • For a wiring pigtail, ensure the plastic is not brittle or cracked.
  • Check that the locking tab on the connector is intact and functional.
  • Inspect the wires for any signs of previous repair, corrosion, or rodent damage.

OEM-only on this vehicle (don't cheap out):

  • Camshaft Position Sensor
  • Crankshaft Position Sensor
  • Timing Belt Tensioner

Aftermarket brands forum-validated for this vehicle:

  • For sensors: Denso, NGK/NTK, Hitachi.
  • For timing belt kits: Aisin is highly regarded as providing OEM-quality components (Koyo/NSK bearings, Mitsuboshi belt, NTN tensioner).
  • For timing belts alone: Gates (who makes the OEM belt via their Unitta division) is a reliable choice.

Brands owners have reported issues with on this vehicle:

  • Generic, no-name sensors from online marketplaces like Amazon or eBay are frequently reported as being dead-on-arrival or failing prematurely.
  • Some users have reported issues with Echlin brand sensors from NAPA.
  • Gates timing belt *kits* have reportedly declined in quality since ~2018, with non-OEM quality tensioners and idlers being included. While the Gates belt itself is good, the full Aisin kit is now often recommended over the Gates kit.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2011 Subaru Outback

Symptoms: The car sometimes takes a long time (5-15 seconds) to start. When it does, the dashboard 'lights up like a Christmas tree,' disabling ABS, traction control, and cruise control.

What fixed it: The owner spent thousands of dollars at the dealership, but the issue persisted even after replacing sensors; the source indicates a complex electrical fault or timing issue was suspected.

Source hint: owner_reports / Reddit r/subaru

2012 Subaru Outback

Symptoms: Engine stalling issues and a P0340 code that persisted even after a new OEM sensor was installed.

What fixed it: The mechanic suspected a complex electrical fault after verifying the timing belt was okay.

Source hint: Reddit r/subaru - 'Mechanic can't figure it out, please advise. Engine code P0340'

2000-2004 Subaru Outback 2.5L

Symptoms: Difficulty starting, rough idle, and misfire codes appearing alongside the P0340.

What fixed it: Diagnostic procedures point to correcting sensor clearance or addressing camshaft/sensor mounting issues.

Source hint: Bulletin #11-122-12 / #11-130-13R

Frequently Asked Questions

Where is the camshaft position sensor located on my 2.5L EJ251/EJ252 engine?
The sensor is located on the driver's side (left side) of the engine, near the front and the oil fill tube. It is mounted on a bracket behind the timing cover and held in place by a single 10mm bolt.
What should the resistance reading be for a healthy cam sensor on a 2000-2004 Outback?
A healthy sensor on this specific engine should read approximately 2.0-2.1k ohms when tested with a multimeter.
Can a timing belt issue cause a P0340 code even if the sensor is good?
Yes. Because the EJ25 is an interference engine, a stretched belt, failing tensioner, or a skipped tooth can de-synchronize the cam and crank signals. The ECU detects this timing mismatch as a circuit fault and triggers P0340.
Does TSB #11-130-13R apply to my P0340 diagnosis?
While this TSB was issued for later models, it consolidates older bulletins (like #11-122-12) and provides diagnostic procedures for P0340, linking the code to incorrect sensor clearance and mounting issues. [TSB #11-130-13R]
I replaced the sensor but still have the code; what else should I check on this model?
You should inspect the engine's mechanical timing by removing the plastic covers to check the alignment of the cam and crank sprockets. Additionally, check for brittle wiring or corrosion at the connector, and test the alternator for excessive AC ripple voltage.
My Outback Didn't Want To Start! Intermittent Issues Can Be A Huge Headache To Diagnose! P0340
My Outback Didn't Want To Start! Intermittent Issues Can Be A Huge Headache To Diagnose! P0340
Subaru Camshaft Position Sensor P0340 and P0341 Testing and Replacement
Subaru Camshaft Position Sensor P0340 and P0341 Testing and Replacement
2006 Subaru Outback 2.5 cam shaft position sensor | anyone can do it 👍
2006 Subaru Outback 2.5 cam shaft position sensor | anyone can do it 👍
Inspect Your Subaru Timing & Drive belts as regular maintenance (easy DIY!)
Inspect Your Subaru Timing & Drive belts as regular maintenance (easy DIY!)
Subaru Timing Belt Inspection | EJ25 Timing Belt | Late Model Subaru
Subaru Timing Belt Inspection | EJ25 Timing Belt | Late Model Subaru
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Jul 21, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0340 (Deep Dive) for:
  • Subaru Outback: 20002001200220032004
In this article
🎬 Helpful Videos
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part