As for the direct-current (DC) power systems, the DC leakage current sensor is indispensable for positioning insulation faults. And in this paper, a quasi-digital flux gate sensor was designed based on duty ratio model, and the mathematical model between the excitation voltage period and the measured current which exceeded the measurement range was built by analyzing the working principles of the dutyratio model digital sensor. In this way, the measurement range of the original sensor could be expanded to 1.5 times of its original. Meanwhile, without changing the hardware, the solution provided in this paper also solved the measurement failure problem of part of sensors when the any overcurrent situations happen in the system, such as overload or short-circuit. Besides, the sensor designed in this paper could achieve Level-0.1 measurement accuracy within range, and reach Level-2 over-range measurement accuracy, satisfying the demands of DC power supply system on leakage current measurement.