How to Know What BMW Engine You Have

 

BMW standing in the UK road

Photo by Alex Mares on Unsplash


If you’re sourcing a used BMW engine for a replacement, trying to understand a fault code, checking compatibility before buying parts, or just curious what’s under the bonnet, knowing your exact engine code is the starting point for everything. The model badge tells you very little on its own. BMW has fitted multiple different engines to the same car across production runs, and two cars with identical badges can have meaningfully different power units inside them.

Here’s how to find it, how to read it, and what the most common modern codes actually mean.

Four Ways to Find Your BMW Engine Code

1. The VIN — the quickest method

Your BMW’s 17-character VIN (Vehicle Identification Number) encodes the engine type within the Vehicle Descriptor Section — characters 4 to 8. You don’t need to decode this manually. Enter the last seven digits of your VIN into BMW’s own parts lookup at realoem.com, or use a dedicated BMW VIN decoder such as bimmer.work. Both are free, both return the full engine specification for your exact car, and both are far more reliable than guessing from the badge.

You can find the VIN in three places: on a plate visible through the windscreen at the base of the driver’s A-pillar, on a sticker inside the driver’s door jamb, or stamped into the engine bay on the right-hand suspension turret. It also appears on your V5C registration document, insurance certificate, and MOT history.

The fastest approach: open the driver’s door, look at the door jamb sticker. The VIN is there. Type the last seven characters into realoem.com. Your engine code appears in the specification results within seconds.

2. The sticker or stamp in the engine bay

On most BMW engines, the engine code is stamped directly onto the crankcase or on a label attached to the engine block. On many four and six-cylinder units, look on the upper intake side of the block, typically near the third cylinder. It’s usually a small raised or recessed stamp; you’ll likely need a torch. The stamp typically shows three lines: the engine type code, the engine serial number, and the block part number. The engine type code at the top is what you’re looking for.

Note that not all blocks are stamped. On some modern sealed and partially covered engines, particularly B-series units, finding the stamp requires some searching. If you can’t find it, the VIN route is easier and equally definitive.

3. iDrive — if your car has it

On F and G-generation BMWs with iDrive, go to Vehicle Information within the settings menu. Depending on the model year and software version, you can find the engine type and displacement listed in the vehicle data section. This isn’t always presented as the full engine code, but it will tell you the displacement and fuel type, which, combined with the model year, narrows it down substantially.

4. Service history and registration documents

If the car has a full BMW service history, the engine code will be listed on dealer service records. Your V5C registration document also records the engine capacity and fuel type, which, combined with the model and year, is usually enough to confirm the engine family. For absolute certainty, the VIN method beats everything else.

How to Read a BMW Engine Code

BMW engine codes follow a consistent structure once you understand the logic. Take the code apart, and each section tells you something specific.

The letter prefix tells you which engine series it belongs to:

M — Original BMW production engines, used from the 1960s through to the mid-2000s.

N — Second-generation designation, introduced when the M-series numbering was exhausted.

B — Current modular engine family, introduced around 2012–15. Most modern BMW engines are B-series.

S — High-performance M Division engines, based on N or B units but optimised for power.

The number identifies the engine family within that series — 47, 48, 57, 58, and so on. These don’t correspond directly to displacement; they’re BMW’s internal family designations.

The fuel letter tells you petrol or diesel:

B — Benzin (petrol).

D — Diesel.

The two-digit number at the end indicates displacement in whole litres — 20 means 2.0 litres, 30 means 3.0 litres.

So B48B20 is: B-series, engine family 48, petrol, 2.0 litres. And N57D30 is: N-series, engine family 57, diesel, 3.0 litres. Once you know the pattern, any BMW engine code becomes readable at a glance.

The Most Common Modern BMW Engines — What’s in Your Car

The following covers the engines most frequently found in F, G, and U generation BMWs — the cars from 2012 onwards that MT Auto Parts specialises in. These are the codes you’re most likely to encounter when searching for a used BMW engine for sale or trying to identify what you have.

Engine Code

Type

Displacement

Common Models

Years

B48

Petrol 4-cyl

2.0L

320i, 330i, 520i, X3 20i, 420i

2014–present

B58

Petrol 6-cyl

3.0L

340i, M340i, 540i, X5 40i, Z4 M40i

2015–present

S58

Petrol 6-cyl (M)

3.0L

M3 (G80), M4 (G82), X3 M, X4 M

2019–present

B47

Diesel 4-cyl

2.0L

318d, 320d, 520d, X3 20d

2014–present

B57

Diesel 6-cyl

3.0L

330d, 530d, X5 30d, 740d

2015–present

N47

Diesel 4-cyl

2.0L

320d, 520d, X3 20d (older)

2007–2014

N57

Diesel 6-cyl

3.0L

330d, 530d, X5 30d (older)

2008–2016

N55

Petrol 6-cyl

3.0L

335i, 535i, X5 35i (older)

2009–2016

N20

Petrol 4-cyl

2.0L

320i, 520i, X3 20i (older)

2011–2017

 

A few things worth knowing about these engines in the context of buying or replacing them.

The B48 and B58 are part of the same modular family

BMW’s current B-series engines are designed around a common 500cc per cylinder architecture. The B38 is a three-cylinder, the B48 is a four-cylinder, and the B58 is a six-cylinder — all sharing core design principles, similar block construction, and many common components. This modular approach means BMW engine parts availability is strong and the engineering philosophy is consistent across the family.

N47 and N57 have a known timing chain issue

The N47 and older N57 engines carry a documented history of timing chain wear, particularly because the chain sits at the rear of the engine, making replacement extremely labour-intensive. If you’re buying a used engine of either type, confirmed service history matters more than mileage alone. The B47 and B57 that replaced them addressed most of the chain positioning issues.

The S58 is not the same as the B58

The S58 is the M Division version of the B58, fitted to the G80 M3, G82 M4, X3 M, and X4 M. It shares the same basic architecture as the B58 but has a twin-scroll twin-turbo setup, revised cylinder head, closed-deck block, and considerably higher power output — up to 503bhp in Competition xDrive form. An S58 is not a drop-in replacement for a B58 without substantial additional work, and vice versa. They are different engines that happen to be related.

The N55 to B58 transition

The N55, found in many F30 335i and F10 535i cars, was replaced by the B58 from around 2015 onwards. Both are 3.0-litre turbocharged straight-sixes, and both are well-regarded. If you’re sourcing a used straight-six petrol, knowing which generation you have is important for parts compatibility.

If You’re Buying a Replacement BMW Engine

The engine code is the essential starting point when you are looking to buy a BMW engine. The model badge and year alone aren’t enough. BMW used multiple engine variants within the same model in the same year, differentiated by Euro emissions standard (Euro 5 vs Euro 6), drivetrain layout (RWD vs xDrive), and power output. Two 320d cars from the same production year can have different B47 variants with different fuel systems and software configurations.

When sourcing a used engine, confirm: the full engine code (not just the family number), the Euro emissions standard, and ideally the donor vehicle’s chassis code. A specialist who works exclusively with BMW and can cross-reference your VIN against their stock removes most of the compatibility risk before anything is dispatched.

MT Auto Parts stocks BMW motors for sale across the full F, G, and U generation range, covering B48, B58, S58, B47, B57, and their predecessors. Every engine listing includes the full code, mileage at removal, and donor vehicle details. Free VIN matching on every order confirms compatibility before dispatch. Most parts include a 30-day warranty (T&Cs apply), with delivery to UK mainland addresses within 24 to 48 hours.

Disclaimer: Engine codes, specifications, and compatibility can vary by BMW model, production date, drivetrain, emissions standard, and market. This guide is for general informational purposes only and should not be relied on as a substitute for VIN-based verification or professional advice. Always confirm the exact engine code and fitment before buying parts or a replacement engine.

Popular posts from this blog

Which BMW Has the M57 Engine?

Which BMW Diesel Engine Is the Most Reliable? 10+ Top-Rated Options Explained

What Are Common BMW B57 Engine Problems?