# What's the chemical equation for the lithium iron phosphate battery

The title says it all, I'm searching for the chemical equation to the lithium iron phosphate battery.

I know that the cathode is made of $\ce{LiFePO4}$ and that upon discharging, it is transformed to $\ce{FePO4}$. The Anode is made of graphite.

So I think that the reaction on the anode is: $\ce{LiFePO4 -> FePO4 + Li+ + e-}$

Is this correct? If so, what's happening on the anode?

$$\ce{LiFePO4 -> FePO4 + Li^+ + e^-}$$
$$\ce{Li^+ + C6 + e^- -> LiC6}$$