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

Guide to the 1999-2006 Nissan Altima Crankshaft Position Sensor

Understand the common and frustrating stalling and starting issues with your Nissan Altima.

4 minutes to read 1999-2006 Nissan Altima
Difficulty
2/5
Est. Time
0.75 hrs
DIY Doable?
✅ Yes
Shop Labor
$70-$140
🚫 Do not drive — It is not recommended, as the engine can stall without warning, creating a serious safety risk.
Key Takeaways
  • Engine stalling is a major symptom and safety risk for 1999-2006 Altimas, linked to a recall on 2.5L models.
  • The most common trouble code is P0335.
  • Many owners and mechanics strongly recommend using OEM or high-quality aftermarket sensors to avoid repeat failures.
  • It is highly recommended to replace the camshaft position sensor at the same time as the crankshaft sensor.
The crankshaft position sensor is a small but vital electronic part in your Altima's engine. It constantly watches the position and speed of the engine's crankshaft. This information is sent to the main computer, called the Engine Control Module (ECM). The ECM uses this data to perfectly time the spark plugs and fuel injectors. Without a good signal from this sensor, your engine can run poorly or not at all.

Is Your Altima Stalling? It Could Be the Crankshaft Sensor

A 2002-2006 Nissan Altima, a model frequently affected by crankshaft position sensor failure.
The 2002-2006 Nissan Altima (specifically the 2.5L models) is well-known for engine stalling issues related to the crankshaft position sensor.

Owners of the 1999-2006 Nissan Altima, especially the 2002-2006 models with the 2.5L engine, often face a common and frustrating problem: the engine stalls without warning or has trouble starting. A frequent cause for this is a failing crankshaft position sensor. This small part plays a huge role in keeping your engine running smoothly, and its failure is a well-documented issue for this generation of Altima.

Recall and Known Issues

Nissan issued a recall for some 2002, 2005, and 2006 Altima models with the 2.5L engine due to the crankshaft position sensor. The original sensors could overheat, causing the signal to cut out and the engine to stall suddenly at low speeds, which is a major safety risk. The official recall (NHTSA Campaign ID: 07V527000) involved reprogramming the engine's computer (ECM). However, many owners and mechanics find that replacing the faulty sensor is the real, long-term solution. Even if your specific car wasn't part of the recall, these sensors are a known weak point.

Common Symptoms of a Bad Sensor

Comparison between a new, clean crankshaft position sensor and a failed sensor with heat damage or cracking.
A new crankshaft sensor (left) compared to a failed unit (right) that may show signs of heat-related cracking or internal electrical failure.

When this sensor starts to fail, your car will give you clear signs. You might experience one or more of the following:

  • Check Engine Light: The most obvious sign is the "Service Engine Soon" light on your dashboard. The most common trouble code stored in the computer is P0335.
  • Engine Stalling: The engine may shut off unexpectedly, especially after it has warmed up or when you are driving at low speeds. This is the most dangerous symptom.
  • Hard Starting: Your Altima may crank for several seconds before the engine finally starts.
  • No Start: In the worst case, the engine will crank but will not start at all.
  • Rough Idling and Misfires: The engine may run poorly, vibrate, or misfire because the computer can't time the spark plugs correctly.

Choosing the Right Aftermarket Part

A new aftermarket crankshaft position sensor in its retail packaging.
When selecting an aftermarket sensor, choosing a reputable brand is critical to ensure the part doesn't fail prematurely.

When it comes to replacing the crankshaft sensor on a 1999-2006 Altima, the quality of the new part matters a lot. Many owners have reported that cheap, low-quality aftermarket sensors either don't work right out of the box or fail very quickly, leading them to do the job twice. For a critical part like this, it is often recommended to use a part from the original manufacturer (OEM) or a high-quality aftermarket brand. However, if you are on a budget, a standard aftermarket part can be an option, but be aware of the potential for shorter life or performance issues.

Pro Tip: Replace the Camshaft Sensor Too

Your Altima also has a camshaft position sensor that works with the crankshaft sensor. These two sensors often fail around the same time. On many 2.5L models, the crankshaft and camshaft sensors are the exact same part. To save yourself time and future headaches, it is a common and highly recommended practice to replace both sensors at the same time.

Estimated Cost Comparison
Part/Service Estimated Cost
New OEM Part $81 - $133
New Aftermarket Part $31.86 - $35.34
Shop Labor $70 - $140
Total Professional Replacement $151 - $236

Frequently Asked Questions (FAQ)

The location of the crankshaft position sensor on a Nissan Altima engine block.
On the 2.5L Altima engine, the sensor is tucked away on the back of the engine block near the transmission, making it a 'reach-by-feel' job.
Where is the crankshaft position sensor located?

On the 2.5L engine, the sensor is located on the back of the engine block, near the transmission. It can be difficult to see and is often reached by feel. On the 3.5L V6 engine, it is on the lower front side of the engine. You may need to remove the air intake tube or work from underneath the vehicle to gain access.

🎬 See a helpful walkthrough of the sensor's location and removal.
Can I replace this sensor myself?

Yes, this is a job many DIY mechanics can handle. It requires basic tools like a 10mm socket and extensions. The main challenge is the sensor's location, which can be hard to reach. Be sure to apply a little clean engine oil to the new sensor's O-ring 🎬 Follow this step-by-step video to replace the sensor yourself. before installation.

What is the difference between a crankshaft and a camshaft sensor?

The crankshaft sensor tracks the rotation of the engine's crankshaft, while the camshaft sensor tracks the position of the camshafts (which open and close the valves). The computer uses both signals to get a complete picture of the engine's cycle. On many 2002-2006 Altimas with the 2.5L engine, the two sensors are identical parts.

Will a cheap aftermarket sensor work?

While it might work initially, many Nissan owners and mechanics report problems with non-OEM sensors for this specific part. These issues range from the part failing quickly to causing persistent starting problems. Using a higher-quality part is often recommended to ensure a lasting repair.

What does the P0335 code mean?

P0335 stands for "Crankshaft Position Sensor 'A' Circuit Malfunction." It means the engine's computer is not receiving a signal, or is receiving an incorrect signal, from the crankshaft position sensor. This is the most common code associated with a failed sensor on this vehicle.

🎬 Watch this guide on how to test for a P0335 code.
2002-2006 Nissan Altima P0335 Crank Position Sensor Testing | The Unapproved Method
2002-2006 Nissan Altima P0335 Crank Position Sensor Testing | The Unapproved Method
Crank Sensor 02-06 Nissan Altima "How to"
Crank Sensor 02-06 Nissan Altima "How to"
How to Replace Crankshaft Position Sensor 02-06 Nissan Altima L4 2.5L
How to Replace Crankshaft Position Sensor 02-06 Nissan Altima L4 2.5L

Technical Specifications

OEM Part Numbers: 23731-6N21A 23731-JA00B 23731-JA00C

Typically a single-bolt Hall effect sensor with a 3-pin electrical connector. On many 2.5L models, the part is interchangeable with the camshaft position sensor.

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 Jun 1, 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 Crankshaft Position Sensor for:
  • Nissan Altima: 19992000200120022003200420052006
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