Hip fractures are associated with increased mortality. The identification of risk factors of mortality could improve patient care. The aim of the study was to identify risk factors of mortality after surgery for a hip fracture and construct a mortality model. A cohort study was conducted on patients with hip fractures at two institutions. Five hundred and ninety-seven patients with hip fractures that were treated in the tertiary hospital, and another 147 patients that were treated in a secondary hospital. The perioperative data were collected from medical charts and interviews. Functional Assessment Measure score, Short Form-12 and mortality were recorded at 12 months. Patients and surgery variables that were associated with increased mortality were used to develop a mortality model. Mortality for the whole cohort was 19.4% at one year. From the variables tested only age >80 years, American Society of Anesthesiologists category, time to surgery (>48 hours), Charlson comorbidity index, sex, use of anti-coagulants, and body mass index <25 kg/m2 were associated with increased mortality and used to construct the mortality model. The area under the curve for the prediction model was 0.814. Functional outcome at one year was similar to preoperative status, even though their level of physical function dropped after the hip surgery and slowly recovered. The mortality prediction model that was developed in this study calculates the risk of death at one year for patients with hip fractures, is simple, and could detect high risk patients that need special management.