BMW 5er-Reihe G30/G31/F90 540d, 320 PS, 8-speed automatic, all-wheel drive (2017–2020)
- Power
- 320 PS (235 kW)
- Engine codes
- B57D30B
- Gearbox
- 8-speed automatic
- Production years
- 2017–2020
- Running cost per month
- €660
- Fuel
- Diesel
- Median price
- €25,980
- Reliability
- 3/5
- DIY
- 2/5
Research for this car
- Generation guide BMW 5 Series G30/G31 (2017-2020): known problems and buying guide
Check the 530e battery and diesel OBD recalls and the oil level before you buy, then test the iDrive screen and the panoramic roof.
- Gearbox guide ZF 8HP 8-speed automatic (BMW Steptronic): problems, costs and what to check
A solid 8-speed when its fluid is changed on time. Buy with oil records and a clean scan, and avoid one that shudders or has run in limp mode.
Known issues for this car
| Issue | Affects | Typical km | Repair cost | Source |
|---|---|---|---|---|
| 530e high-voltage battery recall | 530e built 20 January to 18 September 2020 | Not stated | No confirmed price | Generation guide |
| Oil loss | Engine not named; firmenauto says it shows on the newest cars | Not stated | No confirmed price | Generation guide |
| iDrive, phone link and assistant faults | All G30 and G31 | Not stated | No confirmed price | Generation guide |
| Active bonnet faults | All 5 Series | Not stated | No confirmed price | Generation guide |
| Panoramic roof and interior creaks | Cars with panoramic roof | Not stated | No confirmed price | Generation guide |
| Harsh, delayed or jerky shifts | All 8HP cars, worst with old fluid | 60,000 to 120,000 km | 350 to 650 USD fluid service (US, 2026) | Gearbox guide |
| Valve body and solenoid faults | All 8HP cars | 100,000 to 200,000 km without fluid changes | 1,800 to 2,800 USD mechatronic exchange (US, 2026) | Gearbox guide |
| Clutch packs and bushings wear | All 8HP cars, worst on first-generation 8HP45 and 8HP70 | Not stated | No confirmed price | Gearbox guide |
| Torque converter shudder | All 8HP cars | 180,000 to 300,000 km | No confirmed price | Gearbox guide |
| Connector sleeve leak | All 8HP cars | About 129,000 to 209,000 km | 700 to 1,500 USD sleeve seal repair (US, 2026) | Gearbox guide |
| Oil pan, filter and cooler-line leaks | All 8HP cars | From 150,000 km | No confirmed price; the pan comes with the oil service | Gearbox guide |
Before you buy this car
From the generation guide
- 530e battery recall. If the car is a 530e built from 20 January to 18 September 2020, ask the dealer for proof that the battery recall was done. Bad result: no record of the battery work. The battery can short circuit and catch fire.
- Oil level. Check the oil on the dipstick when the engine is cold, and again after a drive. Ask for the record of oil top-ups. Bad result: oil added between services. No scanner is needed.
- iDrive and assistants. On a test drive, pair a phone, use the navigation and try the parking assist. A scanner reads stored faults. Bad result: screen dropouts, a phone that will not connect, or false tyre pressure warnings.
- Active bonnet. Drive for a while on a motorway. Bad result: a bonnet that trembles, or a bonnet warning on the dashboard.
- Panoramic roof and rear seat. Open and close the roof in cold weather and listen for creaks. Sit in the rear and check the seatbelt buckles and seat folding for rattles. Bad result: creaks, a roof that jams, or rattles on a cold start.
- Starter recall. Mostly facelift cars. For a car built from July 2020, check the VIN for KBA reference 16790R. Bad result: an open campaign. The fix is a starter replacement.
From the gearbox guide
- Read the gearbox fault memory with a BMW-capable scanner. Bad result: pressure or solenoid codes such as 4F84, 4F87, P189C or P0748, or a past limp mode.
- Ask for fluid and filter invoices. Bad result: no fluid change by 80,000 to 120,000 km, or a change without an adaptation reset.
- Drive the car from cold and select Drive and Reverse. Bad result: a hard 1-2 shift, or a delay of 1-3 seconds before the gear engages.
- Drive 15 minutes in town, then under load. Bad result: jerky 2-3 shifts, flaring, slipping or a burnt smell.
- Hold a steady light throttle at low speed. Bad result: a shudder or vibration, which points to the torque converter lock-up clutch.
- Look under the car on a lift. Bad result: oil at the wiring connector on the case, on the plastic pan or on the cooler lines.
Running costs
| Operational | €211 |
|---|---|
| Workshop | €201 |
| Fixed costs (tax, insurance) | €248 |
| Total per month | €660 |
| New-car depreciation (not included) | €168 |
ADAC figures for 15,000 km a year over 60 months
Market
Listings on mobile.de in this generation with this fuel, gearbox and power.
- Listings
- 183
- 25th percentile
- €21,500
- Median price
- €25,980
- 75th percentile
- €29,900
- Median mileage
- 158,500 km
- Median first registration
- 2018
- Dealer share
- 72.7%
Check a listing
Prices by first registration
| First registration | Listings | Median price | Median mileage |
|---|---|---|---|
| 2020 | 26 | €27,590 | 159,000 km |
| 2019 | 56 | €27,999 | 138,000 km |
| 2018 | 73 | €22,999 | 174,000 km |
| 2017 | 28 | €24,999 | 157,099 km |
Medians only for years with at least 5 listings. Many cars are first registered after production ends, so years can run past the build years.
Price history
| Month | Listings | Median price | Middle half | Median mileage |
|---|---|---|---|---|
| Nov 2026 | 183 | €25,980 | €21,500 – €29,900 | 158,500 km |
| Oct 2026 | 183 | €25,980 | €21,500 – €29,900 | 158,500 km |
Median asking price at the last snapshot of each month.
ADAC versions
All 32 ADAC versions
| Version | Power | Body | Doors | Production years | Running cost per month |
|---|---|---|---|---|---|
| 540d xDrive Steptronic | 320 PS | Saloon | 4 | 2017–2018 | €618 |
| 540d Sport Line xDrive Steptronic | 320 PS | Saloon | 4 | 2017–2018 | €647 |
| 540d Luxury Line xDrive Steptronic | 320 PS | Saloon | 4 | 2017–2018 | €647 |
| 540d M Sportpaket xDrive Steptronic | 320 PS | Saloon | 4 | 2017–2018 | €696 |
| 540d xDrive Steptronic | 320 PS | Saloon | 4 | 2018 | €635 |
| 540d Sport Line xDrive Steptronic | 320 PS | Saloon | 4 | 2018 | €668 |
| 540d Luxury Line xDrive Steptronic | 320 PS | Saloon | 4 | 2018 | €668 |
| 540d M Sportpaket xDrive Steptronic | 320 PS | Saloon | 4 | 2018 | €710 |
| 540d xDrive Steptronic | 320 PS | Saloon | 4 | 2018–2019 | €666 |
| 540d Sport Line xDrive Steptronic | 320 PS | Saloon | 4 | 2018–2019 | €702 |
| 540d Luxury Line xDrive Steptronic | 320 PS | Saloon | 4 | 2018–2019 | €702 |
| 540d M Sportpaket xDrive Steptronic | 320 PS | Saloon | 4 | 2018–2019 | €751 |
| 540d xDrive Steptronic | 320 PS | Saloon | 4 | 2019–2020 | €663 |
| 540d Sport Line xDrive Steptronic | 320 PS | Saloon | 4 | 2019–2020 | €692 |
| 540d Luxury Line xDrive Steptronic | 320 PS | Saloon | 4 | 2019–2020 | €692 |
| 540d M Sportpaket xDrive Steptronic | 320 PS | Saloon | 4 | 2019–2020 | €737 |
| 540d Touring xDrive Steptronic | 320 PS | Estate | 5 | 2017–2018 | €581 |
| 540d Touring Sport Line xDrive Steptronic | 320 PS | Estate | 5 | 2017–2018 | €610 |
| 540d Touring Luxury Line xDrive Steptronic | 320 PS | Estate | 5 | 2017–2018 | €610 |
| 540d Touring M Sportpaket xDrive Steptronic | 320 PS | Estate | 5 | 2017–2018 | €658 |
| 540d Touring xDrive Steptronic | 320 PS | Estate | 5 | 2018 | €598 |
| 540d Touring Sport Line xDrive Steptronic | 320 PS | Estate | 5 | 2018 | €630 |
| 540d Touring Luxury Line xDrive Steptronic | 320 PS | Estate | 5 | 2018 | €630 |
| 540d Touring M Sportpaket xDrive Steptronic | 320 PS | Estate | 5 | 2018 | €672 |
| 540d Touring xDrive Steptronic | 320 PS | Estate | 5 | 2018–2019 | €632 |
| 540d Touring Sport Line xDrive Steptronic | 320 PS | Estate | 5 | 2018–2019 | €668 |
| 540d Touring Luxury Line xDrive Steptronic | 320 PS | Estate | 5 | 2018–2019 | €668 |
| 540d Touring M Sportpaket xDrive Steptronic | 320 PS | Estate | 5 | 2018–2019 | €710 |
| 540d Touring xDrive Steptronic | 320 PS | Estate | 5 | 2019–2020 | €622 |
| 540d Touring Sport Line xDrive Steptronic | 320 PS | Estate | 5 | 2019–2020 | €651 |
| 540d Touring Luxury Line xDrive Steptronic | 320 PS | Estate | 5 | 2019–2020 | €651 |
| 540d Touring M Sportpaket xDrive Steptronic | 320 PS | Estate | 5 | 2019–2020 | €693 |