P0304 on Mazda: How to Diagnose & Fix
Cylinder 4 Misfire Detected
5 Mazda models · 8 documented issues · 3 critical · $50-$1,200 repair
P0304 on Mazda by model: symptoms, diagnosis and fix
The NB Miata (1999-2005) crankshaft position sensor (CPS) is a known failure point. The sensor deteriorates from engine heat, causing intermittent stalling, no-start conditions, and random misfires. Failure is often heat-related - the car runs fine when cold but stalls or dies after reaching operating temperature.
Common Symptoms
- Engine stalls when hot, restarts after cooling down
- Intermittent no-start condition (cranks but does not fire)
- Random misfires and rough running at operating temperature
- Check engine light with P0335 (CPS circuit) code
How to Fix
Replace crankshaft position sensor with OEM Mazda unit (ZL01-18-221A). Aftermarket sensors (Delphi, Dorman) have higher failure rates on this application. The sensor is located at the front of the engine beside the crankshaft pulley, and its gap to the pulley's sensor plate must be set correctly.
What you need to fix it
Only diagnosis- and fitment-reviewed repair parts are linked here.
- Genuine Mazda BP4W-18-221B crankshaft position sensorOEMMazda BP4W-18-221B
Confirm VIN before ordering; thi
As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.
Owner tips & cautions
- TipCarry a spare CPS in the trunk - they fail without warning. Miata.net CPS mega-thread
- TipRoute sensor wiring away from exhaust manifold heat to extend sensor life
Sources for this issue (2)
The 1994-2000 1.8L BP engines use a wasted-spark coil pack with an integrated igniter transistor. The early version (identified by the 4-pin input connector, later revised to 3-pin) is notorious for internal igniter/solder-joint failure, especially if the ignition is left in the ON position with the engine not running - the igniter transistor overheats and either burns out or melts its own solder connections. The result is a dead cylinder pair, a persistent misfire, and unburned fuel dumped into the catalytic converter.
Common Symptoms
- Hesitation or stumble on startup that worsens over time
- Severe misfire under load
- Running rich, fuel smell, black smoke
- Check engine light with misfire codes
- Dead cylinder pair (1&4 or 2&3)
How to Fix
Replace the coil pack with an OEM Mazda unit (owners repeatedly report short life from budget aftermarket coils). Replace the plug wires and spark plugs at the same time since a failing coil stresses them, and inspect the catalytic converter if the car was driven while misfiring. Avoid leaving the key in ON without the engine running.
Sources for this issue (3)
Direct-injection Skyactiv engines accumulate carbon deposits on intake valves due to oil vapors from the PCV system. Without port injection to clean valves, carbon can fuse to valve surfaces over time, typically appearing around 65,000+ miles.
Common Symptoms
- Rough idle and engine misfires
- Reduced power and poor fuel economy
- Check engine light with misfire codes
How to Fix
Walnut blasting intake valves to remove carbon deposits. In-tank fuel additives (Techron, Sea Foam, Lucas) cannot reach the intake valves on a direct-injection engine, so they do little to prevent this buildup.
Owner tips & cautions
- TipWalnut blasting every 60,000-80,000 miles as preventive maintenance
Sources for this issue (3)
Mazda recall 3719F / NHTSA 19V-497 covers certain cylinder-deactivation-equipped 2018–2019 CX-5 vehicles. Incorrect PCM control during reactivation can allow an intake rocker to move out of position, causing misfire, power loss or an engine stall. Eligibility depends on the exact vehicle, not a symptom or trim name alone.
Common Symptoms
- Misfire or MIL requiring diagnosis
- Loss of engine power or stall
How to Fix
Have Mazda verify VIN eligibility, completion history and PCM calibration. The recall remedy is the applicable PCM software update. If noise or faults remain, the manufacturer directs diagnosis using the workshop manual; these symptoms do not automatically require replacing every lash adjuster, rocker or cylinder head. Suspected internal mechanical damage must be assessed before further engine operation. Confirm any additional repair and coverage from the actual findings.
Sources for this issue (2)
Ignition coil-on-plug coils fail causing misfires. Ford 3.0L Duratec V6 coils are prone to cracking and arcing. Usually fails one at a time.
Common Symptoms
- Engine misfire
- Check engine light flashing
- Rough idle
- Loss of power
- Poor fuel economy
How to Fix
Replace failed ignition coil. Replace all 6 spark plugs when replacing any coil. Consider replacing all coils proactively if one fails.
What you need to fix it
Only diagnosis- and fitment-reviewed repair parts are linked here.
- Genuine Mazda AJ09-18-100 direct ignition coilOEMMazda AJ09-18-100
Individual OEM coil replacement after a 3.0L cylinder-specific ignition failure is confirmed Fitment/availability: The inspected direct OEM dealer page identifies AJ09-18-100 and its Tribute fitment through 2001-2010. Confirm VIN/engine …
As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.
On the 2.0L Skyactiv-G direct-injection engine used in the 2016-2021 CX-3, carbon can build up on the backs of the intake valves. Fuel is injected straight into the cylinder, so it never washes over the intake valves. Oil mist from the crankcase ventilation (PCV) system can then bake onto them over time. As deposits grow, they disturb airflow into the cylinders. Mazda has documented this on an earlier Skyactiv engine. Its bulletin 01-012/19 for the 2012-2013 Mazda3 with SKYACTIV says carbon around the intake valves can cause unstable combustion and misfire codes P0300-P0304 while the engine warms up after a cold start. We found no matching Mazda bulletin for the CX-3, and owner reports on Mazda forums are mixed. One owner reports more than 100,000 miles on a Skyactiv car with the same performance and fuel economy as before. Another notes that cars driven mostly on short trips are more likely to build deposits.
Common Symptoms
- Check engine light with misfire codes, especially on cold starts
- Gradual loss of low-end power and throttle response
- Reduced fuel efficiency over time
- Rough idle after extended parking
- Fouled spark plugs
- Hesitation during acceleration from stop
How to Fix
1. Rule out the cold-weather muffler problem first. Does the rough idle or check engine light (P0300-P0304) appear only on the first start after a night parked below 32°F (0°C)? Mazda bulletin 01-007/19 covers the 2016-2019 CX-3 for exactly this. Water collects and freezes in the main muffler and blocks the exhaust. The fix is an updated main muffler with two drain holes (part PEZ2-40-100 for 2WD, PEZ3-40-100 for AWD). It is covered under Mazda's New Vehicle Limited Warranty term. The dealer also changes the oil if the level reads above the F mark. 2. Get the stored codes and freeze-frame data before any parts are replaced. Mazda's carbon bulletin for the Mazda3 applies only when the misfire was logged within about the first 45 seconds after a cold start (coolant below 100°F, under high load). In one Skyactiv Mazda3 case, the coils, MAF sensor and O2 sensors were all replaced and the misfire stayed. 3. Confirm the carbon before paying for cleaning. In Mazda's Mazda3 procedure, the technician removes the intake manifold and checks for deposits around the intake valves. 4. If deposits are confirmed, the valves need cleaning. Mazda's bulletin 01-012/19 (2012-2013 Mazda3 only) has the technician remove the intake manifold and spark plugs. The valves are then soaked with a commercial top-end decarbon solvent and scraped with a plastic or wooden tool, never a metal one. A columnist at The Truth About Cars warns that chemical cleaning or walnut-shell blasting may not be enough on its own, and that heavy deposits may need the intake removed and cleaned on the bench. 5. Coverage: we found no recall, warranty extension or bulletin that covers intake-valve cleaning on the CX-3. Bulletin 01-012/19 applies only to the 2012-2013 Mazda3. Expect carbon cleaning on a CX-3 to be a paid repair unless the dealer finds a covered cause, such as the muffler bulletin above.
Sources for this issue (5)
- Reddit r/MechanicAdvice Thread Discussing 2016 Mazda CX-3 Skyactiv 2.0L Intake Valve Carbon Buildupforum
- Mazda TSB 01-012/19: Check engine light on with DTC P0300-P0304 (2012-2013 Mazda3 SKYACTIV)tsb
- Mazda TSB 01-007/19: Rough idle and/or MIL on with P0300-P0304 in cold temperaturetsb
- Piston Slap: Misfiring on Mazda3 Skyactiv's Diagnosis?article
- Intake valve carbon buildup on 2017 and later Skyactiv engines (Mazdas247)forum
P0304 code reference
General diagnostic-code context. The code alone does not confirm a cause for your vehicle; use the applicable issue card and its sources.
Frequently asked questions
What does P0304 mean on a Mazda?
P0304 stands for "Cylinder 4 Misfire Detected." This code means the engine computer detected a misfire in cylinder number 4 — that cylinder isn't igniting its air-fuel mixture fully or at all. The system detects this by monitoring small changes in crankshaft rotation speed as each cylinder fires. You may feel a rough idle, shaking, hesitation or reduced power, and a persistent misfire can dump unburned fuel into the exhaust and overheat or damage the catalytic converter. Since it's pinpointed to one cylinder, the problem typically lies in that cylinder's spark, fuel, or compression. On Mazda it is documented across 5 models: MX-5 Miata, CX-5, Tribute, CX-3, Mazda3.
What are the most common causes of P0304?
The most common causes of P0304 are: Worn or fouled spark plug in cylinder 4, Failed or weak ignition coil on cylinder 4, Faulty spark plug wire or boot (where applicable), Clogged, stuck or leaking fuel injector for cylinder 4, Vacuum or intake air leak near that cylinder, Low compression (worn rings, burnt/leaking valve, head gasket), Damaged wiring or connector at the coil or injector. The specific cause varies by vehicle.
How much does it cost to fix P0304 on a Mazda?
Published repair estimates on Mazda range from $50 to $1,200 depending on the model and root cause. If an issue mentions a recall or campaign, check your VIN with the manufacturer or NHTSA and confirm eligibility and coverage with a dealer.
Looking for P0304 on a different make?
View P0304 across all makes →Join 700+ subscribers following Au7o for vehicle insights and updates.
Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.