Skip to content

Buying guide · Gleb Blekher

Every Car With a B58 Engine (and Which Generation Each Has)

Short answer: In the US, the B58 is in the BMW 340i, 440i, M240i, 540i, 640i GT, 740i, X3 M40i and X4 M40i (Gen 1), then the M340i, M440i, G42 M240i, Z4 M40i, X5/X6/X7 40i, 840i and every Toyota GR Supra 3.0 (Gen 2). The INEOS Grenadier petrol has one too. From 2023, the 740i, X7, X5, X6 and 540i moved to Gen 3. Outside the US, add the M140i and the Morgan Plus Six.

Parts and tunes in this guide are for off-road / competition use only. Not legal for use on public roads in the United States, including California.

I'm Gleb Blekher, owner of B58 Racing in Dallas, TX. Both of my own B58 builds were Gen 1. The question we get most often isn't "what should I buy?" It's "does my car even have a B58, and which one?" This page answers that. The years below are the ones our car picker and VIN lookup use, so they match the fitment you see on every part.

How the B58 generations work

BMW's B58 is a 3.0-liter turbocharged inline-six. It has come in three main generations:

  • Gen 1 (B58B30M0): about 2015–2019, F-chassis cars and early G-chassis cars.
  • Gen 2 (B58TU: B58B30M1 and B58B30O1): the 2018 technical update. 350 bar fuel, single timing chain, split cooling. The M1 makes 335 hp and the O1 makes 382 hp.
  • Gen 3 (B58B30M2): from 2022, with port injection added. Many earlier parts don't fit.

Generation decides which charge pipe, fuel pump, turbo and plugs fit. The full breakdown is in our B58 Gen 1 vs Gen 2 guide.

BMW B58 cars sold in the US

Gen 1 (B58B30M0)

CarChassisYears
340iF30/F31/F342016–2019
440iF32/F33/F362017–2020
M240iF22/F232016–2021
540iG30/G312017–2019
640i GTG322018–2019
740iG11/G122016–2019
X3 M40iG012018–2019
X4 M40iG022019

Two cars here catch people out. The F22 M240i kept the Gen 1 engine all the way through 2021, long after other models updated. And the 2017–2019 G30 540i is a G-chassis car with a Gen 1 engine. Shop by "G-series" alone and you'll order the wrong parts.

Gen 2 (B58TU: B58B30M1 / B58B30O1)

CarChassisYearsEngine code
M340iG20/G212019+B58B30O1
M440iG22/G23/G262021+B58B30O1
M240iG422022+B58B30O1
Z4 M40iG292019+B58B30O1 (US)
X3 M40iG012020+B58B30O1
X4 M40iG022020+B58B30O1
540iG30/G312020–2023B58B30M1
740iG11/G122020–2022B58B30M1
X5 xDrive40iG052019–2023B58B30M1
X6 xDrive40iG062020–2023B58B30M1
X7 xDrive40iG072019–2022B58B30M1
840iG14/G15/G162019+B58B30M1

The rule of thumb: the "M" models (M340i, M440i, M240i, X3/X4 M40i, Z4 M40i) get the 382 hp O1. The luxury 40i models get the 335 hp M1. The Z4 M40i uses the O1 in the US and the M1 in markets under EU emissions rules.

Gen 3 (B58B30M2)

These cars have a B58, but it's the newest version. Our car picker doesn't list Gen 3 yet, so check each part's fitment line before you order.

CarChassisYears
740iG702023+
X7 xDrive40iG07 (facelift)2023+
X5 xDrive40iG05 (facelift)2024+
X6 xDrive40iG06 (facelift)2024+
540iG602024+
X3 M50G452025+

Toyota GR Supra 3.0

CarChassisYearsGeneration
GR Supra 3.0A90/A912020+Gen 2, every car

Every GR Supra 3.0 is a B58, and every one is Gen 2. In the US, 2020 cars made 335 hp and 2021+ cars made 382 hp. Toyota's 2026 MkV Final Edition keeps 382 hp in the US. The higher-output Final Edition went to other markets. The GR Supra 2.0 is a different engine (a four-cylinder), so B58 parts don't apply.

