The invention discloses a range finder. By arranging a gear, a detection ring, an inner ring, an outer ring, a resistance tape, a lead hammer and an electric conductor, when a support rod rotates to drive the gear to rotate, the gear drives the inner ring to rotate through the detection ring, the relative position between the electric conductor at the lower end of the lead hammer and the resistance tape is changed, the resistance value, between the resistance tape and the electric conductor, measured by a resistance measurement instrument is changed, and the rotating angle of the support rod is calculated; and by arranging an inner rod, an outer rod, a measurement body and a resistance strip, when a telescopic rod in the support rod stretches or shrinks, the relative position between the inner rod and the outer rod is changed, the position of the measurement body on the resistance strip is changed, the resistance, between the resistance tape and the electric conductor, measured by theresistance measurement instrument is changed, the length of the support rod is calculated, the angle of the range finder is adjusted, and the automatic leveling is realized.