This paper presents a general formulation of the Reynolds equation for gas and liquid lubricants, including cavitation. A finite element solution of this equation is also given. The model is compared to those obtained in the previous literature on liquid and gas lubrication. One of the advantages of the model is the continuous description of cavitation in liquid lubrication. It is possible to deal with all lubricants by adjusting the amount of gas in the fluid.