You are considered unmarried for the whole year if, on the last day of your tax year, you are either: 1  Unmarried, or. 2  Legally separated from your spouse under a divorce or separate maintenance decree. State law governs whether you are married or legally separated under a divorce or separate maintenance decree.