Subaru · engine family

Subaru EJ engine tuning guide

The EJ is Subaru's horizontally opposed 16-valve four, built from 1989 into the 2020s in 2.0 litre (92 x 75 mm), 2.2 litre (96.9 x 75 mm) and 2.5 litre (99.5 x 79 mm) forms, SOHC and DOHC, naturally aspirated and turbocharged. The turbo DOHC engines (EJ20G/EJ20K/EJ205/EJ207, EJ255, EJ257) power the Impreza WRX and STI, Legacy GT and Forester XT. Fuelling is multipoint with firing order 1-3-2-4. Ignition is wasted-spark coil packs on early engines and coil-on-plug from about 2000. Variable intake cam phasing (AVCS) arrived in the early 2000s, and Dual AVCS (intake and exhaust) followed on later STI and JDM/AU Legacy engines. Expect big-bore, short-stroke knock sensitivity, ringland limits on cast pistons, and a calibration that leans heavily on its knock learning strategy.

Reviewed by GAINS editorial team on 2026-11-04.

Generations and variants

VariantYearsLitresCylInductionInjectionCam controlIgnitionSwap demand
EJ20 / EJ205 / EJ207 (WRX / STI JDM)1992-142B4TPort injectionAVCS (later)Coil-on-plugMedium
EJ257 (STI)2004-212.5B4TPort injectionAVCS (dual from 2008)Coil-on-plugMedium
EJ255 (WRX / Legacy GT / Forester XT)2004-142.5B4TPort injectionAVCSCoil-on-plugMedium

Variants

Codes, dimensions and years side by side.

CodeDisplacementBore × strokeCompressionYearsApplications
EJ20G91,994 cc92 x 75 mm—1989-1996Legacy RS/GT (BC/BF), Impreza WRX and WRX STi (GC8) in JDM/UK/EU/AUDOHC turbo. Rocker-arm HLA, bucket HLA and shim-under-bucket sub-types; closed deck until mid-1994.
EJ20K91,994 cc92 x 75 mm—1996-1998Impreza WRX / WRX STi (GC8, JDM)Wasted-spark coil pack on the intake manifold; IHI ball-bearing VF22/VF23/VF24 turbos.
EJ207491,994 cc92.0 x 75.0 mm8.0:11998-2007 (JDM to 2019 in VA STI)GC8 WRX STi (late), GD WRX STi (JDM, UK, AU to 2005), VA WRX STI (JDM)Forged pistons and oil jets. GC open deck; GD semi-closed deck. GD adds intake AVCS (max 35 crank degrees).
EJ205391,994 cc92.0 x 75.0 mm8.0:1 (GC/GD.I WRX), 9.0:1 (GD.II WRX from Nov 2002), 8.5:1 (Forester GT)1998-2005Impreza WRX (GC/GD, non-JDM; USDM 2002-05), Forester GT (SF)Open deck, cast rods and pistons, solid lifters; COP and TGVs from Oct 2000; intake AVCS from GD.II.
EJ20X / EJ20Y591,994 cc92.0 x 75.0 mm9.5:12003-2009Legacy / Liberty GT (BL/BP, JDM and AU); X = automatic, Y = manualFirst EJ with Dual AVCS; roller rockers; twin-scroll turbo; two coils firing pairs 1-2 and 3-4.
EJ22E92,212 cc96.9 x 75 mm9.5-10.0:11990-2001Legacy, Impreza (incl. USDM GC8 L/Outback Sport)NA SOHC; non-interference through 1995.
EJ251 / EJ25392,457 cc99.5 x 79 mm10.0:1 (EJ251), about 10.1:1 (EJ253)1999-2011NA Impreza, Legacy, Forester, OutbackNA SOHC. EJ251 uses MAP-based load, EJ253 MAF-based. EJ251 known for single-layer head gasket failures.
EJ255292,457 cc99.5 x 79.0 mm8.2:1 (SG Forester XT 2003-05), 8.4:1 (most later), 9.0:1 (GD/GG WRX 2005-07)2003-2014Forester XT (SG/SH), Impreza WRX (GD/GG 2006-07 US, GE/GH/GR/GV), Legacy GT / Liberty GT (BL/BP, BM/BR)Semi-closed deck, forged rods, cast pistons; intake AVCS (20/35/50 deg range by model); Dual AVCS on BM/BR Liberty GT.
EJ2571692,457 cc99.5 x 79.0 mm8.0:1 (GD STi AU), 8.2:1 (GE/GH and later; US)2004-2021Impreza WRX STI GD (US 2004-07), GR/GV (2008-14), WRX STI VA (2015-21, export)Semi-closed deck. Intake AVCS (35 deg) on GD; Dual AVCS from 2008. 565 cc side-feed injectors.

