Dominican Republic RNC and cédula validator

Check the check digit of a Dominican RNC or cédula before you create the customer or vendor in SAP Business One.

Tool

This tool checks the format and the check digit; it does not query the DGII register. To confirm the taxpayer’s name and status, use the DGII’s RNC lookup at dgii.gov.do.

RNC · DGII
Using SAP Business One? The business partner’s RNC or cédula is stored in the LicTradNum field of the OCRD table.OCRD table →

How do you validate a Dominican RNC?

A Dominican RNC has 9 digits and its last digit is a check digit: multiply the first 8 digits by 7, 9, 8, 6, 5, 4, 3 and 2, take the remainder of the sum divided by 11, and the digit is 2 for remainder 0, 1 for remainder 1, otherwise 11 minus the remainder. Individuals use their 11-digit cédula instead, checked with the Luhn formula. This tool runs both checks; only the DGII confirms that the taxpayer is active.

Step by step: how to calculate the RNC check digit

  1. Take the first 8 digits of the RNC, without dashes.
  2. Multiply them, from left to right, by 7, 9, 8, 6, 5, 4, 3 and 2.
  3. Add up the results and take the remainder of dividing the sum by 11.
  4. If the remainder is 0, the digit is 2. If it is 1, the digit is 1. Otherwise, subtract the remainder from 11.

Example (made up): 12345678. 1×7 + 2×9 + 3×8 + 4×6 + 5×5 + 6×4 + 7×3 + 8×2 = 159. 159 mod 11 = 5. 11 − 5 = 6, so the full RNC is 1-23-45678-6.

The cédula check digit (Luhn)

A cédula has 11 digits, usually written 001-1234567-3. Multiply the first 10 digits by 1, 2, 1, 2… from the left, subtract 9 from any product above 9 and add everything up. The check digit is the number that brings the total to the next multiple of 10. Example (made up): 0011234567 adds up to 27, so the digit is 3 and the cédula is 001-1234567-3. Some cédulas issued before the check digit was enforced fail this test, so the tool asks you to confirm those rather than reject them.

Checking the format vs. checking with the DGII

This tool checks that the number is typed correctly. An RNC with the right check digit may be suspended, deregistered or belong to someone other than your customer. To confirm the name and status, use the DGII’s public RNC lookup at dgii.gov.do.

How this connects to SAP Business One

In SAP Business One, a customer’s or vendor’s RNC or cédula is stored in the business partner’s tax ID field (LicTradNum in the OCRD table). A wrong digit there flows into every invoice and every tax report you send. The same check this page runs can sit inside SAP B1: we build add-ons that validate OCRD.LicTradNum when a business partner is added or changed and before a sales or purchase document is posted, so a mistyped RNC is stopped at the source. See SAP Business One add-on development or our SAP Business One development service.

Other LatAm validators

How it works

Three steps, no signup

1

Paste the RNC or cédula

A 9-digit RNC (1-23-45678-6) or an 11-digit cédula (001-1234567-3), with or without dashes.

2

We check the digit

RNC: weights 7, 9, 8, 6, 5, 4, 3, 2 and modulo 11. Cédula: the Luhn (modulo 10) check.

3

Register it cleanly

Use the correct tax ID on the business partner in SAP Business One, and confirm its status with the DGII.

FAQ

Questions about this tool

How do you validate a Dominican RNC?

Type the 9 digits of the RNC, with or without dashes. The tool multiplies the first 8 digits by 7, 9, 8, 6, 5, 4, 3 and 2, takes the remainder of the sum divided by 11 and works out the check digit. If it matches the last digit, the RNC is typed correctly. Its name and status are looked up with the DGII.

How is the RNC check digit calculated?

Multiply the first 8 digits by 7, 9, 8, 6, 5, 4, 3 and 2 and add the results. Take the remainder of dividing the sum by 11. If the remainder is 0, the digit is 2; if it is 1, the digit is 1; otherwise the digit is 11 minus the remainder.

Can I validate a cédula as a tax ID?

Yes. Individuals in the Dominican Republic use their 11-digit cédula as their tax ID. Its last digit is a Luhn check: multiply the first 10 digits by 1, 2, 1, 2 and so on, subtract 9 from any product over 9, add up and take the digit that rounds the total to a multiple of 10.

Why does a real RNC or cédula fail the check?

A small number of RNCs issued by the DGII do not follow the formula; the tool recognises the known ones and marks them as a DGII exception. Some older cédulas were also issued before the check digit was enforced, so a cédula that fails should be confirmed with the JCE or the DGII before you reject it.

Does this tool confirm that the RNC is active with the DGII?

No. It only checks the format and the check digit. The taxpayer’s name, trade name and status (activo, suspendido or dado de baja) are looked up in the DGII’s public RNC lookup at dgii.gov.do.

Does the validator store my data?

No. The calculation runs in your browser and the RNC or cédula is not sent to Kodenova or to any server.

SAP Business One in the Dominican Republic

We build add-ons, reports and integrations for SAP B1 on SQL Server and HANA. Tell us what you need and we will scope it with you, phase by phase.