Visa Strategy

NJ-1040NR for H-1B and OPT Workers: Living in New York, Working in New Jersey (or the Reverse)

Live in one state and work in New Jersey on OPT or H-1B? Here is when the NJ-1040NR applies and how the credit in your home state keeps you from paying tax twice.

By F1Jobs Team · Published · 10 min read
Commuters waiting on a train platform at dawn with the Manhattan skyline across the Hudson River in the background

Part of our guide to US taxes on F-1, OPT and H-1B.

You accepted an offer at a company in Jersey City, Newark or Princeton, but your apartment is in Manhattan, Brooklyn or Queens. Or the reverse: you live in Hoboken and your H-1B employer is in midtown. Your W-2 may show wages and withholding in a state you do not live in, and you are wondering whether you now owe two states.

Short answer: you file the NJ-1040NR when you have New Jersey-source income but are not a New Jersey resident, and your home state then gives you a credit for tax paid to New Jersey so the same wages are not fully taxed twice. This post explains how that works for people on F-1 OPT, STEM OPT and H-1B. It is general information, not tax advice.

Who needs to file the NJ-1040NR?

Direct answer: The NJ-1040NR is New Jersey's nonresident income tax return. You generally file it if you were not a New Jersey resident for the year but received income from New Jersey sources, most commonly wages for work you physically performed in New Jersey. The Division of Taxation's instructions for the form set the thresholds and edge cases, so read the current version before you file.

Two points trip visa holders up most:

The IRS form numbers are different from the state ones. Federal Form 1040-NR for tax year 2026 is due 2027-04-15 if you had wages subject to withholding, and otherwise 2027-06-15 (our arithmetic; the 2026 instructions are not yet posted). Check the New Jersey Division of Taxation page for the state due date rather than assuming it matches.

Do I file in New York and New Jersey?

Usually yes, in two directions. The state where you live taxes you on everything you earn, wherever it was earned. The state where you work taxes only the income sourced there. Then your home state gives you a credit for the tax paid to the work state.

Where you liveWhere you workReturns you generally fileCredit
New YorkNew JerseyNJ-1040NR (NJ wages) and a New York resident return (all income)New York resident credit for tax paid to New Jersey, claimed on the New York return
New JerseyNew YorkNew York nonresident return (NY wages) and NJ-1040 resident return (all income)New Jersey credit for tax paid to New York, claimed on the New Jersey return
New JerseyNew JerseyNJ-1040 resident returnNone needed
PennsylvaniaNew JerseyCheck the current New Jersey and Pennsylvania guidance on the two states' reciprocal arrangementDepends on that arrangement

The last row is a reminder that some neighboring states have special arrangements. New York and New Jersey do not use a wage-exemption arrangement for commuters, which is why both returns come up. Confirm the current rules on each state's tax department site before relying on any table, including this one.

If you moved states during the year, that is a different problem from commuting. See our post on state tax returns when F-1, OPT and H-1B workers move between states.

How does the resident credit work between NJ and NY?

Direct answer: The resident credit lets you subtract, from your home-state tax, the tax you paid to the other state on income that state was entitled to tax. It is normally capped at the amount your home state would charge on that same income. That prevents double taxation, but if the work state's rate is higher, you can still pay the higher amount overall.

In practice the mechanics are:

  1. Your home state computes tax on your full income, as a resident.
  2. You compute the tax the work state charged on the income sourced there.
  3. You claim the lesser of that tax and the home state's tax attributable to the same income as a credit.
  4. You attach the work-state return or the form the home state asks for as proof.

Each state has its own credit form and worksheet. Use the current official forms from the New York Department of Taxation and Finance and the New Jersey Division of Taxation, and file the work-state nonresident return first because the credit depends on its result.

