Every Mercedes has an engine code stamped on the block, encoded in the VIN, and listed on the registration document. This guide explains how to find your engine code, what it means, and why it matters when buying a replacement or checking fitment.
Your Mercedes engine code is a combination of letters and numbers that uniquely identifies the engine family, displacement, and configuration. It is stamped on the engine block, encoded in the 8th character of your VIN, and listed on the V5C logbook. Common codes include OM651 (2.1 diesel), OM642 (3.0 V6 diesel), M276 (3.0 V6 petrol), and M177 (4.0 V8 biturbo).
If you already have a failed engine, the cost guide will help you understand the financial impact.
A Mercedes engine code is a short alphanumeric identifier that tells you exactly which engine is fitted to your car. It reveals the fuel type, displacement, cylinder configuration, and generation. For example, OM651 means a 2.1‑litre four‑cylinder diesel (the "OM" stands for Öl-Motor – diesel in German), while M276 is a 3.0‑litre V6 petrol.
Every chassis – from the A‑Class (W176) to the S‑Class (W222) – is designed for a specific set of engine codes. Installing an engine that isn't listed for your chassis will not fit mechanically, will not communicate with the ECU, and will fail an MOT. This is why knowing your code is the first and most important step before any replacement or swap.
In our 2025 enquiry data, the top requested Mercedes engines were OM651 (1,250 requests), OM642 (880), OM654 (520), and M276 (390) [EM-VERIFIED]. These represent the most common fitments across the C‑Class, E‑Class, GLC, and GLE ranges.
There are four reliable ways to locate your engine code. Use the one that suits your situation best.
Most Mercedes engines have a stamped metal plate or a machined pad on the cylinder block. For OM651, it's on the left side near the oil filter housing. For M276, it's on the front face behind the intake manifold. For detailed diagrams and photos, see our engine number location guide.
Many modern engines have a sticker on the timing cover with the engine code and other details. This is often the quickest spot to check without any disassembly.
The 8th character of your VIN indicates the engine family. For example, a VIN with the 8th character "9" often points to an OM651 diesel, while "6" may indicate an M276 petrol. Use our free Mercedes VIN decoder for a full breakdown.
The logbook includes the engine number, which can be cross‑referenced with our fitment matrix to confirm the code.
If you cannot find the code using these methods, a vetted Mercedes specialist can locate it for you during a service or inspection.
Mercedes engine codes follow a consistent pattern. The first two letters indicate the fuel type: OM for diesel (Öl-Motor) and M for petrol (Motor). The following numbers usually denote displacement (in litres x 10) and configuration, though the exact meaning varies by generation.
| Code Prefix | Fuel Type | Typical Displacement | Common Models |
|---|---|---|---|
| OM | Diesel | 2.1 – 3.0 | C‑Class, E‑Class, GLC, Sprinter |
| M | Petrol | 1.6 – 6.0 | All models, including AMG |
| OM65x | Diesel (modern 4‑cyl) | 2.0 | W213, X253, V167 |
| M27x | Petrol (V6) | 3.0 – 3.5 | E‑Class, CLS, GLE |
| M17x | Petrol (V8 biturbo) | 4.0 | AMG GT, C63, E63 |
For a full breakdown of every engine code and its specifications, see our Engine Knowledge Centre pages.
The table below summarises the most frequently encountered engine families and the chassis they were fitted to. For a complete list, visit the full fitment matrix.
| Engine Code | Type | Chassis Codes | Key Models |
|---|---|---|---|
| OM651 | 2.1 Diesel | W204, W205, W212, W213, X253, W447, W906 | C‑Class, E‑Class, GLC, Sprinter |
| OM654 | 2.0 Diesel | W205, W206, W213, W214, X253, X254, V167 | C‑Class, E‑Class, GLC, GLE |
| OM642 | 3.0 V6 Diesel | W211, W212, W164, W166, X204, W251, W906 | E‑Class, ML/GLE, GLK, Sprinter |
| M276 | 3.0 V6 Petrol | W212, W213, W166, C218, X166 | E‑Class, CLS, GLE, GLS |
| M274 | 2.0 Petrol | W205, W213, X253 | C‑Class, E‑Class, GLC |
| M177 | 4.0 V8 Biturbo | W205, W213, W222, X166, V167 | C63, E63, S‑Class, GLE AMG |
Always confirm the exact variant (e.g., OM651 DE22 LA vs. OM651 DE22 LA EVO) because ECU programming and ancillaries differ.
Installing the wrong engine is one of the most expensive mistakes you can make. Here's why getting the code right is non‑negotiable:
Once you know your engine code, you can use our Engine Compatibility Checker to see which other chassis share the same unit.
Even experienced owners sometimes confuse similar codes. Avoid these pitfalls:
If you are unsure, use the OM vs. M‑series identification guide or contact a specialist.
The easiest method is to check the 8th character of your VIN. Use our VIN decoder to get a full breakdown. You can also look at the V5C registration document, which lists the engine number. The engine code is usually the first part of that number.
"OM" stands for Öl-Motor, which is German for oil engine – i.e., diesel. "M" stands for Motor and is used for petrol engines. This naming convention has been in place for decades.
Only if the engine code is listed for your chassis in the fitment matrix. For example, an OM651 from a W204 C‑Class will also fit a W212 E‑Class or X253 GLC, but you must check the specific variant and ECU compatibility. Always consult a specialist before buying.
Based on our 2025 enquiry data, the OM651 2.1 diesel is the most requested, with 1,250 quotes [EM-VERIFIED]. It appears in the C‑Class, E‑Class, GLC, and Sprinter. The OM642 V6 diesel follows with 880 requests.
Costs vary widely. A reconditioned OM651 supply‑only is around £2,800–£4,800, while an OM642 V6 is £3,200–£5,500, and an M276 petrol V6 is £3,800–£6,500 [EM-QUOTE]. See the replacement cost guide for a full breakdown.
If the cost of a replacement engine (supply + fitting) exceeds approximately 70% of your car's current market value, it may be more economical to scrap the car. This threshold is a genuine guideline based on our proprietary data. For worked examples, see the repair/replace/scrap framework.
Knowing your engine code is the single most important step before ordering a replacement, checking compatibility, or even diagnosing a fault. Use this guide to locate your code, decode it, and confirm that it matches your chassis. Then use the VIN decoder and fitment matrix to double‑check.
Once you have confirmed the correct engine, the next step is to understand the cost. Visit the replacement cost guide and use the repair vs. replace calculator to make a financially sound decision.
Check Your Engine with Registration LookupReady to identify your engine or get a quote? Compare prices from vetted Mercedes specialists.