The approach applied in various research papers that model compressor shock losses is valid only for certain types of airfoil cascades operating in a narrow range of working conditions. Lately, more general shock loss models have been established that cover a wider variety of airfoils and operating regimes. However, owing to the complexity of the studied matter, the majority of such models are, to a certain extent, presented only in a descriptive manner. The lack of specific details can affect the end results when such a model is utilized since improvisation cannot be avoided. Some models also apply complex numerical procedures that can slow the calculations and be a source of computational instability. In this research, an attempt has been made to produce an analytical shock loss model that is simple enough to be described in detail while being universal and robust enough to find wide application in the fields of design and performance analysis of transonic compressors and fans. The flexible description of airfoil geometry encompasses a variety of blade shapes. Both unchoked and choked operating regimes are covered, including a precise prediction of choke occurrence. The model was validated using a number of numerical test cases.