The BMW 318d in the seventh 3 Series generation (G20, built 2018–) was built with one engine, the B47D20A: a 2.0 L diesel inline-4 with 150 hp.
This guide tells you which engine your 318d has, what goes wrong with it, what a replacement costs from our stock and what else to plan for when you fit one.
- Generation: seventh 3 Series, 2018–
- Body styles: G20 (saloon)
- Engines: B47D20A
- Output: 150 hp
- Replacement engines in stock: 35 from 916,00 €

Which engine is in your 318d?
| Engine code | Built | Power | Torque | Type |
|---|---|---|---|---|
| B47D20A | 2014–2020 | 150 hp | 320 Nm | 2.0 L diesel inline-4, turbocharged |
B47D20A in the 318d
The B47D20A was used in the G20 318d, built 2014–2020. It is a 2.0 L turbocharged diesel inline-4 with 150 hp and 320 Nm.
Reading the code: B marks a B-series code, BMW's modular engine family introduced from 2013 with 500 cc per cylinder; 47 is the family number; D stands for diesel, longitudinal installation for rear-drive and xDrive cars; 20 is the capacity in decilitres, so 2.0 litres; A identifies the version or output stage.
Other cars with the same engine as the 318d
A replacement engine does not have to come from another 318d. These models left the factory with the same engine code, so a unit from any of them is a candidate donor once the sump, mounts and ancillaries are matched to your car.
B47D20A: BMW F30 318d, BMW F20 118d.
How to confirm your engine code
The 318d only used the B47D20A, but the exact version can still change with the build date, gearbox and market. Send us the last seven characters of the VIN and we read the engine code from BMW's records, or look for the code stamped on the block. How to find your BMW engine code.
Known 318d engine problems
The B47D20A in the 318d shares the known weak points of the B47 family. Full B47 guide.
| Known fault | What to check |
|---|---|
| EGR cooler | Check the recall status for the donor car. |
| Diesel particulate filter | Read the soot load. |
| Injectors | Read injector correction values. |
EGR cooler. BMW recalled many B47 cars to replace the EGR cooler, which could leak and cause a fire risk.
Diesel particulate filter. The DPF clogs on short-trip cars.
Injectors. Injectors leak or fail.
Symptoms to watch for on the 318d
Rattle for a few seconds after a cold start. The classic sign of a weak timing chain tensioner or stretched chain. It must be checked quickly: a chain that jumps a tooth can bend valves.
Rattle or whine from the gearbox end. On engines with the timing chain at the rear, a rattle or whine from the back of the engine is the warning sign of chain stretch or guide wear.
Whistle, loss of boost or limp mode. A split charge pipe, a sticking wastegate or worn turbo bearings. Check the pipes first, then the turbo shaft for play.
Black smoke under acceleration. Too much fuel for the air available: boost leaks, a sticking EGR valve, a dirty air mass meter or a leaking injector.
Hard starting when cold. Glow plugs or the glow plug control unit. On older diesels, also check the injection pump and fuel lines for air leaks.
Particulate filter warning. Short trips stop the DPF from regenerating. A long motorway run often clears it; a filter that keeps blocking may be covering an injector, EGR or turbo problem.
Looking after the 318d engine
- Oil: 0W-30 or 5W-30 BMW Longlife-04, about 5.25 litres.
- Service interval: Oil every 15,000 km or yearly.
- Timing drive: Timing chain at the rear (gearbox end).
- Workshop notes: Check front-drive (B47C) or rear-drive (B47D) before ordering.
Buying a used engine for the 318d: checklist
- List of what is fitted. Engines are sold with different ancillaries: some have the turbo, injectors, manifolds, alternator and starter, others are long blocks. Agree the list in writing so you know which parts must come from your old engine.
- Warranty terms in writing. Read what the warranty covers, how long it runs and what fitting conditions apply. Most warranties require a qualified workshop, new fluids and filters, and replacement of the cooling parts that caused the original failure.
- Confirm the exact engine code. Read the code stamped on the block and compare it with the code for your car. Send us the last seven characters of the VIN and we confirm the match before anything is paid.
- Ask how the donor car was damaged. Most good used engines come from cars with body damage. A front-end impact can crack sensors, the timing cover or the sump; a rear or side impact usually leaves the engine untouched. The yard records the damage on each unit.
- Why your old engine failed. Before fitting a replacement, find out why the original failed. An overheating radiator, a blocked intercooler or a failed turbo can destroy a second engine if they are not fixed.
- Turbocharger shaft play and oil. Rotate the compressor wheel by hand. A small amount of side play is normal; in-and-out play or wheel contact with the housing is not. Oil pooled in the intake or intercooler pipes points to worn seals.
- Injector correction values. On a diesel that can be run before removal, the injector correction values show whether one injector is delivering more or less fuel than the others. Large deviations mean an injector is on its way out.
- Particulate filter and EGR history. Short-trip diesels clog their DPF and EGR systems. The engine may be fine, but ask whether the donor car had DPF warnings, and plan to clean or check your own filter before fitting.
- Timing chain noise. Listen for a rattle at the front of the engine for the first seconds after a cold start. On an engine that cannot be run, look at the chain guides through the oil filler or with the valve cover off.
- Gearbox-end timing chain. On this engine the timing chain sits at the gearbox end, so replacing it normally means removing the engine. If the chain has not been replaced, the time to do it is before the engine goes into your car.
BMW 318d replacement engine cost
Our 318d engine stock runs to 35 units, priced from 916,00 € to 4.623,00 € with a median of 1.863,00 €.
Prices depend on the exact version, the donor's mileage, how complete the engine is and the demand for that code. Higher-output versions, low mileage and dressed engines with turbo, injectors and ancillaries cost more; long blocks and higher mileage cost less.
318d engine prices by model year
| Model years | Units | From | Median | To |
|---|---|---|---|---|
| 2000–2004 | 1 | 2.347,00 € | 2.347,00 € | 2.347,00 € |
| 2005–2009 | 2 | 1.838,00 € | 2.529,00 € | 2.529,00 € |
| 2010–2014 | 6 | 1.863,00 € | 2.697,00 € | 2.979,00 € |
| 2015–2019 | 10 | 916,00 € | 1.835,00 € | 2.542,00 € |
| 2020–2024 | 6 | 1.402,00 € | 2.681,00 € | 4.623,00 € |
Engines from 2000–2004 have a median of 2.347,00 €, while units from 2020–2024 sit at 2.681,00 €. Newer engines usually cost more because they come from younger donor cars with lower mileage and later updates.
318d engine prices by mileage
| Donor mileage | Units | From | Median |
|---|---|---|---|
| 50,000 to 100,000 km | 1 | 2.681,00 € | 2.681,00 € |
| 100,000 to 150,000 km | 1 | 1.651,00 € | 1.651,00 € |
| over 150,000 km | 1 | 4.623,00 € | 4.623,00 € |
Mileage matters less than history on a well-maintained BMW engine, but it is a useful guide. A low-mileage unit from a younger car gives you more life for a modest premium.
3 of these come from G20 donor cars, priced from 1.441,00 € to 4.623,00 €. An engine from the same body is the most direct swap because the sump, mounts and ancillaries already match.
On top of the engine, budget for the workshop's labour and the parts that are best replaced while the engine is out: engine mounts, the rear main seal, cooling parts, a clutch or converter seal, fluids and filters.
Replacement engines in stock for the 318d
Here is a selection of 318d engines currently on our shelves, photographed in the yard. Click any of them for the full photographs, mileage and specification.
BMW F20 118d B47D20A Engine 20161.883,00 €
BMW F10 520d B47D20A Engine 20161.378,00 €
BMW F30 320d B47D20A Engine 20171.835,00 €
Buy BMW 118d F21 B47D20A Engine 20122.697,00 €
BMW 218d F22 B47D20A Engine 20181.296,00 €
BMW 320d F30 B47D20A Engine 20191.183,00 €
BMW B47D20A Engine2.116,00 €
B47D20A Complete Engine BMW 320d G201.560,00 €
B47D20A Complete Engine BMW 118d E872.623,00 €
BMW X3 20d G01 B47D20A Engine 20214.333,00 €
BMW 320d G20 B47D20A Engine 2023 · 247,000 km4.623,00 €
BMW B47D20A Engine1.537,00 €BMW F20 118d B47D20A Engine 2016 — 1.883,00 €, reduced from 2.250,00 €. It comes from a 2016 donor car, and 24 units are available. The listing shows every side of the engine and the fitted parts.
BMW F10 520d B47D20A Engine 2016 — 1.378,00 €, reduced from 1.750,00 €. It comes from a 2016 donor car, and 7 units are available. We can confirm fitment against your VIN the same day.
BMW F30 320d B47D20A Engine 2017 — 1.835,00 €, reduced from 2.250,00 €. It comes from a 2017 donor car, and 22 units are available. Ask the desk for compression figures or extra photographs before you order.
Buy BMW 118d F21 B47D20A Engine 2012 — 2.697,00 €, reduced from 3.600,00 €. It comes from a 2012 donor car, and 12 units are available. The listing shows every side of the engine and the fitted parts.
BMW 218d F22 B47D20A Engine 2018 — 1.296,00 €, reduced from 1.650,00 €. It comes from a 2018 donor car, and 22 units are available. The listing shows every side of the engine and the fitted parts.
BMW 320d F30 B47D20A Engine 2019 — 1.183,00 €, reduced from 1.950,00 €. It comes from a 2019 donor car, and 15 units are available. We can confirm fitment against your VIN the same day.
BMW B47D20A Engine — 2.116,00 €, reduced from 2.500,00 €. It comes from a recorded donor car, and 12 units are available. The listing shows every side of the engine and the fitted parts.
B47D20A Complete Engine BMW 320d G20 — 1.560,00 €, reduced from 2.350,00 €. It comes from a recorded donor car, and 18 units are available. The listing shows every side of the engine and the fitted parts.
B47D20A Complete Engine BMW 118d E87 — 2.623,00 €, reduced from 3.250,00 €. It comes from a recorded donor car, and 22 units are available. We can confirm fitment against your VIN the same day.
BMW X3 20d G01 B47D20A Engine 2021 — 4.333,00 €, reduced from 4.700,00 €. It comes from a 2021 donor car, and 10 units are available. Ask the desk for compression figures or extra photographs before you order.
BMW 320d G20 B47D20A Engine 2023 · 247,000 km — 4.623,00 €, reduced from 5.150,00 €. It comes from a 2023 donor car with 247,000 km, and 22 units are available. We can confirm fitment against your VIN the same day.
BMW B47D20A Engine — 1.537,00 €, reduced from 2.000,00 €. It comes from a recorded donor car, and 21 units are available. Ask the desk for compression figures or extra photographs before you order.
Will it fit my 318d?
Will the B47D20A fit my BMW G20 318d?
For the BMW G20 318d, the B47D20A is the factory engine and the one to order. The seventh 3 Series was built 2018–, and the B47D20A was produced 2014–2020, so check that your car's build date falls inside that window. Confirm the drive type (rear-drive or xDrive), the gearbox (manual or automatic) and the emissions standard, because these can change the sump, the flywheel and the software. Send us the VIN and we check all of it for you.
How much is a replacement engine for a BMW G20 318d?
We have 3 B47D20A engines from G20 donor cars, priced from 1.441,00 € to 4.623,00 €. Delivery to your door is included, and the engine carries a 12-month warranty when fitted by a qualified workshop. Add fitting labour and the parts you replace at the same time — seals, cooling parts and mounts — to estimate the total.
Engine swaps and upgrades for the 318d
These engines were fitted to other versions of the G20 at the factory, which makes them the most practical upgrades: the body was designed around them and many parts are shared.
| Engine | Factory model | Power | Gain |
|---|---|---|---|
| B47D20 | G20 320d | 190 hp | +40 hp |
| B47D20B | G20 320d | 190 hp | +40 hp |
| B48B20 | G20 330i | 258 hp | +108 hp |
| B48B20TU | G20 330i | 258 hp | +108 hp |
| B48B20B | G20 330i | 258 hp | +108 hp |
Can I fit the B47D20 in my 318d?
Yes, it is one of the more common upgrades. Both are diesel inline-4 engines, so the mounting points are similar, but the B47D20 needs its own wiring and engine control unit, the matching gearbox or clutch, and often a different sump, cooling and exhaust. The gain is 40 hp and 80 Nm. In Germany and most of Europe an engine swap must be inspected and registered.
Can I fit the B47D20B in my 318d?
Yes, it is one of the more common upgrades. Both are diesel inline-4 engines, so the mounting points are similar, but the B47D20B needs its own wiring and engine control unit, the matching gearbox or clutch, and often a different sump, cooling and exhaust. The gain is 40 hp and 80 Nm. In Germany and most of Europe an engine swap must be inspected and registered.
Can I fit the B48B20 in my 318d?
It is a full conversion: the B48B20 runs on petrol and the B47D20A on diesel, so the fuel system, wiring, engine control unit, instrument coding and usually the gearbox change too. The gain is 108 hp and 80 Nm. In Germany and most of Europe an engine swap must be inspected and registered.
Fitting a replacement engine in the 318d
- Inspect or replace the timing chain parts. Look at the guides and tensioner. On high-mileage engines, replacing them now costs far less than doing it later.
- Replace the rear timing chain if in doubt. On engines with the chain at the gearbox end, chain work needs the engine out. If the history is unknown, replace the chain, guides and tensioner before fitting.
- Prepare the turbo. Fit new oil feed and return seals, clean the intercooler and pipes of any oil or debris from the old engine, and prime the turbo with oil before starting.
- Code the injectors and bleed the fuel. Enter the injector correction codes into the ECU, check the glow plugs and bleed the fuel system so the engine does not crank dry.
- Check the particulate filter. If the old engine failed with oil or coolant entering the exhaust, the DPF may be contaminated. Check its back-pressure before relying on it.
- Fill with the right oil and prime it. Fill with new oil of the correct specification and a new filter. Crank with the fuel and ignition disabled until oil pressure builds.
- Coding and adaptations. On modern BMWs, the engine ECU must be matched to the car's immobiliser (CAS, FEM or BDC). Reset adaptations, register the battery and clear faults with diagnostic software.
- First start and leak check. Start the engine, let it idle and watch oil pressure, temperature and fault codes. Check for leaks and bleed the cooling system.
- First 1,000 km. Drive gently for the first few hundred kilometres, vary the engine speed and avoid full load. Change the oil and filter after about 1,000 km to remove any assembly debris.
The full fitting and first-start procedure.
Delivery, warranty and payment
Every 318d engine we sell is drained, sealed at each opening, strapped to a heat-treated pallet and shrink-wrapped before it leaves Hamburg. You receive photographs of the packed engine and a tracking number.
Delivery is door to door and included in the price. Most European addresses receive the engine within five to ten working days; Germany and its neighbours are usually faster.
Every engine carries a 12-month warranty on eligible internal failure when a qualified workshop fits it with new fluids and filters. Payment is by card, bank transfer or crypto; your invoice is emailed as soon as you order.
All G20 engines · B47 engine guide · BMW 318d engines for sale · Send us your VIN




