The M54 (2000–2006) is the last of BMW’s M5x six-cylinders: an aluminium block with iron liners, double VANOS and Siemens MS43 engine management. Physically it’s a close relative of the M52, which is why it gets swapped into E36s. Electronically it’s a generation newer than any E36, and that is where the work is.

This guide maps out what has to be solved. It is not a wiring how-to: the connection-level detail depends on the exact donor and car, and has to come from both cars’ wiring diagrams.

TL;DR

WhatAn M54B25 or M54B30 in an E36.
WhyThe M54B30 makes 228 hp and 300 Nm.
Hardest partsFully electronic throttle, the non-return fuel system, and making the MS43 DME work (immobiliser included) in a car that was never designed for it.
Difficulty5/5 for the electronics

The engine

M54B22M54B25M54B30
Displacement2,171 cc2,494 cc2,979 cc
Bore × stroke80 × 72 mm84 × 75 mm84 × 89.6 mm
Power168 hp189 hp228 hp
Torque210 Nm245 Nm300 Nm

Common to all: aluminium block with iron cylinder liners, double VANOS, Siemens MS43, a fully electronic throttle with no mechanical back-up, and a non-return fuel system.

For comparison, the E36’s own M52 has a single VANOS, Siemens MS41.1 and a mechanical throttle cable. Its block is aluminium in most markets and cast iron in the original US and Canadian cars.


Inline-six engine with plastic intake manifold hanging from an engine hoist chain
Lifting a six-cylinder out on the hoist.AI illustration

The four problem areas

1. Physical fit: oil system, manifolds, ancillaries

The M54 was built for the E46/E39 engine bays. In an E36, expect to adapt:

  • the oil pan, pickup and dipstick to clear the E36 front subframe and steering
  • the exhaust manifolds to clear the E36 chassis and steering shaft
  • ancillary brackets: power steering, A/C and the belt drive

Identify which E36-family parts your donor needs from a documented swap of the same donor engine, not from a generic list.

2. Electronic throttle

The M54 has no throttle cable: an electronic pedal drives the throttle through the DME. The E36’s cable pedal can’t be used. The swap needs an electronic accelerator pedal mounted in the E36 footwell, wired to the MS43.

3. Fuel system

The M54 expects the non-return system it was designed for. The E36 has a return-type system: on the M50 the regulator sits on the fuel rail, and on later E36s (M52) it sits under the car at the fuel filter. The fuel supply has to give the M54 rail the pressure it expects. A common approach is a filter-and-regulator unit in the E36’s feed line that returns the excess fuel to the tank. Confirm pressures for your setup with a gauge.

4. DME, immobiliser and the rest of the car

  • Use the M54’s own DME and harness. Running the M54 on an E36 DME would throw away the double VANOS and the electronic throttle control.
  • Immobiliser: the MS43 expects to be released by its own immobiliser. Either the donor’s matched components come along, or the DME is reprogrammed by a specialist; plan this before buying the DME.
  • Chassis integration: the E46-era engine electronics also have to supply signals the E36 car expects (rev counter, temperature gauge, fuel pump, oil warning, diagnosis). That needs the wiring diagrams of both cars; there’s no universal pin table.

Planning advice

  1. Pick the donor first, and find a detailed write-up of the same swap (M54 into E36) to work from.
  2. Buy the donor complete: harness, DME, pedal, air flow sensor, and everything the immobiliser needs.
  3. Budget for a specialist for the DME and immobiliser work.
  4. Solve the electronics on paper before the engine goes in.

If the goal is simply more six-cylinder power with far less electronics work, an M50 (OBD1 cars) or M52 (OBD2 cars) swap, possibly with the M50 intake manifold, stays within the E36’s own electronics generation.