Known Issues/P0340/Nissan

P0340 on Nissan

Camshaft Position Sensor Circuit Malfunction

Critical8 Nissan models affected$150-$4,000 typical repairSystem: Engine
NewAI Photo & Video Diagnosis
Not sure this is what you've got?
Upload a photo or video — Au7o will confirm the match and check for other common failures at the same time.
Upload & confirm

P0340 on Nissan vehicles indicates camshaft position sensor circuit malfunction. Au7o has documented this code across 8 Nissan models — most commonly on 300ZX, Altima, Cube. This code means the engine computer lost or received an erratic signal from the camshaft position sensor. That sensor tells the computer the exact position and speed of the camshaft, which it uses together with the crankshaft sensor to time fuel injection and spark precisely. When the camshaft signal is missing, intermittent, or out of range, the computer sets P0340. Symptoms often include hard starting, stalling, rough running, or a no-start because the engine can't time itself correctly. Typical repair costs on Nissan range from $150 to $4,000, depending on the specific model and root cause.

Common Causes of P0340

  • •Failed camshaft position sensor
  • •Corroded or loose sensor connector
  • •Damaged or shorted sensor wiring
  • •Bad reluctor/tone ring on the camshaft
  • •Loose timing chain/belt or jumped timing
  • •Metal debris or oil contamination on the sensor tip
  • •Poor sensor power or ground supply
  • •Faulty PCM/ECM (rare)

P0340 on Nissan by Model

Nissan 300ZX(1 issue)

  • CAS (Crank Angle Sensor) Failure1990-1996

    The Crank Angle Sensor (CAS) on the VG30DE and VG30DETT engines is located inside the distributor and is a common failure point on both naturally aspirated and twin turbo Z32 models. The CAS provides timing information to the ECU, and when it fails, the engine will not start or will stall intermittently. The internal optical sensor deteriorates with heat and age. CAS failure is one of the most common reasons for Z32 no-start conditions. Replacement requires distributor removal.

Nissan Altima(2 issues)

  • Crankshaft and Camshaft Position Sensor Failures Causing Stalling or No-Start2002-2012

    Altimas in this period frequently suffer from failing crankshaft position sensors and camshaft position sensors, especially on the 2.5L and 3.5L engines. Owners report intermittent stalling at stops or while driving, extended cranking, sudden no-start conditions, and check-engine lights. Nissan issued service information and many owner reports describe repeat failures with cheap aftermarket sensors.

  • VQ35DE V6 Timing Chain Rattle from Worn Secondary Chain Guides and Tensioners2002-2018

    On the 3.5L VQ35DE V6 the plastic secondary timing chain guides/tensioner shoes become brittle and break, and the secondary (cam) chain tensioners lose tension. This produces a loud rattle or whine from the front of the engine, most pronounced for the first few seconds of a cold start. When a guide breaks, the chain runs slack and can contact the tensioner piston (the 'death rattle'), risking valve-timing skip and internal damage if ignored. Owners across multiple Altima forums document this as one of the defining VQ35DE problems, and there is a Nissan TSB covering secondary-chain replacement.

Nissan Cube(1 issue)

  • Intermittent Engine Stalling While Driving2009-2014

    Multiple owners report the Cube stalling unexpectedly while driving at various speeds, including highway speeds. The engine shuts off without warning, causing loss of power steering and power brakes. In some cases, pumping the accelerator at the moment of stalling can catch the engine before it dies completely. The issue has been linked to faulty crankshaft position sensors, throttle body failures, and ECM software bugs.

Nissan Frontier(1 issue)

  • Distributor / Ignition System Failure Causing Sudden Stall or No-Start2000-2004

    A well-documented failure on first-generation Frontier V6 trucks is the distributor assembly, especially the internal cam/crank angle sensor and bearing wear inside the distributor. Owners report intermittent bucking, random stalling, hard starts, and eventual crank-no-start, often after the engine warms up. Nissan issued service information for distributor-related drivability faults, and owner complaint patterns are consistent across Frontier and related Xterra applications using the VG33E/VG33ER.

Nissan Maxima(1 issue)

  • Crank/Cam Position Sensor Failure (No-Start, Random Stalling)1995-1999

    The crank and cam position sensors are a well-documented weak point on the 4th-generation VQ30DE Maxima. Internal solder joints and the sensor's electronics degrade with heat and age, producing intermittent or lost signal. This is the same failure mode Nissan later formally recalled on the 2000-2002 cars (NHTSA 03V455000) for improper solder joints; 1995-1999 owners experience identical symptoms without recall coverage. (Note: unlike the earlier VG30 engines, the A32 VQ30DE is distributorless with coil packs; the crank position REF sensor sits near the oil filter, the POS sensor at the rear of the oil pan, and the cam sensor at the front timing cover.)

