Between 2010 and 2020 in the European Union, 30% of road accidents resulted in the death of a pedestrian or a cyclist. Accidents of unprotected pedestrians and cyclists are the reason why it is essential to introduce road safety measures. In our paper, we identify and rank black spots using an innovative reactive approach based on statistics. We elaborate on the mathematical methodological considerations through the processing of real-life empirical data in a Matlab environment. The applied black-spot analysis is based on a Kernel density estimate method, and the importance of the kernel functions and bandwidth are elaborated. Besides, special attention is devoted to the distorting effect of annual average daily traffic. The result of our research is a new methodology by which the real locations of the examined black spots can be determined. Furthermore, the boundaries of the critical sections and the extent of the formation of black spots can be determined by the introduced mathematical methods. With our innovative model, the black spots can be ranked, and the locations having the highest potential for improvement can be identified. Accordingly, optimal measures can be determined considering social-economic and sustainability aspects.