P0304 Hyundai Sonata: Diagnose Cylinder 4 Misfires and Avoid Costly Damage
20 min read · by Nicole Bennett · Last updated: November 25, 2026
P0304 Hyundai Sonata means the engine computer has detected a misfire in cylinder 4, indicating that the cylinder is not burning its air-fuel mixture consistently. Common causes include a worn spark plug, a failing ignition coil, a fuel injector problem, an electrical connection fault, or low engine compression. The code identifies the affected cylinder, not the exact part that needs replacement.
A Sonata with this fault may shake at idle, hesitate during acceleration, lose power, consume more fuel, or illuminate the check engine light. Some vehicles develop symptoms mainly during cold starts, while others experience an ongoing rough-running condition. A flashing check engine light is particularly serious because continued misfiring can overheat and damage the catalytic converter.
Hyundai has also published technical service information covering certain Sonata engines with misfire-related problems. For example, a Hyundai bulletin identifies internal fuel injector leakage on certain 2.5L non-turbo engines, while a separate campaign concerns ignition coils on certain 2016 Sonata Hybrid vehicles. Your model year, engine, production date, and VIN matter when deciding which diagnostic information applies.
What P0304 Means on a Hyundai Sonata
P0304 is a generic SAE powertrain diagnostic trouble code that means Cylinder 4 Misfire Detected. The engine control module (ECM) identifies an abnormal combustion event associated with the fourth cylinder. It does not automatically mean that cylinder 4 has a bad ignition coil or fuel injector.
The ECM monitors crankshaft speed variations to recognize combustion problems. A normally firing cylinder contributes rotational force to the crankshaft. When a cylinder fails to produce its expected power, the crankshaft briefly slows or accelerates differently than the computer expects. The ECM compares these changes with its operating parameters and records a misfire when the detected variation meets its fault criteria.
The code contains useful information:
- P identifies the powertrain system, which includes the engine and transmission-related controls.
- 0 identifies a generic SAE diagnostic code rather than a manufacturer-specific definition.
- 3 identifies the ignition system or misfire-related diagnostic category.
- 04 identifies cylinder number 4 as the cylinder associated with the detected misfire.
Cylinder 4 is an engine cylinder designation, not a reference to the fourth cylinder from the driver’s side, the fourth ignition coil in a particular visual arrangement, or a specific position in the engine bay. Cylinder numbering depends on the engine configuration. Four-cylinder and V6 Sonata engines do not necessarily use the same cylinder arrangement.
Before removing ignition components, identify the exact engine and obtain the correct Hyundai cylinder numbering diagram. A technician can use the vehicle’s VIN and factory service information to establish which physical cylinder is number 4. This avoids testing or replacing the wrong component.
P0304 can also appear alongside P0300, which indicates random or multiple-cylinder misfires, or other cylinder-specific codes such as P0301, P0302, and P0303. Multiple codes may point toward a shared problem involving fuel delivery, electrical power, air metering, or engine management rather than one isolated cylinder.
Tip: Record every stored, pending, and permanent code before clearing anything. A P0304 code accompanied by fuel system, sensor, or additional misfire codes can provide important clues about the underlying failure. P0304 Mercedes Code walks through the same code on another vehicle, which helps if the usual fix does not work.

Common Symptoms of a Cylinder 4 Misfire
A cylinder 4 misfire can produce anything from a slight vibration to severe engine shaking and loss of power. The symptoms depend on how frequently combustion fails, the engine load, and whether the problem occurs only under certain operating conditions.
Some Sonata owners notice the problem immediately after starting the engine. Others experience hesitation during acceleration or a rough idle after the engine reaches normal operating temperature. An intermittent misfire can be particularly difficult to identify because the engine may appear normal during a short inspection.
Rough Idle and Engine Vibration
A rough idle is one of the most recognizable symptoms. When cylinder 4 does not contribute consistent power, the engine produces uneven rotational forces. The steering wheel, seats, and dashboard may vibrate while the vehicle is stationary.
The vibration may become more noticeable when the transmission is in Drive and the brake pedal is pressed. It can also become stronger when the air conditioning compressor adds engine load. If the problem disappears when engine speed increases, that does not prove the fault is harmless. It may simply indicate that the misfire is more pronounced under idle conditions.
Hesitation and Reduced Acceleration
A misfiring cylinder cannot deliver its normal share of engine power. The Sonata may hesitate when accelerating from a stop, struggle while climbing a hill, or feel less responsive when entering a highway.
The ECM may adjust ignition timing, fueling, and other operating parameters in response to abnormal combustion. Depending on the severity, the driver may notice inconsistent acceleration or an engine that feels weak even when the accelerator pedal is pressed farther.
Poor Fuel Economy and Exhaust Odor
Incomplete combustion can waste fuel. Depending on the failure, unburned fuel may enter the exhaust system and increase catalytic converter temperature. A strong gasoline smell near the exhaust can indicate a serious combustion or fuel-control problem.
Poor fuel economy can also result from an excessively rich mixture, a leaking injector, or another engine management problem. It should not be assumed that replacing a spark plug will correct the issue without further testing.
Check Engine Light Behavior
A steady check engine light generally indicates that the ECM has detected and confirmed a fault. A flashing light indicates a potentially catalyst-damaging misfire and requires immediate attention.
Other symptoms can include difficult starting, occasional stalling, unusual engine sounds, and inconsistent performance. Not every Sonata will exhibit all these symptoms. A vehicle can also store P0304 before the driver notices a significant change in engine operation.
Safety: If the check engine light flashes, reduce engine load and stop driving as soon as it is safe. Do not continue a long trip to see whether the light goes away. A severe misfire can damage the catalytic converter in a short period. Arrange professional assistance if the engine continues running roughly.
Most Common Causes of P0304 on Hyundai Sonata Models
The most common causes involve ignition, fuel delivery, electrical connections, and mechanical engine condition. The correct diagnostic order depends on the Sonata’s engine and the symptoms recorded when the code appeared.
1. Faulty Ignition Coil
The ignition coil supplies the high voltage needed to fire the spark plug. A weak coil may produce enough voltage during light engine operation but fail when cylinder pressure increases under acceleration.
A damaged coil can cause intermittent misfires, particularly during cold starts or under heavy engine load. Heat-related electrical failure and damaged coil connectors can also interrupt ignition.
On certain 2016 Sonata Hybrid vehicles with the 2.0L GDI engine, Hyundai published Service Campaign TZ4 concerning an internal ignition coil circuit problem associated with cold-start misfire codes P0301 through P0304. This is a specific campaign, not evidence that all Sonata engines share the same coil problem.
2. Worn or Fouled Spark Plug
A spark plug must create a consistent spark across its electrode gap. Worn electrodes, excessive gap, cracked ceramic insulation, and carbon deposits can interfere with ignition.
Carbon fouling is especially important because conductive deposits can allow electrical energy to escape along the insulator instead of producing a spark. NGK explains that prolonged low-speed operation, rich mixtures, reduced compression, and deteriorating ignition components can contribute to fouling.
An oily spark plug suggests a different problem from a dry, carbon-covered plug. Oil contamination may point toward worn rings, cylinder wall problems, or valve-related issues. The appearance of the plug should be considered alongside compression and engine condition.
3. Fuel Injector Problems
A fuel injector must deliver the correct quantity of fuel at the correct time. A restricted injector can create a lean condition in cylinder 4, while an injector that leaks or does not close correctly can produce an excessively rich mixture.
Hyundai Technical Service Bulletin 25-FL-001H identifies internal GDI injector leakage associated with misfire codes on certain 2.5L GDI Theta III non-turbo engines. The listed codes include P0300 through P0304. The Hyundai injector technical service bulletin filed with NHTSA provides the applicable vehicle details and repair conditions.
The bulletin includes certain 2021-2023 Sonata DN8 vehicles and certain 2021-2022 Sonata DN8A vehicles. It identifies injector internal filter breakage as a possible reason for internal leakage. Hyundai’s specified repair procedure involves replacing all four injectors on vehicles that meet the applicable conditions.
This is an important distinction: the bulletin does not apply to every Sonata, every engine, or every vehicle displaying P0304. A technician should check the production range, VIN, engine, and current bulletin requirements before recommending injector replacement.
4. Wiring and Electrical Connector Problems
A damaged ignition coil connector, loose terminal, corroded electrical contact, or broken wiring can interrupt the ignition signal. Similar electrical problems can affect injector operation.
Intermittent wiring faults may appear after engine vibration, temperature changes, or movement of the wiring harness. A technician should inspect the connector locks, terminal condition, harness insulation, and electrical supply before replacing expensive components.
5. Low Compression or Internal Engine Damage
Cylinder 4 needs sufficient compression to burn the air-fuel mixture effectively. Damaged valves, worn piston rings, cylinder wall damage, and head gasket problems can reduce compression and cause a persistent misfire.
Mechanical problems become more likely when the misfire remains after ignition and fuel delivery checks. Excessive oil consumption, abnormal mechanical noise, coolant loss, and repeated plug fouling provide additional diagnostic clues.
6. Air-Fuel Mixture and Sensor Problems
A vacuum leak, incorrect airflow measurement, or fuel pressure problem can affect combustion. A mixture that is too lean or too rich may make an individual cylinder more likely to misfire, especially if another component is already marginal.
Mass airflow sensor faults, oxygen sensor problems, coolant temperature sensor errors, and throttle-related issues should be investigated when corresponding codes or abnormal live readings are present. These components are not automatically defective just because P0304 appears. The fault logic is shared, but the test points change, so check P0304 Jeep Code too.
| Possible cause | Typical evidence | Recommended test |
|---|---|---|
| Ignition coil | Misfire under load or intermittent ignition | Coil inspection and approved cylinder comparison test |
| Spark plug | Worn electrodes, carbon deposits, cracked insulator | Plug inspection and gap measurement against specifications |
| Fuel injector | Abnormal fueling or cylinder-specific misfire | Injector balance, leak, and electrical tests |
| Wiring or connector | Intermittent fault or damaged terminals | Connector inspection and circuit testing |
| Low compression | Persistent misfire despite ignition and fuel checks | Compression and cylinder leak-down tests |
| Air-fuel mixture problem | Abnormal combined fuel trims or additional sensor codes | Fuel trim, airflow, and fuel pressure analysis |

