In this paper we study the Dirichlet problem for Laplace's equation in a domain ωε,η perforated periodically with small holes in Rd, where ε represents the scale of the minimal distances between holes and η the ratio between the scale of sizes of holes and ε. We establish W1,p estimates for solutions with bounding constants depending explicitly on ε and η. The proof relies on a large-scale Lipschitz estimate for harmonic functions in perforated domains. The results are optimal for d≥2.