P0304 Nissan Altima: Find the Cylinder 4 Misfire and Fix It
21 min read · by Nicole Bennett · Last updated: November 25, 2026
P0304 Nissan Altima means the engine computer has detected a misfire in cylinder 4, and finding the cause can prevent catalytic converter damage and unnecessary repairs. The problem may involve a worn spark plug, a failing ignition coil, a faulty fuel injector, an intake air leak, or low cylinder compression. The code identifies the affected cylinder, but it does not identify the failed component.
You may notice rough idling, engine shaking, hesitation during acceleration, reduced power, or an illuminated check engine light. Some Altimas develop symptoms only when the engine is cold or under load. Others run poorly all the time. The severity depends on how frequently cylinder 4 misfires and what causes the problem.
This guide explains what P0304 means, which Nissan Altima components deserve attention, and how to diagnose the problem with an OBD2 scanner. It also covers driving safety, repair decisions, diagnostic readings, and the factors that affect repair costs.
What P0304 Means on a Nissan Altima
P0304 is a generic SAE powertrain diagnostic trouble code meaning Cylinder 4 Misfire Detected. The engine control module (ECM) has detected an irregularity in the crankshaft speed pattern that indicates cylinder 4 is not contributing its expected share of engine power. Nissan uses crankshaft position sensor signals to monitor engine-speed changes and identify misfires.
The code belongs to the P0300 family. The final digit identifies the affected cylinder. P0300 indicates random or multiple-cylinder misfires, while P0301 through P0304 identify individual cylinders 1 through 4. P0305 and P0306 apply to engines with additional cylinders.
The second character in P0304 is zero, meaning this is a standardized generic code rather than a manufacturer-specific P1xxx code. Its basic meaning remains the same across Nissan Altima model years, although the diagnostic procedure and engine configuration can differ.
How the ECM Detects a Misfire
A healthy four-stroke engine produces relatively consistent crankshaft acceleration during combustion. When one cylinder fails to burn its air-fuel mixture properly, the crankshaft receives less rotational force during that cylinder’s power stroke. The ECM detects the resulting speed variation through the crankshaft position sensor.
Nissan service information describes two different misfire detection strategies. A severe misfire that threatens the three-way catalytic converter can trigger a flashing malfunction indicator lamp during the first driving cycle. A less severe misfire that affects exhaust emissions may require detection during a second driving cycle before the warning light stays illuminated.
This distinction explains why an Altima can have a pending misfire code before the check engine light comes on. A pending code means the ECM has detected a fault that has not yet met all confirmation requirements. A stored or confirmed code means the fault has been recognized according to the applicable diagnostic criteria.
Understanding the P0304 Code Format
| Code section | Meaning |
|---|---|
| P | Powertrain-related fault |
| 0 | Generic SAE diagnostic code |
| 3 | Ignition system or misfire-related code family |
| 04 | Cylinder 4 misfire detected |
The most important point is that P0304 identifies a combustion problem in cylinder 4. It does not automatically mean the fourth ignition coil or spark plug needs replacement. A mechanical compression problem or fuel delivery fault can produce the same code. Best Spark Plugs for Nissan Altima compares fitment, warranty and price if you decide to replace the part.
For additional Nissan-specific diagnostic information, the Nissan Altima QR25DE service procedure explains how the ECM identifies misfires and how technicians investigate the underlying fault.

