OhMyCalc

EAN-13 Check Digit Calculator

Compute the EAN-13 check digit for the first 12 digits of a barcode and return the full 13-digit EAN.

How to Use the EAN-13 Check Digit Calculator

  1. Enter the first 12 digits of the barcode (no spaces).
  2. Leave off the 13th check digit — the calculator will derive it.
  3. Click Calculate to see the check digit and the full 13-digit code.

Anwendungsfälle

Formel

Multiply digits 1–12 alternately by 1 and 3, sum them, then check digit = (10 − sum mod 10) mod 10.

Häufig gestellte Fragen

What is EAN-13?
EAN-13 is the International Article Number used by GS1 on retail packaging worldwide. The 13th digit is a modulo-10 check digit that guards against single-digit and most adjacent-digit transposition errors.
Does it work for UPC-A?
Yes — a UPC-A is an EAN-13 with a leading zero, so enter 11 UPC digits with a leading 0 and the algorithm is identical.
Why does my scanner reject it?
Often because of a typed-in digit error. Recompute with this calculator — if the check digit matches, the symbology is correct and the print quality is the issue.