Hungary (HU)
Hungarian VAT Number Validation
Format, pattern, and checksum algorithm for HU VAT numbers
Hungarian VAT numbers (Közösségi adószám) consist of 8 digits with a weighted checksum using the pattern 9, 7, 3, 1.
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 | HU |
| Format | 8 digits |
| Length | 8 digits |
| Example | HU12345678 |
Regex Pattern
^HU[0-9]{8}$
Checksum Algorithm
def validate_hu_vat(number):
if number.startswith('HU'):
number = number[2:]
if len(number) != 8 or not number.isdigit():
return False
weights = [9, 7, 3, 1, 9, 7, 3]
total = sum(int(d) * w for d, w in zip(number[:7], weights))
check = (10 - (total % 10)) % 10
return check == int(number[7])
Frequently Asked Questions
How do I verify a Hungarian VAT number?
Hungarian VAT numbers use weighted checksum with pattern [9,7,3,1,9,7,3]. Calculate weighted sum of first 7 digits, check = (10 - sum mod 10) mod 10. Use VatDB's API for official verification against EU and national databases.
What does a Hungarian VAT number look like?
A Hungarian VAT number has the format HU12345678 - 'HU' followed by exactly 8 digits. The last digit is a check digit.
How many digits are in a Hungarian VAT number?
A Hungarian VAT number contains exactly 8 digits after the HU country code. The complete number is 10 characters: HU + 8 digits.
Does Hungary have the highest VAT rate in the EU?
Yes, Hungary has the highest standard VAT rate in the EU at 27%, significantly higher than the EU average of around 21%.
Where can I check a Hungarian company's VAT number?
Check VAT numbers with VatDB's API for real-time validation against official EU and national databases. Includes company details with results.
What's the difference between format validation and checking if a VAT number is active?
Checksum validation tells you the number is properly formatted, not that it exists. Anyone can calculate a valid-looking number. VatDB's API confirms the number is actually registered and active.
Validate Hungarian VAT Numbers Instantly
Use our API for real-time HU VAT number validation
Try Free