Primarily, they use a device called a [coulomb counter](https://learn.sparkfun.com/tutorials/ltc4150-coulomb-counter-hookup-guide/all) to measure how much electrical charge has flowed out of the battery. They also continuously measure the voltage on the battery, which is described by other posters with the “water pressure” analogy.
Latest Answers