Surface waviness is one of the main geometrical errors in ball bearings. Time-varying contact stiffness excitations (TCSEs) produced by the uniform and nonuniform waviness on races of a lubricated ball bearing cannot be accurately described by the previous uniform waviness models considering the time-varying displacement excitation (TDE) in the literature. To overcome this problem, a new dynamic modelling method coupling both the TDE and TCSE produced by the uniform and nonuniform waviness on the races of a lubricated ball bearing is proposed. Effects of the amplitude and nonuniform distribution of waviness on the contact stiffness between one ball and races of the lubricated and unlubricated bearings are investigated, as well as vibrations of the bearings produced by the uniform and nonuniform waviness. Numerical results show that the proposed model can describe the TDE and TCSE produced by the uniform and nonuniform waviness on the races of the lubricated bearing, which cannot be described by the previous uniform waviness models. The results also show that the peak frequencies of spectra of accelerations of the bearing with the waviness will be changed by the lubricating film oil. It seems that the proposed model can provide a new dynamic modelling method for formulating the vibrations of a lubricated bearing with the uniform and nonuniform waviness on its races. NOMENCLATURE c Damping coefficient, N m/s D i Diameter of the normal inner race, mm D o Diameter of the normal outer race, mm d Diameter of the ball, mm E 1 and E 2 Elastic modulus of the two contact components, Pa E * Equivalent elastic modulus of the contact components, Pa F x and F y Components of the external force applying on the shaft, N G Dimensionless material parameter H c Dimensionless central film thickness h c Central film thickness, mm h ij Central film thickness between the ball and inner race, mm h oj Central film thickness between the ball and outer race, mm j jth ball K d Total contact stiffness between one ball and two races, N/mn K id Contact stiffness between the ball and normal unlubricated inner race, N/mn K od Contact stiffness between the ball and normal unlubricated outer race, N/mn K wi Contact stiffness between the ball and abnormal unlubricated inner race, N/mn K wo Contact stiffness between the ball and abnormal unlubricated outer race, N/mn K doi Contact stiffness between the ball and lubricated inner race, N/mn K doo Contact stiffness between the ball and lubricated outer race, N/mn