As the page may contain few lines of instruction so the last page of a process may not be able to completely full the page or it may be half filled or completely filled.
So we consider avg. case so it becomes p/2 . on an average half full. This is in context to internal fragmentation. external fragmentation is zero and if the context changes and then according to the context page table overhead may or may not be included.