One of the unexpectedly important yet seemingly trivial tasks for expats is tracking your presence both in Spain and elsewhere as a means to determine tax obligations and meet residency requirements. Learn how to count your days, confirm the requirements for your residency situation, and review the technologies available to help you.
If you hold this visa, you must stay in Spain for 183 days out of each year to maintain your residency. This automatically makes you a tax resident of Spain, so be aware that this visa will have tax consequences for you
If you live in Spain, or spend a lot of time here, you're probably juggling at least three different "day counts" in your head. They run on different clocks, they don't share a calendar, and blowing past one doesn't mean you've blown past the others. One count decides whether Spain taxes your worldwide income. A second decides how long you can stay in the Schengen area without a visa. A third decides whether your residency permit survives its next renewal, whether you can eventually apply for EU long-term residence, and whether the years you've spent here count toward citizenship. Mixing these up is one of the most common — and most expensive — mistakes expats make, so this guide keeps them separate on purpose.
Tax residency is the most consequential count, because it determines whether the Agencia Tributaria (Spain's tax authority) taxes just your Spanish-source income or your entire worldwide income. Spain's tax year runs January 1 to December 31, and the law (Article 9 of the Ley del IRPF) sets out three independent tests. Meeting any one of them makes you a Spanish tax resident for that full calendar year — there's no partial-year residency and no picking whichever test is more convenient.
If you spend more than 183 days in Spain during a calendar year, you're a tax resident, full stop. A few details expats often get wrong:
Even if you spend fewer than 183 days physically in Spain, you can still be classified as a tax resident if the "main nucleus or base" of your economic activity is here. The Agencia Tributaria looks at where your income is generated, where your property and other assets sit, and from where you manage them, among other factors. There's no single bright-line test; tax authorities and courts weigh the whole picture. In practice, this catches people who've structured their life around Spain — a Spanish-based business, most of their investments routed through Spain, or a home and bank accounts here — while trying to spend just under half the year physically present.
The one test that surprises people the most: Spanish law presumes you're a tax resident if your (non-legally-separated) spouse and minor dependent children habitually live in Spain, even if you personally come and go and never hit 183 days yourself. The presumption is rebuttable — you can push back with evidence — but the burden of proof falls on you. It's a common trap for anyone imagining they can keep the family settled in Spain while personally staying just under the 183-day line to preserve non-resident tax status elsewhere.
Becoming a Spanish tax resident means filing an annual declaración de la renta (IRPF) covering your worldwide income — salary, rental income, dividends, foreign pensions, crypto gains, all of it — generally at progressive rates that can run higher than many expats expect at upper income bands, and it typically also triggers the Modelo 720 asset-declaration requirement for significant assets held abroad. Non-residents, by contrast, are generally taxed only on Spanish-source income. There are legitimate ways to plan around this, including the "Beckham Law" special expat regime for certain new arrivals (which lets qualifying employees opt into a flat rate on Spanish-source income for a period of years instead of the standard progressive scale) and the US-Spain tax treaty considerations that matter for American citizens specifically. None of this is a substitute for professional advice: tax residency has real money attached to it, the rules have nuance this article can't fully capture, and a qualified gestor or tax advisor should confirm your specific situation before you file anything. For the fuller picture on obligations and deadlines, see our guide to taxes for expatriates in Spain, and if you're a US citizen, filing taxes as a US expat in Spain covers the added layer of IRS reporting that doesn't go away just because you're also filing in Spain.
This is a completely different count, and it only applies if you're in Spain (or elsewhere in the Schengen area) without a residency visa — as a tourist, or on a short business trip, using visa-free entry. The rule: you can spend up to 90 days within any rolling 180-day window across the entire Schengen area combined. There's no monthly or yearly reset; every time you plan a trip, you count backward 180 days from that date and add up how many of those days you spent anywhere in Schengen.
Two things people frequently get wrong:
Overstaying even by a single day is treated seriously: consequences can include fines, a formal overstay record, and in more serious or repeated cases an entry ban from the Schengen area for a period of years — the exact response varies by country and by how the overstay came to light. It is generally not worth testing.
Historically, this rule was enforced (imperfectly) through passport stamps, which meant it was genuinely difficult for border agents to reconstruct someone's full travel history at a glance. That has changed. The EU's Entry/Exit System (EES) began its phased rollout in October 2025 and became fully operational across Schengen borders in April 2026, replacing manual passport stamping for non-EU travelers on short stays with biometric registration (fingerprints and a facial scan on first entry, referenced automatically on every crossing after that). In practice, your remaining Schengen days are now visible to a border officer in real time, tallied automatically. It's a meaningful shift: the "no one can really check" assumption that quietly governed a lot of grey-area travel behavior is no longer a safe one, if it ever fully was. For the full rundown of how Schengen visa-free entry works and how it interacts with Spain-specific visas, see our dedicated Schengen visa guide.
The third clock is the one many readers come looking for: if you already hold a Spanish residency permit, how much time can you spend outside Spain without jeopardizing it? The honest answer is that this depends heavily on which specific status you're protecting, and the rules have shifted meaningfully in the last two years.
For years, the standard advice was rigid: don't exceed six months outside Spain in any twelve-month period, or risk having your temporary residency permit cancelled outright. That specific cancellation rule has since been struck down. A series of Spanish Supreme Court rulings held that the provision lived in the immigration regulation, a lower-rank rule than the Immigration Law itself, and created a ground for cancellation the law never authorized — so the court declared it null. Reporting on the practical effect has indicated that temporary residency holders can generally now renew even after absences exceeding six months in a year, provided they still satisfy the substantive requirements tied to their specific visa type — for example, still meeting income or savings thresholds for a Non-Lucrative Visa, or demonstrating a minimum period of actual work for an employment-based permit.
Except that it isn't quite that simple for everyone. Royal Decree 1155/2024 — approved in late 2024 and in force since May 2025 — reinstated a 183-day-per-year "real and effective residence" requirement specifically for Non-Lucrative Visa renewals: a distinct legal basis from the rule the Supreme Court struck down, and one that immigration offices have reportedly been enforcing at renewal time. There's ongoing legal debate about whether this new NLV-specific rule rests on the same shaky regulatory footing as its predecessor, but until or unless it's challenged and overturned, NLV holders should plan around it rather than assume the earlier court rulings protect them too. This is the clearest example in this whole topic of why "which visa do you hold" changes the answer: what's true for a self-employed autónomo permit is not automatically true for a Non-Lucrative Visa, even though both are "temporary residence."
The safest approach given this legal churn: track your actual days in Spain regardless of which rule currently applies to your visa type, keep documentation (padrón registration, utility bills, lease, flight records) that can demonstrate your pattern of residence, and confirm the current requirement for your specific permit type with a gestor or immigration lawyer before you renew — and certainly before you book six months of travel.
This is a separate, higher tier of status you become eligible for after five years of continuous temporary residency, and it comes with its own absence rules that were not affected by the Supreme Court rulings above. To qualify, your absences during that five-year qualifying window generally cannot exceed:
These thresholds are commonly cited by immigration lawyers as the practical rule of thumb, though absences for documented work-related reasons may be treated more generously in some cases. Once you've secured EU long-term residence status, the bar for losing it moves again: the status generally lapses only after twelve consecutive months spent outside the entire European Union — time in any EU country keeps it alive — and even then, recovery procedures exist under certain conditions.
This is the least numerically precise of the three sub-clocks, and that's worth understanding rather than fighting. Spanish nationality by residence (Article 22 of the Civil Code) requires legal, continuous residence for ten years for most applicants, or two years for nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portuguese nationals, and Sephardic Jews, among the recognized shortened categories. Notably, the law itself does not set a specific day-count or month-count that automatically breaks "continuity" — that determination has historically been left to case-by-case judicial and administrative interpretation, weighing the length of any absence against your overall pattern of ties to Spain (padrón registration, family here, children in Spanish schools, property, employment).
In practice, immigration lawyers commonly suggest a rough guideline of keeping absences to no more than around six months a year for the standard ten-year path, and considerably less — some say no more than a few months total — for the shortened two-year paths, since those routes involve much less accumulated time to demonstrate genuine settlement. But these are lawyers' rules of thumb; the statute itself never names a number. Case outcomes have varied with the applicant's overall circumstances, and applicants have reportedly been asked in recent years to document their exits and entries in more detail than before. If citizenship is your eventual goal, the conservative move is to minimize time outside Spain well beyond whatever the bare legal minimum might be, and to keep every piece of evidence of your life here (padrón, contracts, school enrollment, employment records) in good order well before you apply. For everything else involved in that path, including the dual-nationality question that trips up citizens of countries without a reciprocal agreement with Spain, see our guide to Spanish citizenship and dual nationality.
| Clock | What it governs | The count | Resets how |
|---|---|---|---|
| Tax residency | Whether Spain taxes your worldwide income | More than 183 days in Spain in a calendar year (or the economic-centre / family tests) | Each January 1 |
| Schengen 90/180 | How long you can stay visa-free across Schengen | Max 90 days in any rolling 180-day window | Rolls forward day by day; no fixed reset date |
| Residency/citizenship continuity | Whether your permit renews, upgrades, or counts toward citizenship | Varies by status: 183 days (NLV renewal), 6/10 months (EU long-term), no fixed number (citizenship) | Depends on the specific status and its qualifying window |
The most important habit this table is meant to instill: before you answer "how many days can I be outside Spain," ask "outside Spain for which purpose." The honest answer is almost never a single number.
It's tempting to assume that with the EU's open internal borders, nobody can really reconstruct where you were on any given day. That assumption was already weaker than it looked, and it's weaker still now. Multiple everyday data trails tie back to your NIE: utility bills and rent payments that stop and start, bank statements showing where you were spending money, healthcare system usage, and — for Schengen purposes specifically — the biometric EES records described above, which now log every entry and exit at the external Schengen border digitally, with no more reliance on stamps that could be missed, illegible, or simply never checked. Not every gap gets caught, and certainly not immediately. But the assumption that gaps stay invisible has become a genuinely bad bet, and the penalties for guessing wrong — fines, entry bans, denied renewals, a citizenship application pushed back years — tend to cost far more than simply tracking your days properly from the start.
Given how much rides on getting this right, a growing number of apps exist specifically to log your presence by country and flag how close you are to a given threshold. Look for one that lets you: back-fill trips from the past as well as log new ones going forward, group your day counts by calendar year as well as by rolling window, and export a clean report you can hand to a gestor, immigration lawyer, or tax advisor. Some are built specifically around the Schengen 90/180 calculation; others are more general-purpose travel-day trackers that can be adapted to any of the three clocks described above by simply naming your trips accordingly. Whichever you choose, treat the app's output as your own personal record: border systems and immigration offices keep their own tallies, and theirs are the ones that decide outcomes. If a renewal or application is on the line, back up the app's numbers with padrón registration, lease agreements, utility bills, and flight or entry records.
None of these three clocks care about the other two. You can be well under your Schengen 90 days for the year and still trip the 183-day tax residency threshold simply because you live in Spain full-time. You can be a Spanish tax resident and still be at risk of losing a Non-Lucrative Visa renewal if you haven't logged your 183 days in the way the current regulation requires. You can satisfy every temporary-residency renewal for years and still find that a series of long absences quietly undermines a future citizenship application, because that particular clock never had a clean numeric line to begin with. Keep a simple, dated log of where you were, confirm the specific rule attached to your specific visa or goal before you plan extended time away, and treat this article as an orientation to the landscape — before you act on any of it, put your actual paperwork in front of a gestor, immigration lawyer, or tax advisor. If your legal status in Spain is already shaky for reasons unrelated to day-counting, our guide to arraigo as a path to staying legal in Spain covers a different but related set of options worth knowing about.
SpainExpat Plus Ultra
SpainExpat's household membership pays the gestores and immigration lawyers who prepare and file your applications, and the Compliance Minder tracks the renewals that follow. Its visa work is for the digital nomad and non-lucrative routes.
Ask for an invitation You'll see your price and terms before you pay anything.Fortunately, apps exist that can help you keep track and stay on the right side of Spanish residency visa laws.
It could be argued that with the EU’s seamless travel norms (pre- and presumably post-pandemically speaking), there’s no way for the authorities to know that rather than being in your normal residence in Spain, you nipped off to Bordeaux or Berlin for a few months. However, this is not a wise assumption to make. The penalties are just too significant. You could find yourself banned from the EU entirely for a number of years, asked to pay a steep fine, or both. Or, if nothing were to happen right away, you might breathe easy, thinking you’ve gotten away with a Schengen violation -- only to find it biting you a few years later when you want to make your residency in Spain permanent.
But, you might ask -- how would they ever know? Good question. Remember that you leave clues everywhere, and that multiple sources of information about you in Spain are tied to your NIE number. For instance, the electric bill for the apartment you lease in Spain, conveniently pulled out of your bank account every month? If that bill stops for three months here and four months there because you’ve skipped town to hang out in another EU country, that information is easily traceable by the Spanish government, and therefore available to the Schengen authorities. They may require bank account statements as well (although the official required documentation list indicates a bank statement is only part of your evidence of financial means). A bank statement would show your spending, wherever it occurred. In short, be extremely careful about your electronic and financial trails. It’s not as easy as it used to be.
In sum, it’s very important to keep track of how long you spend outside of Spain for the long term. Fortunately, apps exist that can help you keep track and stay on the right side of Spanish residency visa laws. We’ll highlight our top three here.
TrackingDays™ (Lauco Trading Ltd.)

Download: Tracking Days website
TrackingDays™ was once free, leading to its popular adoption among expats looking to effortlessly track their travels. It is now a paid app, but the reasonable fee ($3.99/mo or $41.99/yr) buys you the peace of mind of knowing precisely how many days (and nights) you’ve spent where. The company offers a one-month free trial as a courtesy, but you’re likely to want this app for the long haul. You can even add in trips and locations after-the-fact, and TrackingDays will track them for you in your trip History, along with your current travel in your Timeline (in which the app tracks your location automatically). You do need to keep TrackingDays running at all times when you need to track your presence. It is not an intrusive app, nor does it drain battery life; but you will need to regularly make sure that it’s running. Note that this app is available only in the Apple App Store; there is no Android version.
TRVL (Cyril Chandelier)

TRVL in Apple App Store, 5.0 Rating. (No Android version available.)
Download: TRVL in the iOS App Store
TRVL, like TrackingDays, turns your iPhone into your personal country presence tracker. Just as with TrackingDays, it will track your travels as long as your iPhone is on and the app is running. (With TRVL, you can also set the app to track your location while it’s not running.) The Pro version ($2.99) lets you access day counts by country; group day counts by calendar year; and email a list of countries you have visited (to share with, perhaps, your immigration lawyer or your tax professional). TRVL improves on TrackingDays by allowing you to enter an arbitrary “start date” for any trip, even one that’s been automatically tracked. (So, no painstakingly-slow adding of days from the past.) You can include extra data like your transportation mode for a trip, and also mark a stop in a country as a layover (great for those EU connector flights from the US to Spain). Note that this app is available only in the Apple App Store; there is no Android version.
MONAEO (Monaeo)
Apple App Store, 4.0 Rating; Google Play Store, 4.1 Rating.
Download: iOS App Store link or Google Play Store link
Unlike our top two contenders, MONAEO is not a standalone app, but a companion to a broader tax compliance service for business travelers. As such, it requires login as soon as you start the app. At the cost of $99 per month for individuals, this app is a step above the others, providing “audit-tested” automated trails for presence at the city, state and country levels, as well as tax related data, expense management, and more. It also boasts secure storage of your data for audit-trail purposes and secure communication from Monaeo’s servers to your device. Because they can incur more significant tax consequences, as well as having more freedom to travel outside of Spain for longer periods of time, those fortunate holders of the Golden Visa, Entrepreneurial Visa or another investment-level visa may find this app most useful. In addition, someone who simply needs an Android app rather than iOS, or anyone who wants their data encrypted for extra security, may find this app worth the investment.
Honorable mention goes to Residays (Dmitriy Tomisonets, 5.0 Star Rating in the Apple App Store), which was designed to provide a “countdown to residency” based on your country of origin and your country of intended residency. Its Apple App Store rating is reassuringly high, but there are only two ratings, and it has not been updated in years. You can download Residays at: iOS App Store. Another honorable mention to the Schengen Calculator (Vitaliy Golubenko, 3.3 Star Rating in the Apple App Store). It’s right on target for those just needing to manage their time in the Schengen area without regard to tracking their time in Spain specifically, and unlike Residays, it’s been updated more recently. But its relatively low rating and somewhat limited functionality left it out of our main contenders list. If you want to give it a try, you can download the Schengen Calculator at the App Store: iOS App Store link.
A large number of more general-purpose day counters might be useful for tracking your days in a country, and exist for both iOS devices and Android by the dozen. Most of these apps let you track the number of days of X (sobriety, yoga sessions, meditation) or count down the number of days to Y (anniversaries, wedding dates, birthdays). Any of them could be tweaked to purpose just by some clever tracker-naming. In addition, there are lots of travel diary apps and similar; while not expressly advertising themselves as location-trackers, they could be used that way. For example the nifty and multi-purpose TravelLog (Meagan Sanchez, 5.0 Star Rating in the Apple App Store) might be just the thing, and is a travel diary as well as a tracker. But it’s relatively new, and only has one review. The similarly-named, similarly multi-functional TraveLog (Panterra, 4.2 Rating in the Google Play Store with more than 1,000 installations) looks very promising, but we did not test it.
Speaking of Android apps, it must be noted that there are numerous highly rated Schengen and Visa-related apps available in the Google Play Store that are compatible solely with Android devices. Our apologies to fans of these apps, but we were unable to test any of them. If we promise to do a follow-up article rounding up the best Android apps for Spain, Visa and Schengen-tracking purposes, do you promise not to be too mad at us? (Even better, send us your recommendations!)
Add a comment
Visit the old SpainExpat forum for community discussions.