P0335 Hyundai Elantra: Diagnose the Crankshaft Signal Before Replacing Parts
21 min read · by Nicole Bennett · Last updated: November 25, 2026
P0335 Hyundai Elantra means the engine computer has detected a problem with the crankshaft position sensor A circuit or its signal. This sensor helps the computer determine engine speed and crankshaft position so it can coordinate ignition timing and fuel injection. A missing, distorted, or unreliable signal can cause hard starting, unexpected stalling, poor running, or a complete no-start condition.
A faulty crankshaft position sensor is one possible cause, but replacing it without testing the wiring, connectors, sensor power supply, and crankshaft signal can waste money. The same code can result from an electrical connection problem, damaged wiring, a problem with the crankshaft target wheel, or incorrect engine synchronization.
The correct diagnostic procedure depends on your Elantra’s model year and engine. Start with an OBD2 scan, save the freeze-frame information, and check the live engine-speed reading before deciding which component needs attention.
What P0335 Means on a Hyundai Elantra
P0335 identifies a fault involving crankshaft position sensor A or its electrical signal circuit. The computer needs reliable crankshaft information to calculate engine speed and determine when cylinders reach the correct position for ignition and fuel delivery.

The five-character code provides useful information. Its first character, P, identifies a powertrain fault. The second character, 0, identifies a generic SAE code rather than a manufacturer-specific P1xxx code. The remaining characters identify the particular fault category. P0335 is therefore a standardized crankshaft sensor circuit code, even though the exact diagnostic procedure differs between vehicle applications.
The crankshaft position sensor, commonly called the CKP sensor, monitors a rotating target connected to the crankshaft. As the target passes the sensor, it produces an electrical signal. The engine control module (ECM) or powertrain control module (PCM) uses that signal to calculate crankshaft speed and position. It combines this information with the camshaft position sensor signal to establish engine synchronization.
This is important because the engine computer cannot reliably control ignition and injection timing if it does not know where the crankshaft is. If the CKP signal disappears while the camshaft signal is still present, the computer may recognize that the engine is rotating but cannot establish the expected crankshaft position information. It can then register P0335.
Hyundai-specific diagnostic information provides useful examples of how this monitoring works. The 2012 Elantra MD reference published by AutoHex describes a Hall-effect sensor and a crankshaft target wheel with 58 slots, including one longer slot. That longer reference point helps the computer identify crankshaft position and synchronize the crankshaft signal with the camshaft signal. These details apply to the documented application, not automatically to every Elantra generation.
The same reference describes P0335 detection when the number of crankshaft teeth counted during a revolution is incorrect or the crankshaft signal is missing while a camshaft signal is available. It also identifies problems involving the sensor circuit, connector, wiring, flywheel, and crankshaft-to-camshaft positioning as possible causes. See the 2012 Hyundai Elantra P0335 diagnostic reference for the documented signal description and detection conditions.
The table below summarizes several values listed in that particular 2012 Elantra MD diagnostic reference. They help explain the monitoring strategy, but they should not be treated as universal specifications for every engine or model year.
| Diagnostic item | Documented value | Meaning |
|---|---|---|
| Crankshaft target wheel | 58 slots, including one longer slot | Provides crankshaft speed and synchronization information. |
| Signal relationship | Approximately 3–5 CKP teeth | Describes the documented relationship between the camshaft switching edge and crankshaft reference. |
| Diagnostic time | 3 crankshaft revolutions | Listed time for the specific signal plausibility check. |
| Battery enable condition | Above 6 V and below 16 V | The documented monitor operating window, not a battery health target. |
| Expected waveform | Smooth square wave | A distorted or missing signal requires further inspection. |
If your Elantra belongs to a different generation, do not use the 58-slot description, voltage window, or signal relationship as a substitute for the correct factory service information. Sensor design, wiring arrangements, target-wheel construction, and detection logic can vary by model year and engine. P0455 Hyundai Elantra Code covers another issue owners of this vehicle run into.
Symptoms and Driving Risk
A crankshaft position signal problem can affect engine operation immediately because the computer needs this information during starting and while the engine is running. Symptoms can range from an illuminated check engine light to intermittent stalling or a complete inability to start.
Common warning signs
- Cranking without starting: The starter turns the engine, but combustion does not begin because the computer cannot establish a reliable crankshaft signal or engine synchronization.
- Intermittent starting problems: The Elantra may start normally when cold but struggle after the engine has warmed up. An internal sensor fault or heat-sensitive electrical connection can produce an intermittent signal.
- Unexpected stalling: The engine may shut off while idling, slowing down, or driving if the crankshaft signal disappears.
- Rough running: An inconsistent signal can interfere with accurate engine timing and contribute to hesitation or irregular operation.
- Check engine light: The malfunction indicator lamp may illuminate after the computer identifies the fault according to its programmed monitoring conditions.
- Loss of engine power: Poor synchronization can interrupt normal engine operation, making acceleration unpredictable.
Not every Elantra with P0335 will show all these symptoms. A sensor may produce a usable signal most of the time and fail only under certain temperatures, vibration levels, or operating conditions. Another vehicle may have a completely failed signal and refuse to start at all.
The presence of P0335 alone does not establish how severe the current mechanical problem is. A car that starts and runs smoothly may have an intermittent electrical fault. A vehicle that repeatedly stalls has a more immediate safety concern, even if the check engine light is steady rather than flashing.
Is it safe to drive with P0335?
Driving with P0335 is not recommended until the cause is understood. An engine that suddenly loses its crankshaft position signal can stall without much warning. That can leave you with less predictable acceleration and reduced power assistance while maneuvering or moving through traffic.
If the engine is stalling, refusing to restart, shaking severely, or losing power, arrange a tow rather than continuing to drive. Repeated attempts to restart an engine with an unreliable signal may also leave you stranded in an inconvenient or unsafe location.
If the check engine light is steady and the Elantra runs normally, a short, cautious trip to a repair facility may be possible, but it is not a guarantee of safety. Avoid highways, heavy traffic, and unnecessary trips. If the check engine light flashes, treat the situation as urgent. A flashing light generally indicates an active misfire that can damage the catalytic converter. Reduce engine load and seek prompt professional attention.
Tip: Do not assume that an Elantra is safe to drive just because it restarts after stalling. An intermittent crankshaft signal can fail again under similar operating conditions. Record the code and freeze-frame data, then arrange an inspection before relying on the vehicle for regular transportation.
Common Causes of P0335 on the Elantra
P0335 can originate in several parts of the crankshaft position sensing system, not just the sensor itself. The most useful starting points are the CKP sensor, its wiring and connectors, the electrical supply, the crankshaft target wheel, and the mechanical relationship between the crankshaft and camshaft.

