P0340 Subaru Outback: Diagnose Camshaft Sensor Faults and Starting Problems
18 min read · by Nicole Bennett · Last updated: November 25, 2026
P0340 Subaru Outback means the engine computer has detected a problem with the camshaft position sensor A circuit or an abnormal camshaft position signal. This fault can cause a check engine light, rough idle, extended cranking, engine stalling, or a complete no-start condition. Although a defective camshaft position sensor is one possible cause, damaged wiring, poor electrical connections, and incorrect sensor clearance can produce similar symptoms.
On Subaru Outback models, diagnosing this code correctly matters because replacing the sensor does not always solve the problem. Subaru has documented camshaft sensor clearance issues on certain 2013 Outback models equipped with the 2.5L FB engine. That makes checking the applicable service information especially important before purchasing replacement parts.
This guide explains what P0340 means, which symptoms to watch for, how to diagnose the electrical circuit with an OBD2 scanner, and when professional testing is necessary. It also covers repair considerations, driving safety, and the differences between P0340 and related camshaft position codes.
What P0340 Means on a Subaru Outback
P0340 is a generic SAE powertrain diagnostic trouble code describing a Camshaft Position Sensor A Circuit malfunction. The Subaru engine control module (ECM) monitors the camshaft position signal and compares its behavior with expected engine-position information. When the signal is missing, electrically abnormal, or otherwise outside the monitored conditions, the computer can store P0340.

The camshaft position sensor helps the ECM identify the position of the camshaft during engine operation. This information allows the computer to coordinate fuel injection and ignition timing. The crankshaft position sensor supplies complementary information about crankshaft rotation. Both signals are important for correct engine synchronization.
Understanding the P0340 code format
The first character identifies the system involved. The second character indicates whether the code belongs to the generic or manufacturer-specific diagnostic category. P0340 is a P0 code, so its basic definition is standardized across OBD-II vehicles rather than being an exclusively Subaru code.
- P: Powertrain system, including the engine and transmission.
- 0: Generic SAE diagnostic code.
- 3: Ignition system or related engine-position monitoring category.
- 40: Identifies the specific camshaft position sensor A circuit fault.
The words Bank 1 or Single Sensor in the generic definition identify the relevant engine-bank terminology. They do not automatically tell you which physical sensor to replace on every Subaru engine. Different Outback generations and engine configurations have different sensor arrangements. Always identify the engine and consult the matching wiring diagram before testing a connector.
P0340 versus P0341
These two codes are related but describe different diagnostic findings. P0340 concerns the camshaft position sensor A circuit. P0341 indicates a camshaft position sensor A range or performance problem. The latter can involve incorrect signal timing relative to the crankshaft signal.
Subaru service information describes P0340 as detecting an open or short circuit and an abnormal number of camshaft signals. Its P0341 diagnostic description addresses signal timing that has shifted relative to crankshaft information, potentially involving mechanical timing problems. These distinctions help determine whether the investigation should begin with electrical checks or signal synchronization testing.
Tip: Do not replace a camshaft position sensor based on the P0340 code description alone. First identify the exact Outback model year and engine, then inspect the connector, wiring, sensor signal, and applicable Subaru service procedures. The fault logic is shared, but the test points change, so check P0340 Subaru Forester too.
Common Symptoms of P0340 in a Subaru Outback
A Subaru Outback with P0340 may show anything from a check engine light with no obvious driving problems to severe starting and running difficulties. The symptoms depend on how frequently the camshaft signal disappears and how the ECM responds to the missing information.

