Engines

Which BMWs Have the B58 Engine? Complete List

Published Aug 30, 2026 Reading time 6 min
Cover of the Which BMWs Have the B58 Engine? Complete List

The B58 is BMW’s 3.0-liter turbocharged inline-six, and it is in more cars than any other BMW engine currently sold. If a modern BMW wears a 40i badge, an M240i, M340i, M440i or 540i badge, or an M40i badge on an X or Z model, this is what is under the bonnet.

Below is the complete list from United States certification records: 173 model-year versions across twelve model lines, with the years and rated output for each.

Every B58 car in United States records

ModelUS model yearsBadgesRated output
3 Series2016–2026340i, 340i xDrive, M340i320–382 hp
X42019–2024M40i355 hp
5 Series2017–2026540i, 540i xDrive335–375 hp
X32018–2025M40i, M50i xDrive355–382 hp
X52019–2026sDrive40i, xDrive40i335–375 hp
X72019–2026xDrive40i335–375 hp
7 Series2020–2026740i, 740i xDrive335–375 hp
Z42020–2026M40i382 hp
8 Series2020–2026840i, 840i xDrive335 hp
X62020–2026sDrive40i, xDrive40i335–375 hp
4 Series2021–2026M440i, M440i xDrive375–382 hp
2 Series2022–2026M240i, M240i xDrive382 hp

Twelve model lines, and the badge is a reliable guide in a way it usually is not with BMW: the number tells you where the car sits in the range, but 40i and the M-prefixed numbers tell you it is this engine.

And one car that is not a BMW

The Toyota GR Supra 3.0 carries a B58. It is in the same United States certification data as the BMW cars, under the same engine family code — seven records across the 2020 to 2023 model years in our copy of it.

BMW supplies the engine to Toyota, which is why our engine descriptions say “every car” rather than “every BMW”, and why searching for the B58 turns up a car with a different badge on the nose. The four-cylinder Supra 2.0 uses the B46, from the same modular family.

How the output rose over ten years

The engine has been in production since 2015 and the rated figures have moved:

OutputWhere it appears
320 hpEarly 340i, 2016–2018
335 hpThe 40i cars: X5, X6, X7, 740i, 840i
355 hpX3 M40i, X4 M40i
375 hpLater 40i and M440i versions
382 hpM240i, M340i, Z4 M40i, later X3 M40i

That is a 62-horsepower spread from one engine family, and it is worth understanding what it does and does not mean. These are different states of tune of the same unit, not different engines: the 335 hp X5 xDrive40i and the 382 hp M340i share architecture, displacement and the factory code in their certification filings.

Drivetrain, gearbox and economy across the range

Three things worth knowing before you shop, all from the same certification records:

  • Rear-wheel drive is still available. Of the 173 versions, 77 are rear-wheel drive and 96 are all-wheel drive. The split matters because xDrive is standard on some models and optional on others, and the sDrive40i X5 and X6 exist specifically for buyers who do not want it.
  • Almost all are automatic. 165 of the 173 are the eight-speed automatic; eight are a six-speed manual. If you want a B58 with three pedals, the list is very short and it is worth checking the specification page for the exact model year.
  • Combined economy runs from 21 to 30 mpg on EPA testing, which is a nine-mpg spread across the same engine — the difference between a Z4 and an X7 is the car, not the engine.

How to be certain about a specific car

Badges get moved and listings get things wrong. Two checks settle it.

The specification page for that model year. Our specification records carry the manufacturer’s own engine code from certification testing — strings like B58A20O2F74S — and that resolves to the family exactly. Look up the model year and trim.

The VIN. Our decoder queries the government vehicle database, which returns the engine model for that individual car rather than for the model line. For a used car being sold on its engine, that is the check worth doing.

What the B58 replaced, and what it is not

It replaced the N55, which was BMW’s single-turbo 3.0-liter six from 2009 to 2016. The two overlap in the 2016 model year, which is the one to be careful about: an early 2016 car may be either.

It is also not the S58, and this is where money changes hands. The S58 is built by BMW M GmbH and powers the M3, M4, X3 M and X4 M. Both are 3.0-liter turbocharged sixes; they are different engines, and as our guide to engine codes explains, an S-prefixed BMW engine is never a tuned version of the ordinary one with a similar number.

The practical rule: M340i is a B58, M3 is an S58. The badge with the model number after the M is BMW’s M Performance tier, built by BMW AG; the badge with the number attached to the M is a full M car built by BMW M GmbH, and its VIN starts WBS rather than WBA.

Common questions

Which BMWs have the B58 engine?

In the United States: the 340i and M340i, 540i, 740i, 840i, M240i, M440i, X3 M40i and M50i, X4 M40i, X5 and X6 sDrive40i and xDrive40i, X7 xDrive40i, and Z4 M40i. The full table with model years is above.

Does the Toyota Supra have a BMW B58?

The Supra 3.0 does. It appears in United States certification data with a B58 family code, in the same records as the BMW cars.

How much horsepower does the B58 have?

Between 320 and 382 hp depending on model and year, on the certification figures in our specification data. The full page on the B58 engine covers the family in detail.

Is the M340i a B58?

Yes, at 382 hp. The M3 is not — that is an S58, a different engine built by a different company within BMW.

What is the difference between the B58 and the N55?

Generation. The N55 ran from 2009 to 2016 and the B58 replaced it as part of BMW’s modular B family. They overlap only in the 2016 model year.

Sources

Model lists, badges, model years and rated output from EPA annual certification test data, which carries the manufacturer’s own engine code for each vehicle tested. The source is named on every specification page, and the engine family itself is covered on the B58 page.