BMW Engine Codes Explained

The short answer
A BMW engine code is the manufacturer's internal identifier for an engine design. It is not the model badge on the trunk lid. A full code such as B58B30M1 usually encodes six things: the engine family, the cylinder count or layout, a design variant, the fuel type, the approximate displacement, and a power class with a revision level. Enthusiasts and parts catalogs often shorten it to the first three characters, such as B58, N55 or S58, which identify the basic engine.
One qualification matters. The scheme described here is a widely used convention, not a guarantee. BMW has changed its conventions over the decades, and individual engines break the pattern. Use the code to understand roughly what an engine is. Confirm the exact engine for a particular car from that car's own records.
How a full code breaks down
B 5 8 B 30 M 1; | | | | | | |; | | | | | | +-- revision level (0 = original, 1 = first technical update); | | | | | +---- power class within this engine type (M = middle); | | | | +--------- displacement in deciliters (30 = about 3.0 liters); | | | +------------- fuel type (B = gasoline); | | +----------------- design variant within the family; | +------------------- cylinder count or layout (5 = inline six); +--------------------- engine family
First letter: engine family
M: the older family of BMW engines, for example the M54 inline six. N: the family introduced during the 2000s, including the N20, N52, N54, N55 and N63. B: the modular family introduced in the 2010s, including the B38, B48, B47, B57 and B58. S: engines developed for BMW M high-performance models, such as the S55, S58, S63 and S65. P: motorsport engines. W: engines sourced from outside partners, used in some MINI applications.
Second character: cylinders and layout
The second character groups engines by cylinder count and arrangement. The meaning of the lower numbers has shifted between families:
M and N families: 1 through 4 generally indicate a four-cylinder engine. The N20 and N46 are examples. Modular B family: 3 indicates a three-cylinder engine (B38) and 4 indicates a four-cylinder engine (B48). Across families: 5 indicates an inline six, 6 a V8, 7 a V12 and 8 a V10. The S85 is a V10 example.
Third character: design variant
The third character tells versions within a family apart. For example, the N54 and N55 are both 3.0-liter turbocharged inline sixes. The N54 uses two turbochargers and the N55 uses a single twin-scroll unit. A higher number does not reliably mean a newer, stronger or better engine. It only signals a different design.
Fuel letter and displacement
After the base code comes a fuel letter and then two digits for displacement:
B: gasoline (from the German word Benzin). D: diesel. H: hydrogen, used only rarely. Displacement: two digits in deciliters, rounded. B30 means a gasoline engine of about 3.0 liters, D20 means a diesel of about 2.0 liters, and B44 means a gasoline engine of about 4.4 liters.
Power class and revision
The final letter is commonly decoded as a relative power class within that engine type, from lowest to highest:
K: lowest; U: lower; M: middle; O: upper; T: top
The class is relative, not a fixed horsepower figure. The same class letter on two different engines, or on the same engine in different markets, can correspond to different outputs. The final digit marks the revision level: 0 for the original release, and 1 or higher for later technical updates. This is why a B58B30M0 and a B58B30M1 can differ in hardware even though they share a base code.
Commonly referenced BMW engine codes
Code | Fuel | Layout | Approx. displacement | Typical role; N20 | Gasoline | Turbocharged inline four | 2.0 L | Mainstream four-cylinder, N family; B48 | Gasoline | Turbocharged inline four | 2.0 L | Mainstream four-cylinder, modular B family; N54 | Gasoline | Twin-turbocharged inline six | 3.0 L | Performance six, N family; N55 | Gasoline | Single twin-scroll turbo inline six | 3.0 L | Successor design to the N54; B58 | Gasoline | Turbocharged inline six | 3.0 L | Six-cylinder, modular B family; S55 | Gasoline | Twin-turbocharged inline six | 3.0 L | BMW M application; S58 | Gasoline | Twin-turbocharged inline six | 3.0 L | BMW M application, later than the S55; N63 | Gasoline | Twin-turbocharged V8 | 4.4 L | V8 for larger models; B47 | Diesel | Turbocharged inline four | 2.0 L | Four-cylinder diesel, modular B family; B57 | Diesel | Turbocharged inline six | 3.0 L | Six-cylinder diesel, modular B family
The table summarizes broad, widely documented characteristics only. Power output, model fitment and availability vary by model year, generation and market, so they are left out here. The material supplied for this article did not include verified specifications for those details.
Why the model badge is not the engine code
BMW model names such as 330i or M340i describe the car's position in the lineup, not its engine. The name does not reliably tell you displacement or engine family. The same badge has covered quite different engines across generations. An earlier 330i used a six-cylinder engine, while recent versions use a 2.0-liter turbocharged four-cylinder from the B family. Anyone comparing used cars, ordering parts or researching known issues should therefore work from the engine code rather than the badge.
How to confirm the engine in a specific car
Ask a BMW dealer, or use a VIN-based parts catalog lookup, which maps the vehicle identification number to the engine fitted at the factory. Check the engine code and engine number stamped on the engine block. Their location varies by engine family. Review the original documentation and service records, which often list the engine type. If an engine has been replaced, the code on the block is what matters, and it may differ from what a VIN lookup shows.
Limits of this overview
This guide explains the general naming convention and well-established examples. It does not include verified output figures, model-year fitment, reliability data or pricing, because no confirmed evidence on those points was supplied. Exceptions to the naming scheme exist, particularly for older, motorsport and partner-sourced engines. Treat the decoding above as a reliable starting point, and verify any specific vehicle through its own identification and records.













