P0304 Mazda: Diagnose Cylinder 4 Misfires Before Replacing Parts
13 min read · by Nicole Bennett · Last updated: November 25, 2026
A p0304 mazda code means the engine computer has detected a misfire in cylinder 4; it does not prove that the spark plug or ignition coil has failed. The next step is to confirm when the misfire occurs and test the ignition, fuel, air, and mechanical systems before replacing parts.
P0304 is a generic OBD-II powertrain code. Mazda’s service information shows that the exact diagnostic routine depends on the engine: one Mazda L3 Turbo procedure monitors crankshaft-speed changes, preserves freeze-frame information, and checks the plug, intake sealing, injector circuit, ignition coil wiring, spark, and compression. Causes vary by model year and engine, so the vehicle’s year, model, and engine matter.
A steady check-engine light needs prompt diagnosis. A flashing light is more urgent because a severe misfire can damage the catalytic converter. Reduce load and arrange service; stop if the engine shakes severely, overheats, or smells strongly of raw fuel.
What P0304 Mazda Means
P0304 means “Cylinder 4 Misfire Detected.” The P identifies a powertrain fault, and the 0 identifies a generic SAE code rather than a Mazda-only definition. The final two digits identify the specific fault category; in this case, the computer has detected uneven crankshaft acceleration associated with cylinder 4.
A misfire means cylinder 4 is not contributing normal power on every combustion event. Causes include weak spark, incorrect mixture, poor injector delivery, or low compression. The code identifies the cylinder, not the failed part; a new coil will not fix a damaged connector, intake leak, clogged injector, or engine wear.
Mazda’s L3 Turbo service procedure explains that the PCM evaluates crankshaft-position-sensor timing intervals and calculates changes for individual cylinders. That procedure evaluates misfire counts over 200- and 1,000-crankshaft-revolution windows. It also lists P0304 as cylinder 4 misfire detected and says freeze-frame data and pending codes may be available. These details describe that specific L3 Turbo application, not every Mazda engine.
The generic definition is shared across OBD-II vehicles, but engine layout, cylinder numbering, and diagnostic thresholds vary. Do not assume cylinder 4 is at a particular end or side of every Mazda engine; use the exact engine’s service information. The fault logic is shared, but the test points change, so check P0304 Ford Escape too.
| Code element | Meaning | What it tells you |
|---|---|---|
| P | Powertrain | The fault relates to an engine or transmission control system. |
| 0 | Generic SAE code | The basic definition is standardized across OBD-II vehicles. |
| 3 | Ignition system or misfire category | The code is in the misfire-related group. |
| 04 | Cylinder 4 misfire | The PCM detected a misfire associated with cylinder 4. |
Symptoms and Warning Signs
P0304 can cause anything from a barely noticeable stumble to a severe, shaking idle. The symptoms depend on how often cylinder 4 misfires, whether the fault is limited to cold starts or heavy load, and whether another engine problem is present.

