Every year people ask the same question about Portugal's D7 and D8 visas: "How much income do I actually need?" The answer is a formula, not a single number, and I got tired of redoing it on paper. So I built a small calculator. This post explains the rules behind it and how the code works.
The problem
The income threshold for a D7 or D8 visa depends on two things: the Portuguese minimum wage, and the size of your household. The minimum wage changes every year, and household members count at different percentages. Consulate pages usually list the requirement in a sentence or a table for one person, but they don't do the maths for a couple with two children, or for someone supporting a parent. People end up guessing, or using out-of-date figures from a blog post.
The rules
These are the rules the calculator implements. I checked the figures against official sources in November 2026.
D7 (passive income / pension). The means of subsistence are calculated from the minimum wage (Portaria 1563/2007):
- main applicant: 100% of the minimum wage
- each other adult (spouse, or a dependent adult such as a parent): 50%
- each child under 18, or dependent adult child: 30%
The 2026 mainland minimum wage is EUR 920 (Decreto-Lei 139/2025). So a single applicant needs EUR 920 a month. A couple needs 920 + 460 = EUR 1,380. A couple with one child needs 920 + 460 + 276 = EUR 1,656. The means must be secured for at least 12 months, so the calculator also shows the 12-month total.
D8 (remote work). The requirement is an average monthly income over the last three months of at least 4 times the minimum wage. In 2026 that is 4 x 920 = EUR 3,680. No official text I could find says whether family members add to that figure, so the calculator shows both versions and doesn't pretend to know.
The page also has a 2027 preview using the proposed EUR 970 minimum wage. It is marked as a proposal, not law, and every number changes if the decree differs.
How the code does the maths
It is plain JavaScript running in the browser. There is no backend and no framework. The inputs are the visa type, the year, the number of adults, other dependent adults, the number of children and the monthly income. Nothing you type is sent to any server.
The core is only a few lines:
const MIN_WAGE = { 2026: 920, 2027: 970 }; function d7Required(year, adults, otherAdults, children) { const mw = MIN_WAGE[year]; const main = 1.0 * mw; const extraAdults = Math.max(adults - 1, 0) + otherAdults; return main + extraAdults * 0.5 * mw + children * 0.3 * mw; } function d8Required(year) { return 4 * MIN_WAGE[year]; } Two design choices mattered more than the arithmetic:
- Show the formula. Next to the result, the page prints the breakdown (for example "100% + 50% + 30% of EUR 920") and cites the legal source. If the number surprises someone, they can see why and check it against the law themselves.
- Build a checklist from the answers. The same inputs generate a document checklist: passport, proof of lawful stay, proof of income, bank statements, travel insurance, criminal record certificate and so on. Items that are common in practice but not on the official general list are labelled as such. The list can be printed or saved as PDF with the browser's print function.
Keeping the minimum wage in one lookup table means that when a new decree is published, I change one number per year.
Limitations
- This is general information, not legal or immigration advice.
- Consulates can ask for more than the general rules, and practice differs between them.
- I haven't confirmed whether a higher regional minimum wage applies if you live in Madeira or the Azores, so the tool uses the mainland figure.
- Rules and figures change. Check the official sources before you apply, or talk to a qualified professional.
If you spot a mistake in the rules or the maths, I want to know.
The calculator is here: https://dayinportugal.com/portugal-visa-income-calculator.html. Corrections welcome: dayinportugal@gmail.com.
