To do this, run your phone down to below 5% battery. Then charge your phone overnight. Even if it says "100%" in 4-5 hours, leave it charge for a few hours more.
Now your phone should properly register the actual percentage of battery life left.
You can read more about batteries, recalibrating the gauge and so on at: