P0304 on BMW: How to Diagnose & Fix
Cylinder 4 Misfire Detected
9 BMW models · 11 documented issues · 1 critical · $180-$1,200 repair
P0304 on BMW by model: symptoms, diagnosis and fix
The N55 in the 335i is a direct-injection engine. Fuel is sprayed straight into the cylinders, so it never washes over the backs of the intake valves, and carbon builds up on them. Oil vapor that gets into the intake adds to the deposits. Over time the buildup restricts airflow and can cause rough idle, misfires, loss of power and lower fuel economy. FCP Euro notes the buildup on the N54 and N55 can get bad enough to almost close off the intake ports and valves.
Common Symptoms
- Rough idle
- Misfire codes
- Hesitation or loss of power
- Poor fuel economy
How to Fix
1. Confirm the cause first. A rough idle or misfire alone does not prove the valves need cleaning. Read the fault codes and rule out other causes such as ignition faults, fuel delivery problems and air leaks. If those check out, have the intake valves inspected to see whether the deposits are heavy enough to explain the problem. 2. If the valves are heavily coated, the repair is a walnut-shell blast cleaning. The intake manifold comes off, crushed walnut shell is blasted into each port to scrub the carbon off the valves, and a shop vacuum pulls out the media and debris. The cylinder head stays on. One shop replaces the OEM intake manifold gaskets as part of the job. BMWBlog says the cleaning is usually recommended around 60,000 miles. FCP Euro gives roughly 30,000-50,000 miles and says tuned engines may need it sooner. Cleaning will not fix a bad injector, an ignition fault or a worn part, so it only helps if carbon was the cause. 3. Cost: one independent BMW shop (Speed Logic) lists walnut blasting for the N54/N55/N20 at $300, including new OEM intake manifold gaskets. FCP Euro says a dealer can charge over $700. Prices vary by shop, so compare quotes that cover the same work. 4. Prevention: an oil catch can reduces the oil vapor that reaches the intake. It slows new buildup but does not remove carbon that is already there.
What you need to diagnose it
The repair instructions explicitly call for reading stored codes. Use a scanner that can read the named code families before choosing a repair.The recommended scanner supports these code families; confirm your exact year, model and module coverage before buying.
ANCEL AD310 Classic OBD-II Scanner
Read & clear engine (P) codes
$20–$40View
As an Amazon Associate, we earn from qualifying purchases. Prices are approximate and may vary.
Reading and clearing the code is DIY work. Module replacement or reprogramming is not — most modules are VIN-programmed, so a new one does nothing until a shop codes it to your car. Check for an open recall or service bulletin before buying anything.
Sources for this issue (4)
BMW bulletin SI B12 02 12 states that various drivability complaints and/or misfire faults on N54 and N54T engines (including E90/E92/E93 3 Series) may be attributed to intake valve and port carbon deposits. Rough idle or misfire codes alone do not establish the cause; the bulletin routes the car through a test plan first and does not set a compulsory cleaning interval.
Common Symptoms
- Various drivability complaints (rough idle, hesitation, power loss)
- Check engine light with misfire faults
How to Fix
Use the engine-specific BMW diagnostic test plan before authorizing intake-valve cleaning. If the results identify intake-port coking, follow the applicable professional cleaning procedure. Diagnose other indicated causes when the result is inconclusive. Do not use a catch can, fuel brand or high-RPM driving as a proven cure.
Sources for this issue (1)
The B58 engine's valve cover gasket is prone to degradation and oil leaks, typically developing around 60,000-100,000 miles. The rubber gasket material shrinks and dries out through repeated heat cycles, allowing oil to seep and eventually drip down the sides of the engine. In more severe cases, oil can leak into the spark plug tubes, causing misfires and potential ignition coil damage.
Common Symptoms
- Burning oil smell from engine bay, especially after highway driving
- Visible oil seepage around valve cover edges
- Oil dripping on exhaust manifold causing smoke
- Oil pooling in spark plug wells causing misfires
- Low oil level between changes
How to Fix
Replace the valve cover gasket with an updated BMW part. If oil has entered spark plug tubes, replace spark plugs and inspect ignition coils. Clean all oil residue from the engine block. Some owners replace the entire valve cover assembly as the integrated PCV valve can also fail.
What you need to fix it
Only diagnosis- and fitment-reviewed repair parts are linked here.
- FCP Euro Genuine BMW B58 valve-cover gasket service kit 11128621951KTOEM11128621951Cross-refKIT-11128621951KT
Fitment: 2017-2021 BMW M240i and M240i xDrive F22/F23 listed by FCP; confirm vehicle selection and inspect the complete cover before ordering.
- Elring B58 complete engine valve cover 11127645173OEM11127645173Cross-refELR-B34750
Fitment: 2017-2021 BMW M240i and M240i xDrive F22/F23 where vehicle selection confirms OE 11127645173.
As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.
Sources for this issue (2)
As a direct-injection engine, the B58 in the M340i does not have fuel washing over the intake valves, leading to gradual carbon deposit buildup on the valve backs. Oil vapors from the crankcase ventilation system deposit carbon that restricts airflow and reduces performance. Symptoms typically become noticeable after 50,000-80,000 miles, with rough idle, reduced throttle response, and minor misfires. The M340i's higher boost pressures can accelerate carbon accumulation compared to non-M B58 applications.
Common Symptoms
- Rough or uneven idle developing gradually
- Reduced throttle response and power
- Slight hesitation during acceleration from low RPM
- Minor misfires at idle, especially when cold
- Decreased fuel economy over time
How to Fix
Walnut blast the intake valves every 50,000-60,000 miles. This involves removing the intake manifold and blasting walnut shell media at the valve backs to remove carbon deposits. Some owners use catch cans to reduce oil vapor entering the intake. BMW's official position is that carbon buildup is normal for direct-injection engines.
Sources for this issue (1)
The S58 twin-turbo engine in the G80 M3 uses direct injection, which sprays fuel directly into the combustion chamber rather than over the intake valves. Oil vapors from the crankcase ventilation system deposit carbon on the backs of intake valves over time. Without fuel washing over the valves to clean them, carbon accumulates and restricts airflow, reducing performance.
Common Symptoms
- Gradual loss of power and throttle response
- Rough idle
- Decreased fuel economy
- Engine misfires
- Hesitation during acceleration
How to Fix
Walnut shell blasting to clean intake valves (every 50,000-70,000 miles). Catch can installation to reduce oil vapor entering intake. Regular Italian tune-ups (sustained high RPM driving) may slow buildup. Chemical cleaning treatments (less effective than walnut blasting).
Sources for this issue (1)
The valve cover gasket on both N20 and B48 engines in the 2 Series degrades over time, causing oil leaks from the top of the engine. Oil seeps down the sides of the engine and can reach the exhaust manifold, creating a burning oil smell and potential fire hazard. The integrated valve cover also houses the PCV valve, which can fail simultaneously and cause additional issues.
Common Symptoms
- Burning oil smell from engine bay
- Visible oil around valve cover perimeter
- Oil pooling in spark plug wells causing misfires
- Check Engine light for misfires (P0300-P0304)
- Rough idle from oil-fouled spark plugs
- Smoke from engine area when oil hits exhaust
How to Fix
Replace the valve cover gasket. On the N20 the gasket is available separately, but because the plastic cover also houses the crankcase ventilation (PCV) system, the whole valve cover is often replaced when the cover is cracked or the PCV valve has failed. Inspect and clean the spark plug wells for oil intrusion. Replace the PCV valve if it shows signs of degradation. Torque the valve cover bolts to BMW specifications to avoid cracking the plastic cover.
What you need to fix it
Only diagnosis- and fitment-reviewed repair parts are linked here.
- Genuine BMW N20/N26 cylinder-head-cover gasket set 11127588418OEM11127588418
Gasket-only repair when the N20/N26 cover is reusable. Fitment: 2014-2016 F22/F23 228i with N20 or N26 as cataloged.
- Genuine BMW N20 cylinder-head cover 11127588412OEM11127588412
Fitment: 2014-2016 F22/F23 228i with N20 as cataloged; confirm N20 rather than N26 and the required companion high-pressure fuel line/fasteners before ordering..
- Genuine BMW B46/B48 cylinder-head-cover profile seal 11128618519OEM11128618519
Fitment: 2017-2021 F22/F23 230i and 230i xDrive with B46/B48 as cataloged; confirm VIN and the required companion high-pressure-pump seal/fasteners..
- Genuine BMW B46/B48 cylinder-head cover 11127611278OEM11127611278
Fitment: 2017-2021 F22/F23 230i and 230i xDrive as cataloged; confirm VIN and order the required separately listed profile seal and fuel-line fasteners..
As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.
Sources for this issue (2)
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 BMW?
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 BMW it is documented across 9 models: 3 Series, M240i, M340i, M3, 2 Series, M4 CS, M5, Z4, 1 Series.
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 BMW?
Published repair estimates on BMW range from $180 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.