BMW / Toyota B58

B58 Gen 1 or Gen 2? Start with your generation.

A 2017 340i and a newer G42 M240i both use a B58, but they do not share the same engine generation. Compare the right fitment, starting price and measured examples below.

Two separate platforms

Find the page that matches your car.

These are engine-generation guides, not a guarantee that every ECU or software version is supported.

Original B58

BMW B58 Gen 1

ECU tuning starting at $600

Examples include the 2016–2018 F30 340i, F-series 440i and 2017–2021 F22 M240i Coupe.

See our measured 2017 340i graph on the Gen 1 page.

View Gen 1 Results & Pricing

B58 technical update / B58TU

BMW / Toyota B58 Gen 2

ECU tuning starting at $700

Examples include the 2022–2025 G42 M240i, 2020–2024 G20 M340i, G26 M440i and supported X7 / GR Supra 3.0 variants.

See the X7 and Supra graphs, plus the newer G42 M240i dyno video, on the Gen 2 page. Videos are independent of individual graphs.

View Gen 2 Results & Pricing

The model badge alone is not enough.

The older F22 M240i and newer G42 M240i belong on different generation pages. Supra cylinder-head versions also differ, and later B58TU2 / Gen 3 applications need their own compatibility review.

Engine generation does not determine ECU unlock requirements by itself. Send your year, model, VIN, current tuning platform, modifications and fuel so we can check the actual controller and software.

Dyno testing and any access or unlock work are quoted separately. Transmission tuning is a flat $400 where available.

How ECU and TCU unlocking works

Not sure which B58 you have?

Send your vehicle details and goals. We will confirm the engine generation, software access and complete written quote.