A BMW engine code is three or four characters — B58, N54, S65, M30 — and it tells you more about a car than the badge on the boot does. This page explains what each part of the code means, gives the full list of the 35 engine families this site tracks, and shows how to find out which one is actually in a particular car.
How to read the code
Take B58 apart. The first character is the generation of the design; the digits identify the family and, roughly, the size class.
| Letter | What it means | Roughly when | Examples |
|---|---|---|---|
| M | The oldest series in general use | 1968 onwards | M30, M20, M50, M54 |
| N | The 2000s generation | 2001 onwards | N52, N54, N55, N63 |
| B | The modular current generation | 2013 onwards | B48, B58, B38, B47 |
| S | M division engines | 1978 onwards | S54, S65, S63, S58 |
The single most useful thing on this page is the S. An S-prefixed engine is built by BMW M GmbH, and it is not a tuned version of the ordinary engine with the same number — it is a different unit. The S55 and the N55 are both 3.0-liter turbocharged sixes and they are not related in the way the numbers suggest.
The M prefix is the confusing one, because it does double duty. The old M-series engines — M20, M30, M50, M54 — are ordinary engines from before the N generation, not M division engines. The M division’s engines of that era used S: the S54 in the E46 M3, the S38 in the E28 M5. So an M54 is a regular engine and an S54 is an M engine, and the letters do the opposite of what you would guess.
The complete list
Thirty-five engine families, with the years they were introduced and what our records show them fitted to. Where a power range is given it is measured from the US-certified versions in our specification data rather than taken from a press release.
B series — current
| Code | Layout | Displacement | From | US output range |
|---|---|---|---|---|
| B38 | Inline-3 turbo petrol | — | 2013 | — |
| B47 | Inline-4 diesel | — | 2014 | — |
| B48 | Inline-4 turbo petrol | 2.0 L | 2014 | 181–312 hp |
| B57 | Inline-6 diesel | 3.0 L | 2015 | 261 hp |
| B58 | Inline-6 turbo petrol | 3.0 L | 2015 | 320–382 hp |
The B series is modular by design: the B38 three-cylinder, B48 four and B58 six share a cylinder architecture, which is why the numbers run 38, 48, 58 rather than being unrelated. The diesels take the same logic with 47 and 57.
N series — the 2000s
| Code | Layout | Displacement | From | US output range |
|---|---|---|---|---|
| N20 | Inline-4 turbo petrol | 2.0 L | 2011 | 181–241 hp |
| N43 | Inline-4 NA petrol | — | 2007 | — |
| N46 | Inline-4 NA petrol | — | 2004 | — |
| N47 | Inline-4 diesel | — | 2007 | — |
| N52 | Inline-6 NA petrol | 3.0 L | 2004 | 230–260 hp |
| N54 | Inline-6 twin-turbo petrol | 3.0 L | 2006 | 300 hp |
| N55 | Inline-6 turbo petrol | 3.0 L | 2009 | 300–365 hp |
| N62 | V8 NA petrol | 4.4–4.8 L | 2001 | 325–360 hp |
| N63 | V8 twin-turbo petrol | 4.4 L | 2008 | 400–523 hp |
The N54 to N55 step is the one used-car buyers care about most: same displacement, same layout, and BMW moved from two turbochargers to one twin-scroll turbocharger between them. Both were fitted to a 335i, and the model year is what separates them.
M series — before the N generation
| Code | Layout | Displacement | From |
|---|---|---|---|
| M20 | Inline-6 NA petrol | 2.5 L | 1977 |
| M30 | Inline-6 NA petrol, the “Big Six” | 3.4 L | 1968 |
| M40 | Inline-4 NA petrol | — | 1987 |
| M42 | Inline-4 NA petrol | — | 1989 |
| M44 | Inline-4 NA petrol | — | 1996 |
| M50 | Inline-6 NA petrol | 2.5 L | 1990 |
| M52 | Inline-6 NA petrol | — | 1994 |
| M54 | Inline-6 NA petrol | 2.5–3.0 L | 2000 |
| M57 | Inline-6 diesel | 3.0 L | 1998 |
| M60 | V8 NA petrol | — | 1992 |
| M62 | V8 NA petrol | — | 1994 |
The M30 is the long one. Introduced in 1968 and known as the Big Six, it ran through the 528i, 533i, 535i, 633CSi, 635CSi, 733i and 735i — more than twenty years of BMW’s range on one engine family.
S series — M division
| Code | Layout | Displacement | From | US output | Fitted to |
|---|---|---|---|---|---|
| M88 | Inline-6 NA motorsport | — | 1978 | — | M1, M635CSi, E28 M5 |
| S38 | Inline-6 NA | 3.5 L | 1984 | — | E28 M5, E34 M5, E24 M6 |
| S62 | V8 NA | 4.9 L | 1998 | 394 hp | E39 M5, Z8 |
| S54 | Inline-6 NA | 3.2 L | 2000 | 333 hp | E46 M3, Z3 M, Z4 M |
| S85 | V10 NA | 5.0 L | 2005 | 500 hp | E60 M5, E63 M6 |
| S65 | V8 NA | 4.0 L | 2007 | 414 hp | E90/E92/E93 M3 |
| S63 | V8 twin-turbo | 4.4 L | 2009 | 553–627 hp | M5, M6, M8, X5 M, X6 M, XM |
| S55 | Inline-6 twin-turbo | 3.0 L | 2014 | 405–444 hp | M3, M4, M2 Competition |
| S58 | Inline-6 twin-turbo | 3.0 L | 2019 | 453–543 hp | M3, M4, X3 M, X4 M, M2, XM |
| S68 | V8 twin-turbo mild-hybrid | 4.4 L | 2022 | 523–617 hp | — |
Read down that table and the M division’s engine history is a shape: naturally aspirated sixes, then a naturally aspirated V8 and a V10, then turbocharging from 2009 and nothing naturally aspirated since. The S65 of 2007 is the last atmospheric M engine in the list, and the S85 V10 the only ten-cylinder BMW has put in a road car.
What the numbers do and do not encode
The digits are not a displacement. A B48 is 2.0 liters and a B58 is 3.0; an N63 is 4.4 and an N62 is 4.4 to 4.8. The number identifies a family within its generation and correlates loosely with size, and that is as far as it goes.
Neither is a higher number necessarily newer within a generation. The N20 arrived in 2011 and the N62 in 2001; the N62 has the higher number and is a decade older.
What the number does do reliably is sit in a range by cylinder count: within a series, the 3x and 4x codes are three- and four-cylinder engines, 5x are sixes, 6x are eights. B38 is a three, B48 a four, B58 a six. N52, N54, N55 are sixes; N62, N63 are V8s. That convention holds across the M, N and B generations, which is more than can be said for the digits’ relationship to displacement.
Which of these you will actually meet
Thirty-five families is the full catalog. The distribution of them across cars sold in America is nothing like even. Counting how many US-certified versions in our records carry each engine:
| Engine | US versions | Model years | Model lines |
|---|---|---|---|
| B58 | 173 | 2016–2026 | 12 |
| B48 | 129 | 2017–2026 | 9 |
| S63 | 112 | 2012–2026 | 5 |
| N63 | 78 | 2008–2023 | 6 |
| S58 | 71 | 2020–2026 | 5 |
| M54 | 60 | 2001–2006 | 3 |
| N52 | 42 | 2007–2013 | 5 |
| S55 | 35 | 2015–2021 | 3 |
| S65 | 32 | 2008–2013 | 1 |
| N20 | 31 | 2012–2017 | 5 |
| N54 | 23 | 2007–2016 | 5 |
| N55 | 19 | 2011–2016 | 4 |
Two engines — the B58 and B48 — account for 302 of the 935 linked versions between them, and both are current. The S65 sits at 32 versions across a single model line, which is what an engine built for one car looks like in this data.
The counts are not sales figures. They count how many distinct versions EPA certified, so an engine offered in many trims and many bodies scores highly whether or not many were sold. What they do measure well is how widely BMW spread each design, and on that measure the modular B series has been spread further than anything before it.
How to find out which engine a car has
The badge is not enough, and this is not a hypothetical problem. A 335i can have an N54 or an N55. A 328i can have an N52, an N20 or a B48. A 2013 X5 was sold in the US with three different engines in one model year: the N63 V8, the N55 six and the M57 diesel.
Two reliable routes:
Look up the model year and trim. Our specification pages name the engine family where the EPA certification record supplies it. That linkage covers 935 of our 2,490 US-certified versions — the coverage is good from the late 1990s onwards and thin before that, because EPA only began recording engine family codes usefully at that point.
Start from the VIN. Our VIN decoder establishes the model year and model, which is what you need to look the engine up. How to decode a BMW VIN explains the rest. The engine family is not encoded in the VIN itself.
A note on reliability rankings by engine code
Lists ranking BMW engines by reliability circulate widely and we do not publish one. The reason is structural: NHTSA records complaints against a vehicle, not an engine, and a 2019 3 Series in that database may have a B48 or a B58 with no field separating them. Any per-engine complaint count has been produced by guessing which complaints belong to which engine. We go through what the data does support in the most reliable BMW.
Common questions
What does the letter in a BMW engine code mean?
The generation of the design. M is the oldest series still commonly seen, N covers the 2000s, B is the current modular family from 2013, and S denotes an engine built by BMW M GmbH.
Is an S engine just a tuned M engine?
No. An S-series engine is a different unit built by BMW M GmbH. The S55 and N55 share a displacement and a layout and are not the same engine.
Do the numbers mean the engine size?
No. A B48 is 2.0 liters and a B58 is 3.0. The digits identify a family within a generation; the first digit correlates with cylinder count, not with displacement.
What is the difference between the M54 and the S54?
The M54 is an ordinary naturally aspirated six of 2.5 to 3.0 liters from 2000. The S54 is the M division’s 3.2-liter engine for the E46 M3, Z3 M and Z4 M, rated at 333 hp in the US. The similar numbers are a coincidence of the two naming series.
How many BMW engine families are there?
This site tracks 35 across the M, N, B and S series, from the 1968 M30 to the 2022 S68.
Which engine is in my BMW?
Look up the model year and trim on our specification pages, which name the engine family from EPA certification data where it is recorded. The badge alone will not tell you — a 335i can be an N54 or an N55.
Sources
- Engine families, layouts, displacements and introduction years from this site’s engine reference, compiled from BMW factory brochures held in the archive.
- US output ranges and the model-year-to-engine linkage from our specification pages, built on EPA certification test records and EPA fuel-economy filings.