Substantial presence test calculator

This site is a free, in-browser calculator for U.S. presence day counts. Use it to review the substantial presence test, and to see related Form 8840 and FEIE physical presence counts from the same calendar.

What you enter

Open the calculator on the homepage. Choose the calendar year you want to review. Add travel as date ranges, and mark each range as United States, a foreign country, or other (a U.S. territory, Antarctica, or international waters). Optional country names are helpful context for the FEIE results. You can also optionally tag a U.S. range with a presence exception if you have already determined that an official exception applies.

Your calendar is stored only in this browser’s local storage on this device. You can export or import a JSON copy, or clear the calendar. There is no account, no payment, and no third-party analytics.

What you get back

What the results do not mean

This is a planning tool, not a filing product and not tax advice. The output never certifies that you are a U.S. resident, that you have a closer connection or a foreign tax home, or that you qualify for the foreign earned income exclusion. It does not compute the green card test, treaty tie-breakers, dual-status dates, the bona fide residence test, or exclusion dollar amounts. Compare the numbers with the official IRS pages listed below.

Open the calculator

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