What this guide covers: BMW M240i with the B58 turbo inline‑6 (US/CA focus).
- F22/F23 M240i (2017–2021) — B58 Gen 1, RWD or xDrive (market-dependent), 6MT or ZF8 (varies by year/market)
- G42 M240i xDrive (2022+) — B58 Gen 2, ZF8 + AWD
Platform Snapshot (vehicle-specific)
- Vehicle: BMW M240i (F22/F23 and G42)
- Engine/fuel system: B58 turbo inline-6 (direct injection); variant differences by generation/build date
- Drivetrain: RWD or xDrive (G42 is typically xDrive/AWD)
- Transmission: ZF 8HP automatic (common) or 6MT (year/market dependent)
- What limits you first (most builds): heat-soak repeatability, traction, and torque management
- Tuning access note: many post-06/2020 DMEs are locked (FEMTO bench unlock may be required)
- Markets: US, CA
Glossary (quick defs)
- DME (ECU): Engine computer (boost, timing, fueling, torque targets).
- TCU/EGS: Transmission computer (shift logic, torque limits, clutch pressure).
- IAT: Intake air temperature (post-charge cooling is what matters for knock risk).
- WGDC: Wastegate duty cycle (how hard the system is working to hit boost).
- Lambda / AFR: Air-fuel mixture (target vs actual).
- HPFP / LPFP: High/low pressure fuel pump (DI headroom depends heavily on HPFP).
- Torque intervention: ECU/TCU reducing delivered power via throttle closure, timing, boost, or gear logic.
- Heat exchanger (HX): Front-mounted cooler that rejects heat for a water-to-air charge-cooling circuit.
3 Build Paths (pick one, don’t mix goals)
1) Daily-driven gains (Stage 1)
- Baseline + tires: fresh fluids/filters and a real performance tire.
- Charge cooling plan: upgrade the heat exchanger early if you do repeated pulls or warm-climate driving.
- ECU tune: OTS or custom based on real fuel quality; keep it conservative and log it.
- Ignition setup: fresh plugs with a tuned-friendly gap (see Ignition section).
- Optional “feel” mods: ZF8 tuning, pads/fluid, mild alignment.
2) Fast street + occasional track (Stage 2)
- Cooling stack: HX + radiator strategy; consider oil/trans cooling based on use.
- Exhaust flow: high-flow catted downpipe (catless is track-only in many places).
- ZF8 tuning: reduce torque bottlenecks, improve shift behavior, keep it repeatable.
- Handling balance: sway bars + end links, upgraded pads, and a sensible alignment.
3) High output (ethanol / big turbo)
- Fueling: upgraded HPFP (and possibly injectors/LPFP depending on goals).
- Thermal management: HX + radiator + oil/trans cooling becomes non-negotiable.
- Drivetrain: traction solutions (tires/LSD) + ZF8 calibration (or clutch planning for 6MT).
- Custom tuning: plan around safe torque delivery (not just peak numbers).
Highest Performance-per-Dollar (Ranked Table)
Fitment note: confirm your exact chassis (F22/F23 vs G42), build date, and market before buying parts.
| Mod | Why it works on this platform | Supporting mod(s) | Direct links |
|---|---|---|---|
| Better tires (and correct sizing) | Converts power into usable acceleration + braking; makes every mod feel stronger. | Alignment, pressures | Michelin PS4S · Continental ECS02 |
| Brake pads + high-temp fluid | More confidence and repeatability; reduces “one hard stop then fade.” | Lines optional | Motul RBF 600 · Castrol SRF |
| Charge cooling (heat exchanger) | Keeps IAT stable so timing stays consistent and power repeats. | Coolant bleed, logs | Wagner HX (BimmerWorld) |
| ECU tune (OTS → custom) | Biggest single power gain on stock hardware when matched to your real fuel/heat. | Plugs + logging | bootmod3 · MHD · MG Flasher |
| ZF8 TCU tune (xHP) | Makes power delivery more consistent and reduces torque bottlenecks; improves shift logic. | ECU tune synergy | xHP |
| Downpipe + Stage 2 tune | First “real airflow” mod for spool/EGT/backpressure; stage matching matters. | Compliance plan | F22 downpipe options |
| Sway bars + end links | Flatter cornering and adjustable balance with minimal ride penalty. | End links on lowered cars | F22 sway bars |
| Fueling upgrade (ethanol / big turbo) | Prevents fuel pressure drop and unlocks safer tuning headroom. | Flex fuel strategy + tuning | Dorch Gen1 HPFP · Dorch Gen2 HPFP |
Intake / Airflow
Reality check: On most B58 setups, intakes are primarily a sound + response upgrade until you’re pushing sustained high load where the stock box becomes more restrictive. If your car heat-soaks quickly, spending money on cooling first usually “feels faster” than an intake.
When it matters most
- You’re tuned and doing repeated pulls.
- You’re tracking and want predictable IAT behavior (sealed systems help).
- You’re upgrading turbo/inlet and need matching hardware.
| What | Notes | Link |
|---|---|---|
| Drop-in filter / stock airbox optimization | Best value; keep heat shielding and sealing intact | ECS F22 M240i intake |
| Closed-box intake | Typically best for consistent IAT vs open filters in traffic | Eventuri (search: M240i) |
| Turbo inlet / inlet pipe | Helps response on higher-flow setups; match to your turbo | aFe (search: M240i intake) |
Intercooling / Charge Cooling
How B58 charge cooling works (plain language): Many B58 variants use water-to-air charge cooling—compressed air is cooled by a liquid-cooled core, and a front heat exchanger dumps that heat to ambient air. When the system heat-soaks, IAT climbs and the DME reduces timing to protect the engine.
Quick “what to log”
- IAT (especially after the charge cooler), timing corrections, boost target vs actual, and coolant temps.
| Upgrade | What it fixes | Link |
|---|---|---|
| Larger heat exchanger (HX) | Biggest “repeatability” improvement on tuned cars | Wagner HX |
| Radiator upgrade (track / hot climate) | Helps overall coolant stability under sustained load | CSF 7089 radiator · Radiator options |
Cooling priorities beyond “intercooler”
Temps that matter (and why):
- IAT: determines knock margin → timing → power consistency.
- Coolant: if it creeps, the entire car derates.
- Oil: sustained high load is an oil-temp problem before it’s a “power” problem.
- Transmission: ZF8 protection logic can reduce delivered torque when temps rise.
| Part | Buy it when… | Link |
|---|---|---|
| Heat exchanger (HX) | IAT climbs quickly on logs, or pulls get slower after 1–2 runs | Wagner HX |
| Radiator | Track days, long mountain pulls, hot-climate tuning | CSF 7089 |
| Transmission cooling (ZF8) | Shifts get inconsistent, power feels “muted” after heat, or you track | BMS F-chassis kit |
Downpipes + Exhaust
Reality check: A downpipe is usually the first “real airflow” mod that changes turbo response and load behavior. In emissions-controlled areas, stick to high-flow catted options. Catless is best treated as track-only.
| Part | Notes | Link |
|---|---|---|
| Catted downpipe | Best compromise for street use where legal | F22 downpipe options |
| Cat-back exhaust | Mostly sound; minimal performance on stock turbo | F22 exhaust options |
Tuning Options (ECU / TCU)
ECU tuning (B58)
Common flash ecosystems:
- bootmod3 (OTS maps + custom tuning) — B58 product
- MHD (maps + custom) — B58 map pack
- MG Flasher — B58 platform
What to log on any tune
- Boost target vs actual, WGDC, timing corrections, IAT, lambda, fuel pressures (LP/HP), and misfires.
Torque intervention / “bogging” (why pulls feel inconsistent)
This platform will “save itself” if it thinks torque delivery is unsafe for traction or hardware. That usually shows up as throttle closure, boost oscillation, or inconsistent delivery.
What to log
- Throttle angle/request, boost target vs actual, WGDC, gear, ignition timing, and any torque/limit flags your logger exposes.
TCU tuning (ZF8)
- xHP is a common end-user option for ZF8 behavior changes and torque limit management.
Required reading:
Fueling + Ethanol
Ethanol blends and higher airflow push your system toward a simple limit: can you maintain fuel pressure at high load? If rail pressure drops, the tune must pull back (or it becomes unsafe).
Common upgrade path
- HPFP upgrade as the first real fueling step for ethanol/big power:
- Gen 1: Dorch DS25 (Gen 1)
- Gen 2: Dorch DS25 (Gen 2)
Ignition (Plugs, Gap, Misfires)
Most “tuned car feels weird” issues under load are either heat (IAT), spark blowout/misfire (gap + coils), or torque intervention.
Plug gap (B58 starting points)
- Stock / mild mods: OEM gap is fine; if tuning, tighten to 0.022–0.023”.
- Tuned street (stock turbo): 0.022–0.023” is a common baseline.
- High boost / ethanol / upgraded turbo: 0.018–0.021” is often used to prevent spark blowout at higher cylinder pressure.
Source (explicitly notes the “higher boost tighter gap” guidance):
Symptoms of the wrong gap
- WOT breakup/stutter
- Misfire counts climbing during pulls
- Boost target not met because the ECU closes throttle or reduces load
Drivetrain + Traction
Power is easy. Putting it down cleanly is the build.
Traction priorities
- Tire compound and width first
- Alignment: a little front camber (where possible) + sane toe
- Differential: LSD changes the car more than most engine mods
| Upgrade | Why it matters | Link |
|---|---|---|
| Tires (street performance baseline) | Makes every power mod usable; improves braking and stability. | Michelin PS4S · Continental ECS02 |
| LSD (RWD traction + corner exit) | Big “real speed” improvement when torque overwhelms one tire. | Quaife ATB LSD · Wavetrac LSD |
Brakes + Handling
Street → fast street: pads + fluid are enough for most. Track: plan track-capable pads/fluid and (if needed) ducting before a full big-brake kit.
| Upgrade | Why it matters | Link |
|---|---|---|
| Brake fluid (track-safe default) | Prevents pedal fade from boiling fluid. | Motul RBF 600 · Castrol SRF |
| Pads (street/track compounds) | Confidence and repeatability; match compound to noise/dust/heat. | EBC · Ferodo Racing |
Suspension (springs/sway/coilovers)
The simplest “big feel” combo
- Sway bars + correct end links
- Good alignment
- High-quality tires
Sway bars deep dive (what changes, exactly)
Sway bars (anti-roll bars) are torsion springs. The key fact: stiffness scales strongly with diameter (d⁴).
References:
Handling outcomes
- Thicker front bar (relative to rear): tends to add understeer and stabilize the car.
- Thicker rear bar (relative to front): tends to increase rotation, but can raise oversteer risk if overdone.
End links + preload (especially if lowered) If you lower the car, stock end links can preload the bar at rest. Use adjustable end links and set them at ride height on level ground.
Fitment-safe links (F22 baseline):
Reliability / Supporting Mods
Stop immediately if you see: persistent timing corrections, overheating, repeated misfires under load, or constant throttle closure with abnormal temps.
Common weak points (what it feels like + what to do)
- Heat soak (IAT creep): strong first pull, weaker after.
- Monitor: IAT, timing corrections.
- Mitigation: larger HX (and radiator for track).
- Fuel pressure headroom on ethanol: power falls off up top or the tune has to be softened.
- Monitor: HPFP pressure actual vs target.
- Mitigation: HPFP upgrade (Dorch or equivalent).
- Transmission heat / torque limits (ZF8): inconsistent pull strength or “soft” delivery after heat.
- Monitor: trans temps (if available), throttle angle, boost target vs actual.
- Mitigation: trans cooler + TCU calibration.
Starter links (common “fix it before it’s a problem” parts):
Recommended Mod Order (reliability-first)
- Maintenance baseline (fluids, leaks, coils/plugs if due)
- Tires + alignment (make the car usable)
- Brake pads + fluid (confidence + safety)
- Charge cooling (HX first, radiator if needed)
- ECU tune (log it, don’t guess)
- Plugs + tuned gap (and verify under load)
- ZF8: xHP or equivalent + consider trans cooling
- Downpipe/exhaust (legal where you live; tune accordingly)
- Sway bars + end links (balance and response)
- Fueling upgrades (only when goals/logs require it)
FAQ
Does my M240i need a DME unlock to tune?
Many post‑06/2020 BMW DMEs are locked and require a one-time FEMTO bench unlock before OBD flashing works. Earlier cars are often OBD-flashable as-is. Confirm via production date/VIN with your tuner or unlock provider.
Should I do charge cooling before a tune?
If you live somewhere warm, do repeated pulls, or track the car, charge cooling should come early. A tune makes heat management more important because the car reaches higher load more often.
What spark plug gap should I run on a tuned B58?
Start with 0.022–0.023” for most stock-turbo tuned cars. For very high boost targets, 0.018–0.021” is commonly used to reduce spark blowout. Verify with logs after changes.
Why does the car sometimes “bog” when I go partial throttle → wide open?
That’s usually torque intervention—throttle closure, boost control changes, and/or transmission torque limits protecting traction and driveline hardware. Logging throttle angle and boost target vs actual will show it clearly.
Do I need a transmission tune (ZF8)?
A TCU tune can improve shift behavior, torque limits, and repeatability—especially as power rises. If the car feels inconsistent after tuning, ECU + TCU coordination is often the fix.
Are sway bars worth it on the street?
Yes, when you want flatter cornering and sharper response without the ride penalty of very stiff springs. Match bars to your tire/alignment goals so you don’t hurt bumpy-road grip.
F22 vs G42: do parts and tuning carry over?
Not always. The safest approach is to confirm chassis/build date before buying hard parts (cooling, downpipes, inlets) and to confirm DME lock status before buying tune software.
What should I log after every major change?
Boost target vs actual, WGDC, IAT/charge temps, timing corrections, lambda, HPFP pressure, and any torque/limit or throttle closure indicators your logger provides.
Related guides
- Brand hub: BMW
- Model hub: M240i
- BMW 230i (B48) performance guide
- BMW 140i (B58) performance guide
- BMW 340i (B58) performance guide
- BMW M340i (B58) performance guide
- BMW 540i (B58) performance guide
- Toyota GR Supra (B58) performance guide
- Boost vs timing
- Knock correction explained
- Torque limits (ECU/TCU)
- What to log on a tuned car
- Intercooler guide
- Intake vs intercooler
- Feature page: Digital Garage