Let Ω be a bounded domain of RN whose boundary is a C2 compact manifolds. In the present paper we shall study a variational problem relating the weighted Hardy inequalities with sharp missing terms. As weights we adopted powers of the distance function δ(x) to the boundary ∂Ω.