Source: https://hodgen.com/section-6013h-election-nonresidents-file-joint-tax-return/
Timestamp: 2019-04-18 22:53:04+00:00

Document:
People who are not citizens of the United States and are not residents of the United States are called “nonresident aliens”. The U.S. will impose income tax on them only if they earn income from U.S. sources.
Noncitizens of the United States who are residents of the United States (for income tax purposes, not necessarily for immigration law purposes) must pay U.S. income tax on all of their income, earned anywhere in the world.
Section 6013(g). This is for married couples where one spouse is a U.S. taxpayer and the other is not. The spouse who is a nonresident alien for U.S. income tax classification purposes can elect to be a U.S. taxpayer so the married couple can file a joint tax return. This is usually used for married couples living outside the United States.
Section 6013(h). This is for married couples where one spouse is a U.S. taxpayer and the other is not. It allows the nonresident alien spouse to elect to be a U.S. taxpayer for the full year in which he or she immigrates to the United States, so the couple can file a joint income tax return.
Let’s look at that last one: Section 6013(h). This is the election that allows a married couple–in the year that they move to the United States–to file a joint income tax return.
The nonresident spouse must therefore achieve U.S. resident status in order to file jointly and get the lower tax rates.
A nonresident alien does not get to take a tax deduction for itemized deductions, such as mortgage interest, property tax, and the like.
By making an election to be a U.S. resident for the entire year, the nonresident qualifies to take these tax deductions, which will lower the U.S. tax bill.
A nonresident will move to the United States to live permanently. He buys a house in the U.S. in February, but does not become a resident until August.
If he makes a valid election to be a U.S. resident for the entire calendar year, he can take an income tax deduction for the mortgage interest and property tax paid on his house, for the entire year.
In a year in which a couple moves to the United States, there will be some income earned in the United States and some income earned outside the United States. The U.S. gives you a foreign tax credit (see Form 1116) for the foreign income tax you paid on foreign source income. That reduces the amount of cash you must pay to the IRS.
But the income has to be taxable in the United States if you want to get the tax credit. The whole idea of the foreign tax credit is that if income is taxed in two places at once, the U.S. will let you reduce how much you pay here in the United States, in order to eliminate double-taxation.
By electing resident status, the nonresident with foreign source income will qualify for the foreign tax credit.
Let’s look at the Section 6013(h) election. Who can use it?
The other spouse must be a U.S. resident or a resident alien.
Marital status on December 31 qualifies you for the election. You still can make the Section 6013(h) election if your marriage occurs on December 30.
The spouse who is a nonresident on January 1 must be a resident alien on December 31. Resident alien status is achieved by spending a sufficient number of days in the United States, getting a green card visa, or making an election to be a U.S. resident.
H is a U.S. citizen, married to W, who is a nonresident alien. They move to the United States to live permanently. They arrive in the United States in December, 2017.
On December 31, 2017, W has not spent a sufficient number of days in the United States to qualify as a U.S. resident alien under the substantial presence test. She does not have a green card. She has not made election to be a U.S. resident under IRC §7701(b)(4) or IRC §6013(g).
As a result, W is a nonresident alien on December 31. Because W is a nonresident alien on January 1 and a nonresident alien on December 31, H and W cannot make an election under Section 6013(h) to treat W as a resident of the United States for income tax purposes.
W receives a permanent resident visa (green card) on December 29, 2017.
W is a resident alien on December 31, 2017 because she holds a green card. Because W is a nonresident alien on January 1 and a nonresident alien on December 31, H and W can make an election under Section 6013(h) to treat W as a resident of the United States for income tax purposes.
H and W are both nonresident aliens on January 1, 2017. In August, 2017, they move to the United States to live. H (but not W) receives his green card on December 1, 2017. They have not spent enough time in the United States to be resident aliens.
H is a resident alien on December 31, 2017, and W is a nonresident alien on December 31, 2017. The couple is eligible to make the Section 6013(h) election.
The name, address, and taxpayer identification number of both of the spouses.
Here is a sample statement for you to copy. Type this on a plain piece of paper and attach it to the joint income tax return you are filing.
At the top left of the piece of paper, put a heading so that if your piece of paper becomes detached from your income tax return for some reason, the IRS can figure out how to put it back with your tax return.
What Tax Treatment Do You Get When You Make the Election?
If you make the Section 6013(h) election to be taxed as a resident of the United States? You are not a U.S. taxpayer for all purposes. This is a limited-purpose election.
You are taxed as a resident of the United States, but you are not a “resident alien” for income tax purposes. The definition of “resident alien” gives you three ways to achieve that status, and making the Section 6013(h) election is not one of those three ways. Therefore, even though the Section 6013(h) election–by its plain language–makes a nonresident into a “resident”, and even though a noncitizen is an “alien”, the Section 6013(h) election does not make you into a “resident alien” as that term is defined in IRC §7701(b)(1)(A) or Regs. §301.7701(b)-1.
You are a resident and an alien, in other words, but you are not a “resident alien”.
Chapter 1 of Title 26, Subtitle A of the Internal Revenue Code. All of the income tax rules are interpreted as if you are a resident of the United States. For easy reference, that means IRC §§1 through 1400U-3.
Chapter 5 of Title 26, Subtitle A of the Internal Revenue Code. This is IRC §§1491 through 1494. Happily, these rules have been repealed so you do not need to worry about them.
Chapter 24 of Title 26, Subtitle A of the Internal Revenue Code. These are the rule for withholding of income tax from wages (IRC §§3401 through 3406).
IRC §6012. This is the rule that says who is required to file an income tax return.
IRC §6013. This is the rule that says who can file a joint income tax return.
IRC §6072. This is where you find the filing deadlines for income tax returns.
IRC §6091. This is where you are told where to file your income tax return.
As you can see, the Section 6013(h) election is a rifle-shot aimed at income tax treatment only.
Note specifically that the Net Investment Income Tax (née Obamacare) does not apply to investment income earned by a nonresident who makes the Section 6013(h) election. The NIIT is found in Title 26, Subtitle A, Chapter 2A.
Also note that estate and gift tax matters are unaffected by the Section 6013(h) election. This is logical: the definition of “resident” for estate and gift tax purposes is entirely different from the definition of “resident” for income tax purposes.
For the limited situation of an immigrating couple where full-year U.S. tax status is useful to reduce income tax liability, consider the Section 6013(h) election. It may save a bit of tax.

References: §7701
 §6013
 §7701
 §301
 §6012
 §6013
 §6072
 §6091