People with type 2 diabetes are at elevated risk of stroke compared with those without diabetes. Relative risks have been examined in earlier work, but there is no readily available method for predicting the absolute risk of stroke in a diabetic individual. We developed mathematical models to estimate the risk of a first stroke using data from 4549 newly diagnosed type 2 diabetic patients enrolled in the UK Prospective Diabetes Study.