Skip to main content

Italian Partita IVA Generator

Generate and format valid Italian Partita IVA (VAT) numbers for software testing and QA.

Waiting for generation...

About the Italian Partita IVA

The Partita IVA (P.IVA) is the 11-digit VAT and tax identification number for businesses and self-employed professionals in Italy.

It comprises 7 sequential company digits, 3 province tax office digits, and 1 checksum digit computed via the Luhn algorithm.

Anatomy & Structure of Italian Partita IVA (11 Digits)

The Partita IVA is the VAT identifier for companies and freelancers in Italy:

PositionFieldLengthMeaning & RuleExample
1 to 7Progressive Record7 digitsSequential business registration number assigned by local office1234567
8 to 10Province / Office Code3 digitsProvincial tax office code (001 to 100, or 999 for non-residents)058
11Check Digit1 digitChecksum digit verified via Luhn Modulo 10 algorithm5

Partita IVA Validation Algorithm (Luhn Modulo 10)

Validation of the 11th digit follows the standard Luhn algorithm with alternating weights 1 and 2:

DV = (10 - (sum(even_direct + odd_doubled) % 10)) % 10
  1. 1. Process left-to-right (0-indexed 0 to 9):
  2. 2. Even index digits (0, 2, 4, 6, 8): add direct value to sum.
  3. 3. Odd index digits (1, 3, 5, 7, 9): double the digit; if doubled value > 9, subtract 9 from it.
  4. 4. Compute grand total of all terms.
  5. 5. Calculate remainder modulo 10: Remainder = Total % 10.
  6. 6. Check digit: DV = (10 - Remainder) % 10. Must match the 11th digit.

Frequently Asked Questions