Please follow https://www.irs.gov/newsroom/divorce-or-separation-may-have-an-effect-on-taxes.