Verification

How an IMEI Is Built: TAC, Serial Number and the Luhn Check Digit

An IMEI is not a random string. It is a structured 15-digit number with three parts that each mean something, ending in a self-check digit you can verify by hand. Understanding the anatomy is what lets a wholesale buyer catch typos and fabricated numbers in a manifest before paying for a lot. Here is the full breakdown, with a worked example and a validator you can use right on this page.

A smartphone screen displaying a 15-digit IMEI number next to its printed label.
Key takeaways
  • An IMEI is 15 digits: an 8-digit TAC, a 6-digit serial number, and a 1-digit Luhn check digit.
  • The TAC is assigned by the GSMA and identifies the brand owner and exact model.
  • The final digit is a Luhn checksum computed from the first fourteen, so a valid IMEI self-checks.
  • Bulk buyers run the Luhn check on a manifest first, because typo'd or fabricated IMEIs fail it for free.
  • A valid checksum does not mean the device is clean. Blacklist status needs a separate registry lookup.

The short answer

An IMEI is a 15-digit identifier made of three parts: the first 8 digits are the Type Allocation Code (TAC) assigned by the GSMA to identify the manufacturer and model, the next 6 digits are a serial number assigned by the TAC holder to identify the individual device, and the final digit is a Luhn check digit calculated from the first fourteen. Because that last digit is a mathematical function of the others, a correctly formed IMEI validates against itself, which is why the checksum is the first filter a careful buyer applies to a list of IMEIs.

That structure is defined in the GSMA's IMEI allocation rules and is the same across every phone on a mobile network. Once you can read the three parts, an IMEI stops being an opaque string and becomes a small set of facts: which model, which unit, and whether the number is even internally consistent. The rest of this guide walks each part, computes the check digit by hand, and shows where the IMEI's usefulness ends.

The 15-digit anatomy

Every IMEI splits into the same three fields. Reading them in order tells you the model, the unit, and the self-check.

FieldDigitsAssigned byWhat it identifies
TAC (Type Allocation Code)8GSMABrand owner and exact model
Serial number (SNR)6TAC holder (manufacturer)The individual device within that model
Check digit1Computed (Luhn)Self-check over the first 14 digits

Take the example IMEI 353161052142844. The TAC is 35316105, the serial number is 214284, and the check digit is 4. According to the GSMA and to reference sources such as the Wikipedia IMEI entry and TUV SUD's IMEI documentation, this 8-6-1 layout is fixed, which is why any string that is not exactly 15 digits, or whose last digit fails the Luhn test, cannot be a valid IMEI.

What the TAC reveals

The TAC is the part of the IMEI that carries meaning you can look up. It maps to a manufacturer and a specific model, because the GSMA issues TACs to brand owners for each device type.

Two phones of the same model, coming off the same line, share the same TAC. Their serial numbers differ. So a TAC lookup answers make and model, not identity: it will tell you that a device is, say, a particular iPhone or Galaxy model, but not which individual handset you are holding. For a wholesale buyer, that is still valuable. If a manifest claims a lot of one model but the TACs decode to a different model, or to a mix of models, that mismatch surfaces immediately from the numbers alone, before anything is unboxed. TAC-level decoding is exactly what tools like our bulk IMEI check surface across a whole list at once.

Trading this stock yourself? Aikon is a live floor for wholesale electronics: registered companies post buy and sell offers and deal with each other directly. Join free.

The Luhn check digit, worked by hand

The final IMEI digit is not data, it is a checksum. It is produced with the Luhn formula, the same algorithm used on payment card numbers, and you can reproduce it by hand in a minute.

The method: take the first 14 digits. Starting from the second digit, double every second digit. If a doubled value is greater than 9, subtract 9. Add all the resulting values together. The check digit is whatever you must add to that sum to reach the next multiple of ten. Here is the full computation for the base 35316105214284.

PositionDigitActionValue added
13keep3
25double to 10, subtract 91
33keep3
41double2
56keep6
61double2
70keep0
85double to 10, subtract 91
92keep2
101double2
114keep4
122double4
138keep8
144double to 88
Sum46

The digit sum is 46. The next multiple of ten is 50, and 50 minus 46 is 4, so the check digit is 4 and the complete IMEI is 353161052142844. To validate an existing 15-digit IMEI instead, run the same doubling rule across all 15 digits: if the total is a multiple of ten, the checksum is correct. Change any single digit and the total stops being a multiple of ten, which is exactly how the check catches a mistyped number.

Try it: IMEI checksum validator

Paste a 15-digit IMEI below. The Luhn check runs entirely in your browser, with no network calls and nothing stored.

IMEI vs IMEI2 vs MEID vs ESN vs serial number

Several device identifiers look similar and often sit on the same label. They answer different questions and belong to different network technologies.

