EAN-13 / UPC Check Digit
Calculate the EAN-13 or UPC check digit for your barcode and get the complete code ready for verification.
Quick answer
Calculate the EAN-13 or UPC check digit for your barcode and get the complete code ready for verification. Formula: The calculation uses barcode, payload digits without check digit to obtain check digit, complete barcode.
Barcode: EAN-13, Payload digits without check digit: 003600029145 → Check digit: 2.
Results update as you type.
How it works
EAN-13 / UPC Check Digit takes barcode, payload digits without check digit and returns check digit, complete barcode. Its scope is the relationship shown in the formula, with the input units displayed next to each numerical field. Enter twelve payload digits for EAN-13 or eleven for UPC-A, excluding the final control digit. A leading-zero EAN payload can be represented as UPC. This arithmetic does not allocate a GS1 company prefix or identify a product. Scannability also depends on bar dimensions, contrast and quiet zones. Keep the original input alongside the transformed output when transferring values between systems. The stated mathematical conversion does not verify an external record or calibrate a physical device. Differences in formatting or technical assumptions can explain why another tool gives a different answer. This page makes the supported representation explicit so that a reproducible conversion can be distinguished from a broader product recommendation or certification. Start with the worked example to check the expected order of magnitude, then replace every input with a value from the same scenario. Keep intermediate quantities unrounded when comparing alternatives; displayed decimals are for reading rather than a claim about measurement accuracy. If the answer looks surprising, review the input basis and the stated exclusions before changing the formula. A blank result means an entry cannot be interpreted within the supported range or the combination is impossible under the stated model.
Check digit = (10 − weighted payload sum mod 10) mod 10
The calculation uses barcode, payload digits without check digit to obtain check digit, complete barcode. The relationship applied is Check digit = (10 − weighted payload sum mod 10) mod 10. Enter twelve payload digits for EAN-13 or eleven for UPC-A, excluding the final control digit. A leading-zero EAN payload can be represented as UPC. This arithmetic does not allocate a GS1 company prefix or identify a product. Scannability also depends on bar dimensions, contrast and quiet zones. Each declared output is calculated from the same input set, and invalid or out-of-range entries leave every output unavailable rather than producing a partial total.
Source:GS1 General Specifications — GTIN check digit
We review all our tools from time to time to ensure accuracy.
Worked example
How to use this calculator
- 1
Enter your values
Enter barcode and payload digits without check digit.
- 2
Adjust the options
Fine-tune any options to match your situation.
- 3
Read your result
Check digit updates instantly as you type — no button to press.
Frequently asked questions
What does ean-13 / upc check digit calculate?
It calculates check digit, complete barcode from barcode, payload digits without check digit, using the displayed relationship: Check digit = (10 − weighted payload sum mod 10) mod 10. Enter twelve payload digits for EAN-13 or eleven for UPC-A, excluding the final control digit. A leading-zero EAN payload can be represented as UPC. This arithmetic does not allocate a GS1 company prefix or identify a product. Scannability also depends on bar dimensions, contrast and quiet zones. The scope matters when comparing this result with a quotation, a published rating or an official record, because those may include additional conditions that this particular worksheet does not model.
Which inputs should I use?
Enter barcode, payload digits without check digit for one consistent scenario. Enter twelve payload digits for EAN-13 or eleven for UPC-A, excluding the final control digit. A leading-zero EAN payload can be represented as UPC. Use the units printed beside the fields and preserve leading zeros where an identifier is requested. The worked example supplies a reproducible starting point; replace its assumptions with your own measured or documented values before using the result for a decision.
How should I interpret the worked example?
With the sample inputs, the hand-checked reference is Check digit: 2. The example illustrates the stated formula rather than establishing a universal recommended value. A leading-zero EAN payload can be represented as UPC. This arithmetic does not allocate a GS1 company prefix or identify a product. Compare scenarios by changing one assumption at a time, keeping the original inputs available so the reason for a difference remains visible.
Why might another estimate differ?
A different estimate may use a different input basis, conversion convention or scope. Enter twelve payload digits for EAN-13 or eleven for UPC-A, excluding the final control digit. A leading-zero EAN payload can be represented as UPC. This arithmetic does not allocate a GS1 company prefix or identify a product. Scannability also depends on bar dimensions, contrast and quiet zones. Compare the underlying quantities and assumptions before comparing rounded display values. Changing an allowance, boundary condition or reference date can alter the answer even when both calculations implement their own stated method correctly.
What should I check before relying on the result?
Check the stated limitations: Enter twelve payload digits for EAN-13 or eleven for UPC-A, excluding the final control digit. A leading-zero EAN payload can be represented as UPC. This arithmetic does not allocate a GS1 company prefix or identify a product. Scannability also depends on bar dimensions, contrast and quiet zones. The formula source is GS1 General Specifications — GTIN check digit. Retain the input values together with the result, and use the underlying standard, official record or product specification for any requirement that lies outside the calculation described on this page.
More Technology calculators
Related calculators
3D Print Cost Calculator
Filament and electricity cost of a 3D print, with a margin for failed prints.
Amdahl's Law Calculator
Theoretical speedup from parallel processing, with the maximum achievable and efficiency.
API Rate Limit Calculator
Project total API requests from a per-second rate.
Calculated with HS Calculadora · https://hscalculadora.com/en/technology/ean13-check-digit-calculator