Italy (IT)
Italian VAT Number Validation
Format, pattern, and Luhn checksum algorithm for IT VAT numbers
Italian VAT numbers (Partita IVA or P.IVA) consist of 11 digits and use the standard Luhn algorithm for validation.
Format vs. Active Validation
This checks format only, not if a VAT number is really registered. Use VatDB's API to verify is a number is really registered and active. VatDB checks official EU and national datasources.
Format Overview
| Property | Value |
|---|---|
| Country Code | IT |
| Format | 11 digits |
| Length | 11 digits |
| Example | IT12345678901 |
Number Structure
- Digits 1-7: Company identifier
- Digits 8-10: Province code
- Digit 11: Check digit (Luhn)
Regex Pattern
^IT[0-9]{11}$
Checksum Algorithm (Luhn)
def validate_it_vat(number):
if number.startswith('IT'):
number = number[2:]
if len(number) != 11 or not number.isdigit():
return False
# Luhn algorithm
total = 0
for i, digit in enumerate(reversed(number)):
d = int(digit)
if i % 2 == 1: # Double every second digit from right
d = d * 2
if d > 9:
d -= 9
total += d
return total % 10 == 0
Frequently Asked Questions
How do I verify an Italian VAT number (Partita IVA)?
Italian VAT numbers use the Luhn algorithm for validation. Check that it has 11 digits, then apply Luhn checksum. Use VatDB's API for official verification against EU and Italian Agenzia delle Entrate databases.
What does an Italian VAT number look like?
An Italian VAT number (Partita IVA) has the format IT12345678901 - 'IT' followed by exactly 11 digits. The first 7 digits identify the company, digits 8-10 are the province code, and digit 11 is the check digit.
How many digits are in an Italian VAT number?
An Italian VAT number (Partita IVA) contains exactly 11 digits after the IT country code. The complete number is 13 characters: IT + 11 digits.
What is a Partita IVA in Italy?
Partita IVA (P.IVA) is the Italian VAT number. 'Partita' means account/registration and 'IVA' stands for Imposta sul Valore Aggiunto (Value Added Tax). All Italian businesses need one for VAT purposes.
What do the digits in an Italian VAT number mean?
In an Italian Partita IVA: digits 1-7 are the company identifier, digits 8-10 indicate the province of registration (00-09 for interprovincial), and digit 11 is the Luhn check digit.
How can I check an Italian company's VAT registration?
VatDB's API validates VAT numbers against official EU and national databases in real-time. Get instant verification with company details and registration status.
What's the difference between format validation and checking if a VAT number is active?
Format validation ensures the number is correctly structured but says nothing about actual registration. A business might have closed or the number could be fabricated. VatDB verifies real status.