1. Faulty crankshaft position sensor
An aging CKP sensor may develop an internal electrical failure. Its output can become weak, intermittent, distorted, or completely absent. Heat and vibration can make an existing defect more noticeable, which explains why some vehicles have difficulty restarting after a long drive.
A sensor failure does not always produce a permanent no-start condition. It may operate normally when cold and fail as its internal components heat up. It may also produce an unstable signal during cranking but work again after the engine has cooled. A technician should check the signal under the conditions that produce the complaint instead of testing the vehicle only when it happens to be running normally.
2. Damaged wiring or poor electrical connections
The CKP sensor depends on a reliable electrical path to the engine computer. A broken wire, damaged insulation, loose connector, corroded terminal, or poor ground can interrupt that path. A connector can look normal from outside while a terminal inside has lost its proper contact pressure.
Heat exposure, engine vibration, previous repair work, moisture, and contact with nearby components can all affect the harness. An intermittent open circuit may disappear when the engine is stationary and return once the vehicle vibrates during driving. This is why inspecting the connector and harness is important even when a new sensor appears to be the obvious solution.
3. Crankshaft target wheel or flywheel damage
The crankshaft sensor reads a rotating target. Depending on the engine design, this target may be associated with a reluctor wheel, crankshaft-mounted trigger, or flywheel arrangement. Damaged, missing, or distorted teeth can produce an abnormal signal even when the sensor and wiring are working correctly.
Contamination or physical damage can also affect the signal. A sensor that is not positioned correctly relative to its target may struggle to read the passing features. The correct inspection method depends on the engine configuration, so the specified sensor clearance and target-wheel inspection procedure must come from the matching service information.
4. Incorrect crankshaft and camshaft synchronization
The engine computer compares information from the crankshaft and camshaft position sensors. If their signals do not line up as expected, the computer may not establish reliable engine synchronization. Incorrect mechanical timing, a damaged timing component, or a related pulley positioning problem can therefore contribute to a crankshaft signal fault.
This possibility deserves attention if P0335 appeared after timing-system work, engine disassembly, or another repair involving crankshaft or camshaft components. Replacing the sensor alone will not correct a mechanical timing problem. Additional codes, abnormal signal correlation, or unusual engine behavior may help identify this direction.
5. Power supply or ground problem
Some CKP sensor designs depend on an external power supply, while other designs generate their own electrical signal. The correct circuit checks depend on whether the Elantra uses a Hall-effect or magnetic-inductive sensor. A power, ground, or signal-circuit fault can therefore imitate a failed sensor.
The battery and charging system are also worth checking when the vehicle has several unrelated electrical codes or difficult starting. A healthy battery at rest is generally around 12.6 volts, while a typical running charging-system reading is approximately 13.5 to 14.7 volts. These are general electrical-system reference figures, not CKP sensor signal specifications or proof that the sensor circuit is good.
An engine computer fault is possible but should not be the first assumption. Before condemning the ECM or PCM, a technician should verify the sensor, relevant circuits, connectors, power supply, ground, and signal quality using the correct wiring diagram and diagnostic specifications. A related problem on the same vehicle is explained in P0606 Hyundai Elantra.
How to Diagnose P0335 with an OBD2 Scanner
An OBD2 scanner can establish whether P0335 is present, reveal related trouble codes, and provide useful engine data. The best approach is to preserve the original diagnostic information first, then examine live crankshaft and camshaft behavior before replacing parts.
Step 1: Read all diagnostic trouble codes
Connect an OBD2 scanner to the 16-pin diagnostic connector, normally located beneath the driver-side dashboard. Switch the ignition on and follow the scanner’s instructions. Read the codes from the engine control system and save the results before making any changes.
Do not concentrate on P0335 while ignoring other stored codes. A camshaft position code, ignition-related code, or low-voltage code may provide information about the wider problem. Multiple related codes can help distinguish an isolated CKP fault from a broader engine synchronization or electrical issue.
Record whether P0335 is pending, stored, or accompanied by other faults. A pending code indicates that the computer has detected a problem that has not yet met the conditions for confirmation. This status can be particularly useful when an Elantra has an intermittent starting complaint.
Step 2: Save the freeze-frame data
Freeze-frame data records selected operating conditions associated with a fault. Depending on vehicle and scanner support, it may include engine RPM, vehicle speed, coolant temperature, calculated engine load, and other engine parameters. This information can help identify whether P0335 appeared while starting, idling, accelerating, or driving at a steady speed.
For example, a freeze frame showing the engine near normal operating temperature may be useful if the owner reports hot-start problems. A snapshot showing very low or zero RPM during an attempted start may support further investigation of the CKP signal. Neither result confirms a failed sensor by itself, but both can guide the next test.
Preserving this information matters. The EPA identifies stored trouble codes and associated freeze-frame data as important diagnostic evidence and advises against clearing them before the diagnostic inspection is complete. Mode $02 on an OBD2 scanner is the standard request for powertrain freeze-frame data, although menu names vary between scan tools.
Step 3: Check live engine RPM while cranking
Select the engine RPM parameter in the scanner’s live-data menu. Observe the reading while the starter is operating, using the vehicle manufacturer’s recommended starting procedure. A reading that remains at zero during cranking can indicate that the computer is not receiving usable crankshaft speed information.
A nonzero RPM reading does not automatically prove that the sensor is healthy. The signal may be intermittent, distorted, or unreliable enough to prevent correct synchronization even though the scanner displays an engine-speed value. Some generic scanners also update data slowly, so a short signal interruption may not appear clearly on the screen.
Compare the data during a normal start and during the problem if the condition can be reproduced safely. A sudden loss of the RPM reading while the starter is turning can help establish a connection between the starting complaint and the crankshaft sensing circuit.
Step 4: Compare crankshaft and camshaft information
An enhanced diagnostic scanner may provide additional CKP and CMP parameters, synchronization status, or manufacturer-specific descriptions. Check these values when available. The computer needs both crankshaft and camshaft information to establish correct engine synchronization, so an abnormal relationship deserves attention.
A basic scanner may show only engine RPM and the generic P0335 description. That is still useful for the first inspection, but it cannot replace an electrical waveform test when a precise sensor or timing diagnosis is required. A Hyundai-capable diagnostic system may provide information that a basic generic scanner does not display.
Step 5: Check fuel trims and other supporting data
Fuel trims are not a primary test for P0335. Short-term fuel trim and long-term fuel trim help identify air-fuel mixture problems rather than directly measuring crankshaft sensor performance. However, they can help make sense of additional lean or rich codes that appear at the same time.
As a general diagnostic reference, combined short-term and long-term fuel trim beyond roughly plus or minus 10 percent suggests that a mixture problem deserves investigation. Readings beyond approximately 25 percent can be associated with lean or rich trouble codes. P0171 and P0174 indicate lean conditions, while P0172 and P0175 indicate rich conditions.
Do not treat unusual fuel trims as proof of a crankshaft sensor defect. Record them as supporting information, then investigate the systems associated with their own codes. If P0335 is the only engine fault and the fuel trims are relatively normal, attention should remain on crankshaft signal quality, wiring, synchronization, and sensor condition.
Step 6: Review Mode $06 where applicable
Mode $06 displays supported on-board monitoring test results. It can be useful when the vehicle reports relevant monitor information, but it is not a substitute for direct crankshaft sensor testing. The information available depends on the vehicle’s monitoring strategy and what the scanner can display.
Mode $07, rather than Mode $06, is the standard request for the latest results from continuous monitors such as fuel trim and misfire monitoring. For a P0335 investigation, live RPM, related diagnostic codes, synchronization information, and a suitable sensor waveform are generally more directly useful. Do not interpret an unrelated Mode $06 test result as confirmation that the CKP sensor has failed.
The main purpose of scanning is to narrow the investigation and preserve useful evidence. A diagnostic code identifies an area to test. The actual repair decision should come from circuit checks and signal measurements that follow the procedure for the vehicle’s exact engine. Owners of other makes can check the matching guide: P0335 Ford Ranger.
Sensor Testing, Wiring Checks, and Repair Verification
Once the scanner results point toward a crankshaft signal problem, the next stage is to test the sensor and its electrical circuit. A visual inspection can reveal damage, but a proper diagnosis may require a multimeter, wiring diagram, scan tool, and oscilloscope.
Confirm the correct sensor design first
Do not assume every Hyundai Elantra uses the same CKP sensor construction. Some documented Elantra applications use a Hall-effect design, while another Elantra repair reference describes a magnetic-inductive sensor containing a magnet and coil near the flywheel. These designs generate signals differently and may require different inspection procedures.
Before checking voltage, resistance, or continuity, identify the model year, engine, and relevant wiring diagram. The diagram should show the correct sensor terminals, circuit functions, and specified test conditions. A voltage test intended for a powered Hall-effect sensor may not apply to a magnetic-inductive design.
Inspect the connector and harness
A technician should examine the sensor connector for corrosion, bent terminals, damaged locking tabs, contamination, loose connections, and signs of moisture. The wiring should also be checked for cracked insulation, abrasion, previous repairs, and damage from heat or vibration.
The inspection should follow the wiring path shown in the correct service information. A circuit that looks intact externally can still have an internal break. Similarly, a terminal may be pushed backward into the connector housing and fail to make reliable contact with the sensor.
Continuity and voltage checks should use the specified connection points and test conditions. Avoid guessing terminal assignments or inserting unsuitable probes into small connector terminals. Incorrect probing can damage the connector, create a new electrical problem, or produce a misleading measurement.
Check signal quality with an oscilloscope
An oscilloscope can show whether the CKP sensor is generating a consistent waveform while the engine is cranking or running. Unlike a simple voltage display, it makes missing pulses, distorted patterns, and interruptions easier to recognize. A two-channel test can also compare crankshaft and camshaft signals when the vehicle’s diagnostic procedure calls for it.
The signal should match the reference waveform for the specific Elantra application. The 2012 Elantra MD reference describes a smooth square-wave signal and a defined relationship between the crankshaft and camshaft patterns. A distorted waveform, missing section, or incorrect synchronization point can indicate a problem with the sensor, wiring, target wheel, or mechanical timing.
The cause must be established before a replacement is authorized. A sensor may be working correctly while its wiring is open. A good sensor and harness may still produce an abnormal waveform if the target wheel is damaged or the mechanical relationship is incorrect.
Verify the repair after correcting the fault
After the confirmed fault is repaired, the technician should reconnect all components, inspect the work, and follow the manufacturer’s repair verification procedure. The vehicle should then be scanned again to check whether P0335 returns. Live engine-speed data and synchronization should be reviewed under the conditions that originally produced the problem.
A short test drive may be appropriate if the engine runs consistently and the vehicle is safe to operate. The technician should check for returning codes and verify that the starting complaint or stalling condition has been corrected. If the original problem occurred only when hot, the verification should account for that operating condition rather than relying exclusively on a cold start.
Do not clear the code repeatedly as a substitute for diagnosis. A code disappearing temporarily does not prove that the faulty circuit has been repaired. The relevant monitoring system must complete its required checks, and any remaining faults must be addressed using the correct diagnostic procedure.
Repair Options and Cost Factors
The repair depends on which part of the crankshaft position sensing system has failed. A sensor replacement may be relatively straightforward on one Elantra application, while a wiring, target-wheel, or timing-related problem can require considerably more diagnosis and labor.
Sensor replacement
If testing confirms that the CKP sensor itself is defective, replacement with a component that matches the vehicle’s exact application may resolve the fault. The correct component must match the engine and electrical design. The repair procedure may involve removing nearby components to reach the sensor, so labor time varies with accessibility.
Connector or wiring repair
A damaged connector, corroded terminal, broken wire, or poor ground may require a wiring repair rather than a new sensor. The work can involve identifying the exact circuit fault, repairing the affected section, securing the harness, and verifying that the repaired connection remains stable under vibration and heat.
Mechanical and control-system repairs
If the target wheel, flywheel, or crankshaft-to-camshaft synchronization is responsible, repair work can become more involved. Access, engine configuration, related component removal, and the need to inspect additional parts all affect labor hours. These faults should not be addressed by simply replacing the easiest-to-reach sensor.
An ECM or PCM replacement is generally a later possibility, considered only after the relevant sensor, wiring, connectors, power supply, grounds, target, and synchronization have been tested. Computer replacement may also require programming or configuration work appropriate to the vehicle.
Shop repair versus DIY
A DIY owner with an OBD2 scanner may be able to read the code, record freeze-frame data, check related codes, and inspect accessible wiring without disturbing engine components. These preliminary checks can help provide a clearer description of the problem before visiting a repair shop.
A more advanced diagnosis requires the correct wiring diagram, suitable electrical test equipment, and knowledge of the sensor design. Oscilloscope testing and crankshaft-to-camshaft signal analysis are better left to someone familiar with the specific engine’s diagnostic procedure. Unnecessary parts replacement can cost more than obtaining a clear diagnosis at the beginning.
When comparing repair estimates, ask whether the quoted work includes diagnostic time, connector or wiring inspection, the correct replacement part, installation labor, and post-repair verification. A useful estimate should identify the confirmed failure rather than simply list a crankshaft sensor because P0335 appeared on the scanner. If you work on more than one brand, keep P0335 Kia Sorento handy as well.
Frequently Asked Questions
These additional answers address common questions about how P0335 is reported, how it differs from related codes, and what happens after the fault is identified.
Does P0335 always turn on the check engine light immediately?
Not necessarily. The 2012 Elantra MD diagnostic reference lists two driving cycles as its malfunction indicator lamp activation condition. The number of detection events or driving cycles can differ between vehicle applications, so a fault may be present before the light is confirmed on.
Is P0335 the same as P0336?
No. P0335 identifies a crankshaft position sensor A circuit problem, while P0336 identifies a crankshaft position sensor A range or performance problem. Hyundai diagnostic information distinguishes a missing or abnormal crankshaft signal from a signal whose missing-tooth pattern does not appear at the expected positions over consecutive revolutions.
Can a faulty engine computer cause P0335?
Yes, an ECM or PCM fault is possible, but it is not the first component to suspect. A computer cannot correctly interpret a signal that is missing because of a damaged wire, poor ground, or failed sensor. The entire external circuit should be verified before a control module is considered defective.
Can clearing P0335 affect emissions readiness?
Yes. Clearing diagnostic information can also erase readiness information, leaving some emissions monitors incomplete until their required self-tests run again. EPA guidance describes this relationship, which is why codes and related diagnostic information should be saved before clearing anything.
Can a Hyundai Elantra with P0335 pass an emissions inspection?
An illuminated malfunction indicator lamp associated with an emissions-related powertrain fault can cause an OBD emissions inspection failure. EPA inspection guidance identifies an MIL-commanded-on condition as a failure criterion. The actual inspection requirements and applicable exceptions depend on the state program.
P0335 on a Hyundai Elantra points to a crankshaft position signal problem, but the sensor is only one possible cause. Save the scanner data, inspect the electrical circuit, and confirm the crankshaft signal before replacing parts. The correct model-year and engine-specific testing procedure is the best way to avoid unnecessary repairs and restore reliable starting and engine operation.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnU0100 Hyundai Elantra: Find the Communication Fault
LearnP0700 Hyundai Elantra: Find the Transmission Fault Before Replacing Parts
LearnP0442 Hyundai Elantra: Find the EVAP Leak and Fix It
LearnP0456 Hyundai Elantra: Find and Fix a Very Small EVAP Leak
LearnP0325 Hyundai Elantra: Find the Knock Sensor Fault and Fix It
LearnP0919 Code: Gear Shift Position Control Error Explained