Parallel in situ TEM and XRD studies on LiFePO4 precursors obtained by sol-gel method are performed to study evolution of the material during synthesis annealing, which is a crucial stage in preparing rechargeable cathode materials. An exemplary optimization of the final sol-gel step is shown by comparing in situ heating results with electrochemical performance of materials annealed at different temperatures.