How to use Kiểm tra mã số thuế
- 01Type the MST10 or 13 digits, dash optional.
- 02See the resultCheck digit right or wrong.
- 03Read the workingWeights, sum and remainder.

0100109106: check digit 6, correct.
The 10th digit of a Vietnamese tax code is a check digit worked out from the first nine with the weights 31, 29, 23, 19, 17, 13, 7, 5, 3. Branches add a dash and three more digits. The tool runs the check and explains the 12-digit personal tax code.
Cấu trúc mã số thuế is set by the Ministry of Finance: 10 digits for an enterprise, 13 for a branch, and since July 2025 the 12-digit personal ID for individuals. This page explains each part, how to kiểm tra mã số thuế hợp lệ by hand, and what the check can’t tell you.
Cấu trúc mã số thuế
This is the structure in Article 5 of Thông tư 105/2020/TT-BTC, which the 2026 circular on tax registration keeps. A 10-digit code is an enterprise or organisation; 0100109106-002 is a dependent unit of 0100109106.
- N1N2: the province part of the number range.
- N3 to N9: a serial number from 0000001 to 9999999.
- N10: the check digit (chữ số kiểm tra).
- N11N12N13: for a branch, representative office or dependent unit, a serial from 001 to 999, written after a dash.
How to check the 10th digit
Example 0300588569 (Vinamilk): 0×31 + 3×29 + 0×23 + 0×19 + 5×17 + 8×13 + 8×7 + 5×5 + 6×3 = 375. 375 ÷ 11 leaves 1, and 10 − 1 = 9, which matches the last digit.
The circulars say N10 is a check digit but don’t print the formula. The weights above are the ones used by Vietnamese MST checkers and open-source libraries, and every real code we tested passes, including those of Vinamilk, Viettel and FPT.
- Take the first 9 digits.
- Multiply them by 31, 29, 23, 19, 17, 13, 7, 5 and 3.
- Add up the results and divide by 11.
- The 10th digit should be 10 minus the remainder.
Personal tax codes since 1 July 2025
Individuals now use their 12-digit personal identification number (số định danh cá nhân, the CCCD number) as their tax code, in place of the older 10-digit personal codes. A 12-digit personal number has no check digit, so the tool only confirms the length; to read what its digits mean, use the CCCD decoder on this site.
Before you put an MST on an invoice
- Check the digits here to catch a mistyped code.
- Then confirm the business name and status on the tax authority’s official lookup, which this tool doesn’t replace.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
Does a valid result mean the company exists?
No. It means the digits are well formed. The tool doesn’t connect to the tax authority, so it can’t tell whether the code was issued, who it belongs to or whether the business is still active. Use the official tra cứu MST service for that.
What is the 13-digit tax code?
It is the code of a branch or dependent unit: the parent unit’s 10 digits, a dash and 3 digits from 001 to 999, for example 0100109106-002. The check digit is in the first 10.
What about my personal tax code?
From 1 July 2025, individuals use their 12-digit personal ID (CCCD) number as their tax code. It has no check digit, so the tool only checks the length.
Is the code sent anywhere?
No. The check runs in your browser.
Why does the tool reject some 9-digit beginnings?
When the weighted sum divides exactly by 11, the rule would need a check digit of 10, which doesn’t exist. No valid 10-digit code starts with those 9 digits.
Can I type the dash?
Yes. 0100109106-002 and 0100109106002 are read the same.
Does it check an enterprise code (mã số doanh nghiệp)?
Yes. An enterprise’s code is also its tax code, the same 10-digit number.