513 HP Stage 2 ECU Software | BMW M240i/M340i/M440i/Z4M40i Generation 2 B58
Horsepower
Torque
Digital Download
- Top-Speed Governor Removed
Intelligent Octane Adaptations
Choose your installation method
Option 1: Authorized CarBahn Dealer Installation
This software can be installed at an authorized CarBahn dealer.
Option 2: Install via Bootmod3 or MHD
Install yourself using Bootmod3 or MHD. Call 866-558-4314 ext. 1 to purchase or learn more. Note: Tunes installed via this method are not eligible for the CarBahn Factory Matching Warranty Program.
DME Unlock Required
This vehicle requires a FEMTO DME unlock prior to flashing. The DME(s) must be removed from the vehicle and sent out for unlocking before installation can be completed at the dealer. Remote start functionality can be retained if equipped.
Need help deciding which option fits your vehicle? Call 866-558-4314 ext. 1 and our team will point you to the right path.
SKU: CBB11-SW-0402
Vehicle Fitment & Product Details
- Type: Tuning & Software
- Vendor: CarBahn
- Make: BMW
- Model(s): M240i, M240i xDrive, M340i, M340i xDrive, M440i, M440i xDrive, and Z4 M40i
- Vehicle Year(s): 2021, 2022, 2023, and 2024
- Transmission(s): Automatic
- Chassis: G29, G22, G20, and G42
- Body Style(s): Coupe, Sedan, and Convertible
- Drivetrain(s): xDrive and RWD
- Part Number: CBB11-SW-0402
- Fits Engines: B58
- Installation: Dealer Install Only

Unlock the full potential of the Gen 2 B58 with CarBahn Stage 2 ECU Software. Developed through extensive dyno testing, the calibration optimizes boost, ignition timing, fueling, and torque delivery to produce significantly more power while maintaining the smooth, predictable drivability expected from a BMW.
On 93 octane, Stage 2 delivers an additional 74 horsepower and 73 lb-ft of torque at the flywheel. With 100-octane fuel, output climbs to an estimated 513 horsepower and 570 lb-ft of torque—gains of nearly 100 horsepower and 100 lb-ft over stock.
The result is stronger acceleration throughout the rev range, sharper throttle response, and substantial midrange torque without sacrificing everyday refinement.
Performance Results
| Fuel | Configuration | Flywheel Power | Wheel Power |
|---|---|---|---|
| — | OEM Stock | 415 HP / 473 lb-ft | 341 HP / 388 lb-ft |
| 93 Octane | Stage 2 | 489 HP / 546 lb-ft | 401 HP / 448 lb-ft |
| 100 Octane | Stage 2 | 513 HP / 570 lb-ft | 421 HP / 468 lb-ft |
Gains Over Stock
- 93 octane: +74 HP and +73 lb-ft at the flywheel
- 93 octane: +60 WHP and +60 lb-ft at the wheels
- 100 octane: +98 HP and +97 lb-ft at the flywheel
- 100 octane: +80 WHP and +80 lb-ft at the wheels
- Improved throttle response and midrange acceleration
- Smooth, factory-like power delivery
- Calibrations available for up to 100-octane fuel
Power figures represent CarBahn test results under controlled conditions. Actual output may vary depending on vehicle condition, fuel quality, installed hardware, environmental conditions, and dyno type.
Vehicle Description
| Make | Year | Model | Body Style |
|---|---|---|---|
| BMW | 2022 | M240i | Coupe |
| BMW | 2023 | M240i | Coupe |
| BMW | 2024 | M240i | Coupe |
| BMW | 2021 | M240i xDrive | Coupe |
| BMW | 2022 | M240i xDrive | Coupe |
| BMW | 2023 | M240i xDrive | Coupe |
| BMW | 2024 | M240i xDrive | Coupe |
| BMW | 2021 | M340i | Sedan |
| BMW | 2022 | M340i | Sedan |
| BMW | 2023 | M340i | Sedan |
| BMW | 2024 | M340i | Sedan |
| BMW | 2021 | M340i xDrive | Sedan |
| BMW | 2022 | M340i xDrive | Sedan |
| BMW | 2023 | M340i xDrive | Sedan |
| BMW | 2024 | M340i xDrive | Sedan |
| BMW | 2021 | M440i | Convertible |
| BMW | 2021 | M440i | Coupe |
| BMW | 2022 | M440i | Convertible |
| BMW | 2022 | M440i | Coupe |
| BMW | 2023 | M440i | Convertible |
| BMW | 2023 | M440i | Coupe |
| BMW | 2023 | M440i | Gran Coupe |
| BMW | 2024 | M440i | Convertible |
| BMW | 2024 | M440i | Convertible |
| BMW | 2024 | M440i | Coupe |
| BMW | 2024 | M440i | Coupe |
| BMW | 2024 | M440i | Gran Coupe |
| BMW | 2024 | M440i | Gran Coupe |
| BMW | 2021 | M440i xDrive | Convertible |
| BMW | 2021 | M440i xDrive | Coupe |
| BMW | 2022 | M440i xDrive | Convertible |
| BMW | 2022 | M440i xDrive | Coupe |
| BMW | 2022 | M440i xDrive | Gran Coupe |
| BMW | 2023 | M440i xDrive | Convertible |
| BMW | 2023 | M440i xDrive | Coupe |
| BMW | 2023 | M440i xDrive | Gran Coupe |
| BMW | 2024 | M440i xDrive | Convertible |
| BMW | 2024 | M440i xDrive | Convertible |
| BMW | 2024 | M440i xDrive | Coupe |
| BMW | 2024 | M440i xDrive | Coupe |
| BMW | 2024 | M440i xDrive | Gran Coupe |
| BMW | 2024 | M440i xDrive | Gran Coupe |
| BMW | 2021 | Z4 M40i | Coupe |
| BMW | 2022 | Z4 M40i | Coupe |
| BMW | 2023 | Z4 M40i | Coupe |

