The structure and meaning of the tax number
The Hungarian tax number has 11 digits, in three parts: XXXXXXXX-Y-ZZ. Each part encodes something about the company, explained below.
All values of the VAT code (middle digit)
Only the invoice of a taxable person with VAT code 2 (and historically 3) can contain VAT charged. So a company with VAT code …-2-… is a “VAT payer”, and a company with …-1-… is “subjectively exempt”.
Check digit (the 8th digit of the base number)
The 8th digit is the weighted check sum of the first seven: the weights are 9, 7, 3, 1, 9, 7, 3 in order, and check = (10 − (sum mod 10)) mod 10. This catches a mistyped tax number offline, but it does not mean the company exists. Existence and the company details come from NAV queryTaxpayer, and the system uses it when looking up the customer and your own company.
County code (digits 10–11)
The code of the county / tax office of the registered seat, e.g. Budapest: 41, 42, 43, Pest county: 13/33. This is purely jurisdiction information (where the company is registered), it does not affect invoicing or VAT.
EU VAT number
The number used for intra-EU transactions: HU + the 8-digit base number (e.g. 12345678 → HU12345678). The system derives it automatically from the tax number. A company with code 2 (VAT payer) usually has one, while a subjectively exempt company does not by default, but can request one for intra-Community acquisitions.