How to Diagnose P0304 With an OBD2 Scanner
A good diagnostic process begins with the fault information stored in the ECM. An OBD2 scanner can help determine whether cylinder 4 is misfiring continuously, intermittently, or only under particular operating conditions. More advanced scan tools provide live data, manufacturer-specific information, and misfire monitoring results.
Step 1: Read All Stored and Pending Codes
Connect the scanner to the 16-pin diagnostic connector, usually located underneath the driver’s side dashboard. Turn the ignition on and follow the scanner’s instructions to access the engine control module.
Read stored, pending, and permanent codes. Do not focus exclusively on P0304. Look for additional codes involving injectors, oxygen sensors, coolant temperature, airflow, fuel pressure, or other cylinders.
A pending P0304 means the ECM has detected a possible fault that has not yet met the confirmation requirements. A stored or confirmed code indicates that the malfunction has met the applicable criteria. A permanent code cannot simply be erased with a scanner; it clears after the fault is repaired and the required monitor completes successfully.
Step 2: Review Freeze Frame Data
Freeze frame data records selected engine operating conditions when a diagnostic fault is stored. It can help establish whether the misfire occurred during a cold start, warm idle, acceleration, or highway driving.
Pay particular attention to these readings:
- Engine RPM: Establish whether the fault appeared at idle or higher engine speed.
- Engine coolant temperature: Determine whether the engine was cold or fully warmed up.
- Calculated engine load: Identify whether the fault appeared during acceleration or light-load operation.
- Vehicle speed: Compare the recorded operating condition with the driver’s description.
- Fuel system status: Check whether the engine was operating in open loop or closed loop.
- Fuel trims: Look for evidence of an excessively lean or rich mixture.
For example, a misfire recorded during a cold start may justify closer inspection of ignition components, injector leakage, and cold-start fueling. A misfire that appears mainly during acceleration may require closer attention to ignition performance under load and fuel delivery.
Step 3: Examine Live Misfire Data
If the scanner supports cylinder-specific misfire counters, monitor cylinder 4 while observing the other cylinders. A counter that increases consistently on cylinder 4 helps confirm that the problem is still present.
Some Hyundai-capable diagnostic tools provide enhanced data and misfire monitoring information that a basic code reader cannot display. Use the correct vehicle profile and engine configuration when accessing this information.
Mode $06 can also provide useful monitor test results when the vehicle and scanner support the relevant misfire data. However, the available test identifiers and interpretation depend on the manufacturer’s implementation. Do not assume that every scanner displays a cylinder 4 misfire count using the same identifier or units.
Step 4: Check Short-Term and Long-Term Fuel Trims
Short-term fuel trim (STFT) shows immediate fuel corrections made by the ECM. Long-term fuel trim (LTFT) represents longer-term corrections learned during engine operation.
As a general diagnostic guideline, combined fuel trims beyond approximately plus or minus 10 percent deserve investigation. Readings beyond approximately plus or minus 25 percent can be associated with mixture faults severe enough to trigger lean or rich diagnostic codes.
Positive fuel trims mean the ECM is adding fuel to compensate for a lean condition. Negative fuel trims mean the ECM is removing fuel because the mixture appears rich. Compare the readings at idle and at a steady elevated engine speed rather than relying on one reading alone.
If both fuel trims are strongly positive, investigate possible vacuum leaks, incorrect airflow readings, and fuel delivery problems. Strongly negative readings can justify checking for leaking injectors, excessive fuel delivery, or inaccurate sensor information.
Step 5: Inspect the Ignition System
After identifying cylinder 4 from the correct engine diagram, inspect its ignition coil connector and accessible wiring. Look for broken locks, corrosion, damaged insulation, and signs of moisture or oil contamination.
A technician may use an approved coil comparison or substitution test to determine whether a misfire follows a component to another cylinder. If the misfire moves, the suspected ignition component deserves further attention. If the fault stays on cylinder 4, the investigation should continue rather than automatically replacing additional coils.
Spark plug inspection should include electrode condition, insulation damage, contamination, and the specified electrode gap. Use the service specifications for the exact Sonata engine instead of assuming all model years use identical plugs or gap settings.
Step 6: Test Fuel Delivery and Mechanical Condition
If ignition testing does not identify the problem, investigate the injector and fuel delivery system. Injector electrical tests, balance testing, and appropriate leak checks can reveal whether cylinder 4 receives an abnormal quantity of fuel.
On a Sonata potentially covered by Hyundai’s 2.5L GDI injector bulletin, check VIN applicability before authorizing an injector repair. GDI systems operate at high fuel pressures, so fuel system disassembly and pressure-release procedures belong to trained technicians using the correct equipment.
If ignition and fuel delivery are satisfactory, perform an engine compression test and, when appropriate, a cylinder leak-down test. Comparing cylinder 4 with the other cylinders helps identify abnormal mechanical sealing.
A leak-down test can help distinguish leakage through the intake valve, exhaust valve, piston rings, or head gasket. The results must be interpreted using the engine manufacturer’s specifications and the test conditions.
Tip: Do not clear P0304 before recording freeze frame information and all related codes. Clearing diagnostic information too early can remove valuable clues about when the misfire occurs and make an intermittent problem harder to reproduce. A related problem on the same vehicle is explained in P0700 Hyundai Sonata.
Hyundai Sonata Technical Service Bulletins and Model-Specific Considerations
Hyundai has documented certain ignition coil and GDI injector concerns involving Sonata misfire codes. These documents are useful because they identify specific vehicle configurations and repair conditions. They should not be treated as universal instructions for every Sonata displaying P0304.
2021-2023 Sonata 2.5L GDI Non-Turbo Injector Bulletin
Hyundai Technical Service Bulletin 25-FL-001H addresses possible GDI injector leakage on certain vehicles equipped with the 2.5L GDI Theta III non-turbo engine. Internal injector filter breakage can contribute to leakage and misfire-related trouble codes.
The listed Sonata applications include certain 2021-2023 DN8 vehicles produced between February 8, 2021, and January 19, 2023, with VINs beginning KMH. Certain 2021-2022 DN8A vehicles produced between March 1, 2021, and February 14, 2022, with VINs beginning 5NP, are also included.
The bulletin identifies P0300, P0301, P0302, P0303, and P0304 as possible misfire codes. Its specified repair is replacement of all four GDI injectors on applicable vehicles meeting the bulletin’s conditions.
This information is especially useful if a qualifying Sonata has P0304 and injector-related symptoms. However, a 2020 Sonata, a turbocharged engine, or a vehicle outside the listed production dates should not automatically receive the same repair. Ask a Hyundai service department to check the VIN and current technical documentation.
2016 Sonata Hybrid Ignition Coil Campaign
A separate Hyundai campaign concerns certain 2016 Sonata Hybrid vehicles equipped with a 2.0L GDI engine. Hyundai describes cold-start misfires involving P0301 through P0304 and abnormal engine rattling associated with an internal ignition coil circuit problem.
The campaign calls for replacement of all four ignition coils on affected vehicles. Its existence demonstrates why model year and engine identification matter when investigating P0304.
It does not mean that every 2016 Sonata Hybrid, or every conventional Sonata, needs four new coils. Check campaign completion and vehicle eligibility using the VIN before assuming the campaign repair is appropriate.
Why Model Year and Engine Identification Matter
The Hyundai Sonata has been offered with different engine configurations, including four-cylinder gasoline engines, turbocharged engines, and hybrid powertrains. Ignition arrangements, cylinder numbering, fuel systems, and diagnostic procedures vary across these configurations.
A repair procedure suitable for a 2.5L GDI non-turbo engine should not automatically be applied to a 2.0L turbo or hybrid engine. Even when two vehicles display the same generic P0304 code, the underlying cause and correct repair can differ.
Before approving repairs, provide the technician with the model year, engine type, VIN, mileage, symptoms, and any previous repair history. This information makes it easier to check the correct service information and determine whether a relevant campaign or bulletin applies.
Repair Options, Costs, and Driving Safety
The repair for P0304 depends on the failed component and the amount of additional testing required. An ignition-related fault may be relatively straightforward, while a fuel injector or internal engine problem can require more labor and specialized equipment.
The following repairs are common possibilities, but none should be performed solely because the scanner displays P0304.
- Spark plug replacement: Appropriate when inspection identifies a worn, damaged, incorrectly gapped, or fouled plug. The cause of abnormal contamination should also be investigated.
- Ignition coil replacement: Appropriate when testing confirms weak or intermittent coil performance or a verified applicable Hyundai campaign calls for replacement.
- Wiring or connector repair: Necessary when damaged terminals, poor electrical connections, or broken wiring interrupt ignition or injector operation.
- Fuel injector repair: Appropriate when injector testing identifies a delivery or leakage problem. Applicable Hyundai bulletin procedures may require replacing all four injectors.
- Engine mechanical repair: Necessary when compression or leak-down testing identifies internal cylinder damage or valve sealing problems.
What Determines the Repair Cost?
There is no single repair cost for P0304 on every Hyundai Sonata. The total depends on the diagnostic time, required parts, labor hours, engine configuration, and whether the vehicle needs additional repairs.
Spark plug or ignition coil replacement generally involves less labor than an injector replacement or internal engine repair. However, a technician should confirm the failure before estimating the work. Replacing several ignition components without evidence can increase the bill without solving the original problem.
Fuel injector work can involve intake manifold removal, high-pressure fuel system procedures, replacement seals, and additional installation requirements. The Hyundai 2.5L injector bulletin specifies replacement of all four injectors on qualifying vehicles, which can affect the amount of work required.
Mechanical repairs can involve cylinder head work, valve repairs, piston components, or more extensive engine disassembly. These repairs require additional labor and testing compared with routine ignition maintenance.
Shop rates, parts availability, OEM versus aftermarket parts, warranty coverage, and the need for specialized diagnostic equipment also affect the final estimate. DIY repairs may reduce labor expenses, but only when the owner has the correct tools, service information, and experience.
Can You Drive With P0304?
Driving safety depends on the severity of the misfire and the behavior of the check engine light. A steady light with no obvious drivability symptoms is generally less urgent than a flashing light accompanied by severe shaking or power loss. Nevertheless, both situations require prompt diagnosis.
If the check engine light flashes, reduce engine load and stop driving as soon as it is safe. Continuing to operate the engine during an active severe misfire can send unburned fuel into the exhaust and overheat the catalytic converter. The EPA’s OBD information explains the relationship between misfire detection, warning lights, and potential emissions-system damage.
If the light remains steady and the engine runs normally, a short, cautious trip to a nearby repair facility may be possible. Avoid highway speeds, hard acceleration, heavy loads, and unnecessary driving. If the engine begins shaking, stalls, loses significant power, or develops unusual mechanical noises, stop and arrange towing.
Do not assume that turning off the check engine light makes the vehicle safe. Clearing a code does not repair the underlying mechanical or electrical problem. A permanent P0304 may remain until the ECM confirms that the relevant misfire monitor has passed. For another common fault on this model, see P0446 Hyundai Sonata.
Frequently Asked Questions
Can P0304 appear even when the Hyundai Sonata runs smoothly?
Yes. An intermittent misfire may occur only under certain temperature, speed, or engine-load conditions. The ECM can record a fault before the driver notices a clear performance problem. Freeze frame information and misfire counters can help identify when it occurred.
Will disconnecting the battery permanently remove P0304?
No. Disconnecting the battery does not repair the misfire. It may erase some stored diagnostic information or reset readiness monitors, depending on the vehicle. Permanent diagnostic codes require the underlying fault to be repaired and the relevant monitor to complete successfully.
Can bad gasoline cause P0304 on a Hyundai Sonata?
Yes. Contaminated fuel or inconsistent fuel quality can interfere with combustion and contribute to misfires. However, P0304 specifically identifies cylinder 4, so the technician should also investigate cylinder-specific ignition, injector, and mechanical problems rather than assuming the entire fuel supply is responsible.
Can P0304 cause a Hyundai Sonata to fail an emissions inspection?
Yes. An active misfire-related malfunction indicator light or an emissions-related diagnostic fault can prevent a vehicle from passing an OBD-based emissions inspection. Readiness monitors may also be incomplete after codes have been cleared or the battery has been disconnected.
Does replacing the catalytic converter fix P0304?
Not normally. A catalytic converter is an emissions-control component, not the source of the combustion event that defines P0304. A damaged converter may be a consequence of prolonged misfiring. The original cylinder 4 ignition, fuel delivery, or mechanical problem must be diagnosed and corrected separately.
P0304 on a Hyundai Sonata identifies a cylinder 4 misfire, not a specific failed part. Start with all stored codes, freeze frame data, live misfire readings, and ignition and fuel system checks before considering mechanical testing. Check Hyundai technical bulletins against the exact VIN and engine, and avoid driving with a flashing check engine light to prevent further engine or catalytic converter damage.
-
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
Learnp0300 hyundai sonata: Diagnose Random Misfires and Find the Cause
LearnP0449 Hyundai Sonata: Diagnose the EVAP Vent Circuit
LearnP0456 Hyundai Sonata: Meaning, Causes and Checks
LearnP0335 Hyundai Sonata: Diagnose Crankshaft Sensor Problems
LearnP0420 Hyundai Sonata: Diagnose the Cause Before Replacing the Catalytic Converter
LearnP2162 Code: Find the Cause of Vehicle Speed Sensor Problems