Skip to content

Luhn Check Digit Calculator

Compute the Luhn (mod 10) check digit for a number, or validate whether a number passes the Luhn checksum. Works on any digit string — ID numbers, IMEI, and barcodes.

Mode

Inputs

Number

compute_hint

Results

Enter a value to see results.

Result

\begin{aligned} c &= (10 - (S_p \bmod 10)) \bmod 10 \\ &= (10 - ({\text{?}} \bmod 10)) \bmod 10 \\ &= ? \end{aligned}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?