Get your taxes done using TurboTax

A spouse can never be claimed as a dependent.

When entering your personal information in the My Info section, you select that you are Married and that you will be filing the return with your spouse (Filing Jointly)

When entering your spouse's information you will come to a screen where one of the questions ask if the spouse passed away.  Select that they passed away and then enter the date of passing.

 

When a spouse passes away in 2023 you can file as Married Filing Jointly on the 2023 tax return.