Symptoms can include rough idle, shuddering under acceleration, hesitation, reduced power, poor fuel economy, hard starting, or an exhaust smell. An intermittent misfire may be too brief for the driver to notice, even when a scan tool records it.
A flashing check-engine light is the key warning. The EPA explains that a flashing malfunction indicator can signal severe engine misfire and advises reducing speed and seeking service as soon as possible because continued misfire can damage emission-control parts, especially the catalytic converter. Unburned fuel entering the exhaust can raise converter temperature. Do not keep driving hard to see whether the light stops flashing.
A steady light with a smooth-running engine is less urgent than a flashing light, but it still needs diagnosis. If the Mazda shakes heavily, stalls, overheats, or smells strongly of raw fuel, pull over safely and arrange a tow. Owners of other makes can check the matching guide: P0304 Duramax Code.
| What you notice | Possible direction | Useful next check |
|---|---|---|
| Rough idle that improves with RPM | Plug, coil, injector, vacuum leak, or compression issue | Misfire counters at idle and plug condition |
| Misfire mainly under acceleration | Weak ignition under load or fuel-delivery problem | Freeze-frame load, coil circuit, and fuel delivery |
| Hard start after sitting | Fuel leakage, fouled plug, or mechanical condition | Plug wetness, injector leak test, and compression |
| P0304 with other cylinder codes | Shared fuel, air, electrical, or mechanical issue | Read all codes and compare fuel trims |
| Flashing check-engine light | Misfire severe enough to threaten the catalyst | Reduce load and stop driving if it continues |
Common Causes of a Mazda Cylinder 4 Misfire
The most common starting points are the spark plug and ignition system, but P0304 does not establish that either is defective. A sound diagnosis checks cylinder-specific components first, then looks for shared engine conditions and mechanical faults.
A worn, cracked, incorrectly gapped, or carbon-fouled spark plug may fail to ignite the mixture consistently. Oil or fuel on the firing end is a clue, not a diagnosis: oil may point to an engine sealing issue, while wet fuel may result from flooding or a cylinder that is not burning its charge. NGK explains that carbon can let ignition voltage leak along the insulator instead of jumping the plug gap; short trips, rich operation, low compression, and worn ignition parts can contribute.
An ignition coil, boot, plug wire on engines that use wires, or connector can also interrupt spark. A coil may work at idle but break down under load. Check for cracked insulation, corrosion, loose terminals, damaged wiring, and oil or water in the plug well. Never handle ignition components with the engine running.
A restricted or electrically faulty injector may deliver too little fuel to cylinder 4; a leaking injector can wet the plug. A damaged connector, weak terminal tension, or open/shorted harness can mimic injector failure. Fuel-pressure problems often affect more than one cylinder, so check for other codes before condemning one injector.
An intake leak near cylinder 4 can make its mixture lean. A shared vacuum leak, contaminated MAF sensor, or fuel-pressure problem may affect several cylinders. Combined short-term and long-term fuel trim beyond about plus or minus 10 percent suggests a mixture problem; readings beyond roughly 25 percent can set lean or rich codes such as P0171/P0174 or P0172/P0175. Interpret trims by bank and operating condition. They do not prove a sensor is defective.
Low compression can result from a leaking valve, worn rings, head-gasket leak, damaged piston, or valvetrain problem. Compression, relative-compression, and leak-down tests help separate a mechanical fault from ignition or fuel trouble. Compare results with Mazda’s specification for the exact engine; there is no universal compression-pressure limit.
There is also a narrow Mazda-specific exception worth knowing. Mazda North American Operations issued a service alert for certain 2018 CX-5 and Mazda6 vehicles equipped with cylinder deactivation when rough running or low power appeared with P0340:00, P0304:00, and one or more related cylinder-deactivation codes. The alert directs technicians to inspect the valvetrain for a fallen or broken rocker arm, especially around cylinders 1 and 4, and to review oil-change records. This is not a diagnosis for every Mazda with P0304. It applies to the listed model/configuration and companion-code pattern, and Mazda states that the bulletin’s procedures are for skilled technicians.
How to Diagnose P0304 With an OBD2 Scanner
Scan the PCM before clearing anything. A basic reader can show P0304, but freeze-frame, pending/permanent codes, live data, and cylinder misfire information make diagnosis more precise.

