We discuss a numerical formulation for the cell problem related to a homogenization approach for the study of wetting on micro rough surfaces. Regularity properties of the solution are described in details and it is shown that the problem is a convex one. Stability of the solution with respect to small changes of the cell bottom surface allows for an estimate of the numerical error, at least in two dimensions. Several benchmark experiments are presented and the reliability of the numerical solution is assessed, whenever possible, by comparison with analytical one. Realistic three dimensional simulations confirm several interesting features of the solution, improving the classical models of study of wetting on roughness.