NJ-1040NR instructions: a step-by-step filing order

  1. Collect every W-2 and note the state boxes. Compare the state wages and state withholding to where you physically worked. Employers sometimes withhold only for the state where the office is.
  2. Count your work days by location. If you commuted, worked remotely or traveled, keep a simple calendar. The source of wages can depend on days worked in each state.
  3. Decide your residency for each state. Use each state's own definition. If a tax professional is helping you, bring your lease, your arrival date and your visa timeline.
  4. Finish your federal return. The state returns start from federal figures. If you file Form 1040-NR, our guide to the 1040-NR mailing address and due date covers where and when.
  5. Complete the NJ-1040NR using the current New Jersey instructions. Report the New Jersey-source income and any New Jersey withholding.
  6. Complete your home-state resident return and claim the credit. Add the credit form for tax paid to the other state.
  7. File and keep copies. Keep the W-2s, both returns and payment confirmations.

Does New Jersey follow tax treaties?

Do not assume it does. A federal tax treaty can exempt some income from federal tax, but states decide for themselves whether to honor it. California, for example, does not follow federal tax treaties; unless a treaty specifically excludes the income from California tax, it is taxable (FTB Pub 1031). That is California, not New Jersey, and it is a warning about assuming. Check the New Jersey Division of Taxation site for the treaty and income type you want to claim, and if the answer is unclear, ask a tax professional. Our related post on the California state tax treaty rules for F-1 and OPT shows how one state's answer can differ from the federal one.

Also note that treaties generally cover limited things, such as certain scholarship or study income, and many wage claims do not apply to full-time employment on OPT or H-1B. That is a federal question to settle with a tax professional before you carry anything to a state return.

What if my employer withheld tax for the wrong state?

This happens often with commuters, especially in your first months or after a team moves between offices.

If your situation involves multiple employers, a mid-year job change, or remote days, our post on H-1B taxes when you change employers mid-year is a good companion.

Why this matters on OPT and H-1B

State returns are a place where your visa status quietly shows up. Your work location also affects your H-1B paperwork: the employer's Labor Condition Application (LCA) is tied to specific worksites, and a change in where you physically work can have immigration consequences that are separate from tax. Before you move your desk or start working from a new state, ask your employer's immigration counsel whether the move needs an amendment. For job-market context on the two sides of the river, see our guides to New Jersey H-1B jobs in pharma and finance and New York City H-1B jobs in finance and tech.

For work authorization basics, the official USCIS page on working in the United States is the source of truth for your status. Your own I-94, I-20, EAD or approval notice governs over anything summarized here.

Common mistakes

Frequently asked questions

Who needs to file the NJ-1040NR?

Generally you file when you are not a New Jersey resident but earned income from New Jersey sources, such as wages for work physically performed in New Jersey. The New Jersey Division of Taxation instructions set the exact filing rules, so confirm them or ask a tax professional who handles nonresident returns.

Do I file in both New York and New Jersey?

If you live in New York and work in New Jersey, you generally file a New Jersey nonresident return for the wages earned there and a New York resident return reporting all income, then claim a New York credit for tax paid to New Jersey. The reverse commute works the other way around.

How does the resident credit work between NJ and NY?

Your home state taxes all your income but lets you subtract a credit for tax you paid to the other state on income sourced there. The credit is usually limited to what your home state would have charged on that same income, so it avoids double tax but does not always erase the difference in rates.

Does New Jersey follow tax treaties?

Do not assume it does. Federal treaty benefits and state treatment are separate, and some states, such as California, tax income unless a treaty specifically excludes it from that state's tax. Check the New Jersey Division of Taxation for your specific country and income type.

What if my employer withheld tax for the wrong state?

Tell payroll early so withholding can be corrected going forward. For amounts already withheld, the return you file for each state is where over-withholding is reconciled and refunded, and a state's credit rules still apply. A tax professional can sort out which return gets which amount.

Next step

Tax rules for visa holders are easy to get wrong, so bring a tax professional who handles nonresident returns into any decision about filing. If you are still choosing between a New Jersey and a New York employer, book a free resume and profile audit with F1Jobs. We sell a job-search service, so we have a stake in that conversation, and the audit is a free 30-minute session with a strategist.

Sources