IdentifierFormatTechnologyWhat it is
IMEI15 decimal digitsGSM, UMTS, LTE, 5GThe device identity on mobile networks
IMEI215 decimal digitsDual-SIM devicesThe second IMEI, one per SIM slot or radio
MEID14 hexadecimal digitsCDMA2000The CDMA equivalent of an IMEI
ESNOlder codeLegacy CDMAThe predecessor to MEID, now largely retired
Serial numberManufacturer formatAnyThe maker's own unit identifier

A few clarifications a buyer runs into. A dual-SIM phone carries two IMEIs, commonly labeled IMEI1 and IMEI2; each is a full, independent IMEI with its own serial and check digit, usually sharing the same TAC because they belong to one model. The MEID is hexadecimal rather than decimal, per the Wikipedia mobile equipment identifier entry, which is the quickest way to tell it apart from an IMEI at a glance. ESN is the older CDMA electronic serial number that MEID replaced. And the manufacturer serial number is a separate identifier again, used for warranty and internal tracking, not for network identity.

Why bulk buyers validate checksums before paying

On a large lot, the manifest is a spreadsheet of IMEIs, and the checksum is the cheapest quality gate that exists. It costs nothing and catches a whole class of problems instantly.

Two failure modes show up constantly. The first is honest error: an IMEI transcribed by hand or exported from a bad system drops or transposes a digit, and the Luhn check flags it because the arithmetic no longer closes. The second is fabrication: padded manifests where rows were invented to inflate a count, or numbers copied and lightly altered. Randomly changed digits almost always break the checksum. Running Luhn across the whole list turns a claim of, say, one thousand units into a hard count of how many rows are even internally valid, before a single paid registry query. That is why format and checksum validation runs first, and the paid blacklist check runs only on the rows that survive it. This is the same sequencing described in our guide to IMEI checks for wholesale buyers.

How to bulk-validate a manifest

For one number, the validator above is enough. For a full manifest, you want to apply the same check to every row at once and get back a clean pass or fail list.

What an IMEI does not tell you

A valid IMEI is a necessary check, not a sufficient one. Passing the checksum only proves the number is well formed, not that the device behind it is genuine or clean.

Critically, the Luhn check says nothing about blacklist status. Whether a device is reported lost, stolen, or financially blocked lives in the GSMA device registry and carrier block lists, and that requires a separate database lookup, covered in our explainer on GSMA blacklist status and what clean means and in the blacklisted IMEI glossary entry. A well-formed IMEI can still be blacklisted. It can also be cloned, where multiple physical phones share one valid IMEI, which passes the checksum every time. And a valid IMEI reveals nothing about carrier lock, activation lock, or the originality of internal parts. Those are all distinct checks. The correct mental model is a funnel: the checksum filters out numbers that cannot be real, the registry filters out numbers that are real but blocked, and physical inspection filters out everything the numbers cannot see.

Read together, the IMEI's structure gives a buyer a fast, free first pass, and a clear map of where that pass stops and paid verification has to begin. On a busy floor, knowing exactly what each digit does, and does not, promise is what keeps a manifest honest.

Frequently asked questions

How is the GSMA IMEI Luhn check digit calculated?

The check digit is the fifteenth IMEI digit, computed from the first fourteen with the Luhn formula. Double every second digit starting from the second, subtract 9 from any result above 9, add all the digits together, then the check digit is the amount needed to round that sum up to the next multiple of ten. For the base 35316105214284 the digit sum is 46, so the check digit is 4 and the full IMEI is 353161052142844.

What is an IMEI checksum?

The IMEI checksum is the single Luhn check digit at the end of the 15-digit IMEI. It is a self-check: if you run the Luhn formula over all 15 digits the total is a multiple of ten for a valid IMEI. It catches typos and fabricated numbers, but it does not prove the IMEI belongs to a real device or that the device is clean.

How do I use an IMEI checksum calculator?

Enter the 15-digit IMEI and the calculator applies the Luhn formula to confirm the last digit is correct. The validator on this page does exactly that in your browser with no network calls. For a spreadsheet of IMEIs, a bulk tool applies the same check to every row at once and flags any that fail.

Can you show an IMEI example?

353161052142844 is a valid example. The first 8 digits, 35316105, are the TAC that identifies the brand owner and model. The next 6 digits, 214284, are the serial number assigned by the TAC holder. The final digit, 4, is the Luhn check digit computed from the first fourteen.

What is the TAC in an IMEI?

The TAC, or Type Allocation Code, is the first 8 digits of the IMEI. It is assigned by the GSMA and identifies the brand owner and the exact model of the device. Two phones of the same model share a TAC, so a TAC lookup tells you the make and model but not the individual unit.

What is IMEI1 and IMEI2?

IMEI1 and IMEI2 are the two IMEIs on a dual-SIM phone, one for each SIM slot or radio. Each is a full, independent 15-digit IMEI with its own serial and check digit, though both usually share the same TAC because they belong to the same model. A single-SIM phone has only one IMEI.

Trade on the structured layer

Aikon is free for registered companies. Post buy and sell offers, browse a live feed of company-posted offers, and connect across iOS, Android and the web.