Vietnam Tax Residency Checker
Count days in Vietnam from entry / exit dates (NĐ 253/2026), decide PIT residency per year, the first 12-month tax period and the 20% non-resident rate.
Result
Press “Run” to see the result.
Send the trips (entry and exit dates; an empty exit means still in Vietnam until as_of). The API counts the days of presence the way Nghị định 253/2026/NĐ-CP Điều 4 does from 1/7/2026 (the arrival day counts as one day and the departure day as one day; in and out on the same day = 1 day), per calendar year and over the 12 consecutive months from the first day of presence, and adds habitual residence (permanent_residence, or leases of rental_days ≥ 183 in the year).
For each year it says resident or non-resident with the reasons, the tax period (calendar year, or the first 12 months from the first day when the 183 days are only reached that way, NĐ 253/2026 Điều 66.1.a), and the consequence: progressive 5-bracket tax with family deductions (link to /v1/vn-pit-annual) or 20% on Vietnam-sourced salary. count_method=tt111 recounts with the former rule (arrival and departure days together as one day) and the answer flags years whose result changes.
Dates are processed in the request only and never stored. Reference only, not tax advice; check tax treaties with /v1/vn-tax-treaty.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-tax-residency" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"trips":[{"entry":"2026-03-10","exit":"2026-06-20"},{"entry":"2026-09-01","exit":"2026-10-15"},{"entry":"2027-01-05","exit":"2027-03-31"}],"as_of":"2027-11-16"}'const res = await fetch('https://apibox.io.vn/v1/vn-tax-residency', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"trips": [
{
"entry": "2026-03-10",
"exit": "2026-06-20"
},
{
"entry": "2026-09-01",
"exit": "2026-10-15"
},
{
"entry": "2027-01-05",
"exit": "2027-03-31"
}
],
"as_of": "2027-11-16"
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-tax-residency",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"trips": [{"entry": "2026-03-10", "exit": "2026-06-20"}, {"entry": "2026-09-01", "exit": "2026-10-15"}, {"entry": "2027-01-05", "exit": "2027-03-31"}], "as_of": "2027-11-16"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-tax-residency');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"trips":[{"entry":"2026-03-10","exit":"2026-06-20"},{"entry":"2026-09-01","exit":"2026-10-15"},{"entry":"2027-01-05","exit":"2027-03-31"}],"as_of":"2027-11-16"}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
How are the arrival and departure days counted?
From 1/7/2026 (NĐ 253/2026 Điều 4) the arrival day counts as one day and the departure day as one day; entering and leaving on the same day counts as one day. The former TT 111/2013 counted them together as one day (count_method=tt111).
What if I have fewer than 183 days in the calendar year?
You are still resident if you reach 183 days in the 12 consecutive months from your first day in Vietnam (the first tax period is then those 12 months) or if you have a habitual residence (registered residence, or leases ≥ 183 days) and cannot prove residence elsewhere.
How are non-residents taxed?
At 20% of the salary for work in Vietnam, without family deductions and without annual finalisation (NĐ 253/2026 Điều 64.1).