Our study has important public health implications. Providing opportunities to eat with others may be effective in maintaining the mental health of older adults. For example, shared meal services at community centres, which allow people to eat with local residents rather than rely on home-delivered meals, may be beneficial for older adults. Future studies should address the mechanisms underlying the effect of gender on eating habits and the protective capacity of shared meals for older adults.