Do I File Jointly if I am Divorced or Separated During the Year?
If you are going through divorce, your filing status depends on whether you are still married at the end of the tax year. If you are, then you and your spouse can agree to file jointly, or you can file as head of household if you qualify (more about that later). If the divorce is final before the end of the year, then you file as single (or head of household if you qualify) even though you were married for some portion of that year.
To read more, see here.