The classes of railway out-of-gauge limits are an important basis for out-of-gauge goods transport organizing. In accordance with the railway existing problems in classifying out-of-gauge limits, this paper analyses the factors affecting on classification of out-of-gauge limits in a systematic way, and puts forward the classifying principle and classifying purpose of the out-of-gauge limits. Based on the structure gauge and the minimal distance between lines for railway standard gauge, as well as the conditions of train through the single tracks structure gauge and trains safely meet in double tracks section, a mathematical model for classifying the classes of out-of-gauge limits is originally presented. It plays an important theoretical and actual role to make good use of the existed railway resources of the gauge and quicken the organization of out-of-gauge goods, especially for the increased speed train.