Valvetrain

Configuration

SOHC (NA EJ22/EJ25 SOHC) or DOHC per bank (all turbo engines), 4 valves per cylinder

Sourced92
Cam drive

Single toothed timing belt driving all camshafts, with a hydraulic tensioner

Sourced31
Lifters
  • Shimless direct-acting buckets on EJ205/EJ207/EJ255/EJ257
  • Roller rockers on EJ20X/Y
Sourced · medium325
Valves

Hollow-stem intake and sodium-filled exhaust valves on EJ207/EJ255/EJ257

Sourced · medium421
AVCS principle

ECM duty-drives an oil flow control valve (OCV) spool at each intake cam sprocket, porting oil to advance or retard chambers in the sprocket actuator

Sourced · medium321
AVCS inputs

Airflow, coolant temperature, throttle position, camshaft position sensors (plus crank reference)

Sourced · medium24
AVCS strategy

Three regimes: minimal overlap at idle, advanced intake timing for part-load economy and internal EGR, more overlap at high load for scavenging

Sourced · medium13
AVCS range
  • 20 deg (SG Forester XT), 35 deg (GD WRX, GD STI, EJ207 GD), 50 deg (GE/GH WRX)
  • Dual AVCS 40 deg intake and exhaust (BM/BR Liberty GT)
Sourced · medium214
Dual AVCS
  • EJ20X/EJ20Y (2003) first
  • EJ257 from 2008 MY STI
Sourced597
Interference
  • DOHC and 1998+ SOHC engines are interference
  • SOHC engines through 1995 were not
Low confidence9

AVCS is a vane-type hydraulic phaser on each intake cam sprocket, driven by a solenoid spool valve (OCV) that the ECM duty-controls in closed loop on cam position feedback. Dual AVCS adds exhaust phasers. The authority (crank degrees) differs a lot between engines, so do not carry AVCS targets from one engine code to another. The phasers rely on clean oil at adequate pressure. Low oil level, contaminated OCV screens or wrong-viscosity oil show up as slow AVCS response and target-error codes before anything else.

EJ207 GD intake cams carry reluctor teeth at the rear for the cam position sensor. Mixing heads or cams between engine codes changes the cam sensor signal, which the factory ECU and any aftermarket decoder must match.

Fuel system

InjectionMultipoint, sequential on turbo enginesSourced · medium31
Firing order1-3-2-4Sourced219
EJ257 injectorsSide-feed, high impedance, 565 cc/min (x4)Sourced · medium6
EJ207 (V7 STi) injectorsTop-feedlater EJ engines moved to side-feedLow confidence9
Fuel pump control

ECU-driven fuel pump controller (two control lines on the 2002 USDM WRX)

Low confidence11
Fuel grade (AU EJ205)95 RON premium unleaded or higherSourced · medium3

The turbo EJ is a big-bore engine fed by four injectors in the intake manifold runners. On the EJ257 these are 565 cc/min side-feed high-impedance units. That leaves limited headroom for E85 or large turbos, so injector and pump upgrades usually come before significant boost increases.

Ignition

Early turbo (EJ20G rocker type, EJ20K, EJ207 GC8)
  • Wasted-spark coil pack on the intake manifold (EJ20K/EJ207)
  • Some EJ20G sub-types used coil-on-plug
Low confidence9
EJ205 (from Oct 2000), EJ255, EJ257Direct coil-on-plug, one coil per cylinderSourced3216
EJ20X/EJ20Y

