Yes — in the year your spouse dies, you can still file a joint return as long as you don't remarry before year-end. A joint return in the year of death typically provides the best tax outcome. For the next two years after your spouse's death, if you have a dependent child, you may qualify for the "Qualifying Surviving Spouse" filing status (formerly called Qualifying Widow/Widower), which lets you use the married filing jointly tax brackets and standard deduction. After those two years, you must file as single or head of household. The year-of-death and the two following years are the most favorable window, so understanding the rules upfront helps with planning.