Why is the energy stored for a capacitor 1/2*C*V^2?

I was just wondering how to derive this in the first place. I know that V = Q / C, however what else do I need to find the total energy stored?