---
title: "UPC Check Digit Calculator – Find the 12th Digit"
description: "Free UPC check digit calculator. Enter 11 digits to get the 12th, or verify a full UPC-A or UPC-E. Step-by-step working, bulk lists and CSV export."
url: https://barcodejar.com/upc-check-digit-calculator
source: BarcodeJar (free barcode tools)
---

# UPC Check Digit Calculator

Type the first 11 digits of a UPC-A and the 12th digit appears instantly, with the full calculation. Switch to Verify to check a complete UPC, or Bulk to do a whole list.

_Interactive tool: open https://barcodejar.com/upc-check-digit-calculator to use it in your browser. It is free with no sign-up._

## How to find a UPC check digit

1.  Type the first 11 digits of the UPC-A into the box.
2.  Read the 12th digit and the full UPC; click **Copy** to use it.
3.  For an 8-digit UPC-E, pick **UPC-E** and enter the first 7 digits (starting 0 or 1).
4.  To check a printed UPC, choose **Verify** and paste all 12 digits.

## The UPC check digit formula

UPC check digit = (10 − ((3 × sum of odd-position digits + sum of even-position digits) mod 10)) mod 10, using the first 11 digits of the UPC-A.

Worked example with **01234500005**:

1.  Odd positions (1, 3, 5, 7, 9, 11): 0 + 2 + 4 + 0 + 0 + 5 = 11. Times 3 = **33**.
2.  Even positions (2, 4, 6, 8, 10): 1 + 3 + 5 + 0 + 0 = **9**.
3.  33 + 9 = **42**.
4.  The next multiple of 10 is 50. 50 − 42 = **8**.

The complete UPC-A is **012345000058**. You can paste it into the [UPC barcode generator](https://barcodejar.com/upc-barcode-generator?data=012345000058&type=upca) to make the barcode.

## Anatomy of a UPC-A

| Part | Digits | Example (036000291452) |
| --- | --- | --- |
| Number system / GS1 company prefix | Starts at digit 1, length varies (6–10 digits) | 036000 |
| Item reference | The rest, up to digit 11 | 29145 |
| Check digit | 12 | 2 |

The first digit is the number system: 0, 1, 6, 7, 8 and 9 are regular products, 2 is random-weight items priced in store, 3 is drugs (National Drug Code), 4 is in-store use and 5 is coupons. A UPC-A is the same as an EAN-13 with a leading 0, which the [UPC to EAN converter](https://barcodejar.com/upc-to-ean-converter) shows.

## UPC-E check digits

UPC-E is the 8-digit, zero-suppressed form used on small packs. It has no formula of its own: expand it to UPC-A, calculate the UPC-A check digit, and that digit ends both codes. Example: UPC-E **0425261** expands to 04210000526, whose check digit is 4, so the UPC-E is 04252614 and the UPC-A is 042100005264. Only UPCs with number system 0 or 1 and enough zeros can be written as UPC-E.

## Frequently asked questions

### What is the check digit of a UPC?

It is the 12th and last digit of a UPC-A. It is calculated from the first 11 digits with the GS1 mod 10 formula, so a scanner can tell if any digit was misread.

### How do I calculate a UPC check digit by hand?

Add the digits in odd positions (1st, 3rd … 11th) and multiply by 3. Add the digits in even positions (2nd … 10th). Add both totals, and the check digit is what you need to reach the next multiple of 10.

### What is the check digit for 01234500005?

It is 8. Odd positions 0+2+4+0+0+5 = 11, × 3 = 33. Even positions 1+3+5+0+0 = 9. 33 + 9 = 42, and 50 − 42 = 8, giving the UPC 012345000058.

### How is a UPC-E check digit calculated?

Expand the UPC-E to its 12-digit UPC-A form, then calculate the UPC-A check digit. UPC-E 0425261\_ expands to 0421000052\_6\_, so the check digit is 4 for both. Choose UPC-E in the type menu and the tool expands it for you.

### My UPC fails the check. What now?

Re-read the number on the package: a 6/8, 1/7 or 3/8 mix-up is the usual cause. Use **Verify** to see which last digit would be correct, then compare with the printed code. If you created the number yourself, use the calculated digit.

### Does this make my UPC official?

No. A correct check digit only means the number is well formed. Retailers expect UPCs licensed from GS1 US, whose company prefix identifies your brand.

## Related free tools

[**Check Digit Calculator**GS1 check digits for UPC, EAN, GTIN, SSCC and ISBN.](https://barcodejar.com/check-digit-calculator)[![UPC-A Generator example](/thumbs/upca.svg)**UPC-A Generator**Create UPC-A barcodes free. PNG, SVG, PDF.](https://barcodejar.com/upc-barcode-generator)[**UPC to EAN Converter**Convert UPC-A ⇄ EAN-13 and UPC-E ⇄ UPC-A.](https://barcodejar.com/upc-to-ean-converter)[**Barcode Validator**Check whether a UPC, EAN, GTIN or ISBN is valid.](https://barcodejar.com/barcode-validator)[**UPC Lookup**Find the product behind a 12-digit UPC code.](https://barcodejar.com/upc-lookup)[![UPC-E Generator example](/thumbs/upce.svg)**UPC-E Generator**Create UPC-E barcodes free. PNG, SVG, PDF.](https://barcodejar.com/upc-e-barcode-generator)[**EAN Check Digit Calculator**Calculate the check digit for EAN-13 and EAN-8.](https://barcodejar.com/ean-check-digit-calculator)
