OBD-II trouble code
P0340: Camshaft Position Sensor "A" Circuit (Bank 1 or Single Sensor)
Application matters: Confirm the input identified as camshaft-position A and its bank in the engine wiring and component-location information. The designation does not establish the camshaft type, vehicle side, sensor technology or a fallback strategy.
The engine controller detected a fault in the camshaft-position A input for bank 1 or the single-sensor application. Check the complete signal path before choosing a sensor, wiring or timing repair.
Quick facts
- System
- Powertrain
- Category
- Sensors / Timing
- Severity
- High severity
- Driving guidance
- Depends on symptoms and vehicle guidance
- Repair cost range
- $224 – $326 (Confirmed camshaft position sensor replacement — national example)
- DIY difficulty
- Shop recommended
A code alone cannot establish whether driving is safe. Stop safely for a red brake or oil-pressure warning, overheating, severe misfire, stalling, or impaired braking or steering, and follow the owner's manual. Restraints faults can reduce crash protection even when the vehicle runs normally.
Browse every code in P0300–P0394, or start from the full code library.
What does P0340 mean?
The camshaft-position input helps the engine controller identify engine phase and, where fitted, monitor camshaft control. P0340 identifies a circuit evaluation failure for the designated A input. It does not identify a failed part.
For example, Ford’s covered gasoline systems compare cam activity with crankshaft activity. Missing or unexpected events can result from the sensor, its electrical path, installation or the target it reads. The exact criteria distinguish this code from range/performance, low, high and intermittent faults on a particular engine.
A scan-tool synchronization value is the controller’s interpretation of the inputs. It is useful alongside the complete scan, but it is not a direct picture of the sensor waveform. Correct supply and wiring checks alone also do not prove the sensor has failed; functional signal and target checks may still be needed.
Starting and running behavior depend on the engine strategy. There is no universal crank-signal-only or batch-fire fallback. Arrange prompt diagnosis, and use recovery if the engine stalls, cuts out or starts unreliably.
Possible causes
- Loose, damaged or contaminated terminals in the specified CMP A path
- Open, short or excessive resistance in signal, supply or return wiring
- Faulty camshaft-position sensor or incorrect replacement part
- Incorrect sensor mounting or damaged sensing target
- Mechanical timing or cam-control fault where the diagnostic evidence indicates it
- Confirmed controller or calibration issue after the prescribed checks
Symptoms
- Check engine light with a current or stored cam-position fault
- Extended cranking or failure to start
- Intermittent stall, hesitation or rough running
- Reduced power or an altered cam-control strategy on equipped engines
- No obvious complaint while the fault is absent
Diagnostic steps
Save the full scan report, code status, and available freeze-frame data before clearing anything. Confirm the reporting module, any failure-type suffix, and the procedure for the exact vehicle. The steps below are an overview; use manufacturer specifications and safety procedures for testing.
- 1.Record all codes, their status and freeze-frame data before clearing anything. Note starting, stalling and recent engine work.
- 2.Locate the correct CMP A input from the exact engine information; identify its sensor design, terminals and applicable diagnostic criteria.
- 3.With ignition off, inspect the connector, visible harness, part identity and mounting. Investigate contamination where found rather than assuming oil on a sensor means failure.
- 4.Test the specified feeds, return and circuit integrity using the prescribed isolation and limits. Do not choose an ohmmeter test from wire count alone.
- 5.Have a technician compare the required cam and crank signals at the specified test points. Fit approved probes before cranking and secure them away from rotating and hot components.
- 6.Inspect the target, installation or mechanical relationship if the measured signals call for it. Disable starting before any mechanical access.
- 7.Repair the demonstrated cause, complete any specified setup, and verify the relevant monitor and symptoms. A new sensor or a cleared lamp alone is not confirmation.
Repair cost
$224 – $326 (Confirmed camshaft position sensor replacement — national example)
USD planning figures, not a vehicle-specific quote. Confirm the diagnosed job and whether the estimate includes diagnosis, parts, labor, programming, calibration, and taxes.
RepairPal lists USD224–326 for parts and labor, updated September 3, 2026 and checked November 6. This is a sensor-job example only. Taxes, fees, location variation, diagnosis, wiring, timing work and related repairs are separate; obtain an estimate for the actual vehicle.
Estimate your repair
Run the numbers for your vehicle
Open the Repair Cost Estimator with camshaft position sensor replacement preselected. Adjust labor rate and vehicle category to fit your situation.
Related repairs
These links are planning examples; the code does not confirm that any listed part has failed.
DIY vs shop
A qualified shop is recommended because this can involve engine timing components, where locking tools and exact sequencing are the difference between a repaired engine and valves meeting pistons. Ask the technician what testing confirmed the repair.