- Read stored, pending, and permanent PCM codes. Note whether P0304 appears alone or with P0300, other cylinder misfires, fuel-trim codes, cam/crank sensor codes, or Mazda-specific companion codes. A pending code has been detected but not yet confirmed. Save the full list.
- Record freeze-frame RPM, speed, coolant temperature, calculated load, throttle position, intake-air temperature, and fuel trims when available. This snapshot helps separate a cold-start event from a warm-idle or acceleration misfire. Mazda’s L3 Turbo procedure says to record freeze-frame data before testing.
- Check live data under the conditions that set the code, without deliberately loading a severe misfire. Watch cylinder misfire counters, RPM, coolant temperature, MAF/MAP, oxygen or air-fuel sensor data, and STFT/LTFT. A counter repeatedly rising on cylinder 4 is more useful than the code alone; some basic readers do not show Mazda-enhanced counters.
- Compare fuel trims at idle and steady raised RPM. Positive trim can point to unmetered air or insufficient fuel; negative trim can point to a rich mixture. If trims look normal while cylinder 4 continues to misfire, focus on its plug, coil, injector, wiring, and compression.
- Check Mode 06 if the scanner can decode the vehicle’s test identifiers. It may show misfire monitor results or cylinder counts, but formats and pass/fail limits vary. Use Mazda service information rather than interpreting an unfamiliar raw value as a failed part.
- With the engine off and cool, inspect the plug, boot, connector, and harness for cracks, wear, wrong gap, deposits, wetness, corrosion, or damage. Mazda’s L3 Turbo sequence also checks intake sealing, injector wiring, coil harness, spark, compression, and injector operation. See the Mazda L3 Turbo P0304 diagnostic procedure for that engine-specific sequence.
- If the ignition checks pass, test injector command and operation with the correct wiring diagram and equipment. A technician may use a noid light, current waveform, scan-tool actuator test, or injector balance test. Do not apply battery voltage directly to an injector or loosen high-pressure fuel fittings. If cylinder-specific checks remain inconclusive, use compression and leak-down tests and inspect the valvetrain through the correct service procedure.
Tip: Keep the original freeze-frame record and code list before clearing DTCs or disconnecting the battery. Clearing codes can erase useful diagnostic context and reset emissions readiness monitors. After a repair, verify that the misfire monitor completes and that the code does not return under the same operating conditions. It is also worth reading P0336 Mazda for the same vehicle.
Repairs, Verification, and Cost Factors
The correct repair depends on which test fails. Avoid replacing a coil, injector, oxygen sensor, or catalytic converter solely because P0304 is present. The code points to a misfiring cylinder; the inspection results identify the failed component.
For a defective plug, use the specification for the exact engine and follow Mazda’s gap and torque requirements. If oil consumption, rich operation, or low compression caused fouling, a new plug may only provide temporary relief. Replace a coil or boot only after an electrical check or an approved swap test points to it; inspect the connector and harness at the same time.
Injector work may involve cleaning, replacement, or circuit repair, depending on electrical tests, balance/flow results, and fuel pressure. Direct-injection systems can retain high fuel pressure after shutdown, so leave high-pressure line work to a qualified technician. Repair an intake leak at the failed hose, seal, or gasket, then recheck trims and misfire counts. Mechanical or valvetrain faults can require major engine work.
For the specific 2018 cylinder-deactivation alert, a rocker-arm concern is not a routine plug-and-coil repair. Mazda’s service alert for the affected CX-5 and Mazda6 configurations says the inspection and repair process is for skilled technicians.
Cost depends on the failed part, diagnostic time, engine layout, access, local labor rates, and shop versus DIY work. A plug or accessible coil usually involves less labor than an injector beneath an intake manifold; wiring faults take circuit diagnosis, while compression loss or internal valvetrain damage can require extensive teardown. Ask for the test results and whether the estimate includes diagnosis, parts, labor, and verification.
After the repair, clear codes only after recording the original data and completing the repair. Drive the vehicle through the conditions that previously triggered the misfire, while monitoring for a returning pending or stored P0304. Confirm that cylinder misfire counts stay stable, fuel trims are reasonable, and the check-engine light remains off. Permanent DTCs may remain until the fault is fixed and the relevant monitor passes on its own; a scan tool cannot force-clear them. Other faults on the same vehicle are covered in P0344 Mazda.
Is It Safe to Drive With P0304?
Driving risk depends on misfire severity, not just whether the code is stored. A steady light and no noticeable symptoms may allow a short, gentle trip to a repair facility, but a flashing light, heavy vibration, major power loss, overheating, or a strong raw-fuel odor calls for stopping safely and arranging a tow.
A flashing malfunction indicator warns that a misfire may overheat the catalytic converter. Reduce throttle and load immediately. Do not tow, accelerate hard, or keep driving in the hope that the code will clear. Repeated misfire can also dilute engine oil with fuel and worsen drivability.
If the light is steady and the Mazda runs normally, avoid high speeds and heavy acceleration and have it checked as soon as practical. A steady light does not guarantee that the fault is minor; an intermittent misfire may occur only when the engine is cold, hot, wet, or under load. If the vehicle begins to shake, stall, or lose power, stop in a safe location.
Do not disconnect the battery to judge whether the issue is repaired; that can erase evidence and reset readiness monitors. Confirm the repair after the monitor runs, no misfire returns, and the vehicle operates normally. For the equipment used in these checks, see Best Bluetooth OBD2 Scanners for Ipad.
Frequently Asked Questions
These answers cover additional code relationships, electrical checks, and diagnostic details that can help narrow down a Mazda cylinder 4 misfire.
Can P0304 appear with P0300?
Yes. P0300 identifies random or multiple-cylinder misfire activity, while P0304 identifies cylinder 4. The two can be stored together when the PCM detects both a broader misfire pattern and a cylinder-specific contribution problem.
Can a bad engine mount cause P0304?
A worn engine mount can increase vibration and make a normal engine movement feel worse, but it does not normally create a cylinder-specific combustion-misfire code. P0304 requires investigation of the engine’s combustion, ignition, fuel, and mechanical systems.
Should I check battery voltage during a P0304 diagnosis?
Yes, particularly if the engine cranks slowly or other electrical faults are present. A healthy battery at rest is approximately 12.6 volts, while a typical charging-system reading with the engine running is about 13.5 to 14.7 volts. These checks help assess electrical supply but do not prove the cause of a cylinder-specific misfire.
Can the PCM itself cause P0304?
A PCM fault is possible but should be considered only after the related circuits and engine components have been tested. Mazda’s L3 Turbo diagnostic sequence reaches PCM replacement only after the preceding ignition, injector, wiring, and compression checks and subsequent repair verification.
Does P0304 tell me how frequently the misfire happens?
No. The code identifies cylinder 4 but does not state the exact misfire rate or the engine speed at which the fault occurred. Freeze-frame information and supported cylinder misfire counters provide additional operating-condition and frequency clues.
Save the scan report, repair the cause confirmed by testing, and verify the misfire monitor before returning the Mazda to normal use. A cylinder-specific code is a starting point for diagnosis, not a parts order.
-
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
LearnP0327 Mazda: Find the Knock Sensor Circuit Fault
LearnP0302 Mazda: Find the Cause of a Cylinder 2 Misfire
LearnP0303 Mazda: Find the Cylinder 3 Misfire and Fix It
LearnP0301 Mazda: Find the Cause of a Cylinder 1 Misfire
LearnP0316 Mazda: Diagnose Startup Misfires and Find the Cause
LearnU0199 Code: Diagnose Door Module Communication Problems