To apply Failure Mode and Effects Analysis (FMEA) to optimize linac quality control (QC) protocol in order to ensure patient safety and treatment quality, taking maximum advantage of the available resources. Each parameter tested by the QC was considered as a potential failure mode (FM). For each FM, likelihood of occurrence (O), severity of effect (S), and lack of detectability (D) were evaluated and corresponding Risk Priority Number (RPN) was calculated from the product of three indexes. The scores were assigned using two methods: (a) A survey submitted to the medical physicists; (b) A semi-quantitative analysis (SQA) performed through: simulation of FMs in the treatment planning system; studies reported in literature; results obtained by the QC data analysis. A weighted RPN for all FMs was calculated taking into account both the methods. For each linac, the tests were then sorted by their frequency and the RPN value. A high variability was found in the scores of the survey, although in many it was reduced in RPN values, highlighting the more relevant tests as on beam output and imaging system. Integrating these results with those obtained by SQA, the RPN-based ranking of tests has been provided considering the specific use of the accelerator: for example, more accurate tests on dose modulation and multileaf collimator speed were required in linacs where intensity-modulated treatment is performed, while, more specific tests on couch and jaw position indicators were necessary where treatments with multiple isocenters and/or junctions between adjacent fields were often delivered. Failure Mode and Effects Analysis is a useful tool to prioritize the linac QCs, taking into account the specific equipment and clinical practice. The integration of SQA and survey results reduces subjectivity of the FMEA scoring and allows to optimize linac QCs without "losing" the expertise and experience of medical physicists and clinical staff.