A Hardy inequality of the form \[\int_{\tilde{\Omega}} |\nabla f({\bf{x}})|^p d {\bf{x}} \ge (\frac{p-1}{p})^p \int_{\tilde{\Omega}} \{1 + a(\delta, \partial \tilde{\Omega})(\x)\}\frac{|f({\bf{x}})|^p}{\delta({\bf{x}})^p} d{\bf{x}}, \] for all f∈C0∞(Ω~), is considered for p∈(1,∞), where Ω~ can be either Ω or Rn∖Ω with Ω a domain in Rn, n≥2, and δ(x) is the distance from x∈Ω~ to the boundary ∂Ω~. The main emphasis is on determining the dependance of a(δ,∂Ω~) on the geometric properties of ∂Ω~. A Hardy inequality is also established for any doubly connected domain Ω in R2 in terms of a uniformisation of Ω, that is, any conformal univalent map of Ω onto an annulus.