B58 Gen 1 vs Gen 2 (B58TU): How to Tell Which Engine You Have
The Short Answer
- Gen 1 B58: every F chassis car (340i, 440i, M240i, M140i) plus the 2017 to 2019 G30 540i, 2017 to 2019 G12 740i, 2018 to 2019 X3 M40i and 2019 X4 M40i. 200 bar fuel injection, two piece timing chain, three bolt throttle body.
- Gen 2 B58TU: every G20 M340i, G22 M440i, G42 M240i, G29 Z4 M40i and A90 Supra 3.0, plus the 540i, 740i, X3 M40i and X4 M40i from 2020. 350 bar injection, one piece timing chain, two bolt throttle body.
- Fastest check: chassis code and model year. F chassis is always Gen 1. G20, G22, G42, G29 and Supra are always Gen 2.
- The trap: horsepower. 382 hp is always Gen 2, but 335 hp can be either.
- Why it matters: fuel limits, whether your DME needs a bench unlock, and which charge pipe and fuel pump kit fit.

Two cars can wear the same 540i badge, make the same 335 horsepower and take different charge pipes, different tunes and different fuel limits. One has the original B58. The other has the updated engine BMW calls the B58TU, which most owners call Gen 2. Order parts for the wrong one and they do not bolt on.
This guide settles B58 Gen 1 vs Gen 2 for your car: which model years got which engine, five ways to confirm it without taking anything apart, what BMW actually changed, and what it means for the parts and tune you buy. It also flags the one check that fools people, which is horsepower.
Engine codes and model year splits come from BMW's B58TU technical training material and BimmerWorld's engine reference table. Tuning details come from bootmod3 and MHD. Owner reports come from Bimmerpost and SupraMKV. We are an authorized dealer for do88, Dinan and CSF and sell parts for both generations. Our own fuel pump kit fits only one of them, so we have a reason to get this right.
In this article
Which Model Years Got Which Engine
For US cars the split falls at the 2020 model year on chassis that carried over, and at launch on every chassis that arrived new from 2019 onward.
| Model | Chassis | US model years | Engine | Factory hp |
|---|---|---|---|---|
| 340i | F30, F31, F34 | 2016 to 2018 | Gen 1 | 320 |
| 440i | F32, F33, F36 | 2017 to 2020 | Gen 1 | 320 |
| M240i | F22, F23 | 2017 to 2021 | Gen 1 | 335 |
| 540i | G30 | 2017 to 2019 | Gen 1 | 335 |
| 540i | G30 | 2020 to 2023 | Gen 2 (B58TU) | 335 |
| 740i | G12 | 2017 to 2019, then 2020 to 2022 | Gen 1, then Gen 2 | 320, then 335 |
| X3 M40i | G01 | 2018 to 2019, then 2020 on | Gen 1, then Gen 2 | 355, then 382 |
| X4 M40i | G02 | 2019, then 2020 on | Gen 1, then Gen 2 | 355, then 382 |
| M340i | G20 | 2020 on | Gen 2 (B58TU) | 382 |
| M440i | G22, G23, G26 | 2021 on (Gran Coupe from 2022) | Gen 2 (B58TU) | 382 |
| M240i | G42 | 2022 on | Gen 2 (B58TU) | 382 |
| Z4 M40i | G29 | 2020 on | Gen 2 (B58TU) | 382 |
| X5, X6, X7 40i and 840i | G05, G06, G07, G14 | From launch | Gen 2 (B58TU) | 335 |
| Toyota Supra 3.0 | A90 | 2020 | Gen 2 (B58TU) | 335 |
| Toyota Supra 3.0 | A90, A91 | 2021 on | Gen 2 (B58TU) | 382 |
The F22 M240i is the one that catches people. It kept the Gen 1 engine through 2021, two model years after most other cars had moved on. If you own a 2020 or 2021 M240i, you have a Gen 1.
BimmerWorld's table also lists a further update, the B58TU2, arriving on the newest cars: the X7 and 7 Series from 2023, the X5, X6 and G60 5 Series from 2024, and the M340i and M440i from 2025. If your car is that new, confirm the engine code before ordering anything labeled Gen 2.
Five Ways to Check Your Own Car
Chassis and model year answer it for most owners, and the engine code answers it for everyone else.
- Chassis code and model year. Use the table above. If you do not know your chassis code, a free VIN decoder will show it, along with the build date.
- The engine code. The same VIN decoders and BMW's own parts catalog list the full engine designation. A code ending in M0 or O0, such as B58B30M0, is the original engine. A code ending in M1 or O1, such as B58B30M1 or B58B30O1, is the technical update.
- The throttle body flange. Follow the charge pipe to where it meets the throttle body. Three bolts is Gen 1. Two bolts is B58TU. This is the check that matters for charge pipe fitment.
- Fuel rail pressure in a datalog. Gen 1 injects at up to 200 bar. The B58TU runs up to 350 bar. If your logging app shows rail pressure targets well above 200 bar under load, it is a TU.
- What your tuning app says. bootmod3 and MHD both identify the engine computer when they connect. Different DME, different generation.
One more clue on later cars: BMW added a 48 volt mild hybrid system to many B58TU models from 2021. If your car has it, it is a TU. Not having it proves nothing.
The Horsepower Trap
You cannot identify the engine from its power rating alone. 382 horsepower is always a B58TU, but BMW built the update in two outputs, and the lower one makes the same 335 horsepower as a Gen 1 M240i or 540i.
- A 2019 540i and a 2020 540i are both rated 335 hp. The 2019 is Gen 1 and the 2020 is Gen 2.
- A 2020 Supra makes 335 hp and a 2021 makes 382. Both are Gen 2.
The Supra is its own source of confusion. BimmerWorld notes that the lower output TU engine has its exhaust manifold cast into the cylinder head with two outlets, where the higher output engine has a conventional six port manifold. Supra owners call them the two port and the six port. A SupraMKV thread on exactly this question got the short version from one member: all Supras are Gen 2, including the 2020 two port cars, and 2020 was the only year North America got the two port.
What BMW Actually Changed
The update was driven by emissions rules, and the changes that matter to owners are the fuel system, the timing drive and the cooling.
| Gen 1 B58 | Gen 2 B58TU | |
|---|---|---|
| Direct injection pressure | 200 bar (2,900 psi) | 350 bar (5,075 psi) |
| Timing chain | Two piece | One piece, with fewer sprockets, guides and tensioners |
| Cooling | Conventional | Split cooling with a heat management module |
| Crankshaft | Forged | Forged, about 2.3 lb lighter |
| Throttle body flange | Three bolt | Two bolt |
| Engine computer | Its own DME and maps | Different DME and maps. Cars built after June 2020 need a bench unlock to tune |
| Mild hybrid | No | 48 volt system on many models from 2021 |
BMW's training material lists the headline items as 350 bar fuel preparation, split cooling, the heat management module and the single part chain drive. Toyota made one more change of its own for 2021, dropping the Supra's compression ratio from 11.0:1 to 10.2:1 with new pistons when it raised power to 382 hp.
What It Changes for Fuel and Tuning
The fuel system is the practical difference: a Gen 2 car can run far more ethanol on its factory high pressure pump than a Gen 1 can.
- Gen 1: the factory high pressure pump is the first limit. bootmod3's standard Gen 1 Stage 2 maps stop at E30, and E50 only appears in the Stage 2+ map that assumes an upgraded pump.
- Gen 2: bootmod3 offers a Stage 2 E50 map on the stock pump, and its Gen 2 flex fuel maps reach full power at 50 percent ethanol.
- The unlock: MHD says DMEs produced after June 2020 need a bench unlock before they can be flashed, and US unlock services run about $800 to $1,600. It mostly lands on Gen 2 owners, because most Gen 1 production had ended by then. If you own a late built F22 M240i or F32 440i, check your build date with your tuner before you buy.
Our B58 Stage 1 vs Stage 2 guide covers what each tune needs on each generation, and our bootmod3 vs MHD guide covers the unlock in detail.
Which Parts Care About the Generation
Some parts fit both engines, some fit only one, and a few depend on the chassis more than the engine.
| Part | Gen 1 | Gen 2 | What decides it |
|---|---|---|---|
| Downpipe | Same pipe. Our 4.5 inch catless downpipe covers both, $199.99 | Flange size, shared by both engines | |
| Charge pipe | do88 Gen 1 kit, $478.25 | Dinan B58TU system, $269.95 | Three bolt or two bolt throttle body |
| Low pressure fuel pump kit | Our Stage 3 brushless kit, $574.99, F chassis only | Does not fit | Fuel tank and chassis |
| Heat exchanger | do88 for F chassis | Dinan for G chassis and Supra, $403.95 | Chassis, not engine |
| Tune | Gen 1 maps, OBD flash | Gen 2 maps, bench unlock on later cars | DME |
Our Stage 3 brushless fuel pump kit fits the Gen 1 F chassis cars: 2016 to 2019 F20 and F21, 2016 to 2021 F22 and F23, 2016 to 2018 F30 and F31, and 2017 to 2020 F32, F33 and F36. It does not fit any G chassis car or the Supra.
The charge pipe matters most on Gen 1, where the factory plastic pipe is a known failure point under added boost. Our charge pipe guide explains why it cracks.
Parts by generation
In stock orders typically ship within 1 to 3 business days. Check the fitment selector on each page.
What Owners Actually Say
Most of the confusion on the forums comes from three questions, and they all have clean answers.
- "Is the downpipe the same?" (Bimmerpost). A 2023 M340i owner asked whether Gen 1 and Gen 2 catless downpipes are the same part and whether a Gen 1 pipe would fit his car. A 2020 M340i owner answered that they are the same downpipe. That matches how downpipes are sold, including ours.
- "Which Supra is which?" (SupraMKV). In a thread on two port and six port engines, the answer that stuck was that every Supra is Gen 2 and that 2021 and later cars in North America are six ports. Supra owners sometimes call the 2020 engine "first generation," which is true for the Supra and misleading everywhere else.
- "My car is a 2020, so it is Gen 2, right?" (our own product pages). Usually, but not always. Our Gen 1 charge pipe listing carries a warning for exactly this reason: the B58TU arrived in 2020 for most chassis, with exceptions such as the F22 M240i that stayed Gen 1 through 2021.
Mistakes We See
- Ordering by model year alone. The 2020 and 2021 F22 M240i is the classic wrong order. Check the chassis code too.
- Ordering by horsepower. A 335 hp engine can be either generation.
- Assuming "Gen 2" on a parts listing covers the newest cars. The latest models have a further updated engine. Check the listed years.
- Buying a Gen 1 E50 tune without the pump. On Gen 1 the stock high pressure pump runs out first.
- Forgetting the unlock cost. On a later Gen 2 car the bench unlock can cost more than the tune.
- Using Supra terms on a BMW. "Two port" and "six port" describe TU engines only. They do not map onto Gen 1 and Gen 2.
Who This Is For (and Who Should Skip It)
This is for you if you are about to buy a charge pipe, a tune, a fuel pump or ethanol capable fueling for any B58 car, or you are shopping for a used one and want to know what you are getting.
You can skip the detective work if you own an F30 340i, F32 440i, G20 M340i, G42 M240i or a Supra. Your chassis already tells you. It is the 540i, 740i, X3 M40i, X4 M40i and F22 M240i owners who need to check.
If It Were Our Car
We would run the VIN through a decoder once, write down the chassis code, build date and full engine code, and keep them in the phone. Then every parts page becomes a two second check. Before ordering a charge pipe we would also look at the throttle body and count bolts, because that is the one part where a wrong guess means a return.
See the Gen 1 B58 Fuel Pump Kit
The Bottom Line
Gen 1 is every F chassis B58 plus the early G30, G12, G01 and G02 cars, and Gen 2 is everything on a G20, G22, G42, G29 or Supra platform plus the carried over models from 2020. Check the chassis code and model year first, confirm with the engine code if you own one of the crossover models, and never go by horsepower. The generation decides your fuel ceiling, your tuning cost and which charge pipe and fuel pump fit, so it is worth two minutes before any order.
Frequently Asked Questions
How do I know if my B58 is Gen 1 or Gen 2?
Start with the chassis code and model year. Every F chassis car is Gen 1, and every G20, G22, G42, G29 and Supra is Gen 2. For the 540i, 740i, X3 M40i and X4 M40i, 2019 and earlier is Gen 1 and 2020 and later is Gen 2. A VIN decoder will also show the engine code: M0 or O0 is the original and M1 or O1 is the update.
What is the difference between the B58 and the B58TU?
The B58TU raised direct injection pressure from 200 bar to 350 bar, replaced the two piece timing chain with a one piece chain, added split cooling with a heat management module, and uses a different engine computer and a two bolt throttle body in place of the three bolt one.
Is the 2020 Supra Gen 1 or Gen 2?
Gen 2. Every A90 Supra 3.0 uses a B58TU. The 2020 car makes 335 hp with a two outlet exhaust manifold cast into the head, and 2021 and later cars make 382 hp with a conventional six port manifold.
Is a 2020 or 2021 M240i Gen 1 or Gen 2?
Gen 1. The F22 and F23 M240i kept the original B58 through the 2021 model year. The Gen 2 engine arrived with the G42 M240i for 2022.
Do Gen 1 and Gen 2 B58 engines use the same downpipe?
Yes. Downpipes for the B58 are shared between the generations. Our 4.5 inch catless downpipe is listed for 2016 to 2024 cars across both.
Do Gen 1 and Gen 2 B58 engines use the same charge pipe?
No. Gen 1 engines have a three bolt throttle body flange and B58TU engines have a two bolt flange, so the charge pipes are different parts.
Which B58 is better for tuning?
Gen 2 has the stronger factory fuel system and can run about E50 on its stock high pressure pump, where Gen 1 is limited to about E30. Most Gen 1 cars are cheaper to start tuning because they flash over the OBD port, while cars built after June 2020, which are mostly Gen 2, need a bench unlock that costs about $800 to $1,600.









