⚡ Limited Time: Get your Carfax and Autocheck for $4.50 when you sign up! - instant delivery
CheapCarfaxAutocheck
Pricing Membership FAQ Support Blog
← All articles / Buying Guides
Buying Guides November 18, 2026 · 6 min read

Hyundai Elantra VIN Decoder: Trim, Engine and Plant Codes

Hyundai reused Elantra trim letters across years and between gas and hybrid cars. Here is how to read the VIN so an SE does not pass for an N Line.

CE
CheapCarfaxAutocheck Editorial Team
Vehicle History Research Team
Hyundai Elantra VIN Decoder: Trim, Engine and Plant Codes

To decode a 2021-2026 Hyundai Elantra VIN, read the first three characters for the plant group (KMH means Korea, 5NP means Alabama), position 5 for the trim, position 8 for the engine, and the 10th and 11th characters for year and factory. The one that trips people up is position 5, because Hyundai reused the same letters for different trims over the years, and a letter that means Limited on a hybrid means something else on a gas car. Mixups like that are one way a plain SE ends up listed online as an N Line, and the seller may honestly not know.

Everything below comes from the VIN decoding guides Hyundai files with NHTSA under 49 CFR Part 565, which we pulled again in November 2026. Those filings are the source that free decoders are supposed to follow, so when a decoder app and the filing disagree, we trust the filing.

Positions 1 to 3: Korea or Alabama

Most seventh-generation Elantras start with KMH, the Hyundai passenger car code for cars built in Ulsan, Korea. Hyundai's 2021, 2022 and 2023 filings also list an Elantra built by Hyundai Motor Manufacturing Alabama, and those VINs start with 5NP. The 2024 filing for the gas Elantra lists only the Korean car, and the 2025 and 2026 guides show Ulsan as the plant for the gas car, the hybrid and the Elantra N.

So a 5NP Elantra is a 2021 to 2023 car, full stop. If somebody lists a 2025 Elantra and the VIN starts with 5NP, either the year in the ad is wrong or the VIN does not belong to that car. Both are worth a phone call before you drive anywhere.

Get articles like this every week
Field guides, red flags, and the occasional discount.

Positions 4 to 7: line, trim, body and restraints

Position 4 is L for the Elantra line. The hybrid and the Elantra N also use L there, so position 4 alone will not tell you which one you are looking at. Position 6 is 4 for the four-door sedan, which is the only body. Position 7 is the restraint code, and in the 2021 and 2026 restraint tables the difference between A and D is second-row side air bags. D has them and A does not.

Position 5 is the trim, and this is where it gets messy. Here is what the filings say:

  • L: SE on every gas Elantra from 2021 to 2026.
  • M: SEL from 2021 to 2024, SEL Sport on 2025 and 2026 cars. A revision filed May 13, 2026 adds SEL Sport Plus to M on the 2026 car.
  • N: SEL with the Premium package on 2021 and 2022 gas cars, and SEL Premium on Korean-built 2023 cars, a trim Hyundai added in a 2025 revision. On a hybrid, N is the Limited.
  • P: Limited on the gas car.
  • R: N Line, the 1.6 turbo trim. The Alabama charts for 2021 and 2022 do not list R at all.
  • S: SEL with the Convenience package through 2025, then SEL Sport Premium on 2026 cars.
  • W: Elantra N.

On a hybrid, M covers Blue (and from 2025 the SEL Sport hybrid as well) and N is Limited. Honestly, we would not try to memorize this. Write down the fifth character, check the model year, then find that year's row. A 2022 N and a 2022 hybrid N are two different cars at two different prices.

Position 8: engine, the fastest way to catch a fake N Line

The engine code is the most useful single character on this car, because the trims are mostly separated by what is under the hood. The filings list:

  • G: 2.0-liter MPI four-cylinder, rated 147 hp in the 2021 and 2022 guides. This is SE, SEL and Limited territory.
  • F: 1.6-liter turbo, 201 hp in the same guides. That is the N Line.
  • J: 1.6-liter hybrid with an electric motor.
  • K: 2.0-liter turbo, the Elantra N.

If the ad says N Line and position 8 is G, it is not an N Line, no matter what badges are on the trunk. Badges are cheap and they peel off and stick on in minutes. If the ad says Elantra N and position 5 is not W or position 8 is not K, walk away or at least drop your offer hard. Re-badged cars are common enough that we check the eighth digit before reading the rest of the listing. Our guide to finding the engine type by VIN covers the same idea for other makes.

Positions 9 to 17: check digit, year, plant, serial

Position 9 is the check digit, calculated from the other 16 characters by the formula in 49 CFR 565.15. A typo in a listing almost always breaks it, which is why decoders sometimes reject a VIN that was copied wrong. The tenth character gives the year, and for this generation it runs M (2021), N (2022), P (2023), R (2024), S (2025) and T (2026). Our model year digit guide explains why the letters skip I, O, Q, U and Z. Position 11 is U for Ulsan or H for Alabama, and 12 to 17 are the serial number.

So a VIN like KMHLM4DG... with an R in position 10 reads as a Korean-built 2024 Elantra SEL with the 2.0 engine. Swap the G for an F and the M for an R and you have a 2024 N Line. Two characters, and a very different car to drive and to price.

What the VIN does not tell you

A decoded VIN describes how the car left the factory. It says nothing about the hit it took in a parking lot, an odometer swap, or the salvage auction it went through two states ago. It also will not show open recalls; for that, run the VIN at NHTSA. A 2024 Elantra, for example, may fall under recall 24V-308 for an EGR valve short that can cut drive power, which also covers some 2024 Kona and Venue models. Our Hyundai recall check by VIN walks through the lookup.

If a decoder app shows a trim that does not match the car, our post on why VIN decoders show the wrong trim covers the usual reasons, and the used Elantra buying guide has the inspection side. For accident, title and odometer history you need an actual report. CarVins holds a license to resell CARFAX and AutoCheck reports; it is an independent company, with no tie to either brand or to Experian. Lately a single report has run around $5.50 for guests and $4.50 for members, with both reports together near $6.75, while CARFAX's own retail price sits closer to $39.99 to $44.99. Those numbers move, so confirm at checkout before you pay.

Sources

Run a report
Don't buy without checking the VIN
Carfax + AutoCheck from $4.50 · Instant · 60 seconds
Run a report →