To tell which BMW X4 you are looking at, read characters 4 through 7 of the VIN. On first-generation trucks (2015-2018), a VIN starting 5UXXW3 decoded as the xDrive28i, 5UXXW5 as the xDrive35i and 5UXXW7 as the M40i. On the second generation from 2019, 5UXUJ3 came back as the xDrive30i and 5UXUJ5 as the M40i, while the full X4 M switches to a different prefix entirely, 5YMUJ0. We checked every one of those prefixes in NHTSA's vPIC decoder on November 30, 2026. It matters because plenty of base X4s wear M Sport bumpers and fake quad tips, and from the curb they look like the expensive version.
Why the version matters on a used X4
The price gap between a four-cylinder X4 and an M40i or X4 M is big, and so is the difference in what can go wrong once the warranty is gone. vPIC listed the four-cylinder xDrive28i at 240 to 241 hp, the xDrive35i six at 300 hp, the M40i at 355 hp in both generations, and the 2021 X4 M at 473 hp. Trunk badges are cheap and M Sport packages were popular, so a lot of base trucks wear the look. We have seen listings describe a 30i as "M package" as if that meant the engine. It does not. The VIN does not care what is on the tailgate, which is the whole point of reading it.
How the X4 VIN is laid out
Every X4 we decoded was built in Greer, South Carolina, according to vPIC. The 5UX prefix is BMW's SUV code from that plant, while 5YM showed up on the X4 M, which is BMW M's own prefix. Positions 4 through 8 describe the model and engine, the 9th is a check digit, the 10th is the model year (F was 2015, H 2017, J 2018, K 2019, L 2020, M 2021) and the 11th is the plant code. The federal rules on what each position must contain are in 49 CFR Part 565. For a full walk through all 17 characters, see our guide to decoding any VIN, and for the rest of the range, our BMW VIN decoder.
The patterns we confirmed
- 5UXXW3C5 (2015-2018): X4 xDrive28i, all-wheel drive, 2.0-liter four. vPIC listed 241 hp on 2017 and 240 hp on 2018 tests.
- 5UXXW5C5 (2015-2018): X4 xDrive35i, 3.0-liter six, 300 hp. On the 2015 test vPIC listed the cylinder count as four, which is a data error, so trust the 3.0-liter and trim lines over that field.
- 5UXXW7C5 (2017-2018): X4 M40i, 3.0-liter six, 355 hp.
- 5UXUJ3C5 (2019): X4 xDrive30i, four-cylinder, 240 hp. vPIC also showed a 3.0-liter displacement on this pattern, which does not match a four-cylinder, so we would ignore that one field.
- 5UXUJ5C5 (2019): X4 M40i, 3.0-liter six, 355 hp.
- 5YMUJ0C0 (2020-2021): X4 M or M Competition. On 2021 vPIC listed 473 hp.
Use the generation and the year together as a free sanity check. First-generation trucks use XW in positions 4 and 5, and the second generation we tested uses UJ. So if a listing claims a 2020 X4 but the VIN reads 5UXXW, somebody typed something wrong or the paperwork belongs to a different truck, and you want to know which. The same goes for the X4 M: a truck sold as an X4 M that starts 5UX instead of 5YM deserves a very direct question. The X3 is the X4's close sibling and often shows up next to it in search results, so if you are cross-shopping, our X3 VIN decoder covers that truck separately. Do not assume a code you saw on an X3 means the same thing on an X4.
What we could not confirm
We did not get clean vPIC results for 2022 and later X4s in this round, so we are not going to guess at those codes here. If you are looking at a 2022-2025 truck, decode the full 17-character VIN in vPIC yourself and ask a BMW dealer to print the build sheet. Most will if you are polite. That printout also answers the options question, which the VIN never does: the Premium and Executive packages, the driver assistance pack, the Harman Kardon audio and the adaptive suspension all have to be confirmed on paper or in person.
Check digit and the paperwork match
The 9th character is computed from the other 16 under the federal formula, so a single typo usually makes the whole VIN fail. When vPIC flags the check digit, get a clear photo of the windshield plate and decode again from that. Then check that the plate, the door-jamb label and the title all say the same thing. Typos are common. Cloned VINs are rarer, but they exist, and a mismatch between those three is usually how they get caught.
A quick routine before you drive out
Ask the seller to text pictures of the windshield VIN tag and the door sticker. Read characters 4 through 7, compare the 10th to the claimed year, and decide what you are actually going to see. If the ad says M40i and the VIN says XW3, the conversation is already over. At the truck, look for oil weeping around the valve cover and oil filter housing, which are common places to find oil on older BMW engines, and check panel gaps around the hood and front fenders, where front-end repairs tend to show first. Honestly, the service records matter as much as the badge, and they need to carry the same VIN as the truck.
Recalls, history and price
Run the VIN through NHTSA's recall lookup and read our X4 recall check for used buyers plus the used BMW X4 buying guide. Pull your own history report rather than relying on a PDF the seller sends, since edited reports are easy to make. Our recent pricing has been about $5.50 per CARFAX or AutoCheck report at guest checkout, around $4.50 on a membership and roughly $6.75 for the pair, while CARFAX and AutoCheck themselves list $39.99 to $44.99. That was late November 2026, so confirm at checkout. If the report shows a total-loss record, an auction sale or a title from a state nobody mentioned, slow down.

Comments (0)
No comments yet. Be the first to share your thoughts!
Log in to leave a comment.