Subaru service documentation specifically identifies engine stalling and failure to start as possible symptoms. Its technical bulletins also describe rough idle, extended cranking, and no-start complaints on certain affected engine applications.
1. Check engine light
The most obvious warning is an illuminated check engine light. The ECM may store P0340 when it detects an abnormal camshaft position signal. The vehicle may continue running normally if the fault is intermittent or does not significantly affect engine synchronization.
A basic scanner can display the stored code, but it cannot establish which component failed. Check whether P0340 is pending, confirmed, or permanent. Also look for additional camshaft, crankshaft, and misfire codes that could provide useful diagnostic clues.
2. Extended cranking or difficult starting
The engine may take longer than usual to start because the ECM is not receiving the expected camshaft position information. You may hear the starter turning the engine normally for several seconds before combustion begins. In more severe cases, the engine may crank without starting.
An intermittent sensor connection can make this symptom inconsistent. The Outback might start normally when cold but struggle after a hot soak, or it might start on one attempt and fail on the next. Record the conditions under which the problem occurs.
3. Rough idle and engine hesitation
Incorrect or unstable camshaft information can interfere with engine management. You may notice uneven idle speed, vibration, hesitation during acceleration, or an engine that feels less responsive than usual.
These symptoms are not exclusive to P0340. Ignition problems, fuel delivery issues, vacuum leaks, and other engine faults can create similar behavior. A scanner should be used to identify additional trouble codes and evaluate live engine data rather than assuming the camshaft sensor is responsible.
4. Engine stalling
A loss of camshaft position information can interfere with engine synchronization and cause the engine to stall. Stalling may occur at idle, during deceleration, or while driving, depending on the fault and vehicle configuration.
If the engine stalls unexpectedly, steering assistance may decrease and braking may require more pedal effort. Do not continue normal driving if the engine repeatedly loses power or stalls in traffic.
Symptom and possible cause comparison
| Observed symptom | Possible explanation | Recommended check |
|---|---|---|
| Check engine light | Abnormal sensor circuit or signal | Read stored and pending codes |
| Extended cranking | Missing camshaft position information | Check live data during cranking |
| Rough idle | Intermittent sensor signal or engine synchronization problem | Compare cam and crank signals |
| Engine stalling | Loss of position information | Inspect sensor circuit and related codes |
| Intermittent no-start | Intermittent electrical connection or sensor fault | Check wiring and signal consistency |
What Causes P0340 on a Subaru Outback?
P0340 can result from an electrical circuit problem, an unreliable sensor signal, or an incorrect relationship between the sensor and its target. The exact causes vary by model year and engine. A diagnosis that applies to a 2013 2.5L FB engine should not automatically be applied to an older 2.5L SOHC or a 3.6L six-cylinder Outback.
1. Defective camshaft position sensor
A failing camshaft position sensor may produce an inconsistent or missing signal. Internal electrical faults can become more noticeable as the engine compartment heats up. The vehicle may develop intermittent starting problems before the sensor stops working completely.
However, a sensor should only be condemned after checking its power supply, ground, connector, wiring, and output signal according to the correct Subaru diagnostic procedure. Some sensors use different electrical designs, so resistance and voltage specifications must come from the applicable service manual.
2. Damaged wiring or loose electrical connectors
The sensor circuit can fail even when the sensor itself is functional. Broken conductors, damaged insulation, corrosion, loose terminals, or poor connections can interrupt the signal between the sensor and ECM.
Engine vibration and temperature changes can make an existing wiring problem intermittent. A connector may appear properly attached while an internal terminal has lost tension. Look for visible corrosion, moisture, damaged locking tabs, and signs of previous repairs.
3. Incorrect camshaft sensor clearance
Sensor clearance is an important consideration on certain Subaru engines. The distance between the sensor and its target affects the quality of the position signal. If the clearance is outside the specified range, the sensor may produce an abnormal waveform even though its electrical components are functioning.
Subaru issued service bulletin 11-122-12 for 2013 Legacy and Outback models equipped with the 2.5L FB engine. The bulletin describes difficult starting, rough idle, camshaft position codes, and misfires associated with incorrect camshaft position sensor clearance. It specifies a target gap of 1.25 to 1.35 mm for the covered application.
The later Subaru bulletin 11-130-13 also addresses applicable FA and FB engine vehicles. It describes checking camshaft and crankshaft waveforms together and adjusting sensor clearance when the diagnostic procedure confirms the condition. These procedures are specific to the listed applications and should not be generalized to every Outback.
You can review the relevant manufacturer information in the Subaru camshaft position sensor service bulletin.
4. Mechanical timing problems
A damaged timing component or incorrect mechanical timing can affect the relationship between camshaft and crankshaft signals. Possible issues include timing chain wear, damaged timing components, or an incorrectly installed timing belt on engines that use a belt-driven arrangement.
Mechanical timing problems are especially important to investigate if P0340 appears with P0341 or additional camshaft and crankshaft synchronization codes. Do not assume that a sensor replacement will correct a mechanically incorrect signal.
5. Power supply, ground, or ECM problems
Low voltage, an unstable power supply, poor grounding, or an ECM circuit problem can interfere with sensor operation. These causes are less common than basic sensor or wiring faults, but they should remain part of the diagnostic process when initial checks do not identify the problem.
A fully charged battery should measure approximately 12.6 volts at rest. With the engine running, a typical charging system reading is approximately 13.5 to 14.7 volts. These are general reference values, not substitutes for Subaru-specific electrical testing. For another common fault on this model, see P0335 Subaru Outback.
How to Diagnose P0340 with an OBD2 Scanner
A systematic diagnosis can prevent unnecessary sensor replacements and help identify whether the problem involves wiring, sensor clearance, or engine timing. Begin with a complete code scan, preserve the available operating information, and then move to electrical and signal testing.
Step 1: Scan the Subaru Outback for trouble codes
Connect an OBD2 scanner to the 16-pin diagnostic connector, usually located underneath the driver-side dashboard near the steering column. Turn the ignition on and follow the scanner instructions to communicate with the ECM.
Record every stored, pending, and permanent code before clearing anything. Pay particular attention to P0340, P0341, P0335, and any additional camshaft or crankshaft position codes. Misfire codes such as P0301 through P0304 can also help establish whether the fault is affecting engine operation.
A generic scanner may display the basic trouble codes, while a more capable diagnostic tool may provide Subaru-specific data and additional testing functions. Do not assume that every scanner can access manufacturer-level information.
Step 2: Review freeze-frame data
Freeze-frame data records operating conditions when the ECM detected a fault. This information can help establish whether the problem appeared during starting, idling, acceleration, or normal cruising.
Record the following information when available:
- Engine RPM when P0340 was recorded.
- Engine coolant temperature.
- Vehicle speed.
- Calculated engine load.
- Battery or control-module voltage.
- Related trouble codes and their status.
For example, a fault recorded during cranking may point toward a starting-related signal problem. A code that appears after the engine reaches operating temperature may suggest an intermittent electrical issue. Neither observation proves the cause, but both help narrow the investigation.
Step 3: Inspect the sensor connector and wiring
With the ignition switched off, inspect the applicable camshaft position sensor connector and accessible wiring. Look for broken insulation, damaged harness sections, corrosion, loose terminals, and signs of oil or water contamination.
Compare the wiring with the diagram for the exact model year and engine. Check the power supply, ground, and signal circuit using the specified electrical testing procedure. Do not apply battery voltage directly to a sensor signal terminal or assume that all Subaru sensor connectors have identical pin assignments.
Step 4: Check live engine data
A scanner with suitable live-data support can provide useful information while the engine is cranking or running. Depending on the Outback and scanner, available parameters may include engine RPM, camshaft synchronization, and camshaft position status.
If the scanner reports zero engine RPM while the starter is turning the engine, investigate the crankshaft position signal and related circuits as well. If RPM appears normal but camshaft synchronization is missing or unstable, further testing of the camshaft sensor circuit is appropriate.
Not every generic scanner displays individual camshaft signal waveforms. Subaru’s professional diagnostic procedure uses suitable diagnostic equipment and an oscilloscope to compare camshaft and crankshaft signals. This is particularly useful when the problem involves irregular signal timing or sensor clearance.
Step 5: Compare camshaft and crankshaft waveforms
An oscilloscope provides a more detailed view of the electrical signals than a basic OBD2 scanner. A technician can compare the camshaft signal with the crankshaft signal to determine whether pulses are missing, irregular, or outside the expected timing windows.
Subaru’s technical documentation explains that waveform comparison is important because an apparently irregular signal may not always indicate a fault. The relationship between the crankshaft reference and camshaft signal edges must be evaluated using the correct engine-specific procedure.
Step 6: Check fuel trims and Mode $06 when appropriate
Fuel trims are not a direct test for P0340, but they can help identify additional engine problems. Short-term and long-term fuel trims that exceed roughly plus or minus 10 percent combined can suggest a mixture issue. Readings beyond approximately 25 percent may contribute to lean or rich trouble codes.
Mode $06 provides onboard monitor test results when supported by the vehicle and scanner. It is not a universal camshaft sensor waveform test. Use available results to investigate related emissions or misfire monitor concerns rather than treating Mode $06 as proof that a camshaft sensor has failed.
Useful diagnostic reference values
| Test or measurement | Reference information | Purpose |
|---|---|---|
| Battery at rest | Approximately 12.6 V | Evaluate battery condition |
| Charging voltage | Approximately 13.5–14.7 V | Check charging system operation |
| Combined fuel trims | Beyond approximately ±10% | Investigate possible mixture problems |
| 2013 FB sensor target gap | 1.25–1.35 mm | Applicable Subaru bulletin procedure only |
| Camshaft signal | Compare with the engine-specific waveform | Identify missing or irregular signals |
The 1.25–1.35 mm clearance specification applies to the particular 2013 Subaru service bulletin procedure discussed above. It is not a universal sensor-gap specification for every Subaru Outback.
Safety: Electrical testing, oscilloscope measurements, and sensor-clearance adjustments require the correct wiring diagrams, tools, and service procedures. Incorrect back-probing or connector handling can damage electronic components. Leave advanced measurements and mechanical timing inspections to a qualified technician if you lack the appropriate training and equipment. If the light returns with a different code, P0172 Subaru Outback is a good next read.
Is It Safe to Drive a Subaru Outback with P0340?
Driving safety depends on the symptoms and severity of the fault. An Outback with an illuminated check engine light and no noticeable running problems may remain operational, but the underlying sensor circuit problem should be diagnosed promptly. A vehicle that stalls, struggles to start, or loses power presents a much greater safety concern.
When limited driving may be possible
If the check engine light is steady, the engine starts normally, and there are no unusual noises, severe vibrations, or performance problems, a short trip to a repair facility may be reasonable. Keep the engine load low and avoid unnecessary driving until the fault has been checked.
Do not assume that a normal-running engine means the fault is harmless. An intermittent camshaft position signal can become more unreliable without warning. A vehicle that starts normally today may fail to start after being parked or may stall during another trip.
When you should stop driving
- The engine repeatedly stalls while driving.
- The engine cranks but will not start.
- The vehicle experiences severe hesitation or loss of power.
- The check engine light flashes, indicating an active misfire that may damage the catalytic converter.
- The engine develops unusual mechanical noises or severe vibration.
A flashing check engine light requires immediate attention. Reduce engine load and arrange prompt inspection. If the Outback stalls or cannot maintain safe operation, pull over somewhere safe and arrange roadside assistance rather than attempting to continue driving.
A no-start condition should also be treated seriously. Repeated cranking can place additional demand on the battery and starter. If the engine does not start after reasonable attempts, further diagnosis is preferable to continued cranking.
P0340 Subaru Outback Repair Options and Cost Factors
The correct repair depends on which part of the camshaft position system has failed. A sensor replacement may be sufficient for a confirmed defective sensor, while a damaged harness, incorrect clearance, or mechanical timing problem requires a different repair. The final repair cost depends on parts, labor time, diagnostic complexity, and whether the work is performed at home or by a professional shop.
Camshaft position sensor replacement
If testing confirms that the sensor itself has failed, replacement may resolve the fault. The correct sensor must match the Outback’s model year, engine, and sensor position. Different engines and sensor locations may require different components.
The repair process may involve accessing the sensor, disconnecting its electrical connector, removing the retaining fastener, and installing the correct replacement according to Subaru’s instructions. Depending on the engine configuration, access may be more difficult than expected.
Wiring and connector repair
If the problem involves damaged wiring or loose terminals, repairing the electrical connection may be more appropriate than replacing the sensor. The technician should confirm circuit continuity, power supply, ground integrity, and signal quality using the applicable specifications.
Connector repairs must maintain reliable electrical contact and proper insulation. Poorly executed wiring repairs can create intermittent problems that return after vibration or temperature changes.
Sensor clearance adjustment
For applicable 2013 Subaru 2.5L FB models, Subaru’s technical bulletin describes measuring sensor clearance and using shims where required. The procedure involves specialized measurement tools and waveform verification. It is not simply a matter of loosening the sensor and moving it closer to the target.
If your Outback falls within a bulletin’s applicability, ask the repair facility to check the vehicle identification number and production details. A bulletin describing a known condition does not mean every vehicle of that model year has the same problem.
Mechanical timing or ECM repairs
If signal comparison reveals a mechanical timing problem, additional inspection of timing components may be necessary. Such work can involve significantly more labor than replacing an accessible sensor. ECM diagnosis or replacement should generally be considered only after power, ground, wiring, connectors, and sensor operation have been verified.
What determines the final repair cost?
- Parts: The required sensor, connector, wiring materials, seals, or shims.
- Labor: The time needed to access the sensor and complete the repair.
- Diagnostic equipment: Advanced electrical testing and oscilloscope analysis may add diagnostic labor.
- Engine configuration: Different Outback engines have different access requirements and sensor arrangements.
- Additional damage: Mechanical timing or ECM-related problems can increase the scope of the repair.
- Shop versus DIY: Professional labor, diagnostic capabilities, and the tools already available to a home mechanic affect the overall expense.
Before authorizing repairs, request a diagnosis that identifies the failed component and explains the test results. A repair estimate based only on the P0340 code is less reliable than one supported by electrical measurements, waveform analysis, and the correct Subaru service information. For the same trouble code on a different platform, read P0340 Mercedes.
Frequently Asked Questions
These additional answers address common ownership and repair questions that may arise after P0340 appears on a Subaru Outback.
1. Can P0340 cause damage to the Subaru Outback engine?
P0340 does not automatically mean the engine has suffered internal damage. However, an unreliable camshaft signal can cause stalling, poor running, or starting problems. If the fault produces an active misfire and a flashing check engine light, continued driving can damage the catalytic converter. Prompt diagnosis helps prevent additional problems.
2. Can a Subaru Outback have P0340 without a noticeable check engine light?
A pending fault may be available in the ECM before the malfunction indicator light is illuminated. A scanner may therefore reveal a pending P0340 even when the driver has not noticed a warning light. The exact warning behavior depends on the vehicle’s diagnostic monitoring strategy.
3. Will disconnecting the battery permanently clear P0340?
No. Disconnecting the battery is not a reliable repair or a guaranteed way to remove every diagnostic code. Permanent emissions-related codes cannot be erased simply by clearing memory. The underlying problem must be repaired, and the appropriate onboard monitor must pass before the permanent code clears automatically.
4. Can P0340 cause a Subaru Outback to fail an emissions inspection?
Yes. An illuminated malfunction indicator light or an emissions-related confirmed fault can cause the vehicle to fail an applicable inspection. Permanent codes and incomplete readiness monitors may also affect inspection results, depending on the state program. Check the requirements of your local emissions testing authority before scheduling an inspection.
5. Will P0340 return after replacing the camshaft position sensor?
It can. If the original cause was damaged wiring, an incorrect sensor clearance, a connector problem, or mechanical timing trouble, installing another sensor will not correct the underlying fault. The replacement should be followed by a complete diagnostic check and verification that the applicable monitor passes under normal operating conditions.
P0340 on a Subaru Outback identifies a camshaft position sensor circuit or signal problem, not automatic proof of a defective sensor. Start with a complete OBD2 scan, inspect the wiring, and verify the camshaft signal before replacing parts. For affected 2013 2.5L FB models, check Subaru’s sensor-clearance service information to avoid unnecessary repairs and recurring starting problems.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0340 Subaru Forester: Diagnose the Camshaft Sensor Circuit
LearnP0128 Subaru Outback: Real Causes, Scanner Tests, and How to Fix It
LearnP0420 Subaru Outback Code: Converter Causes and Checks
LearnP0700 Subaru Outback Code: Meaning, Causes and Fixes
LearnP0174 Subaru Outback: Find the Lean Condition and Fix It
LearnSymptoms of a Bad Water Pump and What to Do Next