A surviving spouse whose partner died in the current tax year can file a joint tax return for this year. If they remain unmarried and keep a household for a dependent child, they can also file jointly for the next two tax years.
After her husband passed away, Jane, as a surviving spouse, filed a joint tax return for the year of his death and planned to do so for the next two years while caring for their dependent child.