P0304 Hyundai Elantra: Diagnose and Fix a Cylinder 4 Misfire
19 min read · by Nicole Bennett · Last updated: November 25, 2026
P0304 Hyundai Elantra means the engine computer has detected a misfire in cylinder 4, and the problem may involve the spark plug, ignition coil, fuel injector, wiring, or engine compression. This diagnostic trouble code identifies a specific cylinder rather than a general engine performance problem. The engine may shake, hesitate, lose power, or illuminate the check engine light.
A cylinder 4 misfire does not automatically mean the ignition coil or spark plug needs replacement. Several mechanical and fuel delivery problems can produce the same code. Proper diagnosis helps identify the failed component without spending money on parts that are still working.
Hyundai has also issued technical service information covering misfire codes on certain Elantra model years. In particular, some 2017 Elantra models with the 2.0L engine were covered by a procedure involving ECM software updates and ignition coil inspection. Understanding the applicable model year is important before choosing a repair.
What P0304 Means on a Hyundai Elantra
P0304 is a generic SAE powertrain code meaning Cylinder 4 Misfire Detected. The engine control module (ECM) has identified combustion irregularities associated with the fourth cylinder. The code identifies where the misfire occurs, not the component responsible for it.

The ECM monitors crankshaft rotation to determine whether each cylinder contributes the expected amount of power. A cylinder normally produces a small increase in crankshaft speed during its combustion event. When combustion is weak or absent, crankshaft acceleration changes. The computer analyzes these variations using engine position sensor information.
Hyundai service information describes this general monitoring approach using crankshaft and camshaft position signals. When the ECM recognizes an abnormal rotational-speed variation, it can identify the affected cylinder and record a corresponding trouble code.
Understanding the P0304 Code
The five-character code contains information about the affected vehicle system and the detected problem.
| Code portion | Meaning |
|---|---|
| P | Powertrain system, including engine and transmission controls. |
| 0 | Generic SAE diagnostic trouble code. |
| 3 | Ignition system or misfire-related diagnostic category. |
| 04 | Cylinder number 4 is identified as the misfiring cylinder. |
The second character is particularly important. A zero indicates a generic SAE code, while a one generally identifies a manufacturer-specific code. P0304 is therefore not exclusive to Hyundai. Other vehicle manufacturers use the same basic definition.
Does P0304 Identify a Specific Hyundai Engine Problem?
No. The generic definition remains cylinder 4 misfire detected, but the underlying repair procedure depends on the Elantra’s model year, engine configuration, ignition system, and ECM calibration.
For example, Hyundai Technical Service Bulletin 20-FL-001H covers certain 2017 Elantra AD/ADA vehicles equipped with a 2.0L engine. It addresses P0300, P0301, P0302, P0303, and P0304 through an ECM software update and ignition coil inspection. The specified software update is Event 583.
That bulletin does not establish that every Elantra with P0304 needs the same repair. It applies to specific vehicles and configurations. Other model years may require different diagnostic procedures. The vehicle identification number (VIN) and applicable service information should be checked before assuming that a particular campaign or bulletin applies. For another common fault on this model, see Hyundai Elantra Ignition Coil.
Symptoms and Driving Risks of a Cylinder 4 Misfire
A cylinder 4 misfire can produce noticeable engine performance problems, although a mild or intermittent fault may initially cause very few symptoms. The severity depends on how frequently cylinder 4 fails to combust and whether other cylinders are affected.

