Please follow https://www.irs.gov/newsroom/some-tax-considerations-for-people-who-are-separating-or-divorcing.