Tax home and closer connection are not day counts

Form 8840 asks about your tax home and your contacts with a foreign country. Those questions cannot be answered from a travel calendar alone.

The day-count gate is only the first filter

The closer connection exception, described on the IRS closer connection page and in Form 8840, has several conditions. One of them is that you were present in the United States less than 183 days during the year. That is the part a calendar can help with, together with the substantial presence lookback. See Form 8840 and the day-count gate.

The exception also requires a tax home in a foreign country during the entire year, a closer connection to that country than to the United States (or a qualifying closer connection to two foreign countries), and that you had not taken steps toward, and did not have an application pending for, lawful permanent resident status.

What “tax home” means on the form

The 2026 Form 8840 states that your tax home is the general area of your main place of business, employment, or post of duty, regardless of where you maintain your family home. If you do not have a regular or main place of business because of the nature of your work, then your tax home is the place where you regularly live. If you have neither, you are considered an itinerant and your tax home is wherever you work. For the closer connection exception, the form also says the tax home must exist for the entire year and must be in the foreign country (or countries) to which you claim a closer connection.

The form further states that if you had a tax home in the United States at any time during the year, you are not eligible for the closer connection exception and should not file Form 8840. This calculator does not determine where your tax home was.

Closer connection is a facts-and-circumstances test

The IRS says you have a closer connection to a foreign country if you have maintained more significant contacts there than with the United States. Factors include, but are not limited to: the country of residence you designate on forms and documents; the types of official forms you file (for example Form W-9 versus Form W-8BEN or W-8ECI); and the location of your permanent home, family, personal belongings, social, political, cultural, or religious affiliations, business activities other than those that constitute your tax home, the jurisdiction of your driver’s license, where you vote, and charitable organizations to which you contribute.

A permanent home may be a house, an apartment, or a furnished room, and it may be rented or owned. It must be available at all times, continuously, and not solely for short stays. Counting nights in a country is not the same as showing a closer connection.

What the calculator will show

If the substantial presence day-count test is met and current-year counted U.S. days are fewer than 183, the results list these qualitative conditions as a checklist. The tool does not score the checklist, does not certify a closer connection, and does not tell you that you must file Form 8840. For timing, see Form 8840 filing timing.

Open the calculator

Enter your travel calendar once. All day-count math runs in your browser.