The effectiveness of seasonal influenza vaccines varies with the matching of vaccine strains to circulating strains. Based on the genetic distance of hemagglutinin and neuraminidase gene of the influenza viruses to vaccine strains, we statistically quantified the relationship between the genetic mismatch and vaccine effectiveness (VE) for influenza A/H1N1pdm09, A/H3N2 and B. We also proposed a systematic approach to integrate multiple genes and influenza types for overall VE estimation. Evident linear relationships were identified and validated in independent data. The modelling framework may enable in silico prediction for VE on a real-time basis and inform the influenza vaccine selection strategy.