Nissan Pathfinder(2 issues)

  • VQ35DE Timing Chain Stretch and Guide Wear2013-2016

    The 2013-2016 Pathfinder with the 3.5L VQ35DE engine develops timing chain stretch and chain guide wear, typically after 80,000-120,000 miles. The timing chain tensioner, secondary chain tensioners, and plastic chain guides all degrade over time. Stretched chains cause rattling on cold start, timing drift triggering misfire codes, and eventual engine failure if the chain jumps timing. The VQ35DE uses three chains (primary and two secondary), making replacement a complex job requiring 8-12 hours of labor. Infrequent oil changes accelerate chain and guide wear due to inadequate tensioner lubrication.

  • Optical distributor failure (VG30E/VG33E) causing misfire, rough idle, stalling and no-start1990-1999

    The V6 Pathfinders of this era use a camshaft-driven Hitachi distributor that houses the optical crank/cam position sensor and rotor inside a single unit. It is one of the most frequently reported failure points on the WD21 (1990-1995 VG30E) and early R50 (1996-1999 VG33E) trucks. Internal wear, a degrading optical disc, a failing internal coil, or the rotor-retaining screw working loose leads to intermittent or complete loss of spark and timing signal. Failures are often heat-related, showing up once the engine is warm and worsening under load.

Nissan Rogue(1 issue)

  • 2.5L QR25DE Timing Chain Stretch and Tensioner/Guide Rattle2014-2020

    The QR25DE 2.5L four-cylinder used in the second-generation (T32) Rogue is prone to timing-chain tensioner wear and chain/guide stretch. Worn plastic guides and a weak tension-side tensioner produce a loud rattle, most noticeable at cold startup and idle. As the chain stretches, valve timing drifts, triggering camshaft/crankshaft correlation faults; if ignored it can progress to chain skip, contact damage, or catastrophic engine failure. Nissan has historically characterized the noise as normal, but owners and independent shops document genuine tensioner/guide failures.

Nissan Sentra(3 issues)

  • Crankshaft and Camshaft Position Sensor Failure Causing Intermittent Stall or No-Start2002-2006

    A common failure on B15 Sentras is deterioration of the crankshaft position sensor and, less often, the camshaft position sensor. Owners report sudden stalling while driving, extended cranking, or a hot no-start condition that becomes more frequent over time. Nissan issued service information for engine stall/no-start conditions tied to these sensors, and owner complaints frequently mention the engine cutting out without much warning.

  • Crankshaft Position Sensor Failure Causing Hot Stalling / No-Start2013-2019

    The crankshaft position sensor's internal electronics degrade with heat and fail intermittently. As the engine warms the sensor signal drops out, causing the engine to stall and refuse to restart until it cools, then run normally again. It sets P0335/P0336 and is frequently misdiagnosed. Nissan owners report premature failure of cheap aftermarket sensors, so an OEM/Hitachi unit is recommended; on many Sentras the camshaft sensor is replaced alongside it.

  • Optical crank/cam angle sensor failure inside the distributor (oil-seal leak) causing stalling and no-start1991-1999

    The defining electrical failure of the 1990s Sentra. On both the GA16DE (1.6L) and SR20DE (2.0L), the crank angle and camshaft position signals are generated by an OPTICAL sensor (a slotted disc read by an LED/photo-diode) housed inside the distributor. Two age-related failure modes dominate: (1) the internal distributor shaft seal fails and engine oil weeps up into the distributor, coating the optical disc and electronics; and (2) the optical encoder/electronics degrade or the encoder wheel works loose. As the sensor warms with the engine it drops out intermittently, so the classic pattern is an engine that runs, then stalls once hot and refuses to restart until it cools. At high mileage it becomes a hard-crank or no-start. Because the sensor is integral to the distributor, Nissan supplies it only as a complete distributor assembly.

Looking for P0340 on a different make?

View P0340 across all makes →

Frequently Asked Questions

What does P0340 mean on Nissan?▼

P0340 stands for "Camshaft Position Sensor Circuit Malfunction." This code means the engine computer lost or received an erratic signal from the camshaft position sensor. That sensor tells the computer the exact position and speed of the camshaft, which it uses together with the crankshaft sensor to time fuel injection and spark precisely. When the camshaft signal is missing, intermittent, or out of range, the computer sets P0340. Symptoms often include hard starting, stalling, rough running, or a no-start because the engine can't time itself correctly. On Nissan specifically, this code is documented across 8 models.

What causes P0340 on Nissan vehicles?▼

Common causes on Nissan: Failed camshaft position sensor, Corroded or loose sensor connector, Damaged or shorted sensor wiring, Bad reluctor/tone ring on the camshaft, Loose timing chain/belt or jumped timing. Specific causes vary by model and year — see the per-model sections below.

How much does it cost to fix P0340 on a Nissan?▼

Repair costs on Nissan range from $150 to $4,000, depending on the specific model and root cause.

Which Nissan models have P0340 documented?▼

Au7o has documented P0340 on 8 Nissan models: 300ZX, Altima, Cube, Frontier, Maxima, Pathfinder, Rogue, Sentra.

Share:@au7o.io