$W = \frac{1}{2} CV^{2}$

W = Energy = work done in charging the pure capacitor

C = Capacity of Capacitor

V = potential difference between two plates