Head type matters on the Supra too. Forum reports say 2020 cars are "2-port" and 2021+ cars are "6-port," and upgrade turbos are made for one or the other. Start with the A90 Supra mods guide.

INEOS Grenadier (petrol)

CarBodyYears
INEOS GrenadierStation Wagon / Quartermaster2023+

In the US, the Grenadier comes only with the BMW B58 petrol six, rated at about 282 hp. Other markets also get a diesel. The Grenadier's B58 is packaged very differently from a BMW or Supra, so intakes, downpipes and charge pipes for those cars don't carry over. On our site, a part fits the Grenadier only if it's listed for the Grenadier, like the Rival 4x4 rear differential skid plate.

Plug-in hybrids with a B58

BMW also pairs the B58 with an electric motor. These cars aren't in our car picker, and their hybrid hardware changes a lot of fitment, so ask us before ordering.

CarChassisUS yearsGeneration
X5 xDrive45eG052021–2023Gen 2 (B58B30M1, detuned)
745e xDriveG12From 2019 (facelift)B58
X5 xDrive50eG05 (facelift)2024+Gen 3 (B58B30M2)
550e xDriveG602024+B58
750e xDriveG702024+B58

Notable B58 cars outside the US

CarMarketYearsNotes
BMW M140i (F20/F21)Europe and others2016–2019Gen 1 hatchback, never sold in the US
BMW 545e xDrive (G30)Europe and others2021–2023Plug-in hybrid, not sold in the US
Morgan Plus SixUK and Europe2019–2025Morgan says it isn't sold in the US
Morgan SupersportUK and Europe2025+US version uses a BMW four-cylinder instead
Toyota GR Supra Final Edition (higher output)Europe and Japan2025–2026Higher-output B58, not the US car

Cars people think have a B58 (but don't)

  • BMW M2, M3, M4, X3 M, X4 M (G8X, F9X): these use the twin-turbo S58. It's related to the B58 but uses different parts. See our S58 parts page and the S58 mods guide.
  • F-chassis 335i, 435i, M235i and the F87 M2: these came before the B58 and use earlier six-cylinder engines.
  • 330i, 430i, 230i, M235i Gran Coupe, Z4 sDrive30i, GR Supra 2.0: four-cylinder engines.

How to confirm your engine

  • Run your VIN. A BMW VIN decoder or your build sheet shows the engine code. B58B30M0 is Gen 1, B58B30M1 or B58B30O1 is Gen 2, and B58B30M2 is Gen 3.
  • Don't trust the badge alone. A "540i" can be Gen 1, Gen 2 or Gen 3 depending on year. Changeover dates vary by market and build month, so treat model year as a starting point, not proof.
  • Check the throttle body flange if you're under the hood. One parts maker notes Gen 1 uses a three-bolt flange and Gen 2 a two-bolt one. That's why charge pipes don't swap.
  • Use our tools. Shop by your car to filter parts, or send us your VIN and we'll check it for you.

Once you know your engine, see the best B58 mods, in order, the M340i and M440i mods guide, or browse downpipes, charge pipes and fueling. Before you buy a used one, read B58 common problems.

FAQ

What cars have the B58 engine?

In the US: the BMW 340i, 440i, M240i, M340i, M440i, 540i, 640i GT, 740i, 840i, X3 M40i, X4 M40i, X5/X6/X7 40i, Z4 M40i, the X3 M50, the Toyota GR Supra 3.0 and the INEOS Grenadier petrol. Some BMW plug-in hybrids use it too.

Does the Toyota Supra have a BMW engine?

Yes. The GR Supra 3.0 uses the BMW B58, and every one is Gen 2. The GR Supra 2.0 uses a four-cylinder instead.

Is the 540i a B58?

Yes, since 2017. The 2017–2019 G30 540i is Gen 1, the 2020–2023 car is Gen 2, and the 2024+ G60 540i is Gen 3.

Is the B58 in the M3 or M4?

No. The G80 M3 and G82 M4 use the S58, a related but different twin-turbo engine. Parts are not interchangeable.

What engine does the INEOS Grenadier have?

In the US, the Grenadier has the BMW B58 3.0-liter turbo six, rated at about 282 hp. It's the only engine offered there.

Sources