Nissan · Engine · Critical code

P0340 on Nissan: How to Diagnose & Fix

Camshaft Position Sensor Circuit Malfunction

12 Nissan models · 17 documented issues · 11 critical · $30-$4,000 repair

Share:@au7o.io

P0340 on Nissan by model: symptoms, diagnosis and fix

Community reported
180 owners

Owners report Cubes that suddenly stall or stop pulling while driving, sometimes at highway speed, often with no warning lights at first. When the engine actually dies, power steering and brake assist are lost and the car can be hard to restart. Owner reports do not point to one cause. On 2009-2010 Cubes, many "stalls" turned out to be the CVT transmission: the engine revs but the car coasts, or the car goes into fail-safe mode. One owner reported the CVT codes P1778, P0868, P0725 and P0746, and several owners had the transmission replaced more than once. Other owners describe true engine shut-offs that dealers could not find a cause for. A 2012 owner had repeated shut-offs in hot weather; a shop recommended a relay, and the dealer did a computer update, but the car shut off again. A 2009 owner's mechanic suspected an overheating fuel pump. No stalling-specific service bulletin is listed for the 2010 Cube. A 2011 bulletin, SB-11-016A, covers RPM fluctuation at highway speed on 2009-2010 Cubes.

Common Symptoms

  • Engine shuts off without warning while driving, sometimes at highway speed
  • Loss of power steering and brake assist when the engine dies
  • Engine revs but the car slows or will not move (CVT loss of drive or fail-safe mode)
  • Check engine light may come on only later, or not at all
  • Difficulty restarting after stalling

How to Fix

1) Note what happens when the car stalls. Did the tachometer drop to zero and the engine shut off, or did the engine keep running or rev while the car stopped moving? Revving without moving points to the CVT, not the engine. 2) Have the codes read right after it happens, including stored and pending codes. CVT codes one owner reported were P1778, P0868, P0725 and P0746. Check the CVT fluid level too, because one dealer found it overfilled. 3) If RPM rises and falls at steady highway speed on a 2009-2010 Cube, ask a Nissan dealer about bulletin SB-11-016A (RPM fluctuation on the highway). 4) If the engine truly dies with no codes, ask the shop to check the fuel supply and the relays while the fault is happening, especially in hot weather. Owners report that dealers often find nothing when the car is running normally. Coverage: Nissan extended CVT coverage on 2003-2010 CVT-equipped models to 10 years or 120,000 miles, but that time limit has now passed for every 2009-2010 Cube, and 2011 and later model years were outside it. Cost: owners report paying or being quoted about $2,935 to $4,500 for a CVT replacement. One 2012 owner was quoted about $460 for a relay and about $740 for a transmission computer.

Find a nearby Nissan repair shop in Google Maps ↗

Call to confirm they can assess your vehicle and perform the stated work. Search results do not confirm qualification, eligibility or coverage.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Genuine Nissan crankshaft position sensor 23731-1VA0A

    2009-2014 Cube 1.8L on the live fitment table; confirm VIN and connector/current supersession.

  • Genuine Nissan camshaft position sensor 23731-EN22A

    2009-2014 Cube 1.8L on the live fitment table; confirm VIN/current supersession.

  • Genuine Nissan electronic throttle body 16119-9SE0A

    Confirm VIN/core terms and complete all required electronic-throttle learning.

  • Genuine Nissan spark plug 22401-JD01B

    Quantity four; verify VIN, plug specification and gap-handling instructions.

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Owner tips & cautions

  • TipClean the throttle body with CRC Throttle Body Cleaner every 30,000 miles — this prevents carbon buildup that causes stalling.
  • WarningStalling at highway speeds is extremely dangerous. If it happens more than once, do not drive until diagnosed.
Typical repair cost:$150 - $700
Sources for this issue (6)

Research This Issue

Based on 180 owner reports

Community Reported
Medium Confidence180 owner reportsLast reported by owners Mar 2026Updated Nov 7, 2026

The Z32 uses an optical crank angle sensor driven off the camshaft at the front of the driver's-side (left) cylinder head; the Z32 has no distributor, and the CAS takes its place. It reads engine speed and crank position via a slotted disc and photodiodes (360 slits plus six 120-degree reference slits). With age the internal LED/photodiode optics degrade, the sealed bearing wears, and the connector corrodes — producing intermittent or total spark/timing signal loss. Because the ECU relies on the CAS for both ignition and injection timing, a failing unit causes hot-restart failures, stalling, and no-starts that are notoriously hard to chase. Many are misdiagnosed when the real fault is corrosion in the harness connector.

Common Symptoms

  • Intermittent stalling, often when hot
  • No-start or hard hot-restart
  • Engine cuts out then restarts after cooling
  • Erratic tachometer
  • No spark condition

How to Fix

Inspect and clean the CAS harness connector first. If the sensor itself is bad, replace with an OEM/genuine unit or a professionally rebuilt CAS; align the rotor to the timing reference and set base ignition timing after installation. Avoid low-quality aftermarket CAS units, which have a poor reputation.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Tested used OEM Nissan Z32 crank-angle sensor

    Used part—confirm condition and return terms.

  • Z1 early-style Z32 CAS connector and terminal kit

    Use only when the installed Z32 CAS has the early connector style; normally the 1990-1993 sensor branch. Requires correct terminal crimping/pinning and does not repair a failed optical sensor.

  • Z1 new-style Z32 CAS connector and terminal kit

    1990-1996 Z32 only when the installed or conversion CAS uses the new-style connector; verify wire order from the factory diagram.

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Typical repair cost:$200 - $700
Sources for this issue (4)

