The invention discloses a dynamic generation method for a graphical user interface. The method comprises the following steps of (1) packaging a coordinate setting method, an attribute setting method, an action response mode and a creation method of interface elements according to a unified interface, and generating an interface element library; (2) describing the layout information of the graphical user interface, a control type to be used and a control attribute to generate an interface description file according to a service requirement; (3) dynamically generating the graphical user interface of a program according to the interface element library and the interface description file by using an interface layout algorithm. According to the method, a universal and flexible software interface dynamic-generation technology which can be customized according to a specific application field is provided, so that the problems of high development cost, difficulty in upgrading and maintenance, low reutilization rate of a working achievement, difficulty in interface layout and poor flexibility of a software interface are solved.