P0304 Subaru Code: Cylinder 4 Misfire Causes and Scanner Test
6 min read · by Nicole Bennett · Last updated: November 25, 2026
A p0304 Subaru code means the engine computer has detected misfires in cylinder 4, so fuel is not burning fully in that cylinder. You may notice a rough idle, hesitation under throttle or a light shake in the cabin.
The code does not name the failed part. Stop driving if the engine stalls, the check engine light flashes or you smell raw fuel, then run a short test before you replace anything.
What the P0304 code means on a Subaru
P0304 is the OBD-II code for a misfire in cylinder 4. The 0 after the P marks it as a generic code, and the 3 marks ignition systems or misfires, according to Wikipedia’s OBD-II overview.
The standard title is “Cylinder 4 Misfire Detected.” The engine computer sets the code when it sees misfires on that cylinder, then turns on the check engine light. Manufacturers can add their own sub-definitions and test conditions, so the exact limits for your Subaru come from its service information. The same code can behave differently on other vehicles, so it helps to compare it with P0304 Chevy Tahoe.

Common causes of a cylinder 4 misfire
The likeliest causes of a cylinder 4 misfire are a faulty coil or plug wire on that cylinder, a fouled spark plug, or a clogged or non-firing injector. Carwhere’s P0304 page ranks these roughly by likelihood and says testing must confirm the actual cause.
- A faulty ignition coil or plug wire on cylinder 4
- A fouled or worn spark plug in cylinder 4
- A clogged, leaking or non-firing cylinder 4 injector
- Open or shorted injector or coil wiring
- A vacuum leak affecting cylinder 4
- A valve or head gasket problem that lowers compression
Wiring faults can appear only when the engine heats up or when the harness moves, so a connector that looks fine on the bench may still fail on the road. Wiring faults and vacuum leaks are easy to miss on a quick visual check. A compression test is the step that separates a valve or gasket problem from an ignition problem, so it belongs in the plan before you buy major parts.
Symptoms you can feel while driving
A cylinder 4 misfire usually shows as a check engine light, a rough idle and a stumble or loss of power under load. Carwhere’s list adds engine shake that you can feel in the cabin.
A steady light calls for a careful check soon. A flashing light calls for stopping rather than driving on, because a strong misfire puts more stress on the engine and exhaust. For a comparison on a different vehicle, see P0304 Toyota Tundra.
A smooth-running engine can still set the code. Do not treat the lack of shaking as proof that the problem is minor.
How to test cylinder 4 with a scanner
A scanner test shows whether cylinder 4 is misfiring now, and a simple coil swap shows whether the coil is at fault. Run the steps in order so each result tells you what to try next.
Before you clear anything, save the freeze frame data. Wikipedia’s OBD-II page says Service $02 makes freeze frame data accessible, and that record is your snapshot of the conditions when the code set.

- Read the code and save the freeze frame data with the engine temperature, load and speed at the time of the fault.
- Watch the live misfire counts for each cylinder at idle, then under a light load.
- Note whether the misfire count stays on cylinder 4 or follows a different cylinder.
- Swap the cylinder 4 coil with another cylinder’s coil, clear the code and run a short test drive.
- If the misfire moves with the coil, replace the coil. If it stays on cylinder 4, inspect the spark plug, the injector wiring and any vacuum hose near that cylinder.
Clearing the code without saving the freeze frame can erase the evidence you need. Keep the saved record with your repair notes, so you can compare the readings after each change. Best Bluetooth OBD2 Scanners for Subaru compares tools that make this test faster.
Subaru-specific checks and their limits
The sources checked for this guide do not list Subaru-specific P0304 causes, so treat the steps above as general. Carwhere’s page links to a general Subaru engine guide but gives no Subaru details.
For model-specific facts, check the factory service information for your model year and engine. Look for the coil location, the injector specification and the misfire thresholds the engine computer uses. Definitions and test steps can change between model years, so the factory information is the final reference.
Repair scope and the cost of guessing
The repair scope depends on the test result, so a spark plug job and an injector or compression repair are very different jobs. Starting with the cheap checks keeps the cost of the search low.
Write down the cylinder, the time of the test and whether the misfire count moved after each change. A written record stops you from repeating a test, and it shows whether a second fault appears only at idle or only under load, such as a vacuum leak that comes and goes.
Replacing a coil early is quick, but if the real cause is a vacuum leak, the new coil will not stop the misfire. A test result tells you which job you are paying for, so wait for that result before ordering parts. For another common fault on this model, see P0328 Subaru Code.
Frequently Asked Questions
Can I keep driving with a p0304 Subaru code?
A steady light with smooth running may allow a short, gentle drive to a shop. A flashing light, a stalling engine or a strong fuel smell means you should stop. Unburned fuel from a misfire can add stress to the exhaust system over time.
Does a p0304 code always mean the spark plug is bad?
No. A plug is one of several likely causes. The same code can come from a coil, a plug wire, a cylinder 4 injector, a vacuum leak or low compression, so inspect the plug and then run a coil swap test before you buy a new plug.
Is the p0304 code the same on every Subaru?
The generic meaning is the same across vehicles, but manufacturers can add their own sub-definitions and test conditions. Check the service information for your model year and engine before you order parts or follow a repair procedure.
Will clearing the code fix the misfire?
No. Clearing the code only removes the stored record until the misfire returns. Save the freeze frame data first, repair the cause you found, then recheck with a scanner to confirm that cylinder 4 is running cleanly.
If the misfire stays on cylinder 4 after a coil swap, stop replacing parts at random. Ask a shop to check compression and the cylinder 4 injector, and keep your saved freeze frame data so the technician can compare readings.
-
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 Subaru Forester: Find and Fix Cylinder 4 Misfires
LearnP0304 Subaru Outback: Find the Cylinder 4 Misfire and Fix It
LearnP0335 Subaru Code: Causes, Symptoms and Checks
LearnP0328 Subaru Code: Knock Sensor Bank 1 Causes and Checks
LearnP0303 Subaru Code: Cylinder 3 Misfire Meaning and Fixes
LearnP1826 Code: Identify Transmission Faults and Find the Right Repair