Question: how does a phone know how much battery is left?
Answer: Most basic circuit is the Columb counter. ... Addition to the Columb counter is impedance tracking, in which the fuel gauge tries to measure the battery's impedance. A lithium ion cell has a specific impedance for each state of charge, so an estimate can be made regarding the amount of charge left in battery.