Two coils, each firing a cylinder pair (1-2 and 3-4) twice per cycle

Sourced · medium5
Plugs
  • Platinum-tipped on most turbo engines
  • Iridium on SG Forester XT
Sourced · medium21

From about 2000 the turbo EJ moved to coil-on-plug with the ECM driving each coil. The 2002 USDM WRX ECM has four individual coil outputs plus a separate coil ground. Earlier engines and some JDM variants used manifold-mounted wasted-spark packs. Sequential operation on an aftermarket ECU needs a valid cam phase reference.

Crank and cam triggers

Sensor wiring (2002 USDM WRX)

Crank and cam sensors each have a two-wire (+/-) signal pair with a shared shield to the ECM, consistent with variable-reluctance sensors

Low confidence11
Cam position sensing with AVCS
  • Camshaft position sensors give AVCS feedback
  • GD EJ207 intake cams have rear teeth for the VVT position sensor
Sourced · medium42

Crank and cam target tooth counts and angles for the EJ were not found in the OEM or independent references used for this guide. The common community shorthand for the later crank wheel is not confirmed here. Before configuring a replacement ECU, scope the crank and all cam sensors together at cranking and idle, and document the edge pattern relative to cylinder 1 TDC. On AVCS engines, the cam sensors serve as both phase reference and VVT feedback.

Sensors

Load sensing
  • Mass airflow sensor on the 2002 USDM WRX (plus MAP for boost)
  • NA EJ251 used MAP-based load, EJ253 MAF-based
Low confidence119
Knock sensorOne knock sensor input (with shield) on the 2002 USDM WRX ECMLow confidence11
Exhaust oxygen

Front A/F sensor with heater and rear O2 sensor on the 2002 USDM WRX

Low confidence11
Tumble generator valves
  • TGV butterflies in the intake manifold with position sensors (EJ205 from Oct 2000, EJ255)
  • Not fitted to EJ207
Sourced · medium32411
Exhaust gas temperatureEGT sensor input on the 2002 USDM WRX ECMLow confidence11

TGVs close at low airflow to promote tumble for emissions, and many builders delete them. If you delete them, the ECU must stop monitoring the TGV motors and position sensors, or it will set codes.

Factory engine management

Knock control

'Fuzzy logic' knock control that adapts ignition advance to fuel quality and conditions

Sourced · medium321
AVCS control

ECM closed-loop control of the OCV with three operating regimes (idle, part load, high load)

Sourced · medium12
Diagnostic link

Subaru Select Monitor (SSM) / generic scan tool (GST) line on the 2002 USDM WRX

Low confidence11
Drive-by-wire

Electronic throttle on EJ257 STI from 2004 US and on later EJ255 applications

Low confidence9
ECU compatibility notes

EJ20X/Y-era 32-bit ECUs: intake-only AVCS logic for 2008-14 WRX, dual AVCS for 2008-21 STI

Low confidence9

The turbo EJ ECM combines MAF-based load (MAP on some engines), an adaptive knock strategy, AVCS closed-loop control, TGV management, boost control through a wastegate solenoid, and TGV and EVAP diagnostics. Its adaptive knock logic means the same car can run quite differently on two tanks of fuel. Logging knock correction and learned timing values is the first step in any diagnosis.

Timing considerations

Knock sensitivity

Big bore (92-99.5 mm) and turbocharging make the EJ strongly knock-limited under boost

Sourced · medium16
Intercooler heat soak

Top-mount intercooler is prone to heat soak, raising charge temperature and knock tendency

Sourced · medium6
Factory strategy

Adaptive (fuzzy logic) knock control adjusts advance to fuel quality

Sourced · medium2

Treat every turbo EJ as knock-limited from peak torque upward. The 2.5 litre engines are more sensitive than the 2.0s because of their larger bores. Charge temperature matters a lot because the top-mount intercooler heat-soaks in traffic and on repeated pulls. Factory compression ranges from 8.0:1 to 9.5:1 by code, so the same boost target behaves differently on an EJ257 and an EJ205 GD.II.