Common Causes of a Nissan Altima Cylinder 4 Misfire
Several engine problems can trigger P0304, but ignition faults are a logical starting point. The spark plug and ignition coil are responsible for initiating combustion, while the injector supplies fuel and the engine’s mechanical components maintain compression. A problem in any of these systems can cause cylinder 4 to contribute less power than expected.
1. Worn or Fouled Spark Plug
A worn spark plug is one of the first components to investigate. Spark plugs gradually deteriorate as their electrodes wear. The increased electrode gap can make the ignition system work harder to produce a reliable spark. A weak spark may become more noticeable during acceleration, when cylinder pressure increases.
Oil contamination, carbon deposits, fuel fouling, or damaged ceramic insulation can also interfere with ignition. A plug that looks different from the other cylinders may provide useful diagnostic evidence. For example, heavy deposits on cylinder 4’s plug can indicate an oil-control issue, an overly rich mixture, or incomplete combustion.
Inspect the spark plug for cracked insulation, worn electrodes, unusual deposits, and evidence of oil contamination. Compare it with plugs from the other cylinders. Use the correct plug specification and electrode gap for the particular Altima engine rather than applying one specification to every model year.
2. Failing Ignition Coil
An ignition coil produces the high voltage needed to fire the spark plug. If the coil becomes weak, overheats, or develops an internal electrical fault, cylinder 4 may misfire intermittently or continuously.
Coil-related misfires often become more obvious under acceleration. The engine may shake, hesitate, or lose power when additional ignition energy is needed. A damaged coil connector, corroded terminal, or wiring problem can produce similar symptoms.
If the Altima uses interchangeable individual ignition coils, a qualified technician may compare the cylinder 4 coil with a known-good coil from another cylinder. If the misfire follows the coil after a controlled swap, the coil becomes a strong suspect. The test must be interpreted carefully because disturbing connectors or plugs can temporarily change an intermittent problem.
3. Faulty or Restricted Fuel Injector
Cylinder 4 needs the correct amount of fuel to maintain combustion. A clogged injector may deliver insufficient fuel, while a leaking injector may deliver too much. Either condition can disrupt the air-fuel mixture and cause a misfire.
An injector can also fail electrically. Damaged wiring, poor connector contact, or an internal injector fault can prevent normal operation. A technician may check injector command signals, electrical resistance according to the correct service specifications, and injector operation.
A clicking sound from an injector can indicate that its internal mechanism is operating, but it does not prove that the injector delivers the correct fuel quantity. A proper flow or balance test provides stronger evidence than listening alone.
4. Intake Air Leak or Vacuum Leak
An intake air leak can introduce unmetered air into the engine. This changes the air-fuel mixture and can cause rough idle, hesitation, or lean misfire symptoms. Potential problem areas include intake manifold gaskets, vacuum hoses, PCV connections, and damaged intake ducting.
A leak near an individual intake runner can affect one cylinder more than the others. This is why P0304 can appear even when the engine has a broader intake air problem. A smoke test is often useful for locating leaks that are difficult to identify visually.
Fuel trim readings can help distinguish an air-fuel mixture problem from an isolated ignition fault. A positive correction means the ECM is adding fuel. Combined short-term and long-term fuel trim consistently beyond approximately positive 10 percent deserves investigation, although operating conditions and engine-specific specifications matter.
5. Low Cylinder Compression
Cylinder 4 may misfire because it cannot maintain sufficient compression. Possible mechanical causes include damaged piston rings, burned valves, worn valve seats, a damaged piston, or a leaking head gasket.
Compression-related misfires often persist even after replacing the spark plug or ignition coil. They may also produce rough idle, reduced engine power, and poor acceleration. A compression test compares pressure between cylinders to identify an abnormal result.
A leak-down test can help determine whether compressed air escapes through the intake valves, exhaust valves, piston rings, or cooling system. Mechanical testing is especially important when the ignition and fuel systems appear to operate normally.
6. Fuel Pressure or Other Engine Management Problems
Incorrect fuel pressure can interfere with injector delivery. A weak fuel pump, restricted filter, damaged fuel line, or pressure regulation problem may contribute to combustion problems. Although low fuel pressure often affects multiple cylinders, it should not be ignored when diagnosing an individual-cylinder code.
Other possible contributors include a faulty mass airflow sensor, an air-fuel ratio sensor problem, an exhaust restriction, wiring damage, or an engine control issue. These faults should be investigated when the basic cylinder-specific checks do not identify the cause.
| Possible cause | Typical clue | Useful diagnostic test |
|---|---|---|
| Spark plug | Worn electrodes or deposits | Visual inspection and plug comparison |
| Ignition coil | Misfire under load | Controlled coil swap and ignition testing |
| Fuel injector | Uneven fuel delivery | Injector balance and electrical tests |
| Intake air leak | High positive fuel trims | Smoke test and fuel trim analysis |
| Low compression | Persistent cylinder-specific misfire | Compression and leak-down tests |
| Fuel pressure problem | Poor fuel delivery or multiple misfires | Fuel pressure measurement |
These are diagnostic possibilities, not confirmed failures. The correct repair depends on test results and the specific engine installed in the Nissan Altima.
Symptoms That Accompany P0304
A cylinder 4 misfire can affect how smoothly the Altima runs, how quickly it accelerates, and how much fuel it consumes. Some symptoms appear immediately, while others develop gradually as the underlying component deteriorates.
Rough Idle and Engine Vibration
One of the most recognizable symptoms is an uneven idle. The engine may shake while the vehicle is stopped at a traffic light or parked with the engine running. The vibration may become more noticeable when the transmission is in Drive because the engine is working against additional load.
A persistent misfire can make the entire vehicle feel unstable. However, worn engine mounts can also increase vibration. A technician should distinguish an actual combustion problem from a mounting issue rather than assuming every vibration comes from P0304.
Hesitation and Reduced Acceleration
A misfiring cylinder produces less power than a properly firing cylinder. The Altima may hesitate when accelerating from a stop, climbing a hill, or merging onto a highway. The engine may feel weak, especially when additional power is required.
A coil or spark plug that fails under higher cylinder pressure may cause symptoms that are barely noticeable at idle but become obvious during acceleration. This pattern can help guide ignition-system testing.
Poor Fuel Economy and Unusual Exhaust
Incomplete combustion can increase fuel consumption. The ECM may adjust fuel delivery to compensate for abnormal oxygen readings, and some unburned fuel may enter the exhaust system.
An unusual fuel smell, rough exhaust note, or occasional popping sound may accompany a misfire. These symptoms do not identify the exact failed component, but they indicate that the engine needs further diagnosis.
Check Engine Light Behavior
A steady check engine light generally indicates a detected emissions-related fault that requires attention. A flashing check engine light is more urgent because it can indicate an active misfire severe enough to overheat the catalytic converter.
Do not treat a flashing warning as a normal reminder to schedule maintenance. Reduce engine load, avoid hard acceleration, and stop driving as soon as it is safe. Arrange professional diagnosis or towing if the warning continues or the engine runs roughly. Owners of this model also ask about P0302 Nissan Altima.

