JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Luhn Algorithm Calculator

Validate the checksum of a digit string using the Luhn algorithm.

Your calculationPrivate in your browser
Report a result

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

Inputs and example values for Luhn Algorithm Calculator
InputFormat / rangeExample
Digit stringFollow the input format above4532015112830366

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.

Fix an input or unexpected result

See how to check a result or report an issue.