Work in small steps with full logging: knock correction per event, learned timing, IAT, boost, AFR and AVCS target versus actual. Because the factory strategy learns, make changes only after the learned values have settled, and repeat pulls in the same conditions. Ethanol blends raise the knock limit and are popular on the EJ257, but stock injectors and pump limit how much ethanol can be supported. Confirm knock audibly where possible, especially on cast-piston engines where a short knock event can crack ringlands.

Tuning notes

Stock boost (examples)
  • GD WRX TD04L target about 93 kPa13.5 psi
  • GD STI VF48 max 103 kPa
  • 2015 STI max 14.7 psi
Sourced317
Turbos

TD04L (WRX GD, Forester XT), VF-series IHI on STI and Legacy GT (VF48 GD STI, VF46/VF45 Legacy GT, VF52 GE/GH WRX)

Sourced · medium21
Pistons

EJ257 cast pistons with weak ringlands are the common limit when pushed

Sourced · medium610
Construction (2015 STI)

Semi-closed deck block with reinforcing ribs, high-strength cast pistons, nitride-hardened crank

Sourced7
EJ257 output
  • 300 bhp (2004-07 US), 305 hp2008-21 US
  • 341 hp S209
Sourced · medium97
Legacy GT (US 2005)250 hp at 6,000 rpm and 250 lb-ft at 3,600 rpmSourced · medium8

Most EJ tuning stays on the factory ECM through reflash, because Subaru's strategy is well understood and keeps AVCS, TGV and DBW handling intact. Practical limits are cast-piston ringlands (EJ255/EJ257), injector and pump flow, and top-mount intercooler heat soak. Bigger turbos usually go with a front-mount intercooler, larger injectors, an upgraded pump, and forged pistons for sustained high load.

Weak points

Ringland failure
  • EJ257 factory pistons have weak ringlands
  • Broken ringlands account for many failed engines
Sourced · medium610
Rod bearingsEJ257 rod bearing failures noted in later STIsLow confidence10
Head gaskets (NA)
  • EJ251 single-layer coated head gaskets prone to failure
  • Later MLS gaskets improved this