An inline four-cylinder engine has limited power reserve when one cylinder stops contributing properly. Even a single-cylinder misfire can affect idle quality, acceleration, fuel economy, and exhaust emissions. A severe misfire may make the vehicle difficult or unsafe to operate.
Common P0304 Symptoms
- Rough idle: The engine may shake or vibrate while stopped. The vibration can become more noticeable when the transmission is in Drive and the vehicle is stationary.
- Engine hesitation: The Elantra may hesitate when accelerating from a stop or when the driver presses the accelerator to increase engine speed.
- Reduced engine power: The engine may feel weak because cylinder 4 is not producing its normal contribution to overall power.
- Increased fuel consumption: Poor combustion can reduce fuel efficiency. The ECM may also adjust fuel delivery in response to abnormal engine operation.
- Check engine light: A stored P0304 can illuminate the malfunction indicator lamp. The code may remain stored even when the misfire is intermittent.
- Exhaust irregularities: Unburned fuel and incomplete combustion can produce an uneven exhaust note or a fuel smell.
- Difficulty starting: Some underlying ignition, fuel delivery, or mechanical problems can also affect starting performance.
Steady Versus Flashing Check Engine Light
The check engine light provides an important indication of misfire severity. A steady light generally means the ECM has detected a fault that meets the conditions for illuminating the warning lamp. The engine may still run relatively smoothly if the misfire is occasional.
A flashing check engine light is more urgent. It indicates a misfire severe enough to threaten catalytic converter damage. Unburned fuel entering the exhaust can ignite inside the converter and produce excessive heat. Continued operation under these conditions can cause expensive exhaust system damage.
Tip: If the check engine light flashes while driving, reduce engine load and stop driving as soon as it is safe. Avoid hard acceleration and high engine speeds. Arrange professional diagnosis or towing rather than continuing a normal journey. A flashing warning should never be treated as a minor maintenance reminder.
A P0304 code with a steady light still deserves prompt attention. Driving for an extended period with an active misfire can increase emissions, worsen fuel consumption, and potentially damage the catalytic converter. Severe shaking, stalling, or a strong fuel smell are additional reasons to stop operating the vehicle.
Common Causes of P0304 on Hyundai Elantra Models
The most common diagnostic areas include the ignition system, fuel delivery, electrical connections, and mechanical condition of cylinder 4. A technician should test these systems rather than automatically replacing the first component associated with a misfire.
The exact causes vary by model year and engine. Older Elantra service procedures describe spark plug cable checks, while other configurations use different ignition arrangements. The following components are reasonable diagnostic starting points, not a universal parts replacement list.
1. Worn or Fouled Spark Plug
A spark plug must create a sufficiently strong spark at the correct time to ignite the air-fuel mixture. Worn electrodes, damaged insulation, carbon deposits, oil contamination, and fuel fouling can interfere with combustion.
Hyundai’s older Elantra diagnostic procedure specifically recommends examining the affected spark plug for cracks, worn electrodes, damaged insulation, loose terminals, and oil or fuel deposits. It also specifies checking the plug gap against the applicable engine specification. The correct gap must be verified for the actual vehicle rather than copied from an older Elantra manual.
2. Defective Ignition Coil
An ignition coil supplies the high voltage required to produce a spark. An internally damaged coil, failing insulation, overheating, or an electrical connection problem can cause cylinder 4 to misfire.
Hyundai’s technical bulletin for certain 2017 Elantra 2.0L vehicles specifically includes ignition coil inspection and possible replacement as part of its P0300 through P0304 repair procedure. The bulletin also describes different ignition coil body styles and inspection criteria for the affected application.
This is useful information for owners of the applicable vehicles, but it should not be generalized to every Elantra. A technician must identify the correct engine and check the relevant service bulletin before deciding whether an ignition coil requires replacement.
3. Fuel Injector Problems
Cylinder 4 needs the correct amount of fuel for consistent combustion. A clogged injector may deliver insufficient fuel, while an injector that leaks or sticks open can produce an excessively rich mixture.
Injector wiring and electrical connections can also cause intermittent operation. An injector circuit fault may produce additional diagnostic codes that help narrow the problem. These codes should be investigated before replacing the injector based on P0304 alone.
4. Damaged Wiring or Electrical Connections
A loose connector, corroded terminal, damaged wire, or poor electrical ground can interrupt ignition or injector operation. The fault may appear only when the engine vibrates, heats up, or operates under a particular load.
Hyundai diagnostic procedures emphasize inspecting connectors for looseness, corrosion, contamination, damaged terminals, and poor contact when a fault is intermittent. Wiring problems deserve attention when a cylinder misfire appears and disappears without an obvious change in driving conditions.
5. Low Cylinder Compression
A cylinder must maintain sufficient compression to support combustion. Leaking valves, worn piston rings, damaged cylinder walls, a head gasket leak, or other internal engine problems can reduce compression in cylinder 4.
Hyundai’s older Elantra diagnostic information includes leaking or sticking valves, worn rings, weak valve springs, excessive valve deposits, and head gasket leakage among possible mechanical problems. These faults generally require more extensive testing than a basic scan tool can provide.
6. Intake Leaks and Air-Fuel Mixture Problems
An intake leak can introduce unmetered air into the engine and interfere with the intended air-fuel mixture. A damaged vacuum hose, intake gasket leak, or PCV system problem may contribute to unstable combustion.
A broader mixture problem can affect multiple cylinders, even when P0304 is the only stored misfire code. Fuel pressure problems, air measurement errors, and incorrect temperature sensor readings should therefore be considered when the available evidence points beyond cylinder 4 alone. If a second code shows up during the scan, P0171 Hyundai Elantra could be the next stop.
| Possible cause | Typical evidence | Recommended test |
|---|---|---|
| Spark plug | Worn electrode, fouling, cracked insulation | Visual inspection and correct gap measurement |
| Ignition coil | Intermittent spark or misfire following coil operation | Coil electrical and waveform testing |
| Fuel injector | Uneven fuel delivery or injector circuit fault | Injector balance and electrical testing |
| Wiring or connector | Intermittent fault or damaged terminal | Connector inspection and circuit testing |
| Low compression | Persistent misfire despite normal ignition and fuel delivery | Compression and leak-down tests |
| Intake leak | Positive fuel trims or unstable idle | Smoke test and live fuel trim analysis |
How to Diagnose P0304 With an OBD2 Scanner
An OBD2 scanner can help identify when the misfire occurs, whether other faults are present, and how the engine responds under different operating conditions. A basic code reader provides a starting point, while a more capable diagnostic scanner can display live engine data and additional misfire information.
US-market cars and light trucks from model year 1996 generally support standardized OBD-II diagnostics. The 16-pin J1962 diagnostic connector is usually located beneath the driver-side dashboard near the steering column.
Step 1: Read All Stored and Pending Codes
Connect the scanner and retrieve the complete diagnostic code list before clearing anything. Record P0304 and check whether the ECM has stored additional codes.
Look for related misfire codes such as P0300, P0301, P0302, or P0303. Other useful findings include injector circuit faults, fuel mixture codes, and crankshaft or camshaft sensor faults.
A pending code indicates that the computer has detected a fault but has not yet confirmed the conditions needed to store it as a confirmed fault. A stored code indicates a confirmed diagnostic event. Permanent codes require the underlying fault to be corrected and the relevant monitor to pass before they disappear.
Step 2: Examine Freeze Frame Data
Freeze frame data records selected engine operating conditions when a diagnostic fault is detected. This information can help reproduce the conditions associated with P0304.
Pay attention to the following readings:
- Engine speed in revolutions per minute.
- Engine coolant temperature.
- Calculated engine load.
- Vehicle speed.
- Throttle position.
- Short-term and long-term fuel trim.
- Intake manifold pressure or mass airflow, when available.
For example, a misfire that occurs primarily during cold starts may point toward a different diagnostic direction from one that appears only under heavy acceleration. Freeze frame information helps establish these conditions without relying entirely on driver recollection.
Step 3: Check Live Data and Fuel Trims
Monitor the engine at idle and under appropriate operating conditions. Observe whether engine speed remains stable, whether the coolant temperature reading is believable, and whether the misfire counter increases for cylinder 4.
Fuel trims are particularly useful for identifying mixture problems. Short-term fuel trim (STFT) shows immediate fuel corrections, while long-term fuel trim (LTFT) reflects learned adjustments over time.
A combined STFT and LTFT correction beyond roughly plus or minus 10 percent can suggest a mixture problem. Corrections approaching or exceeding approximately 25 percent may be associated with lean or rich diagnostic codes, depending on operating conditions and the direction of the correction.
Positive trims mean the ECM is adding fuel to compensate for a lean condition. Negative trims mean it is removing fuel to correct a rich condition. These readings do not prove that the cylinder 4 injector has failed. They help determine whether a broader air or fuel problem should be investigated.
Step 4: Review Misfire Counters and Mode $06
If the scanner supports individual cylinder misfire counters, compare cylinder 4 with the other cylinders. A steadily increasing count for cylinder 4 supports the presence of an active, cylinder-specific problem.
Mode $06 can provide onboard monitor test results, including misfire-related information on supported vehicles. Some scanners translate these results into readable cylinder data, while others display test identification numbers and raw values that require manufacturer-specific interpretation.
Do not assume that every Hyundai exposes identical Mode $06 information. The available monitor results depend on the ECM and scanner capabilities. A manufacturer-capable diagnostic tool may provide more useful cylinder-specific information than a basic generic reader.
Step 5: Inspect the Ignition and Fuel Systems
Once scan data points toward cylinder 4, the next step is targeted physical testing. A qualified technician can inspect the spark plug, coil, wiring, and connector condition. Where the ignition design permits, controlled component substitution or waveform testing can help determine whether the misfire follows a particular component.
Fuel injector operation should be assessed if ignition testing does not explain the fault. Injector electrical measurements, balance testing, and appropriate fuel pressure checks can help distinguish a delivery problem from an ignition problem.
Step 6: Perform Mechanical Testing if Necessary
If the ignition and fuel systems appear normal but P0304 continues, engine mechanical testing becomes important. A compression test compares cylinder pressure, while a leak-down test helps identify where compression escapes.
Low compression in cylinder 4 may indicate a valve sealing problem, piston ring wear, cylinder damage, or a head gasket issue. These tests require suitable equipment and correct procedures for the specific engine.
Tip: Save the original codes, freeze frame information, and live data before clearing the ECM memory. Erasing codes too early can remove useful diagnostic evidence. A successful repair should be confirmed by checking for returning faults and verifying normal engine operation. Owners of other makes can check the matching guide: P0304 Chevy Equinox.
Hyundai Elantra Repairs and Applicable Service Bulletins
The correct repair depends on the test results and the exact Elantra configuration. Replacing a failed ignition component may resolve a straightforward misfire, but a software calibration issue, injector fault, wiring problem, or mechanical defect requires a different solution.
Hyundai’s published technical information is particularly important for certain Elantra vehicles because the manufacturer has documented misfire-related ECM updates and ignition coil inspection procedures.
2017 Elantra 2.0L: Bulletin 20-FL-001H
Hyundai Technical Service Bulletin 20-FL-001H applies to certain 2017 model year Elantra AD/ADA vehicles equipped with the 2.0L engine. It covers P0300, P0301, P0302, P0303, and P0304.
The documented repair procedure includes two important areas:
- ECM software: Perform the specified Event 583 update, which improves cylinder imbalance learning logic.
- Ignition coils: Inspect the ignition coils according to the diagnostic codes and replace affected coils when the bulletin’s criteria are met.
- Post-repair verification: Check the vehicle for diagnostic trouble codes after the update and confirm normal operation.
The bulletin also distinguishes older and newer ignition coil designs. For the specified older-style coil, its inspection procedure identifies particular color markings that determine whether replacement is required. Those markings should not be applied to other coil designs or unrelated model years.
Owners and repair professionals can review the actual Hyundai 20-FL-001H technical service bulletin for its vehicle applicability and complete inspection instructions.
2018–2019 Elantra 2.0L: Service Campaign T3W
Hyundai also published bulletin 20-01-008H concerning Service Campaign T3W. It covers certain 2018 and 2019 Elantra AD/ADA vehicles equipped with the 2.0L engine.
The campaign addresses ECM software and cylinder imbalance learning logic associated with P0300, P0301, P0302, P0303, and P0304. It identifies Event 583 as the applicable ECM update procedure.
This is an important distinction. The 2018–2019 campaign describes an ECM upgrade, while the 2017 bulletin includes both an ECM update and ignition coil inspection or replacement. They should not be treated as interchangeable repair instructions.
A Hyundai dealer can check the VIN and available campaign information to determine whether the vehicle is eligible for the applicable service action. Owners should not assume that a bulletin automatically means a free repair, since eligibility and campaign status depend on the specific vehicle.
Choosing the Correct Repair
For Elantras outside these documented applications, diagnosis should follow the applicable service manual. The following repair decisions are based on the confirmed failure rather than the code alone.
- Replace the spark plug if inspection or testing confirms that it is worn, damaged, or fouled.
- Repair or replace an ignition coil if electrical or waveform testing confirms a coil fault.
- Correct damaged ignition or injector wiring and poor electrical connections.
- Service or replace a fuel injector only after confirming a delivery or electrical problem.
- Repair intake leaks or PCV system faults when testing identifies an air leak.
- Investigate valve, piston, head gasket, or other internal engine problems when compression testing identifies a mechanical fault.
- Check applicable Hyundai software updates and service campaigns before completing the repair.
After the repair, the technician should verify normal idle and acceleration, check the misfire counters when available, and confirm that the fault does not return. Permanent OBD-II codes may remain temporarily until the appropriate monitor completes successfully.
Repair Costs, DIY Considerations, and When to Stop Driving
The cost of fixing P0304 depends on the failed component, the amount of diagnostic labor required, and whether the vehicle needs an ECM update or internal engine repair. A simple ignition problem is generally less complicated than a fuel delivery or compression problem.
It is important to separate the cost of diagnosing the fault from the cost of repairing it. A workshop may need additional time to reproduce an intermittent misfire, inspect electrical circuits, or perform mechanical tests before identifying the cause.
What Determines the Repair Cost?
- Parts: Spark plugs, ignition coils, injectors, wiring connectors, and engine components have different replacement requirements.
- Labor time: Access to the affected component, the engine configuration, and additional testing influence the time needed.
- Diagnostic complexity: An intermittent electrical fault may take longer to identify than a visibly damaged spark plug.
- Software work: An applicable Hyundai ECM campaign may involve dealer diagnostic equipment and manufacturer-specific programming procedures.
- Mechanical repairs: Valve, piston, cylinder, or head gasket problems can require substantial disassembly and specialized labor.
- Shop versus DIY: Independent repair shops, dealerships, and experienced DIY owners have different labor and equipment expenses.
A DIY repair may be practical when the diagnosis clearly identifies a serviceable ignition component and the owner has the correct tools and model-specific instructions. However, guessing and replacing multiple components can cost more than performing proper diagnosis first.
Can You Drive With P0304?
The answer depends on the symptoms and warning light behavior. A vehicle with a steady check engine light and very mild symptoms may remain operational for a short trip to a repair facility, but continued driving is not recommended without diagnosis.
A flashing light, severe vibration, repeated stalling, major power loss, or strong unburned fuel smell indicates a more serious condition. Stop driving as soon as it is safe and arrange professional assistance.
A persistent misfire can overheat the catalytic converter, damage exhaust components, increase emissions, and worsen engine operation. If the engine shakes heavily or struggles to maintain speed, avoiding further operation is safer than attempting to complete a normal journey.
DIY Safety and Repair Limits
Ignition and fuel systems require care. Ignition coils produce high voltage, and fuel system components may retain pressure after the engine is switched off. Engine components can also become hot enough to cause burns.
Never disconnect ignition components or handle fuel system connections while the engine is running. Follow the correct service procedure for the particular engine, and leave high-voltage testing, fuel pressure work, and internal engine repairs to qualified technicians when appropriate equipment or experience is unavailable. Seeing the code on another make? Start with P0304 Nissan Altima.
For owners who want to understand the diagnostic process, Hyundai service information is a useful starting point. The Hyundai Elantra workshop manual code reference identifies P0304 as a cylinder 4 misfire and lists possible ignition, injector, fuel pressure, and compression-related causes. Always confirm that the manual applies to the vehicle being repaired.
Frequently Asked Questions
1. Can P0304 appear without noticeable engine shaking?
Yes. A low-frequency or intermittent misfire may be detected by the ECM before the driver notices a significant change in engine smoothness. The misfire monitor can recognize crankshaft speed variations that are difficult to feel from the driver’s seat.
2. Does P0304 always mean cylinder 4 has stopped working completely?
No. The code means the ECM has detected combustion irregularities associated with cylinder 4. The cylinder may still fire intermittently or produce reduced power rather than remaining completely inactive.
3. Will disconnecting the battery permanently remove P0304?
No. Disconnecting the battery does not repair the underlying problem. It may reset certain learned information or diagnostic readiness states, but the ECM can detect the misfire again when the relevant monitor runs. Permanent diagnostic codes also require the fault to be corrected and the monitor to pass.
4. Can poor fuel quality trigger a cylinder 4 misfire?
Yes. Contaminated fuel or fuel delivery problems can interfere with combustion. However, poor fuel quality more commonly deserves consideration alongside other symptoms and multiple-cylinder misfires. A single P0304 code does not establish that the fuel itself is responsible.
5. Can a P0304 code cause an emissions inspection failure?
Yes. An illuminated malfunction indicator lamp or an incomplete required emissions readiness monitor can prevent a vehicle from passing an OBD-based emissions inspection. Requirements vary by state and inspection program, so the applicable local rules should be checked after the repair.
P0304 on a Hyundai Elantra identifies a cylinder 4 misfire, but it does not identify the failed component. Check the ignition system, injector operation, electrical connections, engine compression, and applicable Hyundai service bulletins before replacing parts. A flashing check engine light requires immediate attention because continued misfiring can damage the catalytic converter. Proper scanner data and targeted testing provide the most reliable path to a lasting repair.
-
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
LearnP0128 Hyundai Elantra: Diagnose the Thermostat and Fix Slow Warm-Ups
LearnP2096 Hyundai Elantra: Find the Cause Before Replacing Parts
LearnP0340 Hyundai Elantra: Diagnose the Circuit Before Replacing Parts
LearnP0715 Hyundai Elantra: Diagnose the Sensor Fault Before Replacing Parts
LearnP0172 Hyundai Elantra: Diagnose Rich Fuel Mixture Problems
Learnu0155 hyundai: Diagnose Instrument Cluster Communication Problems