EN DE

BMW 540d G30

2017-2023Last reviewed: May 2026 · How this report is builtMay 2026

2017-2023 · 3.0L B57 twin-turbo inline-6 diesel (315-335 hp) xDrive AWD

The 540d is the performance diesel of the G30 5 Series, pairing the B57 twin-turbo 3.0-litre inline-six with xDrive all-wheel drive and the ZF 8HP automatic. Pre-LCI models produce 315 hp and 680 Nm, while the 2020 facelift raised output to 335 hp and 700 Nm. It sits between the 530d and the quad-turbo M550d in the lineup. The B57 is widely regarded as one of BMW's strongest modern diesel engines, but the twin-turbo system, complex emissions equipment, and xDrive drivetrain all add layers of potential expense.

Strong and refined B57 inline-6 Excellent ZF 8HP automatic
EGR cooler recall (fire risk) Complex emissions and xDrive systems
Buy if: You want a fast, refined diesel executive for long motorway distances and can verify all EGR recalls completed and service history is thorough.
Avoid if: You mostly drive short urban trips (DPF clogging, AdBlue issues) or want the simplicity and lower risk of the single-turbo 530d.
Expected Annual Maintenance Costs
€1,050 - €1,900/year
15,000 km/year
Fixed costs
€650-1,050
Risk buffer
€400-850
Common Problems
Robust engine, but diesel complexity demands proactive maintenance
The B57 twin-turbo inline-six is fundamentally a strong engine that can comfortably exceed 250,000 km when properly maintained. The main ownership risks are not the engine itself but the emissions equipment (EGR, DPF, AdBlue), the xDrive transfer case, and optional air suspension. The EGR cooler recall must be verified as completed on any purchase candidate. Cars used for regular motorway driving with documented service histories present significantly lower risk than urban-use examples with patchy records.
Pre-Purchase Inspection Checklist
General checks
Specific for this vehicle
Recalls and Technical Service Bulletins
EGR cooler internal leak / fire risk (2017-2022 production, multiple recall expansions) Critical - verify completed
Intake manifold inspection related to EGR cooler recall (2017-2022) Verify completed
Crankshaft position sensor firmware (2018 models) Verify if applicable
Rearview camera display settings may disable backup image (2018-2019 models) Verify if applicable
The EGR cooler recall is particularly critical for the 540d and has been expanded multiple times, most recently in 2024 covering nearly 800,000 diesel BMW engines across multiple model series. Contact BMW with the VIN to verify all recall campaigns have been completed. Some owners report issues recurring even after the initial recall repair, so inspect regardless.
Warranty Status
Factory warranty (2 years, later 3 years) Expired on most used cars. Cars registered after Nov 2016 had 2+1 year warranty.
BMW Extended Warranty Available through BMW dealers, typically up to 5 years from first registration
Rust perforation warranty 12 years from first registration
Emissions system EGR cooler covered under recall regardless of warranty status
Most used 540d G30 models will be outside their original factory warranty. BMW's 2+1 warranty (3 years total for cars from Nov 2016 onward) may still cover very late pre-LCI or early LCI models if purchased recently. The EGR cooler recall repair is free regardless of warranty status or mileage.

↔ Also consider

BMW 520d G30 2017-2023 Same platform with B47 four-cylinder diesel. Cheaper to run overall. Similar emissions system issues but avoids twin-turbo and xDrive complexity. Mercedes-Benz E220d W213 2016-2023 Direct competitor with OM654 diesel. Known for rocker arm and camshaft wear issues. Optional AIRMATIC suspension adds repair cost if equipped. Audi A6 50 TDI C8 2018-2025 Competitor with 3.0 V6 TDI and quattro. Well-documented 48V BSG defect (extended warranty). Similar emissions system complexity. BMW 530d F10 2010-2016 Previous generation with N57 diesel. Simpler single-turbo setup. Same EGR cooler recall history. N57 timing chain tensioner is a known weak point. BMW 540i G30 2017-2023 Same platform with B58 petrol inline-6. No diesel-specific issues (DPF, EGR, AdBlue). Generally considered more reliable long-term but higher fuel costs.

This report is for informational purposes only and does not constitute professional advice. Estimates may be inaccurate. Always have a qualified specialist inspect the vehicle before purchase. We accept no liability for decisions made based on this information.