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 Articles →
🎬 Helpful Videos

Subaru Legacy Camshaft Position Sensor Guide (2011-2017)

Having trouble starting your 2011-2017 Subaru Legacy? It could be a bad camshaft position sensor.

4 minutes to read 2011-2017 Subaru Legacy
Difficulty
1/5
Est. Time
0.5 hrs
DIY Doable?
✅ Yes
Shop Labor
$50-$100
⚠️ Drivable, but... — You can drive short distances, but expect poor performance, stalling, and the risk of being stranded if the engine fails to restart.
Key Takeaways
  • A failing camshaft sensor on a 2011-2017 Legacy will likely cause a Check Engine Light (P0340/P0345), hard starting, and rough running.
  • Before replacing the sensor, be aware of Subaru's TSB #11-130-13R, which points to incorrect sensor clearance as a possible cause for the same symptoms.
  • Replacement is a simple DIY task requiring only basic tools, taking less than 30 minutes.
  • While budget aftermarket sensors are available, using a genuine Subaru (OEM) part is strongly recommended for long-term reliability.
The camshaft position sensor in your Subaru Legacy is a vital part of the engine's timing system. It tells the engine's computer (ECU) the exact position and speed of the engine's camshafts. This information is critical for the ECU to correctly time fuel injection and spark plug firing. With the precise data from this sensor, your Legacy's engine can run efficiently, providing stable power and good fuel economy.

Is Your Legacy's Engine Acting Up?

If your 2011-2017 Subaru Legacy is having trouble starting, idling roughly, or stalling, a failing camshaft position sensor could be the culprit. This sensor is a common failure point that can cause a range of frustrating engine problems. Understanding the symptoms and your replacement options can help you get your car back on the road quickly.

Known Issue: Technical Service Bulletin (TSB)

Subaru issued a Technical Service Bulletin (TSB #11-130-13R) for some 2013 and newer models, including the Legacy, with FA and FB series engines. The bulletin notes that the clearance between the camshaft position sensor and the camshaft may be incorrect. This can cause a Check Engine Light, rough idle, extended cranking, or a no-start condition. The fix may involve measuring the sensor gap and installing a shim, not just replacing the sensor. 🎬 Watch a professional test and replace a faulty sensor. It's wise to be aware of this issue before replacing the part, as a new sensor may not solve the problem if the gap is the real issue.

Symptoms of a Failing Camshaft Position Sensor

When a camshaft sensor starts to fail, your Legacy's computer gets confusing signals. This can lead to several noticeable problems:

  • Check Engine Light: This is often the first sign. You'll likely see codes like P0340 or P0345.
  • 🎬 See how these specific codes relate to your Subaru's sensors.
  • Hard Starting or No Start: The engine may crank for a long time before starting, or it may not start at all.
  • Rough Idle: The engine may shake or vibrate when you're stopped.
  • Engine Stalling: The engine might suddenly shut off while driving or when idling.
  • Poor Acceleration: You may notice the car feels sluggish or hesitant when you press the gas pedal.
  • Reduced Fuel Economy: When the engine timing is off, it burns more fuel than necessary.

Choosing the Right Aftermarket Part: OEM vs. Aftermarket

When it comes to critical engine sensors, there is a significant debate between using original equipment (OEM) parts and aftermarket alternatives. For Subaru vehicles, many owners and mechanics strongly recommend using genuine OEM sensors.

  • OEM Sensors: Made by Subaru's chosen manufacturer, these parts are designed for a perfect fit and reliable performance. They are the most expensive option but have the lowest risk of premature failure. The OEM part number for this sensor is typically 22056AA270.
  • Aftermarket Sensors (Replacement Brand): Aftermarket parts from brands like 'Replacement' offer a significant cost saving. While tempting, budget sensors have a reputation for being less reliable and may fail sooner than OEM parts. If the budget is tight, an aftermarket sensor can get your car running, but be aware that you might be replacing it again sooner than you would with an OEM part.

Pro Tip

Given the sensor's critical role and the relatively low labor cost to replace it, investing in an OEM sensor is often the most cost-effective choice in the long run to avoid future headaches and another replacement job.

Estimated Replacement Costs

The cost to replace a camshaft position sensor can vary based on the part you choose and who does the work.

Part/ServiceEstimated Cost
New OEM Part$100 - $145
New Aftermarket Part$32 - $120
Shop Labor$50 - $100

Frequently Asked Questions

How many camshaft sensors does a 2011-2017 Legacy have?

The 2.5L engine in this generation of Subaru Legacy has two camshaft position sensors, one for each camshaft (Bank 1 and Bank 2). Some models may have four sensors (intake and exhaust for each bank). It is important to diagnose which sensor has failed by reading the specific trouble code.

Where are the camshaft position sensors located?

The sensors are located on the front of the engine, mounted to the timing chain covers. They are typically held in place by a single 10mm bolt, making them relatively easy to access and replace.

Can I replace the sensor myself? 🎬 Watch this step-by-step walkthrough of the replacement process.

Yes, this is a very DIY-friendly job for someone with basic tools. The process involves unplugging the electrical connector, removing one 10mm bolt, and pulling the old sensor out. Just be sure to apply a little lubricant to the O-ring on the new sensor for easier installation.

What does the code P0340 mean on my Subaru Legacy?

P0340 indicates a malfunction in the camshaft position sensor 'A' circuit, which typically corresponds to Bank 1 (the passenger side on a Subaru). If you see P0345, that points to a problem with the sensor on Bank 2 (the driver's side).

Subaru Camshaft Position Sensor - P0340, P0365, P0345, P0390
Subaru Camshaft Position Sensor - P0340, P0365, P0345, P0390
Subaru Camshaft Position Sensor P0340 and P0341 Testing and Replacement
Subaru Camshaft Position Sensor P0340 and P0341 Testing and Replacement
How To Fix P0340 Code In Just 3 Minutes (7 Common Causes)
How To Fix P0340 Code In Just 3 Minutes (7 Common Causes)
How to FIX P0340 Camshaft Position Sensor Code!
How to FIX P0340 Camshaft Position Sensor Code!
How to Replace Camshaft Position Sensor 2010-2014 Subaru Outback (2.5L H4)
How to Replace Camshaft Position Sensor 2010-2014 Subaru Outback (2.5L H4)

Technical Specifications

OEM Part Numbers: 22056AA270

Electronic sensor with a single bolt mount and integrated O-ring seal.

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 Apr 6, 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 Camshaft Position Sensor for:
  • Subaru Legacy: 2011201220132014201520162017
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