Battery voltage vs state of charge for lead acid battery. I am using PIC MCU for measuring battery voltage & cut charging at 14.5V around. Now I want to calculate SOC acc to voltage. is there any mathematical formula to write in C to calculate SOC at charging & while at open circuit. Edit: wrong subject written , don't know how to edit it.