{"id":16991,"date":"2026-11-28T21:20:31","date_gmt":"2026-11-28T21:20:31","guid":{"rendered":"https:\/\/www.latiendadelasbarras.com\/blog\/check-digit-how-to-calculate\/"},"modified":"2026-11-28T21:20:33","modified_gmt":"2026-11-28T21:20:33","slug":"check-digit-how-to-calculate","status":"publish","type":"post","link":"https:\/\/www.latiendadelasbarras.com\/hk\/blog\/check-digit-how-to-calculate\/","title":{"rendered":"The Check Digit: What It Is and How to Calculate It"},"content":{"rendered":"<p>The last digit of an EAN-13, UPC, EAN-14 or GLN is not part of the product number itself. It is a <strong>check digit<\/strong>, calculated from all the other digits. It exists to catch mistakes.<\/p>\n<h2>What the check digit does<\/h2>\n<p>When a scanner reads a barcode, or a person types a number into a system, errors can happen: a misread bar, two digits swapped, a wrong key. The scanner or system recalculates the check digit from the other digits. If the result does not match the last digit, it knows the number is wrong and rejects it instead of recording the wrong product.<\/p>\n<h2>How to calculate the EAN-13 check digit<\/h2>\n<p>Take the first 12 digits of the number and follow these steps:<\/p>\n<ol>\n<li>Multiply the digits in odd positions (1st, 3rd, 5th\u2026) by <strong>1<\/strong>.<\/li>\n<li>Multiply the digits in even positions (2nd, 4th, 6th\u2026) by <strong>3<\/strong>.<\/li>\n<li>Add all the results.<\/li>\n<li>The check digit is the number you must add to that total to reach the next multiple of 10. If the total is already a multiple of 10, the check digit is 0.<\/li>\n<\/ol>\n<h2>Worked example<\/h2>\n<p>First 12 digits: <strong>4 8 9 1 2 3 4 5 6 7 8 9<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>Digit<\/th>\n<th>4<\/th>\n<th>8<\/th>\n<th>9<\/th>\n<th>1<\/th>\n<th>2<\/th>\n<th>3<\/th>\n<th>4<\/th>\n<th>5<\/th>\n<th>6<\/th>\n<th>7<\/th>\n<th>8<\/th>\n<th>9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Weight<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>Result<\/td>\n<td>4<\/td>\n<td>24<\/td>\n<td>9<\/td>\n<td>3<\/td>\n<td>2<\/td>\n<td>9<\/td>\n<td>4<\/td>\n<td>15<\/td>\n<td>6<\/td>\n<td>21<\/td>\n<td>8<\/td>\n<td>27<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Total: 4 + 24 + 9 + 3 + 2 + 9 + 4 + 15 + 6 + 21 + 8 + 27 = <strong>132<\/strong>. The next multiple of 10 is 140, so the check digit is <strong>8<\/strong>.<\/p>\n<p>The complete number is <strong>489 1234 56789 8<\/strong>. (This is only an example to show the calculation.)<\/p>\n<h2>Other barcode types<\/h2>\n<p>The same method works for UPC-A, EAN-8, EAN-14 and GLN. The rule is simply that, counting from the right, the digit next to the check digit is always multiplied by 3, then 1, then 3, and so on.<\/p>\n<h2>Why it matters for you<\/h2>\n<ul>\n<li><strong>Amazon and other marketplaces<\/strong> validate the check digit. Entering only 12 digits, or a wrong last digit, produces an error.<\/li>\n<li><strong>Never &#8220;invent&#8221; the last digit<\/strong> when typing your barcode into a system: copy it from the number printed under the bars or from the files we send you.<\/li>\n<li><strong>A correct check digit does not mean the number is yours.<\/strong> It only proves the number is well formed. Ownership is a separate question.<\/li>\n<\/ul>\n<p>All the barcodes we deliver come with the check digit already calculated and verified. See our <a href=\"https:\/\/www.latiendadelasbarras.com\/hk\/ean-13-barcodes\/\">EAN-13 barcodes with the 489 prefix<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The last digit of every barcode is calculated from the others. Here is why it exists and how to calculate it yourself, with a worked example.<\/p>\n","protected":false},"author":9,"featured_media":16990,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[88],"tags":[],"class_list":["post-16991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/posts\/16991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/comments?post=16991"}],"version-history":[{"count":1,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/posts\/16991\/revisions"}],"predecessor-version":[{"id":16992,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/posts\/16991\/revisions\/16992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/media\/16990"}],"wp:attachment":[{"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/media?parent=16991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/categories?post=16991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.latiendadelasbarras.com\/hk\/wp-json\/wp\/v2\/tags?post=16991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}