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.
Mod Priority Note
This guide was re-reviewed on 2026-05-06 with a platform-specific mod-order lens. For the BMW M240i, baseline maintenance, inspection, and logs come before any part purchase. Tires and brake pads/fluid are treated as conditional support mods: move them to the front only when the car is grip-limited, traction-limited, track-driven, towing/terrain-limited, or already on weak/worn tires or fluid.
The first true power move for this platform is B58 flash tuning, baseline logs, ZF8/manual torque handling, and heat control validated by repeat pulls. That means the order below separates first power gains from the support parts that make those gains repeatable and safe.
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)
This ranking separates first power gains from supporting / confidence mods. Tires and brakes are still important; they move earlier when the use case demands them, not because every build should start there.
| Rank | Mod category | Why it belongs here on this platform | Move earlier if… |
|---|---|---|---|
| 1 | Baseline logs + maintenance | Scan for faults, confirm plugs/coils/fluids, and log boost, timing, IAT, fuel trims, and torque intervention before buying hardware. | Always first; it prevents tuning around a hidden misfire, leak, or heat issue. |
| 2 | Stage 1 flash tune matched to fuel | The B58 responds strongly on stock hardware when boost, timing, and torque targets are calibrated together. | First power mod for a healthy street car on good pump fuel. |
| 3 | ZF8 tune or clutch strategy | Extra torque is only useful if shift logic, torque limits, or clutch capacity can hold it cleanly. | Move up for hard launches, xDrive cars, or manual clutch slip. |
| 4 | Charge cooling / heat management | Upgrade heat exchanger/intercooler/radiator pieces when logs show IAT or coolant recovery problems. | Move earlier for track days, hot climates, or repeated highway pulls. |
| 5 | Downpipe + matching calibration | Adds flow for Stage 2 goals but creates emissions and sound tradeoffs. | Only when legal for the use case and after tune/logging discipline exists. |
| 6 | Tires, pads, and fluid | Support acceleration and repeated stops; they are not automatically the first power mod. | Move earlier for RWD traction, winter/all-season tires, canyon driving, or track use. |
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 | |
| Closed-box intake | Typically best for consistent IAT vs open filters in traffic | |
| Turbo inlet / inlet pipe | Helps response on higher-flow setups; match to your turbo |
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 | Links |
|---|---|---|
| Larger heat exchanger (HX) | Biggest “repeatability” improvement on tuned cars | |
| Radiator upgrade (track / hot climate) | Helps overall coolant stability under sustained load |
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 | |
| Radiator | Track days, long mountain pulls, hot-climate tuning | |
| Transmission cooling (ZF8) | Shifts get inconsistent, power feels “muted” after heat, or you track |
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 | |
| Cat-back exhaust | Mostly sound; minimal performance on stock turbo |
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 | Links |
|---|---|---|
| Tires (street performance baseline) | Makes every power mod usable; improves braking and stability. | |
| LSD (RWD traction + corner exit) | Big “real speed” improvement when torque overwhelms one tire. |
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 | Links |
|---|---|---|
| Brake fluid (track-safe default) | Prevents pedal fade from boiling fluid. | |
| Pads (street/track compounds) | Confidence and repeatability; match compound to noise/dust/heat. |
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 (Step-by-step)
- Baseline inspection, fresh oil/brake fluid as needed, scan for faults, and fix leaks or misfires.
- Capture a clean baseline datalog on the fuel the car actually uses.
- Install a conservative Stage 1 flash tune matched to octane and drivetrain.
- Add ZF8 tuning or clutch support when torque/shift behavior becomes the limit.
- Upgrade charge cooling only when logs show heat recovery problems or repeated-pull fade.
- Escalate to downpipe, ethanol/fueling, turbo, and stronger tires/brakes only when the target requires them.
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 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