Skip to main content
Check Digit Calculator
Core

Modulus 97 Calculator

Calculate the remainder of a number modulo 97 and derive check values. Review numeric examples without losing large-number precision.

Last updated:

Core Algorithms & Modulus

Calculate numeric remainders and check values.

Length: 10 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

Initialising algorithm engine for Modulus 97 Calculator...

How Modulus 97 Calculator Works?

The Modulus 97 Calculator works by dividing the full number by the prime 97 and returning the remainder or a check value derived from the remainder. Large numbers are processed in chunks so the calculation never overflows.

  1. 1Read the payload as one decimal integer.
  2. 2Split long payloads into chunks of 9 digits and carry the remainder forward into each chunk.
  3. 3Compute the remainder r = N mod 97.
  4. 4Output r, 97 − r, or 98 − (N × 100 mod 97), based on the selected scheme.
  5. 5Pad the result to 2 digits.

Modulus 97 Calculator Formula

The Modulus 97 formula is r = N mod 97, and the 3 common check values are r, 97 − r, and 98 − (100·N mod 97).

r = N mod 97
Belgian style:   check = r (00 becomes 97)
Complement:      check = 97 − r
ISO 7064 97-10:  check = 98 − ((N × 100) mod 97)
  • N is the payload as an integer.
  • r is the remainder 0–96.
Worked example: N = 1234567890
1234567890 mod 97 = 2
Belgian style check = 02
Complement check = 97 − 2 = 95
ISO 7064 check = 98 − (6) = 92

Modulus 97 Calculator Conversion Table

The Modulus 97 conversion table shows remainders and the 3 check value styles for sample payloads.

PayloadN mod 97Remainder style97 − rISO 7064 97-10
12345678902029592
539007547034346393
970979701
100000027277017
99999999999949494848
321428291223237429
11019695

What is Modulus 97 Calculator?

A Modulus 97 Calculator is a tool that computes the remainder of a number divided by 97 and converts the remainder into a 2-digit check value. 97 is the largest prime below 100, so a 2-digit check covers almost all of the 100 possible values.

Modulus 97 checks detect all single-digit errors, all adjacent transpositions, and about 99% of other random errors. International Bank Account Numbers (IBAN), Belgian bank accounts, Legal Entity Identifiers (LEI), and RF creditor references use Modulus 97.

What are the uses of Modulus 97 Calculator?

There are 4 main uses of the Modulus 97 Calculator, including IBAN checks, Belgian account numbers, and structured references.

  • IBAN check digits: Payment teams compute the 2 digits at positions 3 and 4 of an IBAN.
  • Belgian account control: Belgian banks append N mod 97 to 10-digit account bases.
  • Structured payment references: Creditors build RF references and Belgian structured communications (+++ / +++) with mod 97.
  • Large-number remainders: Developers check big-integer remainder code against a known reference.