How to Diagnose P0304 With an OBD2 Scanner
An OBD2 scanner helps identify the misfire conditions and provides information that can narrow down the cause. A basic code reader can retrieve P0304, but a more capable diagnostic scanner can display freeze-frame information, live engine data, pending codes, and supported Mode $06 results.
A useful diagnosis combines scanner information with physical inspections and component testing. Do not clear the code immediately because doing so may erase useful evidence about when the problem occurred.
Step 1: Read Stored, Pending, and Permanent Codes
Connect the scanner to the 16-pin OBD2 diagnostic port, usually located beneath the driver-side dashboard near the steering column. Turn the ignition on and follow the scanner’s instructions to communicate with the ECM.
Record every retrieved code, not just P0304. A P0171 lean code, for example, may indicate a mixture problem that contributes to misfire symptoms. Multiple cylinder misfire codes may suggest a broader fuel, air, or ignition problem rather than a fault isolated to cylinder 4.
- Stored codes identify faults that have met the ECM’s confirmation criteria.
- Pending codes identify faults detected but not yet fully confirmed.
- Permanent codes remain in memory until the applicable monitor verifies that the fault has been repaired.
Step 2: Examine Freeze-Frame Data
Freeze-frame data records important operating conditions when the ECM detected a fault. This information helps establish whether the misfire happened during cold starting, warm idle, steady cruising, or acceleration.
Look for the following information when the scanner supports it:
- Engine speed in RPM when the fault occurred.
- Engine coolant temperature.
- Vehicle speed.
- Calculated engine load.
- Short-term and long-term fuel trim values.
- Intake manifold pressure or mass airflow readings, depending on the engine and scanner.
For example, a misfire recorded at warm idle suggests a different diagnostic direction from one recorded during heavy acceleration. A problem that appears only after the engine warms up may involve a heat-sensitive ignition component, injector, or electrical connection.
Step 3: Check Live Misfire Information
If the scanner supports cylinder-specific misfire counters, monitor cylinder 4 while the engine operates under safe conditions. Some Nissan diagnostic systems provide misfire counts through enhanced manufacturer-specific data, while generic readers may show only limited information.
Compare cylinder 4 with the other cylinders. A counter that increases rapidly on cylinder 4 while other counters remain low supports the diagnosis of a cylinder-specific problem. A pattern involving several cylinders may point toward a shared fuel, air, or electrical issue.
Do not assume that a zero misfire count proves the engine is healthy. An intermittent fault may not occur during a short inspection. Repeating the observation under the conditions recorded in freeze-frame data can provide better evidence.
Step 4: Analyze Short-Term and Long-Term Fuel Trims
Fuel trims show how the ECM adjusts fuel delivery to maintain the target air-fuel mixture. Short-term fuel trim (STFT) responds to immediate oxygen-sensor feedback, while long-term fuel trim (LTFT) represents longer-term corrections.
Combined corrections consistently beyond approximately plus or minus 10 percent deserve attention. Values beyond roughly 25 percent can contribute to lean or rich fault codes, although exact limits depend on operating conditions and calibration.
- Positive trim means the ECM is adding fuel because it detects a lean condition.
- Negative trim means the ECM is removing fuel because it detects a rich condition.
- A positive correction that is much greater at idle than at higher engine speed can support an intake air leak diagnosis.
- Strong negative corrections may point toward excessive fuel delivery, a leaking injector, or incorrect sensor information.
Fuel trim data should be evaluated alongside misfire counts and sensor readings. A cylinder-specific ignition fault may occur even when overall fuel trims remain close to zero.
Step 5: Review Mode $06 Results
Mode $06 provides onboard monitoring test results, which can include misfire-related information. Depending on the Nissan model year and diagnostic equipment, these results may help identify which cylinder is accumulating abnormal misfire counts.
Some generic scanners display test identifiers, component identifiers, test values, and pass limits. Enhanced scanners may translate these values into more readable cylinder-specific results. The meaning of individual test identifiers should be confirmed using the correct service information for the vehicle.
Mode $06 is supporting evidence, not a replacement for physical testing. A misfire counter can show which cylinder is affected, but it cannot independently determine whether the cause is a spark plug, injector, coil, or compression problem.
Step 6: Test the Suspected Components
After reviewing scanner information, move to targeted testing. Inspect cylinder 4’s ignition components, electrical connections, injector operation, and intake area. If the misfire remains unexplained, perform mechanical tests.
A compression test compares cylinder pressure. As one example, Nissan’s older Altima service procedure for a specific engine lists a standard compression reading of 1,226 kPa (178 psi), a minimum of 1,030 kPa (149 psi), and a maximum difference of 98 kPa (14 psi) between cylinders at 300 RPM. These figures are specific to that service application and must not be applied to every Altima engine.
The same Nissan diagnostic material also includes injector checks, ignition spark inspection, fuel pressure testing, and checks for intake leaks. This demonstrates why replacing components based only on a trouble code is not a reliable repair strategy.
Tip: Save all diagnostic codes and freeze-frame data before clearing anything. Never perform ignition spark tests around fuel vapors or exposed combustible materials. High-voltage ignition testing, fuel-system pressure checks, and work involving running engine components should be handled using the correct service procedure and safety equipment.
How to Fix P0304 on a Nissan Altima
The correct repair depends on which component or system caused the cylinder 4 misfire. Start with the evidence collected during diagnosis rather than replacing several components at once. A targeted repair is more likely to solve the problem without creating additional expenses.
Replace a Defective Spark Plug
If the spark plug has worn electrodes, damaged insulation, or abnormal deposits that explain the misfire, replacement may restore normal combustion. Use the correct plug type and specification for the Altima’s engine.
If the vehicle has accumulated substantial mileage and the other spark plugs are similarly worn, replacing the complete set may be more sensible than installing one new plug. Follow the maintenance schedule and engine-specific service instructions.
Repair or Replace the Ignition Coil
A confirmed faulty ignition coil should be replaced with a compatible component. Inspect its electrical connector, wiring, and surrounding plug well for corrosion, oil, moisture, or physical damage.
Replacing a coil without checking its electrical supply or connector condition may not solve the problem. If wiring damage caused the failure, that issue must also be corrected.
Clean or Replace a Fuel Injector
A restricted injector may respond to an appropriate professional cleaning procedure if the injector itself remains serviceable. A damaged injector, internal electrical failure, or injector that cannot maintain the required spray pattern may need replacement.
The technician should also inspect the injector connector and wiring. Replacing an injector without checking the electrical circuit can leave the original fault unresolved.
Repair Intake Leaks and Vacuum Hoses
A damaged intake gasket, loose connection, or cracked vacuum hose should be repaired or replaced after the leak has been located. The repair may restore normal fuel trims and reduce misfire activity.
If the leak affects several cylinders, additional diagnostic codes may be present. Rechecking fuel trims after the repair helps establish whether the engine has returned to normal mixture control.
Address Mechanical Engine Damage
Low compression requires more detailed investigation. Depending on the test results, repairs may involve valve work, piston or ring repairs, cylinder head work, or a head gasket replacement.
These repairs are more involved than replacing a spark plug or ignition coil. A compression and leak-down diagnosis should establish the likely source of the pressure loss before major engine work is authorized.
Verify the Repair
After the underlying problem is repaired, clear codes only when appropriate and verify that the fault does not return. Monitor cylinder-specific misfire data, fuel trims, and relevant live readings under the operating conditions that previously triggered the problem.
A permanent P0304 code may remain visible after a successful repair. It clears automatically only after the ECM completes the relevant monitor and confirms that the fault is no longer present. Disconnecting the battery is not a reliable substitute for completing the required drive-cycle monitoring. For another common fault on this model, see P0340 Nissan Altima.
Is It Safe to Drive With P0304?
Driving with P0304 is not recommended until the cause has been identified, because a continuing misfire can damage the catalytic converter and affect engine performance. The immediate risk depends on the warning light, severity of vibration, and whether the engine is losing power.
When the Check Engine Light Is Flashing
A flashing check engine light indicates an active misfire that may cause catalytic converter overheating. Unburned fuel can enter the exhaust and ignite inside the converter, creating excessive heat.
Continued driving under these conditions can turn a relatively straightforward ignition repair into an expensive exhaust-system problem. Reduce engine load, avoid hard acceleration, and pull over somewhere safe. If the light continues flashing or the engine shakes severely, arrange towing rather than driving to a repair facility.
When the Check Engine Light Is Steady
A steady warning light is generally less urgent than a flashing one, but it does not mean the problem is harmless. A mild or intermittent misfire can still increase emissions, reduce fuel economy, and worsen over time.
If the Altima runs smoothly and there are no other warning signs, a short trip to a nearby repair facility may be reasonable after checking the vehicle’s condition. Avoid long journeys, high speeds, heavy loads, and hard acceleration until the problem is diagnosed.
Signs That Require Immediate Attention
- A flashing check engine light that continues during operation.
- Severe engine shaking or repeated stalling.
- Major power loss that makes the vehicle unsafe in traffic.
- A strong raw-fuel smell or visible fuel leakage.
- Unusual overheating or additional serious warning lights.
A fuel leak requires immediate attention because gasoline presents a fire hazard. Do not continue operating the engine if a leak is suspected. Keep ignition sources away and arrange professional assistance.
Nissan Altima P0304 Repair Costs and Model-Year Differences
The cost of repairing P0304 depends on the failed component, diagnostic time, engine configuration, and labor requirements. A spark plug or ignition coil repair is generally less involved than diagnosing a fuel delivery fault or repairing internal engine damage. The code itself does not establish the final repair cost.
Factors That Affect Repair Costs
- Parts: Spark plugs, ignition coils, injectors, gaskets, wiring, and mechanical engine components have different replacement costs.
- Labor hours: Accessible ignition components generally require less labor than intake manifold work or internal engine repairs.
- Diagnostic complexity: Intermittent faults may require additional testing, repeated live-data observations, or specialized diagnostic equipment.
- Shop versus DIY: Professional labor adds to the repair bill, while DIY repairs require appropriate tools, service information, and mechanical experience.
- Additional damage: A misfire that has overheated the catalytic converter can require repairs beyond the original ignition or fuel-system problem.
A useful repair estimate should separate diagnostic labor, replacement parts, installation time, and any additional work discovered during inspection. Ask the repair shop to explain which test confirmed the failed component before approving replacement.
Why the Altima Model Year Matters
Nissan has used different engine configurations and diagnostic strategies across Altima generations. For example, older Altima service information covers the QR25DE four-cylinder and VQ35DE V6 engines. Later models use different engine designs and may have different diagnostic procedures.
Nissan’s 2014 and 2016 Altima QR25DE diagnostic information includes cylinder-specific P0304 misfire monitoring data. The 2021 Altima service information also describes misfire detection through crankshaft position sensor signals for its PR25DD engine. These differences matter when selecting test procedures and interpreting scanner results.
Do not assume cylinder locations, ignition component arrangements, compression specifications, or fuel pressure values are identical across all model years. Confirm the engine code and consult the matching Nissan service information before performing detailed tests or ordering parts.
For DIY owners, replacing a confirmed spark plug or coil may be manageable with suitable tools and experience. Injector work, fuel pressure testing, electrical diagnosis, and compression testing require additional precautions and equipment. Internal engine repairs are generally best left to a qualified technician. If you want to see how the same fault shows up on another make, read our guide to P0304 Honda CR-V.
Frequently Asked Questions
1. Does P0304 mean cylinder 4 is completely dead?
No. P0304 means the ECM has detected a misfire in cylinder 4. The cylinder may still fire intermittently or produce reduced power. The code does not establish whether combustion has stopped completely.
2. Can bad gasoline cause P0304 on a Nissan Altima?
Yes. Contaminated fuel or fuel with unsuitable characteristics can interfere with combustion. However, a cylinder-specific code should still prompt checks of the ignition system, injector, and mechanical condition before blaming fuel quality.
3. Can P0304 cause an emissions inspection failure?
Yes. A confirmed misfire code or illuminated malfunction indicator lamp can cause an OBD-based emissions inspection failure. Clearing codes immediately before testing can also leave readiness monitors incomplete, which may prevent the vehicle from qualifying for inspection.
4. Will disconnecting the battery permanently remove P0304?
No. Disconnecting the battery does not repair the underlying misfire. It may erase some stored information and reset readiness monitors, while a permanent diagnostic code requires the ECM to verify successful operation through its own monitoring process.
5. Can P0304 appear together with P0300 or P0171?
Yes. P0300 indicates random or multiple-cylinder misfires, while P0171 identifies a system-too-lean condition on Bank 1. Their appearance alongside P0304 may indicate that a broader air-fuel mixture problem is contributing to the cylinder 4 misfire.
P0304 on a Nissan Altima identifies a cylinder 4 misfire, not a specific failed part. Start with the scanner’s stored codes, freeze-frame information, and misfire data, then test the spark plug, ignition coil, injector, intake system, and cylinder compression as needed. Address a flashing check engine light immediately to reduce the risk of catalytic converter damage, and verify the repair before considering the vehicle fixed.
-
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
Learnp0304 nissan rogue: Diagnose Cylinder 4 Misfires
LearnP0442 Nissan Altima: Diagnose the EVAP Leak Before Replacing Parts
LearnP0303 Nissan Altima: Find the Cylinder 3 Misfire and Fix It
Scanners by VehicleNissan Altima Dashboard Symbols and Meanings: Red, Amber, Green
Scanners by VehicleKnock Sensor Location Nissan Altima: What Owners Report
LearnP0463 VW: Diagnose Fuel Gauge and Sender Circuit Faults