# F-1 to H-1B: Form 1040 or Form 1040-NR?

In most cases, you file Form 1040-NR for the year you change from F-1 to H-1B. Your student days do not count, and a change on October 1 gives only 92 days. Here is the answer for each arrival year and each H-1B start date in 2026.

By Kyoto. Published November 22, 2026. Updated November 23, 2026. Source: https://heykyoto.com/blog/f1-to-h1b-tax-return

In most cases, you file Form 1040-NR for the year you change from F-1 to H-1B. Your F-1 days do not count in your first 5 calendar years as a student. Your H-1B days count, and a change on October 1 gives only 92 days. You need 183 to be a resident.

Two dates can change this answer: the year you first came as a student, and the day your H-1B started. The tables below give the result for each.

## Why the year of the change has two parts

Your days in the US decide if you are a resident, through the [substantial presence test](https://heykyoto.com/blog/how-to-calculate-substantial-presence-test). In the year of the change, the two visas follow different rules.

- **Your F-1 days do not count for 5 calendar years.** A part of a year counts as a full year. See [exempt individual: student](https://www.irs.gov/individuals/international-taxpayers/exempt-individual-who-is-a-student). OPT is work permission for an F-1 student, so time on OPT is F-1 time. See [Optional Practical Training for F-1 students](https://www.uscis.gov/working-in-the-united-states/students-and-exchange-visitors/optional-practical-training-opt-for-f-1-students).
- **Your H-1B days count from the first day.** H-1B is not in the IRS list of [days that do not count](https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test).

A nonresident files [Form 1040-NR](https://heykyoto.com/blog/what-is-form-1040-nr). A resident files Form 1040.

## The answer by the year you came as a student

The Kyoto engine computed each row for 2026. Each person changed to H-1B on October 1, 2026. Each person has no green card, had no earlier visits to the US, took no trips out, obeyed the rules of the F-1, and stayed through December 31, 2026. No student here claims more than 5 student years.

| First came on an F-1 | Student years used before 2026 | Days counted in 2026 | Status for 2026 | Tax return |
|---|---|---|---|---|
| August 2023 | 3 | 92 | Nonresident | Form 1040-NR, with Form 8843 |
| August 2022 | 4 | 92 | Nonresident | Form 1040-NR, with Form 8843 |
| January 2022 | 4 | 92 | Nonresident | Form 1040-NR, with Form 8843 |
| December 20, 2021 | 5 | 365 | Resident | Form 1040 |
| August 2021 | 5 | 365 | Resident | Form 1040 |

Look at the two rows for January 2022 and December 20, 2021. The arrival dates are three weeks apart, and the answers are opposite. The 12 days in December 2021 used the full year 2021. So that student used 5 years before 2026, and every day of 2026 counts.

## The answer by the date your H-1B started

Most changes start on October 1. Some start on a different day. The engine computed each row for a student who first came in August 2023, with the same conditions as above.

| H-1B started in 2026 | Days counted in 2026 | Status for 2026 | Residency starts | Tax return |
|---|---|---|---|---|
| April 1 | 275 | Dual status | April 1 | Form 1040, with a statement for the nonresident part |
| July 2 | 183 | Dual status | July 2 | Form 1040, with a statement for the nonresident part |
| July 3 | 182 | Nonresident | Not in 2026 | Form 1040-NR |
| October 1 | 92 | Nonresident | Not in 2026 | Form 1040-NR |
| December 1 | 31 | Nonresident | Not in 2026 | Form 1040-NR |

July 2 is the last start date that gives 183 days in 2026. In each row, the person also sends Form 8843.

A dual-status year has stricter rules. You cannot take the standard deduction, and you cannot file a joint return unless you make a choice with your spouse. See [taxation of dual-status individuals](https://www.irs.gov/individuals/international-taxpayers/taxation-of-dual-status-individuals).


## Form 8843 in the year of the change

You were a student for part of the year, and those days do not count. The IRS says that a person who leaves out days as a student must file Form 8843. You attach it to your tax return. See [exempt individual: student](https://www.irs.gov/individuals/international-taxpayers/exempt-individual-who-is-a-student) and [about Form 8843](https://www.irs.gov/forms-pubs/about-form-8843).

## The first-year choice

A nonresident in the year of the change can choose to be a resident from the H-1B start date. This is the first-year choice, and it gives you a dual-status return for 2026.

You can make it when four things are true:

1. You were not a resident in 2025.
2. You were in the US for 31 days in a row in 2026. Student days do not count here.
3. From the first of those days to December 31, you were in the US on 75% of the days. For this count, up to 5 days out of the US count as days in the US.
4. You have enough days in 2027 to be a resident for 2027.

The engine finds that the person who changed on October 1 can make the choice, if the person stays in the US in 2027. The choice starts on October 1. A change on December 2 or later cannot use it for 2026, because fewer than 31 days are left in the year.

You make the choice in a statement that you attach to Form 1040. You cannot file until the fourth thing is true, so you can ask for more time to file on Form 4868. See [first-year choice](https://www.irs.gov/individuals/international-taxpayers/tax-residency-status-first-year-choice).

The choice has a cost. From the date your residency starts, the US taxes your income from every country, and the dual-status rules above apply.

Tell Kyoto about your year in your own words. Kyoto prepares your tax return, and a licensed CPA reviews and signs it. [Get started](https://heykyoto.com/sign-in).

## Social Security and Medicare tax after the change

A nonresident student does not pay Social Security and Medicare tax on wages from work that the visa allows. The IRS says that this does not apply to two groups:

- **A student who changes to a status that is not exempt.** H-1B is a work status, so the tax applies to your H-1B wages.
- **A student who becomes a resident alien.** In the first table, that is each student who first came in 2021.

See [foreign student liability for Social Security and Medicare taxes](https://www.irs.gov/individuals/international-taxpayers/foreign-student-liability-for-social-security-and-medicare-taxes).

## What to do, in order

1. **Get your travel dates.** Download [your I-94 travel history](https://heykyoto.com/blog/how-to-get-i94-travel-history) and check each date.
2. **Find your two visa dates.** The first is the start date on your first I-20. The second is the "valid from" date on your H-1B approval notice.
3. **Find your row** in the two tables above.
4. **File by the due date.** A return with US wages that had tax withheld is due on April 15, 2027. See the [instructions for Form 1040-NR](https://www.irs.gov/instructions/i1040nr).

## But this matters too

- **Earlier visits can change your case.** Days in 2025 and 2024 count in part, when they were not student days.
- **Software for residents gives you a resident return.** See [can you use TurboTax on an F-1 visa or OPT](https://heykyoto.com/blog/can-you-use-turbotax-on-f1-opt).
- **Your spouse has their own status.** A spouse on an H-4 counts every day, because the IRS list of [days that do not count](https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test) has no H-4 in it. The close family of a student comes under the [student rule](https://www.irs.gov/individuals/international-taxpayers/exempt-individual-who-is-a-student).
- **Your state return is separate,** and the state has its own rule for who is a resident.

## Sources

- [Exempt individual: who is a student (IRS)](https://www.irs.gov/individuals/international-taxpayers/exempt-individual-who-is-a-student)
- [Substantial presence test (IRS)](https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test)
- [Optional Practical Training (OPT) for F-1 students (USCIS)](https://www.uscis.gov/working-in-the-united-states/students-and-exchange-visitors/optional-practical-training-opt-for-f-1-students)
- [Tax residency status: first-year choice (IRS)](https://www.irs.gov/individuals/international-taxpayers/tax-residency-status-first-year-choice)
- [Taxation of dual-status individuals (IRS)](https://www.irs.gov/individuals/international-taxpayers/taxation-of-dual-status-individuals)
- [Foreign student liability for Social Security and Medicare taxes (IRS)](https://www.irs.gov/individuals/international-taxpayers/foreign-student-liability-for-social-security-and-medicare-taxes)
- [About Form 8843 (IRS)](https://www.irs.gov/forms-pubs/about-form-8843)
- [Publication 519, U.S. Tax Guide for Aliens (IRS)](https://www.irs.gov/publications/p519)
- [26 U.S.C. section 7701(b)](https://www.law.cornell.edu/uscode/text/26/7701)

## Questions and answers

### Do I pay Social Security and Medicare tax after I change from F-1 to H-1B?

Yes, on your H-1B wages. A nonresident student does not pay Social Security and Medicare tax on wages from work that the visa allows. The IRS says that this does not apply to a student who changes to a status that is not exempt, and H-1B is a work status.

### Do I send Form 8843 for the year I change to H-1B?

Yes, if you are in your first 5 calendar years as a student. Your student days in that year do not count, and the IRS says that a person who leaves out days as a student must file Form 8843. You attach it to your tax return.

### Does time on OPT count as F-1 time?

Yes. OPT is work permission for an F-1 student, so time on OPT is F-1 time. Those days do not count in your first 5 calendar years as a student.

