Start with a worked example
Open the worked example for Luhn validation. The example starts with Digit string = 4532015112830366.
Luhn Algorithm Calculator formula
Digits are processed right-to-left, doubling alternating digits, subtracting 9 when needed; the checksum is valid when the total is divisible by 10.
Inputs and units
| Input | Format / range | Example |
|---|---|---|
| Digit string | Follow the input format above | 4532015112830366 |
Worked example
The values listed in Inputs and units give Valid checksum for Luhn validation.
- Luhn validation
- Valid checksum
- Checksum sum
- 50
Results and assumptions
The result details report Checksum sum for the same inputs as the main answer.
