Part of the data ring
RunCost
Logbook · Midsize Cars · 2022–2027

BMW 540i xDrive Sedan

What it costs to keep fuelled

$1,714a year, fuel only

The 2027 BMW 540i xDrive Sedan is EPA-rated at 28 MPG combined (26 city / 32 highway). Over 15,000 miles a year that is about 536 gallons, $1714 a year in fuel, or $0.114 per mile at $3.20/gal.

Across its full 2022–2027 run it averages 27 MPG, improving by 3 MPG over 6 model years.

LOGBOOK ENTRY · 2027 BMW 540I XDRIVE SEDAN SHEET BMW-540I-XDRIVE-SEDAN · 6 YEARS ON FILE
28 MPG COMBINED 0 60

The band is how far one gallon carries it: 28 of the 60 MPG this scale runs to. The square tick is the midsize cars average, 27.2.

Fuel, per year
$1,714 at 15,000 mi
Per mile
$0.114
Per kilometre
$0.071
Gallons burned/yr
536

1 mile = 1.609344 km · fuel at $3.20/gal, fixed JUL 2026

Test figure — not a road result

SOURCE·US EPA fuel-economy test data·FUEL ASSUMED AT $3.20/GAL FROM JUL 2026·REVIEWED JUL 2026

Combined28MPG · 2027
Cost per mile$0.114at $3.20/gal
Fuel per year$171415,000 miles
Class rank61of 261

How this is worked out

  1. Start from the EPA combined figure for the model year — a laboratory test cycle run to a fixed procedure, not a road result. Where a year sold several engines or drivetrains, the trims are averaged and the trim count is printed beside the row so you can see how much averaging is behind it.
  2. Fix a pump price. This site keeps one reference price, $3.20 a US gallon, fixed JUL 2026 and printed next to every dollar figure it produces. It is an assumption with a date on it, not a quote — put your own price in.
  3. Fix an annual distance. Every annual figure on this site uses 15,000 miles a year, roughly the US average. A cost per year with no stated distance is not a number, it is a mood.
  4. Divide distance by economy for gallons, multiply by price for the year's fuel, divide price by economy for one mile. The per-kilometre line is that last figure divided by 1.609344 — the same money, in the unit most of the world drives in.
  5. Stop there. No depreciation, no tyres, no insurance, no servicing. This is the fuel line of the ledger and it is labelled as one; depreciation usually dwarfs everything on it.
gallons/yr = miles/yr ÷ MPG
fuel  $/yr = gallons/yr × $/gal
cost  $/mi = $/gal ÷ MPG
cost  $/km = cost $/mi ÷ 1.609344

The full method, the licence note, and what a test figure cannot tell you →

Re-run the ledger at another pump price

Every line above rests on one pump price. Here is the same entry re-costed at six others, because the price is the part that changes while the test sheet stays put.

Fuel pricePer mile10,000 mi/yr15,000 mi/yr20,000 mi/yr
$2.50/gal $0.089 $893 $1339 $1786
$3.00/gal $0.107 $1071 $1607 $2143
$3.20/gal $0.114 $1143 $1714 $2286
$3.50/gal $0.125 $1250 $1875 $2500
$4.00/gal $0.143 $1429 $2143 $2857
$4.50/gal $0.161 $1607 $2411 $3214
$5.00/gal $0.179 $1786 $2679 $3571

SOURCE·US EPA fuel-economy test data·FUEL ASSUMED AT $3.20/GAL FROM JUL 2026·REVIEWED JUL 2026

The whole service history, sheet by sheet

6 model years on file. Read down the combined column: a nameplate that got heavier shows it here long before any brochure admits it.

Every model year of the BMW 540i xDrive Sedan the EPA has a test sheet for, averaged across trims.EPA DATA · JUL 2026
YearCombinedCityHighwayEPA fuel cost/yrCO₂ g/miTrims
2027 28 MPG2632 $27503101
2026 28 MPG2632 $27503081
2025 28 MPG2633 $27503071
2024 28 MPG2633 $27503071
2023 25 MPG2229 $31003521
2022 25 MPG2229 $31003521

Where a model year offered several engines or drivetrains, the figure is the average across all EPA-tested trims that year — the trim count is shown so you can see how much averaging is involved.

SOURCE·US EPA fuel-economy test data·FUEL ASSUMED AT $3.20/GAL FROM JUL 2026·REVIEWED JUL 2026

Marked against the rest of the midsize cars bay

Among the 261 midsize cars models tracked here, the BMW 540i xDrive Sedan ranks 61 on current figures, against a class average of 27.2 MPG — the square tick on the gauge above.

Closest more-efficient alternatives in the same class: Mazda 3 5-Door 2WD (28.5), Audi A5 Sportback quattro (29), Buick LaCrosse eAssist (29), MINI Cooper SE Countryman All4 (29), Nissan Altima SR (29).

Tailpipe CO₂ is rated at 310 grams per mile, which works out to roughly 4.7 tonnes a year at 15,000 miles.

Questions asked across the counter

What MPG does the BMW 540i xDrive Sedan get?

The 2027 BMW 540i xDrive Sedan is rated at 28 MPG combined by the EPA — 26 city and 32 highway. Across all 6 model years in the database it averages 27 MPG, ranging from 25 to 28 depending on year and trim.

How much does a BMW 540i xDrive Sedan cost in fuel per year?

At 28 MPG and 15,000 miles a year, it burns about 536 gallons — roughly $1714 a year with fuel at $3.20 a gallon, or $0.114 per mile. The EPA's own published annual figure for the 2027 model is $2750.

Has the BMW 540i xDrive Sedan become more efficient over time?

Yes. It has gone from 25 MPG in 2022 to 28 in 2027 — an improvement of 3 MPG, or 12% across 6 model years.

Is the BMW 540i xDrive Sedan efficient for its class?

It ranks 61 of 261 in the Midsize Cars class on current figures, against a class average of 27.2 MPG. That is 0.8 better than typical for the class.

Same class, nearest economy first — the ones a buyer is genuinely choosing between.

SOURCE·US EPA fuel-economy test data·FUEL ASSUMED AT $3.20/GAL FROM JUL 2026·REVIEWED JUL 2026

Cost per mile, per kilometre and per year are computed at a reference price of $3.20 a gallon over 15,000 miles, fixed JUL 2026 — set your own pump price. Estimates based on official test figures and average fuel prices. Real-world consumption varies with driving style, load, terrain and maintenance.

See all 10 sites in this family, with what each one answers

Published by

Amit Sharma

Auckland real-estate agent and marketer. Builds free, sourced data tools.