Low confidence9
ServiceabilityHead gasket or cam work typically requires engine removalSourced · medium6
Open-deck blocks
  • EJ205 and GC EJ207 are open deck (walls supported at 3 and 9 o'clock)
  • EJ255/EJ257/GD EJ207 are semi-closed
Sourced · medium341

Most catastrophic EJ257 failures trace back to detonation or lean events cracking cast ringlands. Rod bearing failures are also reported. Oil control matters on a boxer: low oil level, high-g oil starvation on track, and long oil intervals all raise bearing and AVCS risk.

Common swaps

ECU pairing

When swapping EJ codes, match the ECU's AVCS type (none, intake only, dual) to the engine

Low confidence9
EJ207 ECU

Same number and shape of harness plugs as the USDM WRX 2.0 (per community reference)

Low confidence9

The EJ is commonly swapped between Subaru chassis, for example a 2.5 litre turbo engine into an earlier 2.0 litre or NA car. The main integration issues are ECU and AVCS type (none, intake only or dual), crank and cam trigger compatibility between engine codes, drive-by-wire versus cable throttle, and the body and immobiliser links in later cars. Plan the engine and ECU as a matched pair.

Vehicles with this engine

GAINS on the Subaru EJ

ECU2

ECU2Full sequential fuel and spark for this 4-cylinder, and its electronic throttle, with the wideband built in.Est. availability: April 2027
Hardware fromPrice TBAPlan and compare costs

Designed so your phone is the laptop, keypad and dash

The GAINS app is designed to handle tuning, logging, gauges and switch inputs over Bluetooth, so the system needs no separate CAN keypad or display. Keypad, dash and logging views are planned; the iOS prototype runs on simulated data today.

Wideband, IMU and logging built in

An onboard Bosch LSU 4.9 wideband controller, a 6-axis IMU and onboard logging are designed into the ECU rather than sold as add-on modules.

Modular, so you buy what the engine needs

This engine runs on ECU2. PDM2 (power, body and gearbox) is optional and connects over ECU2's powered CAN port; the Telemetry Dongle Pro adds GPS lap timing from the OBD-II port.

Calibration that keeps learning

Instead of a fixed map that drifts as parts and conditions change, the ECU keeps adapting its fuel trims within limits you can see and approve in the app.

Adaptive tuning strategies

  • VE learning closed loop on GAINS ECUs

    Learns the fuel table from the onboard wideband as you drive, cell by cell, inside a signed authority envelope. Learned trims are promoted into the base map without a step in fuelling.

  • Goal-based lambda targets closed loop on GAINS ECUs

    Sets air-fuel targets from your goal (economy, response, power, safety margin) instead of a single fixed table.

  • Knock protection protection

    Listens for knock on a dedicated knock processor, pulls timing at once and restores it slowly. It only ever reduces advance.

  • Warm-up, cranking, idle and transient fuel planned

    The same learning approach applied to the tables tuners spend hours on after the main map is done.

  • Spark advance and boost authority gated

    Widening ignition advance or boost is never automatic. It stays an expert or dyno decision until validated knock detection exists for the engine family.

Already running another ECU? In advisor mode the same strategies read your logs and recommend exact table changes with the reasoning, which you apply in your ECU vendor's own software.

GAINS hardware is pre-release concept design. Simulated results only; nothing is validated on a vehicle yet.

Frequently asked

What is the Subaru EJ firing order?

1-3-2-4 for all EJ engines.219

What is the difference between EJ205 and EJ255?

The EJ205 is a 2.0 litre (92 x 75 mm) open-deck engine with cast rods. The EJ255 is a 2.5 litre (99.5 x 79 mm) semi-closed-deck engine with forged rods, cast pistons and intake AVCS on most applications.32

What is the difference between EJ207 and EJ257?

The EJ207 is the 2.0 litre STI engine (JDM/UK/AU) with forged pistons and 8.0:1 compression. The EJ257 is the 2.5 litre export STI engine (99.5 x 79 mm) with cast pistons, 8.0-8.2:1 compression and 565 cc side-feed injectors.416

How does Subaru AVCS work?

The ECM duty-controls an oil flow control valve whose spool ports oil to advance or retard chambers in the intake cam sprocket. It uses cam position feedback and runs different overlap strategies for idle, part load and high load.12

Does the EJ257 have dual AVCS?

From the 2008 model year STI, yes. The 2004-07 GD STI has intake-only AVCS with up to 35 degrees of authority.197

What size are stock EJ257 injectors?

565 cc/min side-feed, high-impedance injectors.6

Why do EJ257 engines fail?

Most commonly from cracked ringlands on the cast pistons after detonation or lean events. Rod bearing failures are also reported.610

What compression ratio is the EJ255?

8.2:1 (early SG Forester XT), 8.4:1 (most later applications) and 9.0:1 (2005-07 GD/GG WRX), per Australian-market data.2

Sources

Numbered as cited above. Hover or tap a citation chip to preview it.

  1. Subaru EJ257 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  2. Subaru EJ255 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  3. Subaru EJ205 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  4. Subaru EJ207 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  5. Subaru EJ20X and EJ20Y Engines · AustralianCar.Reviews · press · retrieved 2026-10-25
  6. Top Ten Engines: Inside the Engines That Powered an Industry - #8 Subaru EJ257 · DSPORT Magazine · press · retrieved 2026-10-25
  7. 2015 Subaru WRX STI Press Kit · Subaru of America · oem · retrieved 2026-10-25
  8. Subaru Announces North American Legacy to Sport 250-HP · Auto123 · press · retrieved 2026-10-25
  9. Subaru EJ engine · Wikipedia · community · retrieved 2026-10-25
  10. Subaru WRX · Wikipedia · community · retrieved 2026-10-25
  11. 2002 WRX ECU pinouts (transcribed from Subaru wiring/service documentation by a NASIOC member) · NorthUrsalia.com · community · retrieved 2026-10-25