Research This Issue

Community Reported
High ConfidenceVerifiedUpdated Oct 27, 2026

The VK56 timing chain system uses plastic-faced guides and an oil-pressure-fed hydraulic tensioner. The feed passage to the tensioner is very small and gets restricted by sludge or debris on trucks run on stretched oil-change intervals, so the tensioner loses pressure and the chain goes slack. The chain then saws through the guide face and can contact the chain oiler jet, producing a rattle or squeal from the front cover that is loudest for the first seconds after a cold start and under light load. Left alone, guide material breaks off into the pan, timing drifts, and in the worst cases the chain jumps a tooth.

Common Symptoms

  • Rattle from front of engine on cold start
  • Whine or squeal from timing cover
  • Noise quiets after oil pressure builds
  • Plastic debris in oil pan or filter
  • Rough running or misfire after chain jumps a tooth

How to Fix

Confirm with a cold-start listen at the front cover and drop the pan to look for plastic guide debris. The correct repair is a full front-cover teardown: replace both chain guides, the tensioners, the chain(s), and the front crank/cam seals, and clear the tensioner oil feed passage - replacing guides alone while leaving a clogged or worn tensioner leaves the noise. Return to a strict 5,000-mile oil interval afterward. If the chain has already jumped, check valve-to-piston contact before reassembly.

Typical repair cost:$1,800 - $3,500
Sources for this issue (4)

Research This Issue

Community Reported
Low ConfidenceVerifiedReviewed Oct 27, 2026

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.

Common Symptoms

  • engine stalls while driving
  • crank but no start
  • hard hot restart
  • intermittent misfire or bucking
  • tachometer drops suddenly
  • check engine light

How to Fix

Diagnosis usually includes checking for loss of spark/injector pulse, monitoring cam/crank signal, and inspecting distributor shaft play or oil contamination. In most cases the fix is replacement of the complete distributor assembly rather than only the cap/rotor, followed by base timing verification where applicable and inspection of plugs/wires if misfire damage occurred.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Nissan Value Advantage complete distributor B2100-0W00JNW

    Confirm VIN, naturally aspirated versus supercharged application and current supersession.

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Owner tips & cautions

  • TipUse a complete OE-quality distributor rather than the cheapest aftermarket unit; many owners report repeat failures with low-cost reman parts.
Typical repair cost:$250 - $700
Sources for this issue (2)

Research This Issue

Community Reported
High ConfidenceUpdated Oct 27, 2026

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 2002-2003 Maxima (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.)

Common Symptoms

  • Extended cranking before start
  • Sudden stalling while driving
  • Intermittent no-start
  • Rough or shaking idle
  • Check engine light
  • Hesitation / sluggish acceleration

How to Fix

Confirm with a scan tool (P0335 / P0340). Replace the failed crank/cam position sensor; many mechanics recommend replacing the crank and both cam sensors together since they share the same aging failure. Use Hitachi/OEM units, as cheap aftermarket sensors frequently fail again quickly.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Genuine Nissan crankshaft position sensor-reference 23731-31U11

    Direct listing covers 1995-2002 Maxima and replaces 23731-31U10; use only the record's 1995-1999 subset and confirm VIN, lookup position and installed number.

  • Genuine Nissan crankshaft position sensor-position 23731-35U11

    Direct listing covers 1995-2002 Maxima and supersedes 23731-35U00/35U10; limit to 1995-1999 and verify VIN and sensor position.

  • Genuine Nissan camshaft phase sensor 23731-38U12

    Direct listing covers 1995-2002 Maxima; use only 1995-1999 and verify VIN, connector and installed number.

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Typical repair cost:$150 - $450
Sources for this issue (4)

Research This Issue

Community Reported
Medium ConfidenceVerifiedUpdated Oct 27, 2026

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.

Common Symptoms

  • Rattling or chattering noise on cold start that diminishes as engine warms
  • Check engine light with timing-related codes
  • Engine misfires, especially at idle
  • Reduced engine power and performance
  • Metal debris in oil (visible on drain plug magnet)
  • Increasingly loud timing chain rattle over time

How to Fix

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • OEM Nissan 2013-2016 Pathfinder VQ35DE complete timing kit

    2013-2016 Pathfinder with VQ35DE only; select the correct year option and provide VIN. Does not include every front-cover seal, VVT component or labor item.

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Typical repair cost:$2,000 - $4,000

Research This Issue

Community Reported
Medium Confidence

P0340 code reference

General diagnostic-code context. The code alone does not confirm a cause for your vehicle; use the applicable issue card and its sources.

Frequently asked questions

What does P0340 mean on a 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 it is documented across 12 models: Cube, 300ZX, Armada, Frontier, Maxima, Pathfinder, Rogue, Sentra, 240SX, 350Z, Altima, Murano.

What are the most common causes of P0340?

The most common causes of P0340 are: 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). The specific cause varies by vehicle.

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

Published repair estimates on Nissan range from $30 to $4,000 depending on the model and root cause. If an issue mentions a recall or campaign, check your VIN with the manufacturer or NHTSA and confirm eligibility and coverage with a dealer.

Looking for P0340 on a different make?

View P0340 across all makes →
🔧
A mechanic who knows YOUR exact car
Answers tuned to your year, make, model & trim — not generic advice. Save your garage so it always has the right context.
Get notified about P0340 fixes on Nissan
We add new causes, fixes and affected Nissan models for P0340 regularly — drop your email and we'll keep you posted. You can also diagnose your own car free.

Join 700+ subscribers following Au7o for vehicle insights and updates.

Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.

Explore free Hub demo