Skip to main content

Panama RUC Validator (DGI)

Validate Panama Tax Identification Numbers (RUC) and the official 2-digit DV checksum.

How does Panama RUC validation work?

It verifies the presence of the 2-digit 'DV' suffix and recalculates both check digits using the official DGI rotating Modulo 11 algorithm.

Any alteration in the base or check digits leads to immediate invalidation.

RUC Structure

Components of the tax number:

PositionFieldLengthMeaningExample
1Base8-15 digitsEntity registry identifier1556824-1-857412
2DV2 digitsDGI check digits60

DGI Checksum Verification

Modulo 11 verification steps:

Iterative Modulo 11
  1. 1. Extract base and provided DV.
  2. 2. Compute expected DV using DGI rotating weights 2..9.
  3. 3. Strict equality comparison between expected and provided DV.

Frequently Asked Questions