Engines

BMW Engine Codes Explained: How to Read M, N, B and S Codes

Published Aug 29, 2026 Reading time 8 min
Cover of the BMW Engine Codes Explained: How to Read M, N, B and S Codes

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.

LetterWhat it meansRoughly whenExamples
MThe oldest series in general use1968 onwardsM30, M20, M50, M54
NThe 2000s generation2001 onwardsN52, N54, N55, N63
BThe modular current generation2013 onwardsB48, B58, B38, B47
SM division engines1978 onwardsS54, 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

CodeLayoutDisplacementFromUS output range
B38Inline-3 turbo petrol—2013—
B47Inline-4 diesel—2014—
B48Inline-4 turbo petrol2.0 L2014181–312 hp
B57Inline-6 diesel3.0 L2015261 hp
B58Inline-6 turbo petrol3.0 L2015320–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

CodeLayoutDisplacementFromUS output range
N20Inline-4 turbo petrol2.0 L2011181–241 hp
N43Inline-4 NA petrol—2007—
N46Inline-4 NA petrol—2004—
N47Inline-4 diesel—2007—
N52Inline-6 NA petrol3.0 L2004230–260 hp
N54Inline-6 twin-turbo petrol3.0 L2006300 hp
N55Inline-6 turbo petrol3.0 L2009300–365 hp
N62V8 NA petrol4.4–4.8 L2001325–360 hp
N63V8 twin-turbo petrol4.4 L2008400–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

CodeLayoutDisplacementFrom
M20Inline-6 NA petrol2.5 L1977
M30Inline-6 NA petrol, the “Big Six”3.4 L1968
M40Inline-4 NA petrol—1987
M42Inline-4 NA petrol—1989
M44Inline-4 NA petrol—1996
M50Inline-6 NA petrol2.5 L1990
M52Inline-6 NA petrol—1994
M54Inline-6 NA petrol2.5–3.0 L2000
M57Inline-6 diesel3.0 L1998
M60V8 NA petrol—1992
M62V8 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

CodeLayoutDisplacementFromUS outputFitted to
M88Inline-6 NA motorsport—1978—M1, M635CSi, E28 M5
S38Inline-6 NA3.5 L1984—E28 M5, E34 M5, E24 M6
S62V8 NA4.9 L1998394 hpE39 M5, Z8
S54Inline-6 NA3.2 L2000333 hpE46 M3, Z3 M, Z4 M
S85V10 NA5.0 L2005500 hpE60 M5, E63 M6
S65V8 NA4.0 L2007414 hpE90/E92/E93 M3
S63V8 twin-turbo4.4 L2009553–627 hpM5, M6, M8, X5 M, X6 M, XM
S55Inline-6 twin-turbo3.0 L2014405–444 hpM3, M4, M2 Competition
S58Inline-6 twin-turbo3.0 L2019453–543 hpM3, M4, X3 M, X4 M, M2, XM
S68V8 twin-turbo mild-hybrid4.4 L2022523–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:

EngineUS versionsModel yearsModel lines
B581732016–202612
B481292017–20269
S631122012–20265
N63782008–20236
S58712020–20265
M54602001–20063
N52422007–20135
S55352015–20213
S65322008–20131
N20312012–20175
N54232007–20165
N55192011–20164

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.