A cross-sectional study was performed to obtain risk factors for hepatitis B disease, HBsAg carriers and immunised personnel, among 2470 workers in a general hospital in Madrid, Spain. The data obtained were analyzed with multiple logistic regression to obtain beta coefficients for variables. The results of the analysis show that being a nurse or being regularly exposed to blood are the most important risk factors for hepatitis B acquisition. The length of time working at the same job activity was also a risk factor. The resulting beta coefficients allow the construction for a hepatitis non-immunised, HBsAg carrier and immunised HBV status, which can select subjects for a hepatitis B vaccination program.