The aim of this study is to investigate the interaction of fatty acid quality indices and genes related to lipid homeostasis on mental health among overweight and obese women. This cross-sectional study included 279 overweight and obese women for N6/N3 ratio and 378 overweight and obese women for CSI aged 18–58 years. Mental health were evaluated using Depression Anxiety Stress Scales (DASS-21). The anthropometric indices, biochemical parameters, body composition and dietary fat quality were measured. MC4R (rs17782313) and Caveolin-1 (CAV-1) (rs3807992) were genotyped by polymerase chain reaction-restriction fragment length polymorphism (PCR–RFLP) technique. The results of the study showed that after adjusting for age, energy intake, thyroid disease, physical activity, and BMI, a positive interaction between TC genotype of MC4R and CSI on depression (β = 0.39, CI = 0.12, 0.66, P = 0.004), and DASS-21 (β = 0.074, CI = 0.04, 1.44, P = 0.036). Also, there were a marginal significant interactions between AG genotype of CAV-1 and N6/N3 ratio on depression in adjustment model1 (β = 16.83, CI = − 0.19, 33.85, P = 0.053). Our findings showed that increasing adherence to fatty acid quality indices by considering genes related to lipid homeostasis was related to increasing depression in our population.