A diagnostic equipment having an auto-focusing function comprising a image detection device, a first scanning device, a mobile optical lens assembly, a focusing detection device and a first splitter assembly is provided. The image detection device comprises a first light source and a first photo detector. The first light source provides a first incident light and the first incident light incident to an object and becomes a first signal light. The first photo detector is for receiving the first signal light. The first scanning device is for adjusting a path of the first incident light and to scan the object. The mobile optical lens assembly has a lens and a mobile platform. The first splitter assembly is for transmitting the first and the second signal light to the first and the second photo detector, respectively.