BMW M340i Performance Mods / Upgrades

CarBahn / G20 M340i / B58

Build Your Power.

Your M340i. Your B58 generation. Your next level of performance.

Fitment: 2020–2026 BMW G20 M340i & M340i xDrive.
Gen 2 controller: 2020–2024. Gen 2 ECU software shown here: 2021–2024. Gen 3 controller: 2025–2026. Confirm generation and ECU compatibility with your VIN.

01 B58 Generation

Unsure which generation you have? Call our team with your VIN.

02 Power Path
03 Tune Type
04 Installation

Find an authorized CarBahn dealer →

Your Selected Upgrade

Configuration Total

Taxes, shipping, installation labor and any ECU unlock or flashing-platform fees are additional.

Need a hand? Talk with our tuning team.

Your Tuning Questions, Answered.

What is the difference between a controller and an ECU reflash?

A Performance Controller is a plug-and-play module that works with the factory ECU to increase performance, without an ECU unlock. An ECU reflash changes the engine calibration directly, giving CarBahn broader control over how the engine delivers power. ECU software requires a compatible installation method; DME unlock requirements depend on your ECU.

Why is the heat exchanger required?

More power puts greater demand on the charge-air cooling system. The CarBahn heat exchanger helps manage intake temperatures and maintain consistent performance. It is required for Stage 2 and included in the Stage 2 power packages shown here.

What does the Factory Matching Warranty do?

It provides separate CarBahn coverage for eligible engine and powertrain repairs under CarBahn’s warranty terms. Eligibility, duration, mileage limits and exclusions apply; purchasing a tune does not automatically include coverage. Stage 2 requires the CarBahn heat exchanger. Software installed through Bootmod3 or MHD is not eligible. Review Factory Matching Warranty details →

Can I upgrade from a controller to software?

Yes. Contact our tuning team to arrange the controller-to-software upgrade and confirm the current trade-up offer. Your installer will confirm any required ECU unlock; your dealer can confirm which existing supporting hardware can be reused.

What is a bench unlock, and how much does it cost?

A bench unlock prepares your engine computer (DME) to accept tuning software using a direct connection to the ECU. Your installer can confirm the appropriate unlock method for your specific ECU and production date. The unlock fee and labor are set by the installer and are additional to the prices shown here. Ask your dealer for an installed quote. Controllers do not require an unlock.

Which B58 generation and model year should I select?

The controller variants in this builder cover 2020–2024 M340i models as Gen 2 and 2025–2026 as Gen 3. Gen 3 currently has a Stage 1 controller option only. The Gen 2 Stage 1 and Stage 2 ECU software linked here lists 2021–2024 fitment; for a 2020 car, contact our team for the correct software. If you are unsure, call with your VIN before ordering.

  • Let us help you find your perfect upgrade

    Our U.S. based sales team is ready to answer any of your performance upgrade questions. Call us at (866) 558-4314 or email today

    Contact