What is EAN-13 Check Digit?

Published on November 10, 2026 • Last updated November 10, 2026

Mathematical Formula Included

Official Definition

The EAN-13 check digit is the 13th and last digit of an EAN-13 barcode number, calculated from the first 12 digits so that scanners can detect a mistyped or misread number.

Detailed Explanation

In-Depth Guide

Key Takeaway

To calculate it, number the first 12 digits from the left, multiply the digits in odd positions by 1 and those in even positions by 3, add everything up, and take the amount needed to reach the next multiple of 10. The same weighting (3 and 1, counted from the right) is used for UPC-A and EAN-8.

Because a single wrong digit always changes the sum, a scanner can reject a bad read instead of returning a wrong product. A generator should therefore compute the digit for you or verify the one you typed, and report an error on a mismatch rather than silently printing a different number.

Mathematical Formula

check = (10 - ((d1 + 3×d2 + d3 + 3×d4 + ... + 3×d12) mod 10)) mod 10

Calculation Examples

First 12 digits: 4 0 0 6 3 8 1 3 3 3 9 3 Sum: 4×1 + 0×3 + 0×1 + 6×3 + 3×1 + 8×3 + 1×1 + 3×3 + 3×1 + 3×3 + 9×1 + 3×3 = 89 Next multiple of 10 is 90, so the check digit is 1. Full EAN-13: 4006381333931

Frequently Asked Questions

The last digit probably does not match the check digit calculated from the other digits. Recalculate it or let the generator add it.

Yes. UPC-A uses the same 3 and 1 weighting counted from the right, which is why a UPC-A is just an EAN-13 with a leading zero.

No. It only catches typing and scanning errors. Anyone can calculate it, so it is not a security feature.

What do you need to work out next?

Search 276+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Utility Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI