Calculadora del Substantial Presence Test
El Substantial Presence Test (SPT) del IRS determina si quienes no son ciudadanos son residentes fiscales en EE. UU. Es una fórmula ponderada a 3 años, fácil de aplicar mal y cara de pasar por alto. Introduce tus números y consulta tu situación.
Días en Estados Unidos
Cuenta cualquier día en el que estuvieras físicamente presente en EE. UU., con excepciones limitadas (días de tránsito, días como persona exenta, días por motivos médicos). Los días parciales cuentan como días completos.
- 2026: 0 × 1 = 0.00
- 2025: 0 × 1/3 = 0.00
- 2024: 0 × 1/6 = 0.00
What the test actually requires
The Substantial Presence Test is set out in the Internal Revenue Code, and it is two conditions rather than one. Meeting only the weighted total is not enough.
You are a US tax resident under the test for a calendar year if both hold:
- Estuviste físicamente presente en EE. UU. al menos 31 días en el año en curso, Y
- Tu total ponderado es de 183 días o más:
año en curso + 1/3 × año anterior + 1/6 × dos años antes
You were present in the United States on at least 31 days during the current year, and 183 or more weighted days across three years, counting every day of the current year, a third of the days of the prior year, and a sixth of the days of the year before that.
Failing this test does not mean you are outside the US net. The green-card test runs alongside it, and holding a green card makes you a resident regardless of how few days you spend in the country.
Five travel patterns, worked
The weighting is what makes the test hard to eyeball. A pattern that feels obviously safe can clear 183, and a year spent almost entirely abroad can still count.
Each row below runs the same formula: current-year days in full, prior year divided by three, the year before divided by six.
Weighted totals are rounded to two decimals.
| Pattern | This year | Last year | Two years ago | Weighted | Resident under the test? |
|---|---|---|---|---|---|
| 120 days a year, three years running | 120 | 120 | 120 | 180.00 | No, three days short |
| A longer current year | 150 | 120 | 120 | 210.00 | Yes |
| Heavy prior years, lighter now | 130 | 180 | 180 | 220.00 | Yes |
| Almost all the days in prior years | 25 | 330 | 330 | 190.00 | No, under 31 days this year |
| 122 days a year, three years running | 122 | 122 | 122 | 183.00 | Yes, exactly 183 |
The fourth row is the one worth remembering. Twenty-five days in the country clears 183 weighted days comfortably, and the 31-day condition is the only thing keeping that person out of residency.
Which days count
The default is broad: any day on which you were physically present in the United States at any moment counts as a full day, including the day you arrive and the day you leave.
A short list of days is excluded outright:
- Days you regularly commute to work from a residence in Canada or Mexico.
- Days you are in the United States for less than 24 hours while in transit between two places outside it.
- Days you are in the country as a crew member of a foreign vessel.
- Days you could not leave because of a medical condition that arose while you were here.
The United States means the fifty states and the District of Columbia for this purpose. Time in the US territories is generally outside the test.
Personas exentas
Algunas categorías de personas excluyen por completo sus días en EE. UU.: personas vinculadas a gobiernos extranjeros (visado A o G), profesores y aprendices con visado J o Q (con límites), estudiantes con visado F, J, M o Q (limitado a 5 años naturales) y algunas más. Si eres una persona exenta, los datos que introduzcas en esta calculadora solo deben reflejar los días no exentos.
Some people do not count their days at all while their exempt status lasts:
- Students on F, J, M or Q visas, generally for five calendar years.
- Teachers and trainees on J or Q visas, generally for two of the previous six years.
- Individuals connected to a foreign government on A or G visas.
- Professional athletes competing in a charitable sports event.
Exempt status is not automatic in practice. It is claimed on Form 8843, and that form is filed for the year even by people with no US income to report.
What happens if you meet it
Meeting the test makes you a US tax resident, which means worldwide income is reportable, not just the income you earned in the country. The foreign-account reporting rules follow along with it.
The first year is rarely a clean split. Residency generally starts on the first day of presence in the year you meet the test, which leaves you filing as a dual-status taxpayer for that year.
There are two ways out of the result even after the day count is met: the closer-connection exception below, and a tax treaty tie-breaker.
La excepción por conexión más estrecha
Aunque cumplas el SPT, aún se te puede tratar como no residente si se da todo lo siguiente: tus días en EE. UU. del año en curso son menos de 183, mantienes tu domicilio fiscal en un país extranjero y tienes una conexión más estrecha con ese país. Presenta el Form 8840 para reclamar la excepción.
The exception is not available to everyone who wants it. It requires fewer than 183 days in the current year, a tax home in the foreign country for the whole year, and a closer connection to that country than to the United States, and it is closed off if you have applied for a green card.
When a treaty overrides the count
If your home country has a tax treaty with the United States and both countries consider you resident, the treaty's tie-breaker decides which one wins, working through permanent home, centre of vital interests, habitual abode and then nationality. A treaty result can override the day count, but it has to be claimed rather than assumed.
Common mistakes
- Counting only the current year. The two prior years carry real weight, and they are what turns a modest travel pattern into residency.
- Treating part days as part days. A two-hour layover that clears immigration is a full day.
- Assuming a visa type exempts you forever. The student and teacher exemptions run out, and the day count starts from the moment they do.
- Forgetting Form 8843. Exempt status is claimed, not granted, and the claim is a filing.
- Relying on a treaty without filing for it. A tie-breaker position is a disclosed treaty-based return position, not a private conclusion.
Go deeper
- The Substantial Presence Test explained, with the formula in plain math
- Exempt individuals: students, teachers and the day-count exclusions
- The closer-connection exception and Form 8840
- FEIE 330-day calculator, for the other side of the same move
- Treaty tie-breaker walkthrough, when two countries both claim you
El Substantial Presence Test, paso a paso
¿Cuál es la fórmula del Substantial Presence Test?
Por lo general eres residente fiscal en EE. UU. en un año si pasas al menos 31 días en el país ese año y tu total ponderado llega a 183 días: todos los días de este año en EE. UU., más un tercio de los días del año pasado, más un sexto de los días del año anterior a ese.
¿Qué días no cuentan para el Substantial Presence Test?
Las exclusiones habituales incluyen los días como persona exenta (por ejemplo, ciertos estudiantes y profesores con visado F y J, durante un número limitado de años), los días en los que no pudiste salir por una afección médica surgida en EE. UU., los días en tránsito de menos de 24 horas y los desplazamientos habituales desde Canadá o México. Cada exención tiene condiciones detalladas, así que consulta las reglas del IRS para tu caso.
¿Qué es la excepción por conexión más estrecha?
Si estuviste en EE. UU. menos de 183 días en el año en curso, mantienes tu domicilio fiscal en un país extranjero y conservas una conexión más estrecha con ese país, por lo general puedes evitar la residencia estadounidense de ese año aunque la fórmula ponderada llegue a 183. Se solicita presentando a tiempo el Form 8840.
¿Se aplica el SPT a quienes tienen la green card?
No. Los residentes permanentes legales son residentes fiscales en EE. UU. por la prueba de la green card, con independencia del recuento de días. El SPT importa a quienes no tienen green card: visitantes, trabajadores con visados de no inmigrante y viajeros de negocios frecuentes.
¿Qué ocurre si cumplo el Substantial Presence Test?
Por lo general se te trata como residente fiscal en EE. UU. durante ese año natural, lo que suele implicar declarar la renta mundial. El primer y el último año pueden dividirse en periodos de estatus dual, y los convenios fiscales pueden anular el resultado, así que conviene confirmar los detalles con un profesional.
¿Esta calculadora es privada?
Sí. Se ejecuta por completo en tu navegador y nada de lo que introduces sale de tu dispositivo.
Sources & further reading
Every rule on this page is drawn from primary sources. Verify the current law before making a residency decision.
- [1]26 U.S.C. § 7701(b), definition of resident alien and the substantial presence test (se abre en una pestaña nueva)Office of the Law Revision Counsel
- [2]Substantial Presence Test (se abre en una pestaña nueva)IRS
- [3]Publication 519, U.S. Tax Guide for Aliens (se abre en una pestaña nueva)IRS
- [4]Exempt Individual, Who Is a Student or Teacher/Trainee (se abre en una pestaña nueva)IRS
- [5]Form 8843, Statement for Exempt Individuals (se abre en una pestaña nueva)IRS
- [6]Closer Connection Exception to the Substantial Presence Test (se abre en una pestaña nueva)IRS
- [7]Form 8840, Closer Connection Exception Statement (se abre en una pestaña nueva)IRS
- [8]Alien Residency, Green Card Test (se abre en una pestaña nueva)IRS
- [9]Taxation of Dual-Status Individuals (se abre en una pestaña nueva)IRS
- [10]First-Year Choice (se abre en una pestaña nueva)IRS