A battery remaining capacity calculating method, a battery remaining
capacity calculating device, and a battery remaining capacity calculating
program that make it possible to estimate the remaining capacity of a
secondary battery with high accuracy using a relatively simple circuit
configuration are provided. An output voltage value of the secondary
battery is measured, a use mode of the secondary battery is divided into
a high consumption mode in which the output voltage value is not lower
than a threshold value and a low consumption mode in which the output
voltage value is lower than the threshold value, a remaining capacity in
the low consumption mode is calculated on a basis of a predetermined
reference voltage curve as a discharge characteristic of the secondary
battery and the output voltage value, and a remaining capacity in the
high, consumption mode is calculated supposing that there is little
change in the remaining capacity at a time of change from the low
consumption mode to the high consumption mode. In the high consumption
mode, the remaining capacity may be calculated on a basis of a reference
remaining capacity as a remaining capacity before the use mode change, a
start voltage as an output voltage at a time of a start of the high
consumption mode, a predetermined cutoff voltage of the secondary
battery, and the output voltage value.