The invention discloses a three-dimensional railroad bed modeling method including: S1, preparing the essential data of railroad bed modeling; S2, determining a demarcation point of an embankment anda cutting at the side of a left road shoulder L1; S3, determining the railroad bed form of a section point0 to the point1; S4, fixing a corresponding railroad bed standard cross section; S5, generating respective closed bodies by sweeping; S6, performing Boolean operation; S7, completing the railroad bed model of all sections at the side of the L1; S8, completing the railroad bed model at the sideof a right road shoulder L2; S9, deleting L1, L2, the embankment, the cutting standard cross section and a 3D terrain surface M; and S10, obtaining the three-dimensional model of railroad bed. According to the high-precision three-dimensional terrain and the road shoulder line, the method determines railroad bed sections by a certain rule, and generates entities by sweeping the railroad bed standard cross section in the corresponding sections, and obtains a railroad bed fitted with the terrain by the Boolean operation. The method is high in modeling efficiency, avoids the additional manual measurement, and is accurate in engineering quantity calculation.