Ecuador RUC Generator
Valid Ecuadorian RUC (Taxpayer ID) generator. Perfect for software QA.
Waiting for generation...
About Ecuador RUC
The RUC is Ecuador's unique tax identification number managed by the SRI.
This tool generates structurally valid 13-digit RUC numbers using SRI weights depending on entity type (public, private or individual).
Anatomy & Structure of Ecuadorian Tax ID (RUC)
The 13-digit Ecuadorian RUC consists of:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 & 2 | Province Code | 2 digits | Fiscal jurisdiction province code (01 to 24) | 17 |
| 3 | Taxpayer Category | 1 digit | 0-5 (Natural Person), 9 (Private Corporation), 6 (Public Entity) | 9 |
| 4 to 9 or 8 | Registration Serial | 5 to 6 digits | Corporate sequence or citizen identity base | 123456 |
| 9 or 10 | Check Digit | 1 digit | Modulo 11 or Modulo 10 check digit | 7 |
| 11 to 13 | Establishment Code | 3 digits | Branch code (001 for main headquarters) | 001 |
Official Ecuadorian RUC Validation Algorithm (SRI)
SRI applies three distinct check digit rules according to the 3rd classification digit:
Private Corporate (d[2]=9): Modulo 11 weights [4,3,2,7,6,5,4,3,2]; Public Entity (d[2]=6): Modulo 11 weights [3,2,7,6,5,4,3,2]; Natural Person: Cédula Modulo 10
- 1. If 3rd digit is 0 to 5 (Natural Person): Validate first 10 digits as Cédula and ensure suffix is 001.
- 2. If 3rd digit is 9 (Private Corporation): Multiply first 9 digits by weights [4, 3, 2, 7, 6, 5, 4, 3, 2], remainder = sum % 11, check = 11 - remainder (0 if remainder=0 or check=10).
- 3. If 3rd digit is 6 (Public Entity): Multiply first 8 digits by weights [3, 2, 7, 6, 5, 4, 3, 2] under Modulo 11, ending with suffix 0001.
- 4. Valid when check digit matches its legal entity class.